diff --git a/ChangeLog.md b/ChangeLog.md new file mode 100755 index 000000000..43556333f --- /dev/null +++ b/ChangeLog.md @@ -0,0 +1,512 @@ +### 5.1.0 + +AdWords: + - Fixing [issue #9](https://github.com/googleads/googleads-php-lib/issues/9 "googleads-php-lib issues #9") - removing unused criteria object in example. + - Added support for AdWords Express for v201309 (invite-only feature). + +DFP: + - No changes. + +Common: + - No changes. + +### 5.0.0 + +AdWords: + - No changes. + +DFP: + - No changes. + +Common: + - Library is now hosted on GitHub in a single project for all ads products. + Each release will still have separate downloadable tarballs for each + product. + - Bumped library version to a common version. + +--- + +### Previous change logs by product. + +#### AdWords + +4.7.0: +- Fixed bug #115. +- Removed support for v201302. +- Added UpdateSiteLinks example. + +4.6.1: +- Fixed bug #112 + +4.6.0: +- Added support and examples for v201309. + +4.5.1: +- Reintroduced WSDL Interpreter for generating PHP stubs from WSDLS. + +4.5.0: +- AdWords for Video API v201302 examples (beta feature). +- Fixed Feed Function naming to FeedFunction (Issue #101). +- Removed support for v201209. + +4.4.0: +- Added support and examples for v201306. + +4.3.0: +- Removed support for OAuth 1. Use OAuth 2 instead. +- OAuth 2 is now the preferred authentication method as ClientLogin is + deprecated. Warnings will be logged if ClientLogin is used. +- The OAuth 2 example has been renamed to GetRefreshToken.php (previously + UseOAuth2.php) and will read OAuth 2 client ID and secret credentials from + the auth.ini file. +- Access tokens are now automatically refreshed when they are close to + expiring (within 60 seconds) if a refreshable token has been provided. This + allows PHP scripts to be long lived without issues. +- The authentication key "clientId" in auth.ini has been renamed to + "clientCustomerId". +- Examples now capture OAuth2 errors and inform users how best to resolve + them. +- Added support for AdWords for Video v201302. + +4.2.5: +- Added example for upgrading legacy sitelinks. +- Moved the SetCampaignEnhanced example to the Migration directory. + +4.2.4: +- Added support and examples for AdGroupBidModifierService. + +4.2.3: +- AdWords for Video API support and examples (beta feature). + +4.2.2: +- Bug fix for PHP < 5.3.0 undefined function parse_ini_string (Issue #91). + +4.2.1: +- Fixed "cvc-elt" error with resolving Selector. +- Removed v201206 src. +- Removed v201206 AdWords and Adx examples. +- Improved examples dependency include (init.php). + +4.2.0: +- Removed AndySmithOAuthHandler. Use PECL OAuth extension instead for OAuth 1. + +4.1.1: +- Improved support of reporting for v201302. + +4.1.0: +- Added support and examples for v201302. + +4.0.1: +- Added example for Setting a campaign to enhanced. +- Added example for Setting a bid modifier. + +4.0.0: +- Correcting user agent. + +3.3.0: +- Removing support for sunset Sandbox environment + +3.2.3: +- Bug fix for PHP 5.4.0 to 5.4.4 SOAP flag name change (Issue #81). + +3.2.0: +- Added support and examples for v201209. +- Added support in ReportUtils for apiMode error messages. + +3.1.1: +- Fixed call to missing method in OAuthHandler (Issue #74). +- Added support and examples for v201206. + +3.1.0: +- Added support, examples, and tests for v201109_1. +- Added support for OAuth2. + +3.0.3: +- Fixed issue with improper loading of settings and added tests. (Issue #68) +- Fixed invalid date range issue with GetClientCustomerId example. (Issue #74) +- Small updates and enhancements to tests. + +3.0.2: +- Added support for the whitelist-only BudgetOrderService. + +3.0.1: +- Removed support and examples for the sunset BulkOpportunityService. +- Regenerated service stub classes. +- Added validation tests for the example code. +- Updated examples to include optional fields and multiple items. +- Added an example demonstrating how to get stats. +- Updated and refactored the AdX-specific tests. + +3.0.0: +- Removed support, examples, and tests for API versions v200909, v201003, + v201008, and v201101. +- Reorganized and updated the v201109 examples. +- Added support for SSL host verification and added SSL verification to OAuth + flow. +- Updated auth files to remove application token and client email. +- Fix for issue #67. Ensuring the request wrapper object has a unique name + per-service, even though other class renaming rules should be ignored, + when psuedo-namespaces are enabled. +- Fixed WSDL interpretter to handle missing class map correctly. +- Fixed include path in AdWordsTestSuite.php. + +2.7.2: +- Added support and example for CreateAccountService. +- Fixed issue with incorrect exception variable name. +- Fixed issue with GetAccountHeirarchy.php when used in the sandbox. +- Fixed issue with lingering "id" attribute after reference replacement. Added + tests for SoapXmlFixer. + +2.7.1: +- Added developer token to report download requests and updated error handling. + +2.7.0: +- Added support and examples for v201109. +- Added support and example for downloading ad hoc reports. +- Deprecated support for clientEmail in v201109. +- Added operation index parsing for OGNL expressions. +- Improved type handling during XML serialization and deserialization. +- Added option for HTTP method to OAuth handlers. + +2.6.4: +- Fixed long type conversion issue with 32-bit machines. (Issue #55) +- Fixed 1.0a support in AndySmithOAuthHandler. +- Replaced AdWordsUser Get*Service() methods with a single GetService() method. + Backwards compatability maintained using __call(). All examples and tests + updated to use the new method. +- Fixed capitalization of TRUE and FALSE in various files. +- Added support for pseudo-namespaces on generated classes. (Issue #4) +- Changed WSDL2PHP to ignore classmap when pseudonamespaces are enabled. +- Moved header generation to API-specific SOAP client classes. +- Made AdWordsUser->__call() method case insensitive when matching for + Get*Service() method calls. +- Added logic to pass ID values as strings to avoid any precision issues. + (Issue #62) +- Fixed long field conversion code and added tests. +- Fixed issue with missing xsi namespace declaration when adding xsi types. +- Removed option to redeclare namespace definitions, as the API was updated to + no longer require this. +- Improved error handling when DOM fails to load. +- Enabled gzip compression of inbound non-SOAP HTTP requests. +- Added XML serializtion functionality to XmlUtils, and various cleanup. +- Fixed build file, specifing class map as JSON. + +2.6.3: +- Updated OAuth implementation to allow for alternative OAuth libraries, + including the bundled Andy Smith library. Updated to use OAuth version 1.0a. +- Updated the logging functionality to support filtering for levels. Changed the + default logging behavior to only log SOAP XML if an error occurred. Added new + methods to AdWordsUser for additional logging configuration. +- Fixed issue with cross-client report download. (Issue #59) +- Updated and added functional tests for v201008 and v201101. + +2.6.2: +- Made v201101 the default version. +- Small documentation fixes. +- Fixed issue with small reports being interpretted incorrectly. [Issue #58] + +2.6.1: +- Fixed build script to include build.properties for source distributions. + +2.6.0: +- Added support for asyncronous (cross-client) report downloads. +- Merged with the Ad Exchange Buyer client library. +- Refactored build system to use properties file. +- All generated service for a version are now stored in the same folder. + +2.5.1: +- Added support for the ConversionTrackerService and BulkOpportunityService, + including examples. +- Updated the AddUserList.php example to include retrieving the conversion + tracker snippet. + +2.5.0: +- Added support for v201101, including examples. +- Fixed bug where constants were being redefined. +- Added support for SSL peer validation. +- Removed name field from image upload examples. +- Added example for CAPTCHA handling in auth token errors. +- Prevent whole file from being read in when checking for errors in report + download (Issue #51). +- Enhanced auth token error handling to support 2-step errors. +- Fixed bug in SoapRequestXmlFixer that lead to duplicate xsi:types in some + environments (Issue #50). +- Added new tests for v201003 and updated some v200909 tests. +- Updated examples to ensure proper string formatting for long types. + +2.4.1: +- Added support for the returnMoneyInMicros header in ReportUtils. +- Added an example for handling partial failures. +- Fixed small typo in GetAccountHierarchy example. + +2.4.0: +- Added support and examples for additional v201008 services. +- Made v201008 the default version. +- Updated OAuth parameter to use standard method. +- Updated conversion optimizer example to use new campaign field. +- Added additional BulkMutateJobService examples. +- Added new utility to work with choice classes. +- Fixed GetAllAdGroups examples (Issue #44). +- Removed CSV and other data files. + +2.3.0: +- Added support for v201008, with examples. +- Changed error handling in examples to avoid authTokens and developer tokens + appearing in stack traces. +- Added AuthToken unit test. +- Added XSI type fix for OSX. +- Ensured correct argument separator for ClientLogin requests. +- Added ability to download reports to memory. +- Updated ReportUtils error regex. +- Added OAuth support. +- Added ability to reuse authToken without first creating new one. +- Added new test framework and utils. +- Added and updated v200909 tests. +- Added the ability to load authToken or OAuth info from the auth.ini file. + +2.2.0: +- Added support for v201003, with examples and tests. +- Removed API dependency from ErrorUtils. +- Added MapUtils for converting between maps and map entry arrays. +- Updated TargetingIdeaService examples to use MapUtils. +- Updated AddAds examples to include video template ad. +- Added ReportUtils for downloading reports. +- Improved error handling for AuthToken requests. +- Added proxy support to wsdl2php library. + +2.1.0: +- Corrected typo in settings file. +- Addition to README, unicode characters and escaping. +- Added PHP 5.3 support. +- HTTP proxy and WSDL caching settings. +- Changed copyright date to 2010. +- Casting ids to floats in examples. +- Updated CSV data files. +- Added utility classes for working with Errors and Ognl paths. +- Added new examples for deleting items and handling policy violation errors. + +2.0.1: +- Bug fix for custom class loaders (Issue #15). +- Bug fix for XML validation in PHP 5.2.6 and below (Issue #16). +- Updated user agent format. + +2.0.0: +- Removed support for v200906, which has been sunset. +- Made application tokens optional. +- Added support for gzip compression of SOAP requests and responses (Issue #14). + +1.2.2: +- Added namespace declaration workaround for bug in server side XML validation. +- Changed tests to pull server from test_settings.ini. +- Removed usage of deprecated split() method (Issue #6). +- Prevented multiple appenders from being added for the same file (Issue #9). +- Prevented autoloading of AdWords API classes (Issue #11). + +1.2.1: +- Added new examples and rewrote existing ones for consistency. +- Fixed incorrect method and service name for GetAdExtensionOverrideService in + class AdWordsUser. + +1.2.0: +- Added support AdParamService. +- Added support for validateOnly header. +- Added new examples. + +1.1.0: +- Added support for all v5.2.x versions of PHP. + +1.0.0: +- Initial release of library. + +--- + +#### DFP + +2.19.0: +- Added support for v201311. +- A valid application name is now required and must not be the default. Set it + in your auth.ini file using the applicationName key. + +2.18.0: +- Added support for v201308. +- Removed deprecated versions v201203, v201204, and v201206. +- Added ToString and ToStringWithTimeZone functions in date utils to stringify + DfpDateTimes. +- Pql utilities will now convert DfpDateTime and Date values into machine + readable strings. DfpDateTimes will be in ISO-8061 format, while Dates will be + in yyyy-MM-dd format. +- Added result set combiner function in Pql utilities to easily combine result + sets from paged statements. + +2.17.1: +- Reintroduced WSDL Interpreter for generating PHP stubs from WSDLS. + +2.17.0: +- Added support for v201306. +- Removed support for OAuth 1. Use OAuth 2 instead. +- OAuth 2 is now the preferred authentication method as ClientLogin is + deprecated. Warnings will be logged if ClientLogin is used. +- The OAuth 2 example has been renamed to GetRefreshToken.php (previously + UseOAuth2.php) and will read OAuth 2 client ID and secret credentials from + the auth.ini file. +- Access tokens are now automatically refreshed when they are close to + expiring (within 60 seconds) if a refreshable token has been provided. This + allows PHP scripts to be long lived without issues. +- Examples now capture OAuth2 errors and inform users how best to resolve + them. + +2.16.0: +- Added support for v201302. +- Removed AndySmithOAuthHandler. Use PECL OAuth extension instead for OAuth 1. +- Removed standalone playground web app sample, please use the hosted version at + https://dfp-playground.appspot.com instead. + +2.15.0: +- Added support for v201211. +- Updated existing generated code for UnsupportedCreative and UNKNOWN enum + choices. +- Removed support for v201108, v201111, and v201201. + +2.14.1: +- Added link to the DFP developer site in auth.ini that explains property + values. +- Updated comments for example for MakeTestNetworkExample.php. +- Updated GetAdUnitSizesExample.php, CreateMobileAdUnitExample.php, and + GetAllLicasExample.php. +- Added new examples AssociateCreativeSetToLineItemExample.php and + RunReportWithCustomFields.php. + +2.14.0: +- Added support for v201208. + +2.13.1: +- Changed formatting of client library user agent. +- Fixed unit tests that were previously not working. +- Refactored some unit tests to use mocks and not contact the actual DFP + service. +- Refactored CurlUtils.php so that it can be tested. +- Fixed Issue #44 + +2.13.0: +- Added support for v201206. +- Added examples for CreativeSetService. +- Added support and samples for OAuth2.0. + +2.12.1: +- Bug fix for DfpUser abstract method not implemented exception (Issue #37). + +2.12.0: +- Added support for v201204. +- Added examples for TeamUserAssociationService. +- Added examples for CustomFieldService. +- Updated examples for TeamService and PlacementService. + +2.11.0: +- Removed support for deprecated versions v201103, v201104, and v201107. +- Added support for v201203. +- Library will no longer default to the sandbox environment. + +2.10.0: +- Added support for v201201. +- Added examples for TeamService. +- Adjusted some examples for new v201201 features. +- Removed non-essential PQL examples. + +2.9.1: +- Added examples for the ThirdPartySlotService. +- Added support for CreativeTemplates in the sample web application. +- Updated pseudo-namespace functionality to handle conflicts better. + +2.9.0: +- Added support and examples for v201111. +- Fixed issue with lingering "id" attribute after reference replacement. Added + tests for SoapXmlFixer. +- Fixed bug with wrong exception name (Issue #27). +- Added support for general PQL Service in webapp. +- Updated to using new DfpUser->GetService() method in webapp. +- Added local storage to save filter text in webapp. +- Bug fix for snippet not being escaped in webapp (Issue #25). +- Bug fix for out of memory exception when there were too many results in webapp + (Issue #23). + +2.8.1: +- Added and updated examples to support postal codes. +- Added operation index parsing for OGNL expressions. +- Added option for HTTP method to OAuth handlers. +- Improved type handling during XML serialization and deserialization. +- Added the ability to ignore duplicate class names when generating classes + from the WSDL. + +2.8.0: +- Added support, tests, and examples for v201108. +- Added support for Date conversions in DateTimeUtils. +- Made DfpDateTime conversions timezone aware. +- Fixed tests so that they work correctly against production. + +2.7.0: +- Added support, tests, and examples for v201107. +- Replaced Get*Servce() methods with a single GetService() method. Maintained + backwards compatibility using the magic method __call. +- Updated the logging functionality to support filtering for levels. Changed the + default logging behavior to only log SOAP XML if an error occurred. Added new + methods to DfpUser for additional logging configuration. +- Updated OAuth mechanism, allowing for different OAuth libraries to be used. +- Updated OAuth implementation to version 1.0a. +- Moved WSDL2PHP settings into build.properties. +- Added pseudo-namespace support for generated classes. +- Added better support for long value serialization and deserialization. +- Added features and fixed bugs for the sample webapp. Fixes for issues #9, #10, + #11, and #13. + +2.6.0: +- Added support, examples, and tests for v201104. +- Updated build system and endpoint URL handling. + +2.5.1: +- Fixed xsi:types in headers for some versions of PHP. Issue #7. + +2.5.0: +- Added support for v201103, including examples and tests. +- Fixed bug in webapp that resulted in duplicate HTML ids. +- Updated code generation script for better documentation. +- Changed documentation format to use frames. + +2.4.0: +- Added support for version v201101, including examples and tests. +- Added support for SSL peer validation. +- Updated auth token and report utilities to use common cURL utility. +- Fixed problem of duplicate xsi:type attributes in some environments. + +2.3.0: +- Added support for version v201010, including examples and tests. +- Updated CreateLineItemsExample.php to include geographical targeting. +- Removed v201004 dependency from DateTimeUtils.php. + +2.2.0: +- Added support for the NetworkService, with examples. +- Added tests for ForecastService, NetworkService, and ReportService. +- Updated tests and examples for compatiblity with DFP Small Business. + +2.1.0: +- Added support for ForecastService and ReportService, with examples. +- Removed API dependency from ErrorUtils. +- Added MapUtils for converting between maps and map entry arrays. +- Added ReportUtils for downloading reports. +- Improved error handling for AuthToken requests. +- Added proxy support to wsdl2php library. + +2.0.0: +- Add support for v201004 + - Filter replaced by Statement +- Removed support for v201002 +- Added utility classes for working with Errors and OGNL paths. + +1.1.0: +- Addition to README, unicode characters and escaping. +- Added PHP 5.3 support. +- HTTP proxy and WSDL caching settings. +- Bug fix for custom class loaders. +- Casting ids to floats in examples. + +1.0.0: +- Initial release of library. diff --git a/LICENSE b/LICENSE new file mode 100755 index 000000000..261eeb9e9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md new file mode 100755 index 000000000..795e13bd6 --- /dev/null +++ b/README.md @@ -0,0 +1,177 @@ +## The Google Ads APIs PHP Client Library + +This project hosts the PHP client library for the various SOAP-based Ads APIs +(AdWords, AdExchange Buyer, and DFP) at Google. + + +### Features + +* Provides easy SOAP logging of API calls. +* Automatic handling of SOAP headers. +* Easy management of credentials, authentication, and session information. +* Examples to that show how to access API services. + + +### Requirements + +PHP + - [PHP 5.2.x - 5.4.x](http://php.net) + - Required PHP extensions: + - [SoapClient](http://us3.php.net/manual/en/book.soap.php) (--enable-soap) + - [OpenSSL](http://php.net/manual/en/book.openssl.php) (--with-ssl) + - [cURL](http://php.net/manual/en/book.curl.php) (--with-curl) + +Build environment + - [PHPUnit](http://www.phpunit.de) + - [Phing](http://phing.info) + - Modified wsdl2php-interpreter (included in this project) + - Original: http://code.google.com/p/wsdl2php-interpreter + - Required PHP extensions: + - [XSLTProcessor](http://php.net/manual/en/class.xsltprocessor.php) + (--with-xsl) + + +### Announcements and updates + +For API and client library updates and news, please follow our [Google+ Ads +Developers page](https://plus.google.com/+GoogleAdsDevelopers/posts) and our +[Google Ads Developers blog](http://googleadsdeveloper.blogspot.com). + + +### Getting started + +1\. Register an OAuth 2 application. + +You will need to register an OAuth2 application to get a valid client ID and +secret. See the [Using OAuth 2 wiki page] +(https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0) for more information. + +2\. Download the client library. + +The client library source can be found with the example distributions in the +[releases section](https://github.com/googleads/googleads-php-lib/releases) of +this GitHub project. Download the examples for the product you are working with +and untar it. + +3\. Enter your OAuth 2 and account credentials. + +In the distribution you will find a lib folder. Under +lib/Google/Api/Ads/[PRODUCT]/ you will find an auth.ini file. Open the auth.ini +file and enter your OAuth 2 client ID and secret that you generated in step 1. +Also enter the required product specific credentials, such as network code for +DFP and developer token for AdWords. + +> It is recommended that during development of your library, you use a test +> network/account. For DFP, you can follow instructions for how to obtain a +> test network here: +> https://developers.google.com/doubleclick-publishers/docs/start +> For AdWords, you can follow instructions here: +> https://developers.google.com/adwords/api/docs/test-accounts + +Now in your distribution, navigate to examples/[PRODUCT]/Auth and run the +GetRefreshToken.php example. Copy the refresh token the example produces into +the auth.ini file mentioned above. + +4\. Run an example. + +To ensure you have setup credentials properly, run the GetAllCompanies.php +example located in examples/Dfp/v201311/CompanyService/ if you're using DFP. + +If you're using AdWords, run the GetCampaigns.php example located in +examples/AdWords/v201309/BasicOperations/. + +5\. Install the client library. + +To install the client library, either copy the lib/ folder into where you store +your PHP source files that is on your PHP include path, or add the current +directory path of the lib/ folder to your PHP include path. + + +### Basic usage + +The following example is for AdWords, but the general code applies to all +products. + + +```php + +// Set the include path and the require the folowing PHP file. +// +// You can set the include path to src directory or reference +// AdWordsUser.php directly via require_once. +// $path = '/path/to/pda_api_php_lib/src'; +$path = dirname(__FILE__) . '/../../../src'; +set_include_path(get_include_path() . PATH_SEPARATOR . $path); +require_once 'Google/Api/Ads/AdWordsUser/Lib/AdWordsUser.php'; + +// Create an AdWordsUser instance using the default constructor, which will load +// information from the auth.ini file as described above. +$user = new AdWordsUser(); + +// Optionally, enable logging to capture the content of SOAP requests and +// responses. +$user->LogDefaults(); + +// Instantiate the desired service class by calling the get***Service method on +// the AdWordsUser instance. +$campaignService = $user->GetService('CampaignService', 'v201309') + +// Create data objects and invoke methods on the service class instance. The +// data objects and methods map directly to the data objects and requests for +// the corresponding web service. + +// Create new campaign structure. +$campaign = new Campaign(); +$campaign->name = 'Campaign #' . time(); +$campaign->status = 'ACTIVE'; +$campaign->biddingStrategyConfiguration = new BiddingStrategyConfiguration(); +$campaign->biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC'; +$campaign->budget = new Budget('DAILY', new Money(50000000), 'STANDARD'); + +$operation = new CampaignOperation(); +$operation->operand = $campaign; +$operation->operator = 'ADD'; +$operations[] = $operation; + +// Add campaign. +$campaignReturnValue = $campaignService->mutate($operations); +``` + + +### How do I enable logging? + +The client library uses a custom class for all logging purposes and is exposed +through the Logger.php file. There are two loggers within this class described +below. + + - REQUEST_INFO_LOG: Logs all requests from the client library along + with information such as the timestamp, email, service, method, + request Id, response time and which server was used. The default + behavior is to log this information to "logs/request_info.log" relative to + your project's home directory. + + - SOAP_XML_LOG: Logs all incoming and outgoing SOAP requests/responses. The + default behavior is to log this information to "logs/soap_xml.log" relative + to your project's home directory. Sensitive information, such as + authentication tokens, will be stripped. + +Logging can be enabled using the following methods. + + - $user->LogDefaults(): Logs request information for all requests, but only + logs SOAP XML for requests that resulted in an error. + + - $user->LogErrors(): Only logs request information and SOAP XML for requests + that resulted in an error. + + - $user->LogAll(): Logs request information and SOAP XML for all requests. + +You can use the methods of the Logger class directly for even more control over +how requests are logged. + + +### Where do I submit client library bug reports, feature requests, and patches? + +All of these can be submitted through the +[issue tracker](https://github.com/googleads/googleads-php-lib/issues) in this +GitHub project. + diff --git a/build_lib/WSDLInterpreter/WSDLInterpreter.php b/build_lib/WSDLInterpreter/WSDLInterpreter.php new file mode 100755 index 000000000..b4e98b914 --- /dev/null +++ b/build_lib/WSDLInterpreter/WSDLInterpreter.php @@ -0,0 +1,907 @@ + + * require_once 'WSDLInterpreter.php'; + * $myWSDLlocation = 'http://www.example.com/ExampleService?wsdl'; + * $wsdlInterpreter = new WSDLInterpreter($myWSDLlocation); + * $wsdlInterpreter->savePHP('/example/output/directory/'); + * + * + * @category WebServices + * @package WSDLInterpreter + */ +class WSDLInterpreter +{ + /** + * The WSDL document's URI + * @var string + * @access private + */ + private $_wsdl = NULL; + + /** + * The soap client classname + * @var string + * @access private + */ + private $_soapClientClassName = NULL; + + /** + * DOM document representation of the wsdl and its translation + * @var DOMDocument + * @access private + */ + private $_dom = null; + + /** + * Array of classes and members representing the WSDL message types + * @var array + * @access private + */ + private $_classmap = array(); + + /** + * Array of types that shouldn't be checked for class name uniqueness + * @var array + * @access private + */ + private $_skipClassNameCheckTypes = array(); + + /** + * Array of sources for WSDL message classes + * @var array + * @access private + */ + private $_classPHPSources = array(); + + /** + * Array of sources for WSDL services + * @var array + * @access private + */ + private $_servicePHPSources = array(); + + /** + * Class names. + * @var array + * @access private + */ + private $_classes = array(); + + /** + * Function names. + * @var array + * @access private + */ + private $_functions = array(); + + /** + * The service name. + * @var string + * @access private + */ + private $_serviceName = NULL; + + /** + * The service namespace. + * @var string + * @access private + */ + private $_serviceNamespace = NULL; + + /** + * The service version. + * @var string + * @access private + */ + private $_version = NULL; + + /** + * The service author. + * @var string + * @access private + */ + private $_author = NULL; + + /** + * The service package. + * @var string + * @access private + */ + private $_package = NULL; + + /** + * Whether or not to enable psuedo namespaces in the generated class names. + * @var string + * @access private + */ + private $_enablePseudoNamespaces = NULL; + + /** + * The class path of the SOAP client to require in the PHP file. + * @var string + * @access private + */ + private $_soapClientClassPath = NULL; + + /** + * Map of complexType name to namespace + */ + private $_namespaceMap = NULL; + + /** + * Parses the target wsdl and loads the interpretation into object members + * + * @param string $wsdl the URI of the wsdl to interpret + * @param string $soapClientClassName the class name which the generated + * client will extend + * @param array $classmap the class map to use when generating classes + * @param string $serviceName the name of the service being worked on + * @param string $version the version of the service + * @param string $author the author to be placed in the file header + * @param string $package the package to be placed in the file header + * @param string $soapClientClassPath the class path to require for the + * SOAP client + * @param string $proxy the proxy URL to use when downloading WSDLs + * @throws WSDLInterpreterException container for all WSDL interpretation + * problems + * @todo Create plug in model to handle extendability of WSDL files + */ + public function __construct($wsdl, $soapClientClassName, $classmap, + $conflictClassmap, $serviceName, $version, $author, $package, + $soapClientClassPath, $proxy, $enablePseudoNamespaces, + $skipClassNameCheckTypes) + { + try { + $this->_wsdl = $wsdl; + $this->_soapClientClassName = $soapClientClassName; + + $this->_serviceName = $serviceName; + $this->_version = $version; + $this->_author = $author; + $this->_package = $package; + if (isset($classmap)) { + $this->_classmap = $classmap; + } + $this->_enablePseudoNamespaces = isset($enablePseudoNamespaces) ? + $enablePseudoNamespaces : false; + if (!$this->_enablePseudoNamespaces) { + // Only use if pseudo-namespaces aren't enabled. + if (isset($conflictClassmap)) { + $this->_classmap = array_merge($this->_classmap, $conflictClassmap); + } + if (isset($skipClassNameCheckTypes)) { + $this->_skipClassNameCheckTypes = $skipClassNameCheckTypes; + } + } + $this->_soapClientClassPath = $soapClientClassPath; + + // Set proxy. + if (!empty($proxy)) { + $opts = array( + 'http' => array( + 'proxy' => $proxy, + 'request_fulluri' => TRUE + ) + ); + $context = stream_context_get_default($opts); + libxml_set_streams_context($context); + } + + $this->_dom = new DOMDocument(); + $this->_dom->load($wsdl, LIBXML_DTDLOAD|LIBXML_DTDATTR|LIBXML_NOENT|LIBXML_XINCLUDE); + + $xpath = new DOMXPath($this->_dom); + + // Service namespace. + $this->_serviceNamespace = + $this->_dom->documentElement->getAttribute('targetNamespace'); + + /** + * wsdl:import + */ + $query = "//*[local-name()='import' and namespace-uri()='http://schemas.xmlsoap.org/wsdl/']"; + $entries = $xpath->query($query); + foreach ($entries as $entry) { + $parent = $entry->parentNode; + $wsdl = new DOMDocument(); + $wsdl->load($entry->getAttribute("location"), LIBXML_DTDLOAD|LIBXML_DTDATTR|LIBXML_NOENT|LIBXML_XINCLUDE); + foreach ($wsdl->documentElement->childNodes as $node) { + $newNode = $this->_dom->importNode($node, true); + $parent->insertBefore($newNode, $entry); + } + $parent->removeChild($entry); + } + + /** + * xsd:import + */ + $query = "//*[local-name()='import' and namespace-uri()='http://www.w3.org/2001/XMLSchema']"; + $entries = $xpath->query($query); + foreach ($entries as $entry) { + $parent = $entry->parentNode; + $xsd = new DOMDocument(); + $result = @$xsd->load(dirname($this->_wsdl) . "/" . $entry->getAttribute("schemaLocation"), + LIBXML_DTDLOAD|LIBXML_DTDATTR|LIBXML_NOENT|LIBXML_XINCLUDE); + if ($result) { + foreach ($xsd->documentElement->childNodes as $node) { + $newNode = $this->_dom->importNode($node, true); + $parent->insertBefore($newNode, $entry); + } + $parent->removeChild($entry); + } + } + + $this->_loadNamespaces($xpath); + + $this->_dom->formatOutput = true; + } catch (Exception $e) { + throw new WSDLInterpreterException("Error loading WSDL document (".$e->getMessage().")"); + } + + try { + $xsl = new XSLTProcessor(); + $xslDom = new DOMDocument(); + $xslDom->load(dirname(__FILE__)."/wsdl2php.xsl"); + $xsl->registerPHPFunctions(); + $xsl->importStyleSheet($xslDom); + $this->_dom = $xsl->transformToDoc($this->_dom); + $this->_dom->formatOutput = true; + //$this->_dom->save("dom.xml"); + } catch (Exception $e) { + throw new WSDLInterpreterException("Error interpreting WSDL document (".$e->getMessage().")"); + } + $this->_loadClassAndFunctionNames(); + $this->_loadClasses(); + $this->_loadServices(); + } + + /** + * Validates a name against standard PHP naming conventions + * + * @param string $name the name to validate + * + * @return string the validated version of the submitted name + * + * @access private + */ + private function _validateNamingConvention($name) + { + return preg_replace('#[^a-zA-Z0-9_\x7f-\xff]*#', '', + preg_replace('#^[^a-zA-Z_\x7f-\xff]*#', '', $name)); + } + + /** + * Validates a class name against PHP naming conventions and already defined + * classes, and optionally stores the class as a member of the interpreted classmap. + * + * @param string $className the name of the class to test + * @param boolean $addToClassMap whether to add this class name to the classmap + * @param boolean $preventPseudoNamespaces whether to prevent + * pseudo-namespaces from being used + * + * @return string the validated version of the submitted class name + * + * @access private + * @todo Add reserved keyword checks + */ + private function _validateClassName($className, $addToClassMap = true, + $preventPseudoNamespaces = false) + { + if (!array_key_exists($className, $this->_classmap)) { + $validClassName = $this->_validateNamingConvention($className); + if ($this->_enablePseudoNamespaces && !$preventPseudoNamespaces) { + $validClassName = $this->_package . '_' . $validClassName; + } + + if (!in_array($validClassName, $this->_skipClassNameCheckTypes) + && class_exists($validClassName)) { + throw new Exception("Class ".$validClassName." already defined.". + " Cannot redefine class with class loaded."); + } + + if ($addToClassMap) { + $this->_classmap[$className] = $validClassName; + } + } else { + $validClassName = $this->_classmap[$className]; + } + + return $validClassName; + } + + + /** + * Validates a wsdl type against known PHP primitive types, or otherwise + * validates the namespace of the type to PHP naming conventions + * + * @param string $type the type to test + * + * @return string the validated version of the submitted type + * + * @access private + * @todo Extend type handling to gracefully manage extendability of wsdl definitions, add reserved keyword checking + */ + private function _validateType($type) + { + $array = false; + if (substr($type, -2) == "[]") { + $array = true; + $type = substr($type, 0, -2); + } + switch (strtolower($type)) { + case "int": case "integer": case "long": case "byte": case "short": + case "negativeInteger": case "nonNegativeInteger": + case "nonPositiveInteger": case "positiveInteger": + case "unsignedByte": case "unsignedInt": case "unsignedLong": case "unsignedShort": + $validType = "integer"; + break; + + case "float": case "long": case "double": case "decimal": + $validType = "double"; + break; + + case "string": case "token": case "normalizedString": case "hexBinary": + $validType = "string"; + break; + + default: + $validType = $this->_validateNamingConvention($type); + break; + } + if ($array) { + $validType .= "[]"; + } + return $validType; + } + + /** + * Loads a map of complexType to namespace. + * @param DOMXPath $xpath the DOMXPath representing the wsdl + * @access private + */ + private function _loadNamespaces(DOMXPath $wsdlXPath) { + $wsdlXPath->registerNamespace('wsdl', 'http://schemas.xmlsoap.org/wsdl/'); + $wsdlXPath->registerNamespace('xmlns', 'http://www.w3.org/2001/XMLSchema'); + $schemas = $wsdlXPath->document->getElementsByTagName('schema'); + $i = 1; + foreach ($schemas as $schema) { + $namespace = $schema->getAttribute('targetNamespace'); + $types = $wsdlXPath->query('//wsdl:definitions/wsdl:types/xmlns:schema[' + . $i . ']//xmlns:complexType' + . ' | //wsdl:definitions/wsdl:types/xmlns:schema[' . $i + . ']//xmlns:simpleType'); + foreach ($types as $type) { + $typeName = ($type->getAttribute('name') + ? $type->getAttribute('name') + : $type->parentNode->getAttribute('name')); + $this->_namespaceMap[$typeName] = $namespace; + } + $i++; + } + } + + /** + * Loads the names for all of the classes and functions. + * + * @access private + */ + private function _loadClassAndFunctionNames() { + $classes = $this->_dom->getElementsByTagName("class"); + foreach ($classes as $class) { + $this->_classes[$class->getAttribute("name")] = $class; + if (array_key_exists($class->getAttribute("name"), $this->_classmap)) { + $this->_classes[$this->_classmap[$class->getAttribute("name")]] = $class; + } + } + + $functions = $this->_dom->getElementsByTagName("function"); + foreach ($functions as $function) { + $this->_functions[$function->getAttribute("name")] = $function; + } + } + + /** + * Loads classes from the translated wsdl document's message types + * + * @access private + */ + private function _loadClasses() + { + $classes = $this->_dom->getElementsByTagName("class"); + foreach ($classes as $class) { + $class->setAttribute("validatedName", + $this->_validateClassName($class->getAttribute("name"))); + $extends = $class->getElementsByTagName("extends"); + if ($extends->length > 0) { + $extends->item(0)->setAttribute("validatedName", + $this->_validateClassName($extends->item(0)->nodeValue)); + $classExtension = $extends->item(0)->getAttribute("validatedName"); + } else { + $classExtension = false; + } + $properties = $class->getElementsByTagName("entry"); + foreach ($properties as $property) { + $property->setAttribute("validatedName", + $this->_validateNamingConvention($property->getAttribute("name"))); + $property->setAttribute("type", + $this->_validateType($property->getAttribute("type"))); + } + + $sources[$class->getAttribute("validatedName")] = array( + "extends" => $classExtension, + "source" => $this->_generateClassPHP($class) + ); + } + + while (sizeof($sources) > 0) + { + $classesLoaded = 0; + foreach ($sources as $className => $classInfo) { + if (!$classInfo["extends"] || (isset($this->_classPHPSources[$classInfo["extends"]]))) { + $this->_classPHPSources[$className] = $classInfo["source"]; + unset($sources[$className]); + $classesLoaded++; + } + } + if (($classesLoaded == 0) && (sizeof($sources) > 0)) { + throw new WSDLInterpreterException("Error loading PHP classes: ".join(", ", array_keys($sources))); + } + } + } + + /** + * Generates the PHP code for a WSDL message type class representation + * + * This gets a little bit fancy as the magic methods __get and __set in + * the generated classes are used for properties that are not named + * according to PHP naming conventions (e.g., "MY-VARIABLE"). These + * variables are set directly by SoapClient within the target class, + * and could normally be retrieved by $myClass->{"MY-VARIABLE"}. For + * convenience, however, this will be available as $myClass->MYVARIABLE. + * + * @param DOMElement $class the interpreted WSDL message type node + * @return string the php source code for the message type class + * + * @access private + * @todo Include any applicable annotation from WSDL + */ + private function _generateClassPHP($class) { + $return = ""; + $return .= 'if (!class_exists("'.$class->getAttribute("validatedName").'", FALSE)) {'."\n"; + $return .= '/**'."\n"; + $return .= $this->_generateInnerDoc( + $class->getElementsByTagName("documentation")->item(0)->nodeValue); + $return .= ' * @package '.$this->_package."\n"; + $return .= ' * @subpackage '.$this->_version."\n"; + $return .= ' */'."\n"; + $return .= "class ".$class->getAttribute("validatedName"); + $extends = $class->getElementsByTagName("extends"); + $hasExtend = false; + if ($extends->length > 0) { + $return .= " extends ".$extends->item(0)->getAttribute("validatedName"); + $hasExtend = true; + } + $return .= " {\n"; + + $properties = $class->getElementsByTagName("entry"); + foreach ($properties as $property) { + $return .= " /**\n" + . " * @access public\n" + . " * @var ".$property->getAttribute("type")."\n" + . " */\n" + . " ".'public $'.$property->getAttribute("validatedName").";\n\n"; + } + + $extraParams = false; + $paramMapReturn = " ".'private $_parameterMap = array ('."\n"; + $properties = $class->getElementsByTagName("entry"); + foreach ($properties as $property) { + if ($property->getAttribute("name") != $property->getAttribute("validatedName")) { + $extraParams = true; + $paramMapReturn .= " ".'"'.$property->getAttribute("name"). + '" => "'.$property->getAttribute("validatedName").'",'."\n"; + } + } + $paramMapReturn .= " ".');'."\n\n"; + $paramMapReturn .= " ".'/**'."\n"; + $paramMapReturn .= " ".' * Provided for setting non-php-standard named variables'."\n"; + $paramMapReturn .= " ".' * @param $var Variable name to set'."\n"; + $paramMapReturn .= " ".' * @param $value Value to set'."\n"; + $paramMapReturn .= " ".' */'."\n"; + $paramMapReturn .= " ".'public function __set($var, $value) '. + '{ $this->{$this->_parameterMap[$var]} = $value; }'."\n\n"; + $paramMapReturn .= " ".'/**'."\n"; + $paramMapReturn .= " ".' * Provided for getting non-php-standard named variables'."\n"; + $paramMapReturn .= " ".' * @param $var Variable name to get.'."\n"; + $paramMapReturn .= " ".' * @return mixed Variable value'."\n"; + $paramMapReturn .= " ".' */'."\n"; + $paramMapReturn .= " ".'public function __get($var) {'."\n"; + $paramMapReturn .= " ".'if (!array_key_exists($var, $this->_parameterMap)) {'."\n"; + $paramMapReturn .= " ".'return NULL;'."\n"; + $paramMapReturn .= " ".'} else {'."\n"; + $paramMapReturn .= " ".'return $this->{$this->_parameterMap[$var]};'."\n"; + $paramMapReturn .= " ".'}'."\n"; + $paramMapReturn .= " ".'}'."\n\n"; + + $paramMapReturn .= " ".'/**'."\n"; + $paramMapReturn .= " ".' * Provided for getting non-php-standard named variables'."\n"; + $paramMapReturn .= " ".' * @return array parameter map'."\n"; + $paramMapReturn .= " ".' */'."\n"; + $paramMapReturn .= " ".'protected function getParameterMap() {'."\n"; + $paramMapReturn .= " ".'return $this->_parameterMap;'."\n }\n\n"; + + if ($extraParams) { + $return .= $paramMapReturn; + } + + $return .= " /**\n" + . " * Gets the namesapce of this class\n" + . " * @return the namespace of this class\n" + . " */\n" + . " public function getNamespace() {\n" + . " return \"" . $this->_namespaceMap[$class->getAttribute('name')] + . "\";\n }\n\n"; + + $return .= " /**\n" + . " * Gets the xsi:type name of this class\n" + . " * @return the xsi:type name of this class\n" + . " */\n" + . " public function getXsiTypeName() {\n" + . " return \"" . $class->getAttribute('xsiTypeName') . "\";\n }\n\n"; + + $params = $this->_getTopDownConstructorArguments($class); + + $constructor = " ".'public function __construct('; + + if (sizeof($params) > 0) { + $constructor .= "$"; + } + $constructor .= implode(" = NULL, $", $params); + if (sizeof($params) > 0) { + $constructor .= " = NULL"; + } + $constructor .= ") {\n"; + if ($extends->length > 0) { + $constructor .= " parent::__construct();"."\n"; + } + foreach($params as $param) { + $constructor .= " " . '$this->' . $param . " = $" . $param . ";\n"; + } + $constructor .= " }\n"; + $return .= $constructor; + $return .= "}}"; + return $return; + } + + /** + * Loads services from the translated wsdl document + * + * @access private + */ + private function _loadServices() + { + $services = $this->_dom->getElementsByTagName("service"); + foreach ($services as $service) { + $service->setAttribute("validatedName", + $this->_validateClassName( + $service->getAttribute("name"), false, true)); + $functions = $service->getElementsByTagName("function"); + foreach ($functions as $function) { + $function->setAttribute("validatedName", + $this->_validateNamingConvention($function->getAttribute("name"))); + $parameters = $function->getElementsByTagName("parameters"); + if ($parameters->length > 0) { + $parameterList = $parameters->item(0)->getElementsByTagName("entry"); + foreach ($parameterList as $variable) { + $variable->setAttribute("validatedName", + $this->_validateNamingConvention($variable->getAttribute("name"))); + $variable->setAttribute("type", + $this->_validateType($variable->getAttribute("type"))); + } + } + } + + $this->_servicePHPSources[$service->getAttribute("validatedName")] = + $this->_generateServicePHP($service); + } + } + + /** + * Generates the PHP code for a WSDL service class representation + * + * This method, in combination with generateServiceFunctionPHP, create a PHP class + * representation capable of handling overloaded methods with strict parameter + * type checking. + * + * @param DOMElement $service the interpreted WSDL service node + * @return string the php source code for the service class + * + * @access private + * @todo Include any applicable annotation from WSDL + */ + private function _generateServicePHP($service) { + $return = ""; + $return .= 'if (!class_exists("'.$service->getAttribute("validatedName").'", FALSE)) {'."\n"; + $return .= '/**'."\n"; + $return .= ' * '.$service->getAttribute("validatedName")."\n"; + $return .= ' * @package '.$this->_package."\n"; + $return .= ' * @subpackage '.$this->_version."\n"; + $return .= ' * @author WSDLInterpreter'."\n"; + $return .= ' */'."\n"; + $return .= "class ".$service->getAttribute("validatedName")." extends " . + $this->_soapClientClassName . " {\n"; + + if (sizeof($this->_classmap) > 0) { + $return .= " ".'/**'."\n"; + $return .= " ".' * Default class map for wsdl=>php'."\n"; + $return .= " ".' * @access private'."\n"; + $return .= " ".' * @var array'."\n"; + $return .= " ".' */'."\n"; + $return .= " ".'public static $classmap = array('."\n"; + foreach ($this->_classmap as $className => $validClassName) { + $return .= " ".'"'.$className.'" => "'.$validClassName.'",'."\n"; + } + $return .= " );\n\n"; + } + + $return .= " ".'/**'."\n"; + $return .= " ".' * The endpoint of the service'."\n"; + $return .= " ".' * @var string'."\n"; + $return .= " ".' */'."\n"; + $return .= " ".'public static $endpoint = "'.$service->getAttribute('endpoint').'";'."\n\n"; + + $return .= " ".'/**'."\n"; + $return .= " ".' * Constructor using wsdl location and options array'."\n"; + $return .= " ".' * @param string $wsdl WSDL location for this service'."\n"; + $return .= " ".' * @param array $options Options for the SoapClient'."\n"; + $return .= " ".' */'."\n"; + $return .= " ".'public function __construct($wsdl=null, $options, $user) {'."\n"; + $return .= " ".'$options["classmap"] = ' . $service->getAttribute("validatedName") . '::$classmap;' . "\n"; + $return .= " ".'parent::__construct($wsdl, $options, $user, '. "'" + . $service->getAttribute("validatedName") . "', '" . $this->_serviceNamespace + . "');"."\n"; + $return .= " }\n\n"; + + $functionMap = array(); + $functions = $service->getElementsByTagName("function"); + foreach ($functions as $function) { + if (!isset($functionMap[$function->getAttribute("validatedName")])) { + $functionMap[$function->getAttribute("validatedName")] = array(); + } + $functionMap[$function->getAttribute("validatedName")][] = $function; + } + foreach ($functionMap as $functionName => $functionNodeList) { + $return .= $this->_generateServiceFunctionPHP($functionName, $functionNodeList)."\n\n"; + } + + $return .= "}}"; + return $return; + } + + /** + * Generates the PHP code for a WSDL service operation function representation + * + * The function code that is generated examines the arguments that are passed and + * performs strict type checking against valid argument combinations for the given + * function name, to allow for overloading. + * + * @param string $functionName the php function name + * @param array $functionNodeList array of DOMElement interpreted WSDL function nodes + * @return string the php source code for the function + * + * @access private + * @todo Include any applicable annotation from WSDL + */ + private function _generateServiceFunctionPHP($functionName, $functionNodeList = null) { + $return = ""; + $return .= " ".'/**'."\n"; + + $documentation = + $this->_classes[$functionName]->getElementsByTagName("documentation")->item(0)->nodeValue; + $return .= $this->_generateInnerDoc($documentation, " "); + + $return .= " ".' */'."\n"; + $return .= " ".'public function '.$functionName . "(" . $this->_getFunctionArgs($functionName) . ") {\n"; + $return .= " ".'$arg = new ' . $this->_classmap[$functionName] . "(" . $this->_getFunctionArgs($functionName) . ");\n"; + $return .= " ".'$result = $this->__soapCall("'.$functionName.'", array($arg));'."\n"; + $return .= " ".'return $result->rval;'."\n"; + $return .= " ".'}'."\n"; + + return $return; + } + + /** + * Saves the PHP source code that has been loaded to a target directory. + * + * Services will be saved by their validated name, and classes will be included + * with each service file so that they can be utilized independently. + * + * @param string $outputDirectory the destination directory for the source code + * @return array array of source code files that were written out + * @throws WSDLInterpreterException problem in writing out service sources + * @access public + * @todo Add split file options for more efficient output + */ + public function savePHP($outputDirectory) + { + if (!count($this->_servicePHPSources)) { + throw new WSDLInterpreterException("No services loaded"); + } + $require = sprintf( + "/** Required classes. **/\nrequire_once \"%s\";\n\n", + $this->_soapClientClassPath + ); + $classSource = join("\n\n", $this->_classPHPSources); + $outputFiles = array(); + foreach ($this->_servicePHPSources as $serviceName => $serviceCode) { + $filename = sprintf('%s/%s.php', $outputDirectory, $serviceName); + $success = file_put_contents($filename, sprintf( + "_getFileHeader(), $require, $classSource, $serviceCode + )); + if ($success) { + $outputFiles[] = $filename; + } + } + if (!count($outputFiles)) { + throw new WSDLInterpreterException("Error writing PHP source files."); + } + return $outputFiles; + } + + /** + * Gets a string equivalent of the array which can be evaled. + * + * @param $array the string serialization of the array + * @return a string equivalent of the array which can be evaled + */ + private function _getArrayStr($array) { + $result = "array("; + $resultArray = array(); + foreach ($array as $key => $value) { + if (is_array($value)) { + $value = $this->_getArrayStr($value); + array_push($resultArray, '"' . $key . '" => ' . $value); + } else { + array_push($resultArray, '"' . $key . '" => "' . $value . '"'); + } + } + + return $result . implode(", ", $resultArray) . ")"; + } + + /** + * Generates a valid documentation inner block indented correctly. + * + * @param $documetation the documentation string + * @param $padding the padding before each '*' + * @return string the inner block of the documentation + */ + private function _generateInnerDoc($documetation, $padding = "") { + $result = ""; + $docLines = explode("\n", trim($documetation)); + foreach($docLines as $docLine) { + $line = trim($docLine); + $result .= $padding . " * " . $line . "\n"; + } + return $result; + } + + /** + * Gets the true function agruments for the function. + * + * @param $functionName the function name + * @return string the comma seperated string of function arguments + */ + private function _getFunctionArgs($functionName) { + $resultArray = array(); + $class = $this->_classes[$functionName]; + + $entries = $class->getElementsByTagName("entry"); + foreach($entries as $entry) { + array_push($resultArray, "$" . $entry->getAttribute("name")); + } + return implode(", ", $resultArray); + } + + /** + * Gets the constructor arguments for the class + * + * @param $class the class + * @return array an array of constructor agruments + */ + private function _getConstructorArguments($class) { + $properties = $class->getElementsByTagName("entry"); + $params = array(); + foreach ($properties as $property) { + array_push($params, + $this->_validateNamingConvention($property->getAttribute("name"))); + } + return $params; + } + + /** + * Gets all parameters by traversing all sub-classes. + * + * @param $class the current class + * @return array an array of all parameters + */ + private function _getTopDownConstructorArguments($class) { + $params = $this->_getConstructorArguments($class); + + if ($class->getElementsByTagName("extends")->length > 0) { + $extends = $class->getElementsByTagName("extends"); + $parentClassName = $extends->item(0)->nodeValue; + $params = array_merge($params, + $this->_getTopDownConstructorArguments( + $this->_classes[$parentClassName])); + } + + return $params; + } + + /** + * Gets the file header to put at the top of each PHP file. + * + * @return string the file header to put at the top of each PHP file + */ + private function _getFileHeader() { + $template = file_get_contents(dirname(__FILE__) . '/file_header.tmpl'); + + $template = preg_replace('/_author/i', $this->_author, $template); + $template = preg_replace('/_package/i', $this->_package, $template); + $template = preg_replace('/_version/i', $this->_version, $template); + $template = preg_replace('/_serviceName/i', $this->_serviceName, $template); + + return $template; + } +} diff --git a/build_lib/WSDLInterpreter/file_header.tmpl b/build_lib/WSDLInterpreter/file_header.tmpl new file mode 100755 index 000000000..7a2bffc3c --- /dev/null +++ b/build_lib/WSDLInterpreter/file_header.tmpl @@ -0,0 +1,27 @@ +/** + * Contains all client objects for the _serviceName service. + * + * PHP version 5 + * + * Copyright 2013, Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @package _package + * @subpackage _version + * @category WebServices + * @copyright 2013, Google Inc. All Rights Reserved. + * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, + * Version 2.0 + * @author _author + */ diff --git a/build_lib/WSDLInterpreter/wsdl2php.xsl b/build_lib/WSDLInterpreter/wsdl2php.xsl new file mode 100755 index 000000000..cfb9e9256 --- /dev/null +++ b/build_lib/WSDLInterpreter/wsdl2php.xsl @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build_lib/Wsdl2PhpTask.php b/build_lib/Wsdl2PhpTask.php new file mode 100755 index 000000000..73371028c --- /dev/null +++ b/build_lib/Wsdl2PhpTask.php @@ -0,0 +1,276 @@ + PHP Class' for the WSDL. + * @var array the classmap for the WSDL type to PHP class + * @access private + */ + private $classmap = NULL; + + /** + * A classmap of 'Wsdl Type => PHP Class' for the WSDL, to be used + * to avoid class name conflicts when pseudo namespaces are not enabled. + * @var array the classmap for the WSDL type to PHP class + * @access private + */ + private $conflictClassmap = NULL; + + /** + * The WSDL types that shouldn't have their class names checked for + * uniqueness. This option will be ignored when pseudo namespaces are enabled. + * @var array the WSDL types that shouldn't have their class names checked for + * uniqueness. + * @access private + */ + private $skipClassNameCheckTypes = NULL; + + /** + * The author of the service to be included in the file header. + * @var string the author of the service + * @access private + */ + private $author = NULL; + + /** + * The name of the service being worked on. + * @var string the name of the service being worked on + * @access private + */ + private $serviceName = NULL; + + /** + * The version of the service being worked on + * @var string the version of the service being worked + * @access private + */ + private $version = NULL; + + /** + * The package name to be included in the file header. + * @var string the package name to be included in the file header + * @access private + */ + private $package = NULL; + + /** + * The proxy URL to use when downloading WSDLs. + * @var string the proxy URL to use when downloading WSDLs + * @access private + */ + private $proxy = NULL; + + /** + * Whether or not to enable pseudo namespaces in the generated class names. + * @var boolean whether or not to enable pseudo namespaces in the generated + * class names + * @access private + */ + private $enablePseudoNamespaces = FALSE; + + /** + * The setter for the attribute $url. + * @param string $url the URL of the WSDL file + */ + public function setUrl($url) { + $this->url = $url; + } + + /** + * The setter for the attribute $soapClientClassName. + * @param string $soapClientClassName the soap client classname to extend for + * each soap client + */ + public function setSoapClientClassName($soapClientClassName) { + $this->soapClientClassName = $soapClientClassName; + } + + /** + * The setter for the attribute $soapClientClassPath. + * @param string $soapClientClassPath the soap client class path to require + * in each service class file + */ + public function setSoapClientClassPath($soapClientClassPath) { + $this->soapClientClassPath = $soapClientClassPath; + } + + /** + * The setter for the attribute $outputDir. + * @param string $path the output directory where the generated PHP + * file will be placed + */ + public function setOutputDir($outputDir) { + $this->outputDir = $outputDir; + } + + /** + * The setter for the attribute $classmap. + * @param string $classmap JSON representation of the classmap, as a mapping + * from WSDL type to PHP class name + */ + public function setClassmap($classmap) { + $this->classmap = json_decode($classmap, true); + if (!isset($this->classmap) && !empty($classmap)) { + trigger_error('Unable to parse classmap as JSON.', E_USER_ERROR); + die; + } + } + + /** + * The setter for the attribute $conflictClassmap. + * @param string $conflictClassmap JSON representation of a classmap, as a + * mapping from WSDL type to PHP class name, to be used to avoid name + * conflicts when pseudo namespaces aren't enabled + */ + public function setConflictClassmap($conflictClassmap) { + $this->conflictClassmap = json_decode($conflictClassmap, true); + if (!isset($this->conflictClassmap) && !empty($conflictClassmap)) { + trigger_error('Unable to parse the conflict classmap as JSON.', + E_USER_ERROR); + die; + } + } + + /** + * The setter for the attribute $skipClassNameCheckTypes. + * @param string $skipClassNameCheckTypes comma separated list of the type + * names + */ + public function setSkipClassNameCheckTypes($skipClassNameCheckTypes) { + if (!empty($skipClassNameCheckTypes)) { + $this->skipClassNameCheckTypes = array_map('trim', + explode(',', $skipClassNameCheckTypes)); + } + } + + /** + * The setter for the attribute $author. + * @param string $author the author for the file header of the generated file + */ + public function setAuthor($author) { + $this->author = $author; + } + + /** + * The setter for the attribute $version. + * @param string $version the version of the API for the generated service + */ + public function SetVersion($version) { + $this->version = $version; + } + + /** + * The setter for the attribute $package. + * @param string $package the pacakge to be inserted into the file header + */ + public function SetPackage($package) { + $this->package = $package; + } + + /** + * The setter for the attribute $proxy. + * @param string $proxy the proxy URL to use when downloading WSDLs + */ + public function SetProxy($proxy) { + $this->proxy = $proxy; + } + + /** + * The setter for the attribute $enablePseudoNamespaces. + * @param boolean $enablePseudoNamespaces whether or not to enable pseudo + * namespaces in the generated class names. + */ + public function SetEnablePseudoNamespaces($enablePseudoNamespaces) { + $this->enablePseudoNamespaces = $enablePseudoNamespaces; + } + + /** + * The setter of the attribute $serviceName. + * @param string $serviceName the name of the generated service + */ + public function SetServiceName($serviceName) { + $this->serviceName = $serviceName; + } + + /** + * Nothing to initilize for the task. + */ + public function init() {} + + /** + * The main entry point method for the task. + */ + public function main() { + print 'Starting: ' . $this->url . ' to ' . $this->outputDir . "\n"; + + $wsdlInterpreter = + new WSDLInterpreter($this->url, $this->soapClientClassName, + $this->classmap, $this->conflictClassmap, $this->serviceName, + $this->version, $this->author, $this->package, + $this->soapClientClassPath, $this->proxy, + $this->enablePseudoNamespaces, $this->skipClassNameCheckTypes); + $wsdlInterpreter->savePHP($this->outputDir); + print 'Done: ' . $this->url . "\n"; + } +} + diff --git a/build_lib/build.xml b/build_lib/build.xml new file mode 100755 index 000000000..e3680cdec --- /dev/null +++ b/build_lib/build.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/AdWords/Auth/GetRefreshToken.php b/examples/AdWords/Auth/GetRefreshToken.php new file mode 100755 index 000000000..bf766e2fe --- /dev/null +++ b/examples/AdWords/Auth/GetRefreshToken.php @@ -0,0 +1,102 @@ +GetOAuth2Handler(); + $authorizationUrl = $OAuth2Handler->GetAuthorizationUrl( + $user->GetOAuth2Info(), $redirectUri, $offline); + + // In a web application you would redirect the user to the authorization URL + // and after approving the token they would be redirected back to the + // redirect URL, with the URL parameter "code" added. For desktop + // or server applications, spawn a browser to the URL and then have the user + // enter the authorization code that is displayed. + printf("Log in to your AdWords account and open the following URL:\n%s\n\n", + $authorizationUrl); + print "After approving the token enter the authorization code here: "; + $stdin = fopen('php://stdin', 'r'); + $code = trim(fgets($stdin)); + fclose($stdin); + print "\n"; + + // Get the access token using the authorization code. Ensure you use the same + // redirect URL used when requesting authorization. + $user->SetOAuth2Info( + $OAuth2Handler->GetAccessToken( + $user->GetOAuth2Info(), $code, $redirectUri)); + + + // The access token expires but the refresh token obtained for offline use + // doesn't, and should be stored for later use. + return $user->GetOAuth2Info(); +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Get the client ID and secret from the auth.ini file. If you do not have a + // client ID or secret, please create one of type "installed application" in + // the Google API console: https://code.google.com/apis/console#access + // and set it in the auth.ini file. + $user = new AdWordsUser(); + $user->LogAll(); + + // Get the OAuth2 credential. + $oauth2Info = GetOAuth2Credential($user); + + // Enter the refresh token into your auth.ini file. + printf("Your refresh token is: %s\n\n", $oauth2Info['refresh_token']); + printf("In your auth.ini file, edit the refresh_token line to be:\n" + . "refresh_token = \"%s\"\n", $oauth2Info['refresh_token']); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} + diff --git a/examples/AdWords/Auth/init.php b/examples/AdWords/Auth/init.php new file mode 100755 index 000000000..03f593615 --- /dev/null +++ b/examples/AdWords/Auth/init.php @@ -0,0 +1,43 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function CreateAccountExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $managedCustomerService = + $user->GetService('ManagedCustomerService', ADWORDS_VERSION); + + // Create customer. + $customer = new ManagedCustomer(); + $customer->name = 'Account #' . uniqid(); + $customer->currencyCode = 'EUR'; + $customer->dateTimeZone = 'Europe/London'; + + // Create operation. + $operation = new ManagedCustomerOperation(); + $operation->operator = 'ADD'; + $operation->operand = $customer; + + $operations = array($operation); + + // Make the mutate request. + $result = $managedCustomerService->mutate($operations); + + // Display result. + $customer = $result->value[0]; + printf("Account with customer ID '%s' was created.\n", + $customer->customerId); +} + +// 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. + CreateAccountExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AccountManagement/GetAccountAlerts.php b/examples/AdWords/v201306/AccountManagement/GetAccountAlerts.php new file mode 100755 index 000000000..1b7a41717 --- /dev/null +++ b/examples/AdWords/v201306/AccountManagement/GetAccountAlerts.php @@ -0,0 +1,103 @@ +GetService('AlertService', ADWORDS_VERSION); + + // Create alert query. + $alertQuery = new AlertQuery(); + $alertQuery->clientSpec = 'ALL'; + $alertQuery->filterSpec = 'ALL'; + $alertQuery->types = array('ACCOUNT_BUDGET_BURN_RATE','ACCOUNT_BUDGET_ENDING', + 'ACCOUNT_ON_TARGET','CAMPAIGN_ENDED','CAMPAIGN_ENDING', + 'CREDIT_CARD_EXPIRING','DECLINED_PAYMENT', + 'MANAGER_LINK_PENDING','MISSING_BANK_REFERENCE_NUMBER', + 'PAYMENT_NOT_ENTERED','TV_ACCOUNT_BUDGET_ENDING','TV_ACCOUNT_ON_TARGET', + 'TV_ZERO_DAILY_SPENDING_LIMIT','USER_INVITE_ACCEPTED', + 'USER_INVITE_PENDING','ZERO_DAILY_SPENDING_LIMIT'); + $alertQuery->severities = array('GREEN', 'YELLOW', 'RED'); + $alertQuery->triggerTimeSpec = 'ALL_TIME'; + + // Create selector. + $selector = new AlertSelector(); + $selector->query = $alertQuery; + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $alertService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $alert) { + printf("Alert of type '%s' and severity '%s' for account '%d' was " + . "found.\n", $alert->alertType, $alert->alertSeverity, + $alert->clientCustomerId); + } + } else { + print "No alerts 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. + GetAccountAlertsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AccountManagement/GetAccountChanges.php b/examples/AdWords/v201306/AccountManagement/GetAccountChanges.php new file mode 100755 index 000000000..8eb22a0bb --- /dev/null +++ b/examples/AdWords/v201306/AccountManagement/GetAccountChanges.php @@ -0,0 +1,148 @@ +GetService('CampaignService', ADWORDS_VERSION); + $customerSyncService = $user->GetService('CustomerSyncService', ADWORDS_VERSION); + + // Get an array of all campaign ids. + $campaignIds = array(); + $selector = new Selector(); + $selector->fields = array('Id'); + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + do { + $page = $campaignService->get($selector); + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + $campaignIds[] = $campaign->id; + } + } + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + // Set the date time range, from 24 hours ago until now. + $dateTimeRange = new DateTimeRange(); + $dateTimeRange->min = date('Ymd his', strtotime('-1 day')); + $dateTimeRange->max = date('Ymd his'); + + // Create selector. + $selector = new CustomerSyncSelector(); + $selector->dateTimeRange = $dateTimeRange; + $selector->campaignIds = $campaignIds; + + // Make the get request. + $accountChanges = $customerSyncService->get($selector); + + // Display results. + if (isset($accountChanges)) { + printf("Most recent change: %s\n", $accountChanges->lastChangeTimestamp); + if (isset($accountChanges->changedCampaigns)) { + foreach ($accountChanges->changedCampaigns as $campaignChangeData) { + printf("Campaign with id '%.0f' has change status '%s'.\n", + $campaignChangeData->campaignId, + $campaignChangeData->campaignChangeStatus); + if ($campaignChangeData->campaignChangeStatus != 'NEW') { + printf("\tAdded ad extensions: %s\n", + ArrayToString($campaignChangeData->addedAdExtensions)); + printf("\tDeleted ad extensions: %s\n", + ArrayToString($campaignChangeData->deletedAdExtensions)); + printf("\tAdded campaign criteria: %s\n", + ArrayToString($campaignChangeData->addedCampaignCriteria)); + printf("\tDeleted campaign criteria: %s\n", + ArrayToString($campaignChangeData->deletedCampaignCriteria)); + printf("\tCampaign targeting changed: %s\n", + $campaignChangeData->campaignTargetingChanged ? 'true' + : 'false'); + if (isset($campaignChangeData->changedAdGroups)) { + foreach($campaignChangeData->changedAdGroups as + $adGroupChangeData) { + printf("\tAd Group with id '%.0f' has change status '%s'.\n", + $adGroupChangeData->adGroupId, + $adGroupChangeData->adGroupChangeStatus); + if ($adGroupChangeData->adGroupChangeStatus != 'NEW') { + printf("\t\tChanged ads: %s\n", + ArrayToString($adGroupChangeData->changedAds)); + printf("\t\tChanged criteria: %s\n", + ArrayToString($adGroupChangeData->changedCriteria)); + printf("\t\tDeleted criteria: %s\n", + ArrayToString($adGroupChangeData->deletedCriteria)); + } + } + } + } + } + } + } else { + print "No changes were found.\n"; + } +} + +/** + * Converts an array of values to a comma-separated string. + * @param array $array an array of values that can be converted to a string + * @return string a comma-separated string of the values + */ +function ArrayToString($array) { + if (!isset($array)) { + return ''; + } else { + return implode(', ', $array); + } +} + +// 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. + GetAccountChangesExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AccountManagement/GetAccountHierarchy.php b/examples/AdWords/v201306/AccountManagement/GetAccountHierarchy.php new file mode 100755 index 000000000..4e3baf097 --- /dev/null +++ b/examples/AdWords/v201306/AccountManagement/GetAccountHierarchy.php @@ -0,0 +1,127 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetAccountHierarchyExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $managedCustomerService = + $user->GetService('ManagedCustomerService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $graph = $managedCustomerService->get($selector); + + // Display serviced account graph. + if (isset($graph->entries)) { + // Create map from customerId to parent and child links. + $childLinks = array(); + $parentLinks = array(); + if (isset($graph->links)) { + foreach ($graph->links as $link) { + $childLinks[$link->managerCustomerId][] = $link; + $parentLinks[$link->clientCustomerId][] = $link; + } + } + // Create map from customerID to account, and find root account. + $accounts = array(); + $rootAccount = NULL; + foreach ($graph->entries as $account) { + $accounts[$account->customerId] = $account; + if (!array_key_exists($account->customerId, $parentLinks)) { + $rootAccount = $account; + } + } + // The root account may not be returned in the sandbox. + if (!isset($rootAccount)) { + $rootAccount = new Account(); + $rootAccount->customerId = 0; + $rootAccount->login = $user->GetEmail(); + } + // Display account tree. + print "(Customer Id, Account Name/Login)\n"; + DisplayAccountTree($rootAccount, NULL, $accounts, $childLinks, 0); + } else { + print "No serviced accounts were found.\n"; + } +} + +/** + * Displays an account tree, starting at the account and link provided, and + * recursing to all child accounts. + * @param Account $account the account to display + * @param Link $link the link used to reach this account + * @param array $accounts a map from customerId to account + * @param array $links a map from customerId to child links + * @param int $depth the depth of the current account in the tree + */ +function DisplayAccountTree($account, $link, $accounts, $links, $depth) { + print str_repeat('-', $depth * 2); + printf("%s, %s\n", $account->customerId, + !empty($link->descriptiveName) ? $link->descriptiveName :$account->login); + if (array_key_exists($account->customerId, $links)) { + foreach ($links[$account->customerId] as $childLink) { + $childAccount = $accounts[$childLink->clientCustomerId]; + DisplayAccountTree($childAccount, $childLink, $accounts, $links, + $depth +1); + } + } +} + +// 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. + GetAccountHierarchyExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/AddAdGroupBidModifier.php b/examples/AdWords/v201306/AdvancedOperations/AddAdGroupBidModifier.php new file mode 100755 index 000000000..e06620dfd --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/AddAdGroupBidModifier.php @@ -0,0 +1,101 @@ +GetService('AdGroupBidModifierService', + ADWORDS_VERSION); + + // Mobile criterion ID. + $criterionId = 30001; + + // Prepare to add an ad group level override. + $agBidModifier = new AdGroupBidModifier(); + $agBidModifier->adGroupId = $adGroupId; + $agBidModifier->criterion = new Platform(); + $agBidModifier->criterion->id = $criterionId; + $agBidModifier->bidModifier = $bidModifier; + + $operation = new AdGroupBidModifierOperation(); + + // Use 'ADD' to add a new modifier and 'SET' to update an existing one. A + // modifier can be removed with the 'REMOVE' operator. + $operation->operator = 'ADD'; + $operation->operand = $agBidModifier; + + $response = $bidModifierService->mutate(array($operation)); + + foreach ($response->value as $modifier) { + $value = 'none'; + if (!empty($modifier->bidModifier)) { + $value = $modifier->bidModifier; + } + printf( + 'AdGroup ID %d, Criterion ID %d was updated with ' . + "ad group level modifier: %s\n", + $modifier->adGroupId, + $modifier->criterion->id, + $value + ); + } +} + +// 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. + AddAdGroupBidModifierExample($user, $adGroupId, $bidModifier); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/AddClickToDownloadAd.php b/examples/AdWords/v201306/AdvancedOperations/AddClickToDownloadAd.php new file mode 100755 index 000000000..a04c116aa --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/AddClickToDownloadAd.php @@ -0,0 +1,133 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_ADGROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $adGroupId the ID of the ad group to add the ad to + */ +function AddClickToDownloadAd(AdWordsUser $user, $adGroupId) { + // Get the AdGroupAdService, which loads the required classes. + $adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create the template ad. + $clickToDownloadAppAd = new TemplateAd(); + + $clickToDownloadAppAd->name = 'Ad for demo game'; + $clickToDownloadAppAd->templateId = 353; + $clickToDownloadAppAd->url = + 'http://play.google.com/store/apps/details?id=com.example.demogame'; + $clickToDownloadAppAd->displayUrl = 'play.google.com'; + + // Create the template elements for the ad. You can refer to + // https://developers.google.com/adwords/api/docs/appendix/templateads + // for the list of avaliable template fields. + $headline = new TemplateElementField(); + $headline->name = 'headline'; + $headline->fieldText = 'Enjoy your drive in Mars'; + $headline->type = 'TEXT'; + + $description1 = new TemplateElementField(); + $description1->name = 'description1'; + $description1->fieldText = 'Realistic physics simulation'; + $description1->type = 'TEXT'; + + $description2 = new TemplateElementField(); + $description2->name = 'description2'; + $description2->fieldText = 'Race against players online'; + $description2->type = 'TEXT'; + + $appId = new TemplateElementField(); + $appId->name = 'appId'; + $appId->fieldText = 'com.example.demogame'; + $appId->type = 'TEXT'; + + $appStore = new TemplateElementField(); + $appStore->name = 'appStore'; + $appStore->fieldText = '2'; + $appStore->type = 'ENUM'; + + $adData = new TemplateElement(); + $adData->uniqueName = 'adData'; + $adData->fields = + array($headline, $description1, $description2, $appId, $appStore); + + $clickToDownloadAppAd->templateElements = array($adData); + + // Create the adgroupad. + $clickToDownloadAppAdGroupAd = new AdGroupAd(); + $clickToDownloadAppAdGroupAd->adGroupId = $adGroupId; + $clickToDownloadAppAdGroupAd->ad = $clickToDownloadAppAd; + + // Optional: Set the status. + $clickToDownloadAppAdGroupAd->status = 'PAUSED'; + + // Create the operation. + $operation = new AdGroupAdOperation(); + $operation->operator = 'ADD'; + $operation->operand = $clickToDownloadAppAdGroupAd; + + $operations = array($operation); + + // Create the ads. + $result = $adGroupAdService->mutate($operations); + + foreach ($result->value as $adGroupAd) { + printf('New click-to-download ad with ID = %d and URL = "%s" ' . + "was created.\n", $adGroupAd->ad->id, $adGroupAd->ad->url); + } +} + +// 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. + AddClickToDownloadAd($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/AddSitelinks.php b/examples/AdWords/v201306/AdvancedOperations/AddSitelinks.php new file mode 100755 index 000000000..43f7b6b19 --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/AddSitelinks.php @@ -0,0 +1,337 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function AddSitelinksExample(AdWordsUser $user, $campaignId) { + $sitelinksData = CreateSiteLinksFeed($user); + $sitelinksData = CreateSiteLinksFeedItems($user, $sitelinksData); + CreateSiteLinksFeedMapping($user, $sitelinksData); + CreateSiteLinksCampaignFeed($user, $sitelinksData, $campaignId); +} + +/** + * Creates the feed that holds the sitelinks data. + * @param AdWordsUser $user the user to run the example with + */ +function CreateSiteLinksFeed(AdWordsUser $user) { + // Map that holds IDs associated to the feeds metadata. + $sitelinksData = array(); + + // Get the FeedService, which loads the required classes. + $feedService = $user->GetService('FeedService', ADWORDS_VERSION); + + // Create attributes. + $textAttribute = new FeedAttribute(); + $textAttribute->type = 'STRING'; + $textAttribute->name = 'Link Text'; + $urlAttribute = new FeedAttribute(); + $urlAttribute->type = 'URL'; + $urlAttribute->name = 'Link URL'; + $line1Attribute = new FeedAttribute(); + $line1Attribute->type = 'STRING'; + $line1Attribute->name = 'Line 1 Description'; + $line2Attribute = new FeedAttribute(); + $line2Attribute->type = 'STRING'; + $line2Attribute->name = 'Line 2 Description'; + + // Create the feed. + $sitelinksFeed = new Feed(); + $sitelinksFeed->name = 'Feed For Site Links'; + $sitelinksFeed->attributes = array($textAttribute, $urlAttribute, + $line1Attribute, $line2Attribute); + $sitelinksFeed->origin = 'USER'; + + // Create operation. + $operation = new FeedOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sitelinksFeed; + + $operations = array($operation); + + // Add the feed. + $result = $feedService->mutate($operations); + + $savedFeed = $result->value[0]; + $sitelinksData['sitelinksFeedId'] = $savedFeed->id; + $savedAttributes = $savedFeed->attributes; + $sitelinksData['linkTextFeedAttributeId'] = $savedAttributes[0]->id; + $sitelinksData['linkUrlFeedAttributeId'] = $savedAttributes[1]->id; + $sitelinksData['line1FeedAttribute'] = $savedAttributes[2]->id; + $sitelinksData['line2FeedAttribute'] = $savedAttributes[3]->id; + + printf('Feed with name "%s" and ID %d with linkTextAttributeId %d' + . ", linkUrlAttributeId %d, line1Attribute %d and line2Attribute %d " + . "were created.\n", + $savedFeed->name, + $savedFeed->id, + $savedAttributes[0]->id, + $savedAttributes[1]->id, + $savedAttributes[2]->id, + $savedAttributes[3]->id); + + return $sitelinksData; +} + +/** + * Adds sitelinks items to the feed. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + */ +function CreateSiteLinksFeedItems(AdWordsUser $user, $sitelinksData) { + // Get the FeedItemService, which loads the required classes. + $feedItemService = $user->GetService('FeedItemService', ADWORDS_VERSION); + + // Create operations to add FeedItems. + $home = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Home', + 'http://www.example.com', 'Home line 1', 'Home line 2'); + $stores = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Stores', + 'http://www.example.com/stores', 'Stores line 1', 'Stores line 2'); + $onSale = NewSiteLinkFeedItemAddOperation($sitelinksData, 'On Sale', + 'http://www.example.com/sale', 'On Sale line 1', 'On Sale line 2'); + $support = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Support', + 'http://www.example.com/support', 'Support line 1', 'Support line 2'); + $products = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Products', + 'http://www.example.com/products', 'Products line 1', 'Products line 2'); + $aboutUs = NewSiteLinkFeedItemAddOperation($sitelinksData, 'About Us', + 'http://www.example.com/about', 'About Us line 1', 'About Us line 2'); + + $operations = array($home, $stores, $onSale, $support, $products, $aboutUs); + + $result = $feedItemService->mutate($operations); + $sitelinksData['siteLinkFeedItemIds'] = array(); + + foreach ($result->value as $feedItem) { + printf("FeedItem with feedItemId %d was added.\n", $feedItem->feedItemId); + $sitelinksData['siteLinkFeedItemIds'][] = $feedItem->feedItemId; + } + + return $sitelinksData; +} + +// See the Placeholder reference page for a list of all the placeholder types and fields. +// https://developers.google.com/adwords/api/docs/appendix/placeholders.html +define('PLACEHOLDER_SITELINKS', 1); +define('PLACEHOLDER_FIELD_SITELINK_LINK_TEXT', 1); +define('PLACEHOLDER_FIELD_SITELINK_URL', 2); +define('PLACEHOLDER_FIELD_LINE_1_TEXT', 3); +define('PLACEHOLDER_FIELD_LINE_2_TEXT', 4); + +/** + * Maps the feed attributes to the sitelink placeholders. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + */ +function CreateSiteLinksFeedMapping(AdWordsUser $user, $sitelinksData) { + // Get the FeedMappingService, which loads the required classes. + $feedMappingService = $user->GetService('FeedMappingService', + ADWORDS_VERSION); + + // Map the FeedAttributeIds to the fieldId constants. + $linkTextFieldMapping = new AttributeFieldMapping(); + $linkTextFieldMapping->feedAttributeId = + $sitelinksData['linkTextFeedAttributeId']; + $linkTextFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_TEXT; + $linkUrlFieldMapping = new AttributeFieldMapping(); + $linkUrlFieldMapping->feedAttributeId = + $sitelinksData['linkUrlFeedAttributeId']; + $linkUrlFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_URL; + $line1FieldMapping = new AttributeFieldMapping(); + $line1FieldMapping->feedAttributeId = $sitelinksData['line1FeedAttribute']; + $line1FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_1_TEXT; + $line2FieldMapping = new AttributeFieldMapping(); + $line2FieldMapping->feedAttributeId = $sitelinksData['line2FeedAttribute']; + $line2FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_2_TEXT; + + // Create the FieldMapping and operation. + $feedMapping = new FeedMapping(); + $feedMapping->placeholderType = PLACEHOLDER_SITELINKS; + $feedMapping->feedId = $sitelinksData['sitelinksFeedId']; + $feedMapping->attributeFieldMappings = + array($linkTextFieldMapping, $linkUrlFieldMapping, $line1FieldMapping, + $line2FieldMapping); + $operation = new FeedMappingOperation(); + $operation->operand = $feedMapping; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Save the field mapping. + $result = $feedMappingService->mutate($operations); + foreach ($result->value as $feedMapping) { + printf('Feed mapping with ID %d and placeholderType %d was saved for ' . + "feed with ID %d.\n", + $feedMapping->feedMappingId, + $feedMapping->placeholderType, + $feedMapping->feedId); + } +} + +/** + * Creates the CampaignFeed associated to the feed data already populated. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function CreateSiteLinksCampaignFeed(AdWordsUser $user, $sitelinksData, + $campaignId) { + // Get the CampaignFeedService, which loads the required classes. + $campaignFeedService = $user->GetService('CampaignFeedService', + ADWORDS_VERSION); + + $feedFunctionRequestContextOperand = new RequestContextOperand(); + $feedFunctionRequestContextOperand->contextType = 'FEED_ITEM_ID'; + + $feedItemFunction = new FeedFunction(); + $feedItemFunction->lhsOperand = array($feedFunctionRequestContextOperand); + $feedItemFunction->operator = 'IN'; + + $operands = array(); + foreach ($sitelinksData['siteLinkFeedItemIds'] as $feedItemId) { + $constantOperand = new ConstantOperand(); + $constantOperand->longValue = $feedItemId; + $constantOperand->type = 'LONG'; + $operands[] = $constantOperand; + } + $feedItemFunction->rhsOperand = $operands; + + # Optional: to target to a platform, define a function and 'AND' it with the + # feed item ID link: + $platformRequestContextOperand = new RequestContextOperand(); + $platformRequestContextOperand->contextType = 'DEVICE_PLATFORM'; + + $platformOperand = new ConstantOperand(); + $platformOperand->type = 'STRING'; + $platformOperand->stringValue = 'Mobile'; + + $platformFunction = new FeedFunction(); + $platformFunction->operator = 'EQUALS'; + $platformFunction->lhsOperand = array($platformRequestContextOperand); + $platformFunction->rhsOperand = array($platformOperand); + + $feedItemFunctionOperand = new FunctionOperand(); + $feedItemFunctionOperand->value = $feedItemFunction; + + $platformFunctionOperand = new FunctionOperand(); + $platformFunctionOperand->value = $platformFunction; + + $combinedFunction = new FeedFunction(); + $combinedFunction->operator = 'AND'; + $combinedFunction->lhsOperand = array($feedItemFunctionOperand, + $platformFunctionOperand); + + $campaignFeed = new CampaignFeed(); + $campaignFeed->feedId = $sitelinksData['sitelinksFeedId']; + $campaignFeed->campaignId = $campaignId; + $campaignFeed->matchingFunction = $combinedFunction; + // Specifying placeholder types on the CampaignFeed allows the same feed + // to be used for different placeholders in different Campaigns. + $campaignFeed->placeholderTypes = array(PLACEHOLDER_SITELINKS); + + $operation = new CampaignFeedOperation(); + $operation->operand = $campaignFeed; + $operation->operator = 'ADD'; + + $operations = array($operation); + + $result = $campaignFeedService->mutate($operations); + foreach ($result->value as $savedCampaignFeed) { + printf("Campaign with ID %d was associated with feed with ID %d.\n", + $savedCampaignFeed->campaignId, + $savedCampaignFeed->feedId); + } +} + +/** + * Creates a SitelinkFeedItem and wraps it in an ADD operation. + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + * @param string $text text of the sitelink + * @param string $url URL of the sitelink + */ +function NewSiteLinkFeedItemAddOperation($sitelinksData, $text, $url, $line1, + $line2) { + // Create the FeedItemAttributeValues for our text values. + $linkTextAttributeValue = new FeedItemAttributeValue(); + $linkTextAttributeValue->feedAttributeId = + $sitelinksData['linkTextFeedAttributeId']; + $linkTextAttributeValue->stringValue = $text; + $linkUrlAttributeValue = new FeedItemAttributeValue(); + $linkUrlAttributeValue->feedAttributeId = + $sitelinksData['linkUrlFeedAttributeId']; + $linkUrlAttributeValue->stringValue = $url; + $line1AttributeValue = new FeedItemAttributeValue(); + $line1AttributeValue->feedAttributeId = $sitelinksData['line1FeedAttribute']; + $line1AttributeValue->stringValue = $line1; + $line2AttributeValue = new FeedItemAttributeValue(); + $line2AttributeValue->feedAttributeId = $sitelinksData['line2FeedAttribute']; + $line2AttributeValue->stringValue = $line2; + + + // Create the feed item and operation. + $item = new FeedItem(); + $item->feedId = $sitelinksData['sitelinksFeedId']; + $item->attributeValues = + array($linkTextAttributeValue, $linkUrlAttributeValue, + $line1AttributeValue, $line2AttributeValue); + $operation = new FeedItemOperation(); + $operation->operand = $item; + $operation->operator = 'ADD'; + return $operation; +} + +// 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. + AddSitelinksExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/CreateAndAttachSharedKeywordSet.php b/examples/AdWords/v201306/AdvancedOperations/CreateAndAttachSharedKeywordSet.php new file mode 100755 index 000000000..fb9aa7b2f --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/CreateAndAttachSharedKeywordSet.php @@ -0,0 +1,153 @@ +GetService('SharedSetService'); + + $set = new SharedSet(); + $set->name = sprintf( + 'API Negative keyword list #%s', + uniqid() + ); + $set->type = 'NEGATIVE_KEYWORDS'; + + $operation = new SharedSetOperation(); + $operation->operator = 'ADD'; + $operation->operand = $set; + + $operations = array($operation); + + $result = $sharedSetService->mutate($operations); + + // Get the shared set ID and print it. + $set = $result->value[0]; + $sharedSetId = $set->sharedSetId; + printf( + "SharedSet '%s' has been created with ID '%s'\n", + $set->name, + $sharedSetId + ); + + // Add negative Keywords to SharedSet. + $sharedCriterionService = $user->GetService('SharedCriterionService'); + + $operations = array(); + foreach ($keywordTexts as $keywordText) { + $keyword = new Keyword(); + $keyword->text = $keywordText; + $keyword->matchType = 'BROAD'; + + $sharedCriterion = new SharedCriterion(); + $sharedCriterion->criterion = $keyword; + $sharedCriterion->negative = true; + $sharedCriterion->sharedSetId = $sharedSetId; + + $operation = new SharedCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sharedCriterion; + + + $operations[] = $operation; + } + + $result = $sharedCriterionService->mutate($operations); + + // Print the shared negative keywords. + foreach ($result->value as $sharedCriterion) { + printf( + "Shared negative Keyword '%s' created, with ID '%s'\n", + $sharedCriterion->criterion->text, + $sharedCriterion->criterion->id + ); + } + + // Attach the articles to the campaign. + $campaignSharedSetService = $user->GetService('CampaignSharedSetService'); + + $campaignSet = new CampaignSharedSet(); + $campaignSet->campaignId = $campaignId; + $campaignSet->sharedSetId = $sharedSetId; + + $operator = new CampaignSharedSetOperation(); + $operator->operator = 'ADD'; + $operator->operand = $campaignSet; + + $operations = array($operator); + + $result = $campaignSharedSetService->mutate($operations); + + // Print the CampaignSharedSet and its relating IDs. + $campaignSet = $result->value[0]; + printf( + "Created CampaignSharedSet with campaign ID '%s' and shared set ID '%s'\n", + $campaignSet->campaignId, + $campaignSet->sharedSetId + ); +} + +// 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. + CreateAndAttachSharedKeywordSetExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php b/examples/AdWords/v201306/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php new file mode 100755 index 000000000..9be69553d --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php @@ -0,0 +1,208 @@ +GetService("CampaignSharedSetService"); + + // Create two predicates: + // Filter by campaign ID. + $campaignPredicate = new Predicate(); + $campaignPredicate->field = "CampaignId"; + $campaignPredicate->operator = "EQUALS"; + $campaignPredicate->values = array($campaignId); + + // Filter by shared set type. + $typePredicate = new Predicate(); + $typePredicate->field = "SharedSetType"; + $typePredicate->operator = "IN"; + $typePredicate->values = array("NEGATIVE_KEYWORDS", "NEGATIVE_PLACEMENTS"); + + $selector = new Selector(); + $selector->fields = array("SharedSetId", "CampaignId", "SharedSetName", + "SharedSetType", "Status"); + $selector->predicates = array($campaignPredicate, $typePredicate); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + $sharedSetIds = array(); + + do { + // Make the get request. + $page = $campaignSharedSetService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaignSharedSet) { + printf("A Campaign Shared Set with the shared set ID '%s', campaign " . + "ID '%s', name '%s', type '%s' and status '%s' was found.\n", + $campaignSharedSet->sharedSetId, $campaignSharedSet->campaignId, + $campaignSharedSet->sharedSetName, + $campaignSharedSet->sharedSetType, $campaignSharedSet->status); + + // Add the shared set ID to the response array. + $sharedSetIds[] = $campaignSharedSet->sharedSetId; + } + } + + // Configure the next page. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + if (empty($sharedSetIds)) { + throw new RuntimeException(sprintf( + "No shared sets for campaign ID \"%s\"", $campaignId)); + } + + return $sharedSetIds; +} + +function FindCriteriaForSharedSets(AdWordsUser $user, $sharedSetIds) { + $sharedCriterionService = $user->GetService("SharedCriterionService"); + + $predicate = new Predicate(); + $predicate->field = "SharedSetId"; + $predicate->operator = "IN"; + $predicate->values = $sharedSetIds; + + $selector = new Selector(); + $selector->fields = array("SharedSetId", "Id", "KeywordText", + "KeywordMatchType", "PlacementUrl"); + $selector->predicates = array($predicate); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + $sharedCriteriaPerSetId = array(); + do { + $page = $sharedCriterionService->get($selector); + + if (isset($page->entries)) { + foreach ($page->entries as $sharedCriterion) { + $sharedSetId = $sharedCriterion->sharedSetId; + printf("A SharedCriterion with the CriterionId \"%s\" was found " . + "for SharedSetId \"%s\".\n", + $sharedCriterion->criterion->id, $sharedSetId); + + // Add an array of shared set IDs mapping to a list of criterionIds + if (!isset($sharedCriteriaPerSetId[$sharedSetId])) { + $sharedCriteriaPerSetId[$sharedSetId] = array(); + } + + $sharedCriteriaPerSetId[$sharedSetId][] = + $sharedCriterion->criterion->id; + } + } + + // Configure the next page. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + if (empty($sharedCriteriaPerSetId)) { + throw new RuntimeException(sprintf( + "No shared criteria for sets: \"%s\"", + implode("\", \"", $sharedSetIds))); + } + + return $sharedCriteriaPerSetId; +} + +function RemoveCriteriaFromSharedSet(AdWordsUser $user, + $sharedSetsToCriterions) { + $sharedCriterionService = $user->GetService("SharedCriterionService"); + + $operations = array(); + foreach ($sharedSetsToCriterions as $sharedSetId => $criterionIds) { + foreach ($criterionIds as $criterionId) { + + $criterion = new Criterion(); + $criterion->id = $criterionId; + + $sharedCriterion = new SharedCriterion(); + $sharedCriterion->criterion = $criterion; + $sharedCriterion->sharedSetId = $sharedSetId; + + $operation = new SharedCriterionOperation(); + $operation->operator = "REMOVE"; + $operation->operand = $sharedCriterion; + $operations[] = $operation; + } + } + + $result = $sharedCriterionService->mutate($operations); + + // On nothing removed, raise an exception. + if (empty($result->value)) { + throw new RuntimeException("Unable to remove SharedCriterion."); + } + + foreach ($result->value as $sharedCriterion) { + printf("Deleted SharedCriterion with shared set ID \"%s\" and " . + "criterion ID \"%s\"\n", + $sharedCriterion->sharedSetId, + $sharedCriterion->criterion->id); + } +} + + +// 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. + FindAndRemoveCriteriaFromSharedSetExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/AdvancedOperations/GetAdGroupBidModifiers.php b/examples/AdWords/v201306/AdvancedOperations/GetAdGroupBidModifiers.php new file mode 100755 index 000000000..05505cdd4 --- /dev/null +++ b/examples/AdWords/v201306/AdvancedOperations/GetAdGroupBidModifiers.php @@ -0,0 +1,96 @@ +GetService('AdGroupBidModifierService', + ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('CampaignId', 'AdGroupId', 'BidModifier', 'Id'); + $selector->ordering[] = new OrderBy('CampaignId', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $bidModifierService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $modifier) { + $value = 'none'; + if (!empty($modifier->bidModifier)) { + $value = $modifier->bidModifier; + } + printf("Campaign ID %d, AdGroup ID %d, Criterion ID %d has ad group " . + "level modifier: %s\n", + $modifier->campaignId, + $modifier->adGroupId, + $modifier->criterion->id, + $value + ); + } + } else { + print "No bid modifiers 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. + GetAdGroupBidModifiersExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddAdGroupDemographicCriteria.php b/examples/AdWords/v201306/BasicOperations/AddAdGroupDemographicCriteria.php new file mode 100755 index 000000000..6b0a08672 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddAdGroupDemographicCriteria.php @@ -0,0 +1,110 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_AD_GROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddAdGroupDemographicCriteriaExample(AdWordsUser $user, $adGroupId) { + // Get the AdGroupCriterionService, which loads the required classes. + $adGroupCriterionService = $user->GetService('AdGroupCriterionService', + ADWORDS_VERSION); + + // Create biddable ad group criterion for gender + $genderTarget = new Gender(); + // Criterion Id for male. The IDs can be found here + // https://developers.google.com/adwords/api/docs/appendix/genders + $genderTarget->id = 10; + + $genderBiddableAdGroupCriterion = new BiddableAdGroupCriterion(); + $genderBiddableAdGroupCriterion->adGroupId = $adGroupId; + $genderBiddableAdGroupCriterion->criterion = $genderTarget; + + // Create negative ad group criterion for age range + $ageRangeNegative = new AgeRange(); + // Criterion Id for age 18 to 24. The IDs can be found here + // https://developers.google.com/adwords/api/docs/appendix/ages + + $ageRangeNegative->id = 503001; + $ageRangeNegativeAdGroupCriterion = new NegativeAdGroupCriterion(); + $ageRangeNegativeAdGroupCriterion->adGroupId = $adGroupId; + $ageRangeNegativeAdGroupCriterion->criterion = $ageRangeNegative; + + $operations = array(); + + // Create operations. + $genderBiddableAdGroupCriterionOperation = new AdGroupCriterionOperation(); + $genderBiddableAdGroupCriterionOperation->operand = + $genderBiddableAdGroupCriterion; + $genderBiddableAdGroupCriterionOperation->operator = 'ADD'; + $operations[] = $genderBiddableAdGroupCriterionOperation; + + $ageRangeNegativeAdGroupCriterionOperation = new AdGroupCriterionOperation(); + $ageRangeNegativeAdGroupCriterionOperation->operand = + $ageRangeNegativeAdGroupCriterion; + $ageRangeNegativeAdGroupCriterionOperation->operator = 'ADD'; + $operations[] = $ageRangeNegativeAdGroupCriterionOperation; + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Ad group criterion with ad group ID '%s', criterion ID '%s' " . + "and type '%s' was added.\n", $adGroupCriterion->adGroupId, + $adGroupCriterion->criterion->id, + $adGroupCriterion->criterion->CriterionType); + } +} + +// 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. + AddAdGroupDemographicCriteriaExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddAdGroups.php b/examples/AdWords/v201306/BasicOperations/AddAdGroups.php new file mode 100755 index 000000000..a72760158 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddAdGroups.php @@ -0,0 +1,111 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the ad group to + */ +function AddAdGroupsExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); + + $numAdGroups = 2; + $operations = array(); + for ($i = 0; $i < $numAdGroups; $i++) { + // Create ad group. + $adGroup = new AdGroup(); + $adGroup->campaignId = $campaignId; + $adGroup->name = 'Earth to Mars Cruise #' . uniqid(); + + // Set bids (required). + $bid = new CpcBid(); + $bid->bid = new Money(1000000); + $bid->contentBid = new Money(750000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set additional settings (optional). + $adGroup->status = 'ENABLED'; + + // Targetting restriction settings - these setting only affect serving + // for the Display Network. + $targetingSetting = new TargetingSetting(); + // Restricting to serve ads that match your ad group placements. + $targetingSetting->details[] = + new TargetingSettingDetail('PLACEMENT', TRUE); + // Using your ad group verticals only for bidding. + $targetingSetting->details[] = + new TargetingSettingDetail('VERTICAL', FALSE); + $adGroup->settings[] = $targetingSetting; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroups = $result->value; + foreach ($adGroups as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was added.\n", $adGroup->name, + $adGroup->id); + } +} + +// 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. + AddAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddCampaigns.php b/examples/AdWords/v201306/BasicOperations/AddCampaigns.php new file mode 100755 index 000000000..90c11cc02 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddCampaigns.php @@ -0,0 +1,151 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddCampaignsExample(AdWordsUser $user) { + // Get the BudgetService, which loads the required classes. + $budgetService = $user->GetService('BudgetService', ADWORDS_VERSION); + + // Create the shared budget (required). + $budget = new Budget(); + $budget->name = 'Interplanetary Cruise Budget #' . uniqid(); + $budget->period = 'DAILY'; + $budget->amount = new Money(50000000); + $budget->deliveryMethod = 'STANDARD'; + + $operations = array(); + + // Create operation. + $operation = new BudgetOperation(); + $operation->operand = $budget; + $operation->operator = 'ADD'; + $operations[] = $operation; + + // Make the mutate request. + $result = $budgetService->mutate($operations); + $budget = $result->value[0]; + + // Get the CampaignService, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + $numCampaigns = 2; + $operations = array(); + for ($i = 0; $i < $numCampaigns; $i++) { + // Create campaign. + $campaign = new Campaign(); + $campaign->name = 'Interplanetary Cruise #' . uniqid(); + + // Set shared budget (required). + $campaign->budget = new Budget(); + $campaign->budget->budgetId = $budget->budgetId; + + // Set bidding strategy (required). + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC'; + + // You can optionally provide a bidding scheme in place of the type. + $biddingScheme = new ManualCpcBiddingScheme(); + $biddingScheme->enhancedCpcEnabled = FALSE; + $biddingStrategyConfiguration->biddingScheme = $biddingScheme; + + $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set keyword matching setting (required). + $keywordMatchSetting = new KeywordMatchSetting(); + $keywordMatchSetting->optIn = TRUE; + $campaign->settings[] = $keywordMatchSetting; + + // Set network targeting (recommended). + $networkSetting = new NetworkSetting(); + $networkSetting->targetGoogleSearch = TRUE; + $networkSetting->targetSearchNetwork = TRUE; + $networkSetting->targetContentNetwork = TRUE; + $campaign->networkSetting = $networkSetting; + + // Set additional settings (optional). + $campaign->status = 'PAUSED'; + $campaign->startDate = date('Ymd', strtotime('+1 day')); + $campaign->endDate = date('Ymd', strtotime('+1 month')); + $campaign->adServingOptimizationStatus = 'ROTATE'; + + // Set frequency cap (optional). + $frequencyCap = new FrequencyCap(); + $frequencyCap->impressions = 5; + $frequencyCap->timeUnit = 'DAY'; + $frequencyCap->level = 'ADGROUP'; + $campaign->frequencyCap = $frequencyCap; + + // Set advanced location targeting settings (optional). + $geoTargetTypeSetting = new GeoTargetTypeSetting(); + $geoTargetTypeSetting->positiveGeoTargetType = 'DONT_CARE'; + $geoTargetTypeSetting->negativeGeoTargetType = 'DONT_CARE'; + $campaign->settings[] = $geoTargetTypeSetting; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display results. + foreach ($result->value as $campaign) { + printf("Campaign with name '%s' and ID '%s' was added.\n", $campaign->name, + $campaign->id); + } +} + +// 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. + AddCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddKeywords.php b/examples/AdWords/v201306/BasicOperations/AddKeywords.php new file mode 100755 index 000000000..485975cee --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddKeywords.php @@ -0,0 +1,110 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + $numKeywords = 5; + $operations = array(); + for ($i = 0; $i < $numKeywords; $i++) { + // Create keyword criterion. + $keyword = new Keyword(); + $keyword->text = 'mars cruise ' . uniqid(); + $keyword->matchType = 'BROAD'; + + // Create biddable ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + // Set additional settings (optional). + $adGroupCriterion->userStatus = 'PAUSED'; + $adGroupCriterion->destinationUrl = 'http://www.example.com/mars'; + + // Set bids (optional). + $bid = new CpcBid(); + $bid->bid = new Money(500000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroupCriterion->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + $adGroupCriteria[] = $adGroupCriterion; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Keyword with text '%s', match type '%s', and ID '%s' was added.\n", + $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } +} + +// 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. + AddKeywordsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/AddTextAds.php b/examples/AdWords/v201306/BasicOperations/AddTextAds.php new file mode 100755 index 000000000..2b4f3f3c7 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/AddTextAds.php @@ -0,0 +1,102 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + $numAds = 5; + $operations = array(); + for ($i = 0; $i < $numAds; $i++) { + // Create text ad. + $textAd = new TextAd(); + $textAd->headline = 'Cruise #' . uniqid(); + $textAd->description1 = 'Visit the Red Planet in style.'; + $textAd->description2 = 'Low-gravity fun for everyone!'; + $textAd->displayUrl = 'www.example.com'; + $textAd->url = 'http://www.example.com'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Set additional settings (optional). + $adGroupAd->status = 'PAUSED'; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was added.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } +} + +// 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. + AddTextAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/DeleteAd.php b/examples/AdWords/v201306/BasicOperations/DeleteAd.php new file mode 100755 index 000000000..b72046a4e --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/DeleteAd.php @@ -0,0 +1,88 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create base class ad to avoid setting type specific fields. + $ad = new Ad(); + $ad->id = $adId; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $ad; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display result. + $adGroupAd = $result->value[0]; + printf("Ad with ID '%s' was deleted.\n", $adGroupAd->ad->id); +} + +// 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. + DeleteAdExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/DeleteAdGroup.php b/examples/AdWords/v201306/BasicOperations/DeleteAdGroup.php new file mode 100755 index 000000000..359b1446a --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/DeleteAdGroup.php @@ -0,0 +1,84 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group with DELETED status. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + $adGroup->status = 'DELETED'; + // Rename the ad group as you delete it, to avoid future name conflicts. + $adGroup->name = 'Deleted ' . date('Ymd his'); + + // Create operations. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' was deleted.\n", $adGroup->id); +} + +// 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. + DeleteAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/DeleteCampaign.php b/examples/AdWords/v201306/BasicOperations/DeleteCampaign.php new file mode 100755 index 000000000..43113e513 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/DeleteCampaign.php @@ -0,0 +1,85 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the id of the campaign to delete + */ +function DeleteCampaignExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign with DELETED status. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->status = 'DELETED'; + // Rename the campaign as you delete it, to avoid future name conflicts. + $campaign->name = 'Deleted ' . date('Ymd his'); + + // Create operations. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display result. + $campaign = $result->value[0]; + printf("Campaign with ID '%s' was deleted.\n", $campaign->id); +} + +// 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. + DeleteCampaignExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/DeleteKeyword.php b/examples/AdWords/v201306/BasicOperations/DeleteKeyword.php new file mode 100755 index 000000000..a88669b93 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/DeleteKeyword.php @@ -0,0 +1,92 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create criterion using an existing ID. Use the base class Criterion + // instead of Keyword to avoid having to set keyword-specific fields. + $criterion = new Criterion(); + $criterion->id = $criterionId; + + // Create ad group criterion. + $adGroupCriterion = new AdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with ID '%s' was deleted.\n", + $adGroupCriterion->criterion->id); +} + +// 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. + DeleteKeywordExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetAdGroups.php b/examples/AdWords/v201306/BasicOperations/GetAdGroups.php new file mode 100755 index 000000000..12b1f39f2 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetAdGroups.php @@ -0,0 +1,94 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = + new Predicate('CampaignId', 'IN', array($campaignId)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was found.\n", + $adGroup->name, $adGroup->id); + } + } else { + print "No ad groups 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. + GetAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetCampaigns.php b/examples/AdWords/v201306/BasicOperations/GetCampaigns.php new file mode 100755 index 000000000..c89522f73 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetCampaigns.php @@ -0,0 +1,87 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetCampaignsExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and ID '%s' was found.\n", + $campaign->name, $campaign->id); + } + } else { + print "No campaigns 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. + GetCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetCampaignsWithAwql.php b/examples/AdWords/v201306/BasicOperations/GetCampaignsWithAwql.php new file mode 100755 index 000000000..511543834 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetCampaignsWithAwql.php @@ -0,0 +1,86 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetCampaignsWithAwqlExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create AWQL query. + $query = 'SELECT Id, Name, Status ORDER BY Name'; + + // Create paging controls. + $offset = 0; + + do { + $pageQuery = sprintf('%s LIMIT %d,%d', $query, $offset, + AdWordsConstants::RECOMMENDED_PAGE_SIZE); + // Make the query request. + $page = $campaignService->query($pageQuery); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and ID '%s' was found.\n", + $campaign->name, $campaign->id); + } + } else { + print "No campaigns were found.\n"; + } + + // Advance the paging offset. + $offset += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $offset); +} + +// 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. + GetCampaignsWithAwqlExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetKeywords.php b/examples/AdWords/v201306/BasicOperations/GetKeywords.php new file mode 100755 index 000000000..dcf1f7a87 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetKeywords.php @@ -0,0 +1,99 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('KeywordText', 'KeywordMatchType', 'Id'); + $selector->ordering[] = new OrderBy('KeywordText', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('CriteriaType', 'IN', array('KEYWORD')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupCriterion) { + printf("Keyword with text '%s', match type '%s', and ID '%s' was " + . "found.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } + } else { + print "No keywords 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. + GetKeywordsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/GetTextAds.php b/examples/AdWords/v201306/BasicOperations/GetTextAds.php new file mode 100755 index 000000000..0ab6012bd --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/GetTextAds.php @@ -0,0 +1,99 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Headline', 'Id'); + $selector->ordering[] = new OrderBy('Headline', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = new Predicate('AdType', 'IN', array('TEXT_AD')); + // By default disabled ads aren't returned by the selector. To return them + // include the DISABLED status in a predicate. + $selector->predicates[] = + new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was found.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } + } else { + print "No text ads 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. + GetTextAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/PauseAd.php b/examples/AdWords/v201306/BasicOperations/PauseAd.php new file mode 100755 index 000000000..012ee7201 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/PauseAd.php @@ -0,0 +1,93 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create ad using an existing ID. Use the base class Ad instead of TextAd to + // avoid having to set ad-specific fields. + $ad = new Ad(); + $ad->id = $adId; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $ad; + + // Update the status. + $adGroupAd->status = 'PAUSED'; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display result. + $adGroupAd = $result->value[0]; + printf("Ad of type '%s' with ID '%s' has updated status '%s'.\n", + $adGroupAd->ad->AdType, $adGroupAd->ad->id, $adGroupAd->status); +} + +// 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. + PauseAdExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/UpdateAdGroup.php b/examples/AdWords/v201306/BasicOperations/UpdateAdGroup.php new file mode 100755 index 000000000..6ff924f46 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/UpdateAdGroup.php @@ -0,0 +1,92 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group using an existing ID. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + + // Update the bid. + $bid = new CpcBid(); + $bid->bid = new Money(0.75 * AdWordsConstants::MICROS_PER_DOLLAR); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' has updated default bid '$%s'.\n", $adGroup->id, + $adGroup->biddingStrategyConfiguration->bids[0]->bid->microAmount / + AdWordsConstants::MICROS_PER_DOLLAR); + +} + +// 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. + UpdateAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/UpdateCampaign.php b/examples/AdWords/v201306/BasicOperations/UpdateCampaign.php new file mode 100755 index 000000000..4acd97d78 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/UpdateCampaign.php @@ -0,0 +1,84 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to update + */ +function UpdateCampaignExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign using an existing ID. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->status = 'PAUSED'; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display result. + $campaign = $result->value[0]; + printf("Campaign with ID '%s' was paused.\n", $campaign->id); +} + +// 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. + UpdateCampaignExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/BasicOperations/UpdateKeyword.php b/examples/AdWords/v201306/BasicOperations/UpdateKeyword.php new file mode 100755 index 000000000..3c7488388 --- /dev/null +++ b/examples/AdWords/v201306/BasicOperations/UpdateKeyword.php @@ -0,0 +1,93 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + // Create criterion using an existing ID. Use the base class Criterion + // instead of Keyword to avoid having to set keyword-specific fields. + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Update destination URL. + $adGroupCriterion->destinationUrl = 'http://www.example.com/new'; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with ID '%s' has updated destination URL '%s'.\n", + $adGroupCriterion->criterion->id, $adGroupCriterion->destinationUrl); +} + +// 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. + UpdateKeywordExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/AddExperiment.php b/examples/AdWords/v201306/CampaignManagement/AddExperiment.php new file mode 100755 index 000000000..4b4059091 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/AddExperiment.php @@ -0,0 +1,163 @@ +GetService('ExperimentService', ADWORDS_VERSION); + $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); + $adGroupCriterionService = + $user->GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create experiment. + $experiment = new Experiment(); + $experiment->campaignId = $campaignId; + $experiment->name = 'Interplanetary Experiment #' . uniqid(); + $experiment->queryPercentage = 10; + + // Set additional settings (optional). + $experiment->startDateTime = date('Ymd His', strtotime('+1 day')); + $experiment->endDateTime = date('Ymd His', strtotime('+1 month')); + + // Create operation. + $experimentOperation = new ExperimentOperation(); + $experimentOperation->operand = $experiment; + $experimentOperation->operator = 'ADD'; + + $experimentOperations = array($experimentOperation); + + // Make the mutate request. + $result = $experimentService->mutate($experimentOperations); + + // Display result. + $experiment = $result->value[0]; + printf ("Experiment with name '%s' and ID '%.0f' was added.\n", + $experiment->name, $experiment->id); + + // Create ad group bid multipliers to be used in the experiment. + $adGroupBidMultipliers = new ManualCPCAdGroupExperimentBidMultipliers(); + $adGroupBidMultipliers->maxCpcMultiplier = new BidMultiplier(1.5); + + // Create ad group experiment data. + $adGroupExperimentData = new AdGroupExperimentData(); + $adGroupExperimentData->experimentId = $experiment->id; + $adGroupExperimentData->experimentDeltaStatus = 'MODIFIED'; + $adGroupExperimentData->experimentBidMultipliers = $adGroupBidMultipliers; + + // Create updated ad group. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + $adGroup->experimentData = $adGroupExperimentData; + + // Create operation. + $adGroupOperation = new AdGroupOperation(); + $adGroupOperation->operand = $adGroup; + $adGroupOperation->operator = 'SET'; + + $adGroupOperations = array($adGroupOperation); + + // Make the mutate request. + $result = $adGroupService->mutate($adGroupOperations); + + // Display result. + $adGroup = $result->value[0]; + printf ("Ad group with name '%s' and ID '%.0f' was updated in the " + . "experiment.\n", $adGroup->name, $adGroup->id); + + // Create experiment data for a new experiment-only keyword. + $adGroupCriterionExperimentData = + new BiddableAdGroupCriterionExperimentData(); + $adGroupCriterionExperimentData->experimentId = $experiment->id; + $adGroupCriterionExperimentData->experimentDeltaStatus = 'EXPERIMENT_ONLY'; + + // Create keyword. + $keyword = new Keyword('mars tour', 'BROAD'); + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + $adGroupCriterion->experimentData = $adGroupCriterionExperimentData; + + // Create operation. + $adGroupCriterionOperation = new AdGroupCriterionOperation(); + $adGroupCriterionOperation->operand = $adGroupCriterion; + $adGroupCriterionOperation->operator = 'ADD'; + + $adGroupCriterionOperations = array($adGroupCriterionOperation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($adGroupCriterionOperations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with text '%s', match type '%s', and ID '%s' was added to " + . "the experiment.\n", + $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); +} + +// 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. + AddExperimentExample($user, $campaignId, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/AddKeywordsInBulk.php b/examples/AdWords/v201306/CampaignManagement/AddKeywordsInBulk.php new file mode 100755 index 000000000..5fa493fa1 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/AddKeywordsInBulk.php @@ -0,0 +1,205 @@ +GetService('MutateJobService', ADWORDS_VERSION); + + // Generate operations. + $numKeywords = 100; + $operations = array(); + for ($i = 0; $i < $numKeywords; $i++) { + $keyword = new Keyword(); + // Randomly add invalid characters to keywords. + if (rand(0, 9) == 0) { + $keyword->text = 'keyword!!!' . uniqid(); + } else { + $keyword->text = 'keyword' . uniqid(); + } + $keyword->matchType = 'BROAD'; + + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + $operation = new AdGroupCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $adGroupCriterion; + $operations[] = $operation; + } + + // You can specify up to 3 job IDs that must successfully complete before + // this job can be processed. We won't set any in this example. + $policy = new BulkMutateJobPolicy(); + $policy->prerequisiteJobIds = array(); + + // Call mutate to create a new job. + printf("Creating job with %d operations.\n", sizeof($operations)); + $job = $mutateJobService->mutate($operations, $policy); + printf("Job with ID '%s' was created.\n", $job->id); + + // Create a selector for retrieving the job status and later its results. + $selector = new BulkMutateJobSelector(); + $selector->jobIds[] = $job->id; + $selector->includeStats = TRUE; + $selector->includeHistory = TRUE; + + $numRetries = 0; + $maxRetries = 100; + $retryInterval = 10; + do { + sleep($retryInterval); + $jobs = $mutateJobService->get($selector); + $job = $jobs[0]; + switch ($job->status) { + case 'PENDING': + printf("The job has been pending for approximately %s.\n", + strftime('%M:%S', time() - strtotime($job->history[0]->dateTime))); + break; + case 'PROCESSING': + printf("The job is processing and approximately %d%% complete.\n", + $job->stats->progressPercent); + break; + case 'COMPLETED': + printf("The job is complete and took approximately %d seconds to " + ."process.\n", $job->stats->processingTimeMillis / 100); + break; + case 'FAILED': + printf("The job failed with reason '%s'.\n", + ChoiceUtils::GetValue($job->failureReason)); + break; + } + $numRetries++; + } while (($job->status == 'PENDING' || $job->status == 'PROCESSING') && + $numRetries < $maxRetries); + + if ($job->status == 'COMPLETED') { + // Retrieve the results of the job. + $jobResult = ChoiceUtils::GetValue( + $mutateJobService->getResult($selector)); + + // Sort the keywords into groups based on the results. + $lost = array(); + $skipped = array(); + $failed = array(); + $errors = array(); + $genericErrors = array(); + + // Examines the errors to determine which keywords failed to be applied. + foreach ($jobResult->errors as $error) { + $index = OgnlUtils::GetOperationIndex($error->fieldPath); + if (isset($index)) { + $keywordText = $operations[$index]->operand->criterion->text; + switch ($error->reason) { + case 'LOST_RESULT': + $lost[] = $keywordText; + break; + case 'UNPROCESSED_RESULT': + case 'BATCH_FAILURE': + $skipped[] = $keywordText; + break; + default: + if (!in_array($keywordText, $failed)) { + $failed[] = $keywordText; + } + $errors[$keywordText][] = $error; + } + } else { + $genericErrors[] = $error; + } + } + + // Examine the results to determine which keywords were added successfully. + $succeeded = array(); + for ($i = 0; $i < sizeof($jobResult->results); $i++) { + $operation = $operations[$i]; + $result = ChoiceUtils::GetValue($jobResult->results[$i]); + if ($result instanceof AdGroupCriterion) { + $succeeded[] = $result->criterion->text; + } + } + + // Display the results of the job. + printf("%d keywords were added successfully: %s\n", sizeof($succeeded), + implode(', ', $succeeded)); + + printf("%d keywords were skipped and should be retried: %s\n", + sizeof($skipped), implode(', ', $skipped)); + + printf("%d keywords were not added due to errors:\n", sizeof($failed)); + foreach ($failed as $keywordText) { + $errorStrings = array(); + foreach ($errors[$keywordText] as $error) { + $errorStrings[] = $error->errorString; + } + printf("- %s: %s\n", $keywordText, implode(', ', $errorStrings)); + } + + printf("%d generic errors were encountered:\n", sizeof($genericErrors)); + foreach($genericErrors as $error) { + printf("- %s\n", $error->errorString); + } + } +} + +// 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. + AddKeywordsInBulkExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/AddLocationExtension.php b/examples/AdWords/v201306/CampaignManagement/AddLocationExtension.php new file mode 100755 index 000000000..6930e237e --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/AddLocationExtension.php @@ -0,0 +1,130 @@ +GetService('GeoLocationService', ADWORDS_VERSION); + $campaignAdExtensionService = + $user->GetService('CampaignAdExtensionService', ADWORDS_VERSION); + + // Create address. + $address = new Address(); + $address->streetAddress = '1600 Amphitheatre Parkway'; + $address->cityName = 'Mountain View'; + $address->provinceCode = 'US-CA'; + $address->postalCode = '94043'; + $address->countryCode = 'US'; + + // Create geo location selector. + $selector = new GeoLocationSelector(); + $selector->addresses = array($address); + + // Make the get request. + $result = $geoLocationService->get($selector); + + // Display result. + $geoLocation = $result[0]; + if ($geoLocation->GeoLocationType != 'InvalidGeoLocation') { + $lat = $geoLocation->geoPoint->latitudeInMicroDegrees / + AdWordsConstants::MICRO_DEGREES_PER_DEGREE; + $long = $geoLocation->geoPoint->longitudeInMicroDegrees / + AdWordsConstants::MICRO_DEGREES_PER_DEGREE; + printf("Address with street '%s' and lat/long '%s/%s' was found.\n", + $geoLocation->address->streetAddress, $lat, $long); + } else { + printf("Address with street '%s' could not be found.\n", + $address->streetAddress); + exit; + } + + // Create location extension. + $locationExtension = new LocationExtension(); + $locationExtension->address = $geoLocation->address; + $locationExtension->geoPoint = $geoLocation->geoPoint; + $locationExtension->encodedLocation = $geoLocation->encodedLocation; + $locationExtension->source = 'ADWORDS_FRONTEND'; + + // Set additional settings (optional). + $locationExtension->companyName = 'ACME Inc.'; + $locationExtension->phoneNumber = '(650) 253-0000'; + + // Create campaign ad extension. + $campaignAdExtension = new CampaignAdExtension(); + $campaignAdExtension->campaignId = $campaignId; + $campaignAdExtension->adExtension = $locationExtension; + + // Create operation. + $operation = new CampaignAdExtensionOperation(); + $operation->operand = $campaignAdExtension; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignAdExtensionService->mutate($operations); + + // Display result. + $campaignAdExtension = $result->value[0]; + printf("Location extension with street address '%s' and ID '%s' was added.\n", + $campaignAdExtension->adExtension->address->streetAddress, + $campaignAdExtension->adExtension->id); +} + +// 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. + AddLocationExtensionExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/AddLocationExtensionOverride.php b/examples/AdWords/v201306/CampaignManagement/AddLocationExtensionOverride.php new file mode 100755 index 000000000..8c6814f2c --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/AddLocationExtensionOverride.php @@ -0,0 +1,110 @@ +GetService('AdExtensionOverrideService', ADWORDS_VERSION); + + // Create ad extenstion override. + $adExtensionOverride = new AdExtensionOverride(); + $adExtensionOverride->adId = $adId; + + // Create ad extension using existing id. + $adExtension = new AdExtension(); + $adExtension->id = $campaignAdExtensionId; + $adExtensionOverride->adExtension = $adExtension; + + // Set override info (optional). + $locationOverrideInfo = new LocationOverrideInfo(); + $locationOverrideInfo->radius = 5; + $locationOverrideInfo->radiusUnits = 'MILES'; + $overrideInfo = new OverrideInfo(); + $overrideInfo->LocationOverrideInfo = $locationOverrideInfo; + $adExtensionOverride->overrideInfo = $overrideInfo; + + // Create operations. + $operation = new AdExtensionOverrideOperation(); + $operation->operand = $adExtensionOverride; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adExtensionOverrideService->mutate($operations); + + // Display results. + if (isset($result->value)) { + foreach ($result->value as $adExtensionOverride) { + print 'Ad extension override with ad ID "' . $adExtensionOverride->adId + . '", ad extension ID "' . $adExtensionOverride->adExtension->id + . '", and type "' . $adExtensionOverride->adExtension->AdExtensionType + . "\" was added.\n"; + } + } else { + print "No ad extension overrides were added.\n"; + } +} + +// 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. + AddLocationExtensionOverrideExample($user, $adId, $campaignAdExtensionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAds.php b/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAds.php new file mode 100755 index 000000000..42c42f7bf --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAds.php @@ -0,0 +1,101 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'DisapprovalReasons'); + $selector->ordering = array(new OrderBy('Id', 'ASCENDING')); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('AdGroupCreativeApprovalStatus', 'IN', + array('DISAPPROVED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Ad with ID '%.0f', and type '%s' was disapproved for the " + . "following reasons:\n", $adGroupAd->ad->id, + $adGroupAd->ad->AdType); + foreach ($adGroupAd->ad->disapprovalReasons as $reason) { + printf("\t'%s'\n", $reason); + } + } + } else { + print "No disapproved ads 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. + GetAllDisapprovedAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAdsWithAwql.php b/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAdsWithAwql.php new file mode 100755 index 000000000..ea51f6608 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/GetAllDisapprovedAdsWithAwql.php @@ -0,0 +1,98 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_AD_GROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $adGroupId the parent ad group id of the ads to retrieve + */ +function GetAllDisapprovedAdsWithAwqlExample(AdWordsUser $user, $adGroupId) { + // Get the service, which loads the required classes. + $adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create a query. + $query = sprintf('SELECT Id, DisapprovalReasons WHERE AdGroupId = %d ' + . 'AND AdGroupCreativeApprovalStatus = DISAPPROVED ORDER BY Id', + $adGroupId); + + // Create paging controls. + $offset = 0; + + do { + $pageQuery = sprintf('%s LIMIT %d,%d', $query, $offset, + AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + // Make the query request. + $page = $adGroupAdService->query($pageQuery); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Ad with ID '%.0f', and type '%s' was disapproved for the " + . "following reasons:\n", $adGroupAd->ad->id, + $adGroupAd->ad->AdType); + foreach ($adGroupAd->ad->disapprovalReasons as $reason) { + printf("\t'%s'\n", $reason); + } + } + } else { + print "No disapproved ads were found.\n"; + } + + // Advance the paging offset. + $offset += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $offset); +} + +// 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. + GetAllDisapprovedAdsWithAwqlExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/PromoteExperiment.php b/examples/AdWords/v201306/CampaignManagement/PromoteExperiment.php new file mode 100755 index 000000000..6572115d4 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/PromoteExperiment.php @@ -0,0 +1,86 @@ +GetService('ExperimentService', ADWORDS_VERSION); + + // Create experiment with PROMOTED status. + $experiment = new Experiment(); + $experiment->id = $experimentId; + $experiment->status = 'PROMOTED'; + + // Create operation. + $operation = new ExperimentOperation(); + $operation->operand = $experiment; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $experimentService->mutate($operations); + + // Display result. + $experiment = $result->value[0]; + printf ("Experiment with name '%s' and ID '%s' was promoted.\n", + $experiment->name, $experiment->id); +} + +// 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. + PromoteExperimentExample($user, $experimentId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/SetAdParameters.php b/examples/AdWords/v201306/CampaignManagement/SetAdParameters.php new file mode 100755 index 000000000..3804ea8ea --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/SetAdParameters.php @@ -0,0 +1,93 @@ +GetService('AdParamService', ADWORDS_VERSION); + + // Create ad parameters. + $adParam1 = new AdParam($adGroupId, $keywordId, '100', 1); + $adParam2 = new AdParam($adGroupId, $keywordId, '$40', 2); + + // Create operations. + $operations = array(); + + $adParamOperation1 = new AdParamOperation(); + $adParamOperation1->operand = $adParam1; + $adParamOperation1->operator = 'SET'; + $operations[] = $adParamOperation1; + + $adParamOperation2 = new AdParamOperation(); + $adParamOperation2->operand = $adParam2; + $adParamOperation2->operator = 'SET'; + $operations[] = $adParamOperation2; + + // Make the mutate request. + $adParams = $adParamService->mutate($operations); + + // Display results. + foreach ($adParams as $adParam) { + printf("Ad parameter with insertion text '%s' and parameter index '%s' " + . "was set.\n", $adParam->insertionText, $adParam->paramIndex); + } +} + +// 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. + SetAdParametersExample($user, $adGroupId, $keywordId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/SetBidModifier.php b/examples/AdWords/v201306/CampaignManagement/SetBidModifier.php new file mode 100755 index 000000000..b7d3d566e --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/SetBidModifier.php @@ -0,0 +1,102 @@ +GetService("CampaignCriterionService", ADWORDS_VERSION); + + // Create Mobile Platform. The ID can be found in the documentation. + // https://developers.google.com/adwords/api/docs/appendix/platforms + $mobile = new Platform(); + $mobile->id = 30001; // HighEndMobile = 30001 + + // Create criterion with modified bid. + $criterion = new CampaignCriterion(); + $criterion->campaignId = $campaignId; + $criterion->criterion = $mobile; + $criterion->bidModifier = $bidModifier; + + // Create SET operation. + $operation = new CampaignCriterionOperation(); + $operation->operator = "SET"; + $operation->operand = $criterion; + + // Update campaign criteria. + $results = $campaignCriterionService->mutate(array($operation)); + + // Display campaign criteria. + if (count($results->value)) { + foreach ($results->value as $campaignCriterion) { + printf( + "Campaign criterion with campaign ID '%s', criterion ID '%s', " + . "and type '%s' was modified with bid %.2f.\n", + $campaignCriterion->campaignId, + $campaignCriterion->criterion->id, + $campaignCriterion->criterion->type, + $campaignCriterion->bidModifier); + } + + return true; + } + print "No campaign criterias were modified."; +} + +// 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. + SetBidModifierExample($user, $campaignId, $bidModifier); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/CampaignManagement/ValidateTextAd.php b/examples/AdWords/v201306/CampaignManagement/ValidateTextAd.php new file mode 100755 index 000000000..e52026208 --- /dev/null +++ b/examples/AdWords/v201306/CampaignManagement/ValidateTextAd.php @@ -0,0 +1,106 @@ +GetService('AdGroupAdService', ADWORDS_VERSION, NULL, NULL, TRUE); + + // Create invalid text ad. + $textAd = new TextAd(); + $textAd->headline = 'This headline is too long and will cause an error'; + $textAd->description1 = 'Description Line 1'; + $textAd->description2 = 'Description Line 2'; + $textAd->displayUrl = 'www.example.com'; + $textAd->url = 'http://www.example.com'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + try { + $result = $adGroupAdValidationService->mutate($operations); + printf("The text ad is valid.\n"); + } catch (SoapFault $e) { + $errors = ErrorUtils::GetApiErrors($e); + if (sizeof($errors) > 0) { + printf("The text ad is invalid for the following reasons:\n"); + foreach ($errors as $error) { + printf(" %s @ %s\n", $error->errorString, $error->fieldPath); + } + } else { + // Not an API error, so throw it up a level. + throw $e; + } + } +} + +// 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. + ValidateTextAdExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/ErrorHandling/HandlePartialFailures.php b/examples/AdWords/v201306/ErrorHandling/HandlePartialFailures.php new file mode 100755 index 000000000..8b764c3cc --- /dev/null +++ b/examples/AdWords/v201306/ErrorHandling/HandlePartialFailures.php @@ -0,0 +1,116 @@ +GetService('AdGroupCriterionService', + ADWORDS_VERSION, NULL, NULL, NULL, TRUE); + + // Create keywords. + $keywords = array(); + $keywords[] = new Keyword('mars cruise', 'BROAD'); + $keywords[] = new Keyword('inv@lid cruise', 'BROAD'); + $keywords[] = new Keyword('venus cruise', 'BROAD'); + $keywords[] = new Keyword('b(a)d keyword cruise', 'BROAD'); + + // Create ad group criteria and operations. + $operations = array(); + foreach ($keywords as $keyword) { + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + if ($adGroupCriterion->AdGroupCriterionType == 'BiddableAdGroupCriterion') { + printf("Keyword with text '%s', match type '%s', and ID '%s' was " + . "added.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } + } + + // Check for partial failures. + if (isset($result->partialFailureErrors)) { + foreach ($result->partialFailureErrors as $error) { + $index = ErrorUtils::GetSourceOperationIndex($error); + if (isset($index)) { + $adGroupCriterion = $operations[$index]->operand; + printf("Keyword with text '%s' and match type '%s' failed with error " + . "'%s'.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, $error->errorString); + } else { + printf("Operations failed with error '%s'.\n", $error->errorString); + } + } + } +} + +// 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. + HandlePartialFailuresExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/ErrorHandling/HandlePolicyViolationError.php b/examples/AdWords/v201306/ErrorHandling/HandlePolicyViolationError.php new file mode 100755 index 000000000..143376e7a --- /dev/null +++ b/examples/AdWords/v201306/ErrorHandling/HandlePolicyViolationError.php @@ -0,0 +1,146 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Get validateOnly version of the AdGroupAdService. + $adGroupAdValidationService = + $user->GetService('AdGroupAdService', ADWORDS_VERSION, NULL, NULL, TRUE); + + // Create text ad that violates an exemptable policy. This ad will only + // trigger an error in the production environment. + $textAd = new TextAd(); + $textAd->headline = 'Mars Cruise !!!'; + $textAd->description1 = 'Visit the Red Planet in style.'; + $textAd->description2 = 'Low-gravity fun for everyone!'; + $textAd->displayUrl = 'www.example.com'; + $textAd->url = 'http://www.example.com/'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + + $operations = array($operation); + + try { + // Make the mutate request. + $result = $adGroupAdValidationService->mutate($operations); + } catch (SoapFault $fault) { + $errors = ErrorUtils::GetApiErrors($fault); + if (sizeof($errors) == 0) { + // Not an API error, so throw fault. + throw $fault; + } + $operationIndicesToRemove = array(); + foreach ($errors as $error) { + if ($error->ApiErrorType == 'PolicyViolationError') { + $operationIndex = ErrorUtils::GetSourceOperationIndex($error); + $operation = $operations[$operationIndex]; + printf("Ad with headline '%s' violated %s policy '%s'.\n", + $operation->operand->ad->headline, + $error->isExemptable ? 'exemptable' : 'non-exemptable', + $error->externalPolicyName); + if ($error->isExemptable) { + // Add exemption request to the operation. + printf("Adding exemption request for policy name '%s' on text " + ."'%s'.\n", $error->key->policyName, $error->key->violatingText); + $operation->exemptionRequests[] = new ExemptionRequest($error->key); + } else { + // Remove non-exemptable operation. + print "Removing the operation from the request.\n"; + $operationIndicesToRemove[] = $operationIndex; + } + } else { + // Non-policy error returned, throw fault. + throw $fault; + } + } + $operationIndicesToRemove = array_unique($operationIndicesToRemove); + rsort($operationIndicesToRemove, SORT_NUMERIC); + if (sizeof($operationIndicesToRemove) > 0) { + foreach ($operationIndicesToRemove as $operationIndex) { + unset($operations[$operationIndex]); + } + } + } + + if (sizeof($operations) > 0) { + // Retry the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was added.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } + } else { + print "All the operations were invalid with non-exemptable errors.\n"; + } +} + +// 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. + HandlePolicyViolationErrorExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/ErrorHandling/HandleTwoFactorAuthorizationError.php b/examples/AdWords/v201306/ErrorHandling/HandleTwoFactorAuthorizationError.php new file mode 100755 index 000000000..e6cf2e46d --- /dev/null +++ b/examples/AdWords/v201306/ErrorHandling/HandleTwoFactorAuthorizationError.php @@ -0,0 +1,65 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + */ +function HandleTwoFactorAuthorizationErrorExample() { + // Create an AdWordsUser using the credentials for a 2-step tester account. + $user = new AdWordsUser(NULL, '2steptester@gmail.com', 'testaccount'); + + try { + $authToken = $user->GetAuthToken(); + printf("Successfully retrieved auth token for the account '%s': '%s'\n", + $user->GetEmail(), $authToken); + } catch (AuthTokenException $e) { + if (strpos($e->GetError(), 'InvalidSecondFactor') !== FALSE) { + // See http://goo.gl/SHgXV for more details. + print "The account has 2-step verification enabled, so an " + . "application-specific password must be used instead.\n"; + } else { + print "Invalid email or password.\n"; + } + } +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Run the example. + HandleTwoFactorAuthorizationErrorExample(); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Migration/SetCampaignEnhanced.php b/examples/AdWords/v201306/Migration/SetCampaignEnhanced.php new file mode 100755 index 000000000..4a781f9c2 --- /dev/null +++ b/examples/AdWords/v201306/Migration/SetCampaignEnhanced.php @@ -0,0 +1,88 @@ +GetService("CampaignService", ADWORDS_VERSION); + + // Campaign to be updated with the enhanced value. + // Note: After Setting the enhanced value to true, + // setting it back to false will generate an ApiError. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->enhanced = TRUE; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operator = "SET"; + $operation->operand = $campaign; + + // Change campaign. + $result = $campaignService->mutate(array($operation)); + + if (count($result->value)) { + foreach ($result->value as $campaign) { + printf("Campaign with ID %d has been set enhanced to '%s'.\n", + $campaign->id, $campaign->enhanced); + } + + return true; + } + print "No campaign was changed."; +} + +// 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. + SetCampaignEnhancedExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Migration/UpgradeLegacySitelinks.php b/examples/AdWords/v201306/Migration/UpgradeLegacySitelinks.php new file mode 100755 index 000000000..206e7c3d6 --- /dev/null +++ b/examples/AdWords/v201306/Migration/UpgradeLegacySitelinks.php @@ -0,0 +1,425 @@ +getService('CampaignAdExtensionService', ADWORDS_VERSION); + $feedService = $user->getService('FeedService', ADWORDS_VERSION); + $feedItemService = $user->getService('FeedItemService', ADWORDS_VERSION); + $feedMappingService = + $user->getService('FeedMappingService', ADWORDS_VERSION); + $campaignFeedService = + $user->getService('CampaignFeedService', ADWORDS_VERSION); + + // Try to retrieve an existing feed that has been mapped for use with + // sitelinks. if multiple such feeds exist, the first matching feed is + // retrieved. You could modify this code example to retrieve all the feeds + // and pick the appropriate feed based on user input. + $siteLinksFeed = GetExistingFeed($feedMappingService); + + if (empty($siteLinksFeed)) { + // Create a feed for storing sitelinks. + $siteLinksFeed = CreateSiteLinksFeed($feedService); + + // Map the feed for using with sitelinks. + CreateSiteLinksFeedMapping($feedMappingService, $siteLinksFeed); + } + + foreach ($campaignIds as $campaignId) { + // Get legacy sitelinks for the campaign. + $extension = GetLegacySitelinksForCampaign($campaignAdExtensionService, + $campaignId); + + if (!empty($extension)) { + // Get the sitelinks. + $legacySiteLinks = $extension->adExtension->sitelinks; + + // Add the sitelinks to the feed. + $siteLinkFeedItemIds = CreateSiteLinkFeedItems( + $feedItemService, $siteLinksFeed, $legacySiteLinks); + + // Associate feeditems to the campaign. + AssociateSitelinkFeedItemsWithCampaign( + $campaignFeedService, $siteLinksFeed, $siteLinkFeedItemIds, + $campaignId); + + // Once the upgraded sitelinks are added to a campaign, the legacy + // sitelinks will stop serving. You can delete the legacy sitelinks + // once you have verified that the migration went fine. In case the + // migration didn't succeed, you can roll back the migration by deleting + // the CampaignFeed you created in the previous step. + DeleteLegacySitelinks($campaignAdExtensionService, $extension); + } + } +} + +/** + * Retrieve an existing feed that is mapped to hold sitelinks. + * + * The first active sitelinks feed is retrieved by this method. + * + * @param FeedMappingService $fmService The FeedMappingService instance. + * @return mixed represent a sitelinks feed if a feed was found, + * null otherwise. + */ +function GetExistingFeed(FeedMappingService $fmService) { + // Create selector. + $selector = new Selector(); + $selector->fields = array('FeedId', 'FeedMappingId', + 'AttributeFieldMappings'); + + // Create predicates. + $selector->predicates[] = new Predicate('Status', 'EQUALS', array('ACTIVE')); + $selector->predicates[] = + new Predicate('PlaceholderType', 'EQUALS', + array(PLACEHOLDER_SITELINKS)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + // Make the get request. + $page = $fmService->get($selector); + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $mapping) { + $feedId = $mapping->feedId; + $textAttributeId = null; + $urlAttributeId = null; + foreach ($mapping->attributeFieldMappings as $attributeMapping) { + switch($attributeMapping->fieldId) { + case PLACEHOLDER_FIELD_SITELINK_LINK_TEXT: + $textAttributeId = $attributeMapping->feedAttributeId; + break; + case PLACEHOLDER_FIELD_SITELINK_LINK_URL: + $urlAttributeId = $attributeMapping->feedAttributeId; + break; + } + } + + if (!empty($textAttributeId) && !empty($urlAttributeId)) { + return array( + 'feedId' => $feedId, + 'textAttributeId' => $textAttributeId, + 'urlAttributeId' => $urlAttributeId, + ); + } + } + } + + return null; +} + +/** + * Create a feed for holding upgraded sitelinks. + * @param FeedService $feedService The FeedService instance. + * @return array the SiteLinksFeed info + */ +function CreateSiteLinksFeed(FeedService $feedService) { + // Create attributes. + $textAttribute = new FeedAttribute(); + $textAttribute->type = 'STRING'; + $textAttribute->name = 'Link Text'; + $urlAttribute = new FeedAttribute(); + $urlAttribute->type = 'URL'; + $urlAttribute->name = 'Link URL'; + + // Create the feed. + $sitelinksFeed = new Feed(); + $sitelinksFeed->name = 'Feed For Site Links'; + $sitelinksFeed->attributes = array($textAttribute, $urlAttribute); + $sitelinksFeed->origin = 'USER'; + + // Create operation. + $operation = new FeedOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sitelinksFeed; + + $operations = array($operation); + + // Add the feed. + $result = $feedService->mutate($operations); + + $savedFeed = $result->value[0]; + $savedAttributes = $savedFeed->attributes; + + return array( + 'feedId' => $savedFeed->id, + 'textAttributeId' => $savedAttributes[0]->id, + 'urlAttributeId' => $savedAttributes[1]->id, + ); +} + +/** + * Map the feed for use with Sitelinks. + * @param FeedMappingService $fmService The FeedMappingService instance. + * @param array $sitelinksData IDs associated to created sitelinks + * feed metadata + */ +function CreateSiteLinksFeedMapping(FeedMappingService $fmService, + $sitelinksData) { + + // Map the FeedAttributeIds to the fieldId constants. + $linkTextFieldMapping = new AttributeFieldMapping(); + $linkTextFieldMapping->feedAttributeId = + $sitelinksData['textAttributeId']; + $linkTextFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_TEXT; + + $linkUrlFieldMapping = new AttributeFieldMapping(); + $linkUrlFieldMapping->feedAttributeId = + $sitelinksData['urlAttributeId']; + $linkUrlFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_URL; + + // Create the FieldMapping and operation. + $feedMapping = new FeedMapping(); + $feedMapping->placeholderType = PLACEHOLDER_SITELINKS; + $feedMapping->feedId = $sitelinksData['feedId']; + $feedMapping->attributeFieldMappings = + array($linkTextFieldMapping, $linkUrlFieldMapping); + $operation = new FeedMappingOperation(); + $operation->operand = $feedMapping; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Save the field mapping. + $fmService->mutate($operations); +} + +/** + * Get legacy sitelinks for a campaign. + * + * @param CampaignAdExtensionService $campaignAdExtensionService the service + * instance. + * @param string $campaignId the campaign ID to get legacy sitelinks for. + * @return CampaignAdExtension that contains the legacy sitelinks, or null + * if there are no legacy sitelinks in this campaign. + */ +function GetLegacySitelinksForCampaign( + CampaignAdExtensionService $campaignAdExtensionService, $campaignId) { + // Filter the results for specified campaign id. + $campaignPredicate = new Predicate(); + $campaignPredicate->operator = 'EQUALS'; + $campaignPredicate->field = 'CampaignId'; + $campaignPredicate->values = array($campaignId); + + // Filter the results for active campaign ad extensions. You may add + // additional filtering conditions here as required. + $statusPredicate = new Predicate(); + $statusPredicate->operator = 'EQUALS'; + $statusPredicate->field = 'Status'; + $statusPredicate->values = array('ACTIVE'); + + // Filter for sitelinks ad extension type. + $typePredicate = new Predicate(); + $typePredicate->operator = 'EQUALS'; + $typePredicate->field = 'AdExtensionType'; + $typePredicate->values = array('SITELINKS_EXTENSION'); + + // Create the selector. + $selector = new Selector(); + $selector->fields = array('AdExtensionId', 'DisplayText', 'DestinationUrl'); + $selector->predicates = array($campaignPredicate, $statusPredicate, + $typePredicate); + + $page = $campaignAdExtensionService->get($selector); + + if (!empty($page->entries)) { + return $page->entries[0]; + } + return null; +} + +/** + * Add legacy sitelinks to the sitelinks feed. + * + * @param FeedItemService $feedItemService The service instance. + * @param array $siteLinksFeed The feed for adding sitelinks. + * @param array $siteLinks legacySiteLinks the SiteLinksFeed info + * @return array The list of feed items that were added to the feed. + */ +function CreateSiteLinkFeedItems(FeedItemService $feedItemService, + $siteLinksFeed, $sitelinks) { + $siteLinkFeedItemIds = array(); + + // Create operation for adding each legacy sitelink to the sitelinks feed. + $operations = array(); + + foreach ($sitelinks as $siteLink) { + $operations[] = NewSiteLinkFeedItemAddOperation($siteLinksFeed, + $siteLink->displayText, $siteLink->destinationUrl); + } + $result = $feedItemService->mutate($operations); + + // Retrieve the feed item ids. + foreach ($result->value as $item) { + $siteLinkFeedItemIds[] = $item->feedItemId; + } + + return $siteLinkFeedItemIds; +} + +/** + * Creates a SitelinkFeedItem and wraps it in an ADD operation. + * @param array $sitelinksData IDs associated to created sitelinks + * feed metadata + * @param string $text text of the sitelink + * @param string $url URL of the sitelink + */ +function NewSiteLinkFeedItemAddOperation($sitelinksData, $text, $url) { + // Create the FeedItemAttributeValues for our text values. + $linkTextAttributeValue = new FeedItemAttributeValue(); + $linkTextAttributeValue->feedAttributeId = + $sitelinksData['textAttributeId']; + $linkTextAttributeValue->stringValue = $text; + $linkUrlAttributeValue = new FeedItemAttributeValue(); + $linkUrlAttributeValue->feedAttributeId = + $sitelinksData['urlAttributeId']; + $linkUrlAttributeValue->stringValue = $url; + + // Create the feed item and operation. + $item = new FeedItem(); + $item->feedId = $sitelinksData['feedId']; + $item->attributeValues = + array($linkTextAttributeValue, $linkUrlAttributeValue); + $operation = new FeedItemOperation(); + $operation->operand = $item; + $operation->operator = 'ADD'; + return $operation; +} + +/** + * Associates sitelink feed items with a campaign. + * + * @param CampaignFeedService $campaignFeedService the service instance. + * @param mixed $siteLinksFeed The feed for holding the sitelinks. + * @param array $siteLinkFeedItemIds The list of feed item IDs to be + * associated with a campaign as sitelinks. + * @param string $campaignId The campaign ID to which upgraded sitelinks + * are added. + */ +function AssociateSitelinkFeedItemsWithCampaign( + CampaignFeedService $campaignFeedService, $siteLinksFeed, + $siteLinkFeedItemIds, $campaignId) { + + // Create a custom matching function that matches the given feed items to + // the campaign. + $requestContextOperand = new RequestContextOperand(); + $requestContextOperand->contextType = 'FEED_ITEM_ID'; + + $operands = array(); + + foreach ($siteLinkFeedItemIds as $feedItemId) { + $constantOperand = new ConstantOperand(); + $constantOperand->longValue = $feedItemId; + $constantOperand->type = 'LONG'; + + $operands[] = $constantOperand; + } + + $func = new FeedFunction(); + $func->lhsOperand = array($requestContextOperand); + $func->rhsOperand = $operands; + $func->operator = 'IN'; + + // Create upgraded sitelinks for the campaign. Use the sitelinks feed we + // created, and restrict feed items by matching function. + $campaignFeed = new CampaignFeed(); + $campaignFeed->feedId = $siteLinksFeed['feedId']; + $campaignFeed->campaignId = $campaignId; + $campaignFeed->matchingFunction = $func; + $campaignFeed->placeholderTypes = array(PLACEHOLDER_SITELINKS); + + $operation = new CampaignFeedOperation(); + $operation->operand = $campaignFeed; + $operation->operator = 'ADD'; + + $campaignFeedService->mutate(array($operation)); +} + +/** + * Delete legacy sitelinks from a campaign. + * + * @param CampaignsAdExtensionService $campaignExtensionService the service + * instance. + * @param CampaignAdExtension $extensionToDelete The CampaignAdExtension that + * holds legacy sitelinks. + */ +function DeleteLegacySitelinks( + CampaignAdExtensionService $campaignExtensionService, $extensionToDelete) { + + $operation = new CampaignAdExtensionOperation(); + $operation->operator = 'REMOVE'; + $operation->operand = $extensionToDelete; + + $campaignExtensionService->mutate(array($operation)); +} + +// 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. + UpgradeLegacySitelinksExample($user, $campaignIds); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Misc/GetAllImagesAndVideos.php b/examples/AdWords/v201306/Misc/GetAllImagesAndVideos.php new file mode 100755 index 000000000..4adcd020a --- /dev/null +++ b/examples/AdWords/v201306/Misc/GetAllImagesAndVideos.php @@ -0,0 +1,100 @@ +GetService('MediaService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('MediaId', 'Width', 'Height', 'MimeType', 'Name'); + $selector->ordering = array(new OrderBy('MediaId', 'ASCENDING')); + + // Create predicates. + $selector->predicates[] = + new Predicate('Type', 'IN', array('IMAGE', 'VIDEO')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $mediaService->get($selector); + + // Display images. + if (isset($page->entries)) { + foreach ($page->entries as $media) { + if ($media->MediaType == 'Image') { + $dimensions = MapUtils::GetMap($media->dimensions); + printf("Image with dimensions '%dx%d', MIME type '%s', and id '%s' " + . "was found.\n", $dimensions['FULL']->width, + $dimensions['FULL']->height, $media->mimeType, $media->mediaId); + } else if ($media->MediaType == 'Video') { + printf("Video with name '%s' and id '%s' was found.\n", $media->name, + $media->mediaId); + } + } + } else { + print "No images or videos 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. + GetAllImagesAndVideosExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Misc/UploadImage.php b/examples/AdWords/v201306/Misc/UploadImage.php new file mode 100755 index 000000000..5b61e718e --- /dev/null +++ b/examples/AdWords/v201306/Misc/UploadImage.php @@ -0,0 +1,77 @@ +GetService('MediaService', ADWORDS_VERSION); + + // Create image. + $image = new Image(); + $image->data = MediaUtils::GetBase64Data('http://goo.gl/HJM3L'); + $image->type = 'IMAGE'; + + // Make the upload request. + $result = $mediaService->upload(array($image)); + + // Display result. + $image = $result[0]; + $dimensions = MapUtils::GetMap($image->dimensions); + printf("Image with dimensions '%dx%d', MIME type '%s', and id '%s' was " + . "uploaded.\n", $dimensions['FULL']->width, + $dimensions['FULL']->height, $image->mimeType, $image->mediaId); +} + +// 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. + UploadImageExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Optimization/EstimateKeywordTraffic.php b/examples/AdWords/v201306/Optimization/EstimateKeywordTraffic.php new file mode 100755 index 000000000..32c031e5b --- /dev/null +++ b/examples/AdWords/v201306/Optimization/EstimateKeywordTraffic.php @@ -0,0 +1,142 @@ +GetService('TrafficEstimatorService', ADWORDS_VERSION); + + // Create keywords. Up to 2000 keywords can be passed in a single request. + $keywords = array(); + $keywords[] = new Keyword('mars cruise', 'BROAD'); + $keywords[] = new Keyword('cheap cruise', 'PHRASE'); + $keywords[] = new Keyword('cruise', 'EXACT'); + + // Negative keywords don't return estimates, but adjust the estimates of the + // other keywords in the hypothetical ad group. + $negativeKeywords = array(); + $negativeKeywords[] = new Keyword('moon walk', 'BROAD'); + + // Create a keyword estimate request for each keyword. + $keywordEstimateRequests = array(); + foreach ($keywords as $keyword) { + $keywordEstimateRequest = new KeywordEstimateRequest(); + $keywordEstimateRequest->keyword = $keyword; + $keywordEstimateRequests[] = $keywordEstimateRequest; + } + + // Create a keyword estimate request for each negative keyword. + foreach ($negativeKeywords as $negativeKeyword) { + $keywordEstimateRequest = new KeywordEstimateRequest(); + $keywordEstimateRequest->keyword = $negativeKeyword; + $keywordEstimateRequest->isNegative = TRUE; + $keywordEstimateRequests[] = $keywordEstimateRequest; + } + + // Create ad group estimate requests. + $adGroupEstimateRequest = new AdGroupEstimateRequest(); + $adGroupEstimateRequest->keywordEstimateRequests = $keywordEstimateRequests; + $adGroupEstimateRequest->maxCpc = new Money(1000000); + + // Create campaign estimate requests. + $campaignEstimateRequest = new CampaignEstimateRequest(); + $campaignEstimateRequest->adGroupEstimateRequests[] = $adGroupEstimateRequest; + + // Set targeting criteria. Only locations and languages are supported. + $unitedStates = new Location(); + $unitedStates->id = 2840; + $campaignEstimateRequest->criteria[] = $unitedStates; + + $english = new Language(); + $english->id = 1000; + $campaignEstimateRequest->criteria[] = $english; + + // Create selector. + $selector = new TrafficEstimatorSelector(); + $selector->campaignEstimateRequests[] = $campaignEstimateRequest; + + // Make the get request. + $result = $trafficEstimatorService->get($selector); + + // Display results. + $keywordEstimates = + $result->campaignEstimates[0]->adGroupEstimates[0]->keywordEstimates; + for ($i = 0; $i < sizeof($keywordEstimates); $i++) { + $keywordEstimateRequest = $keywordEstimateRequests[$i]; + // Skip negative keywords, since they don't return estimates. + if (!$keywordEstimateRequest->isNegative) { + $keyword = $keywordEstimateRequest->keyword; + $keywordEstimate = $keywordEstimates[$i]; + + // Find the mean of the min and max values. + $meanAverageCpc = ($keywordEstimate->min->averageCpc->microAmount + + $keywordEstimate->max->averageCpc->microAmount) / 2; + $meanAveragePosition = ($keywordEstimate->min->averagePosition + + $keywordEstimate->max->averagePosition) / 2; + $meanClicks = ($keywordEstimate->min->clicksPerDay + + $keywordEstimate->max->clicksPerDay) / 2; + $meanTotalCost = ($keywordEstimate->min->totalCost->microAmount + + $keywordEstimate->max->totalCost->microAmount) / 2; + + printf("Results for the keyword with text '%s' and match type '%s':\n", + $keyword->text, $keyword->matchType); + printf(" Estimated average CPC in micros: %.0f\n", $meanAverageCpc); + printf(" Estimated ad position: %.2f \n", $meanAveragePosition); + printf(" Estimated daily clicks: %d\n", $meanClicks); + printf(" Estimated daily cost in micros: %.0f\n\n", $meanTotalCost); + } + } +} + +// 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. + EstimateKeywordTrafficExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Optimization/GetKeywordBidSimulations.php b/examples/AdWords/v201306/Optimization/GetKeywordBidSimulations.php new file mode 100755 index 000000000..24d8b4f4a --- /dev/null +++ b/examples/AdWords/v201306/Optimization/GetKeywordBidSimulations.php @@ -0,0 +1,106 @@ +GetService('DataService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('AdGroupId', 'CriterionId', 'StartDate', 'EndDate', + 'Bid', 'LocalClicks', 'LocalCost', 'MarginalCpc', 'LocalImpressions'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do{ + // Make the getCriterionBidLandscape request. + $page = $dataService->getCriterionBidLandscape($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $bidLandscape) { + printf("Found criterion bid landscape for keyword with id '%s', start " + . "date '%s', end date '%s', and landscape points:\n", + $bidLandscape->criterionId, $bidLandscape->startDate, + $bidLandscape->endDate); + foreach ($bidLandscape->landscapePoints as $bidLandscapePoint) { + printf(" bid: %.0f => clicks: %d, cost: %.0f, marginalCpc: %.0f, " + . "impressions: %d\n", + $bidLandscapePoint->bid->microAmount, $bidLandscapePoint->clicks, + $bidLandscapePoint->cost->microAmount, + $bidLandscapePoint->marginalCpc->microAmount, + $bidLandscapePoint->impressions); + } + print "\n"; + } + } else { + print "No criterion bid landscapes 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. + GetKeywordBidSimulationsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Optimization/GetKeywordIdeas.php b/examples/AdWords/v201306/Optimization/GetKeywordIdeas.php new file mode 100755 index 000000000..b82a90a52 --- /dev/null +++ b/examples/AdWords/v201306/Optimization/GetKeywordIdeas.php @@ -0,0 +1,116 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +require_once UTIL_PATH . '/MapUtils.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetKeywordIdeasExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $targetingIdeaService = + $user->GetService('TargetingIdeaService', ADWORDS_VERSION); + + // Create seed keyword. + $keyword = 'mars cruise'; + + // Create selector. + $selector = new TargetingIdeaSelector(); + $selector->requestType = 'IDEAS'; + $selector->ideaType = 'KEYWORD'; + $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'SEARCH_VOLUME', + 'CATEGORY_PRODUCTS_AND_SERVICES'); + + // Create language search parameter (optional). + // The ID can be found in the documentation: + // https://developers.google.com/adwords/api/docs/appendix/languagecodes + // Note: As of v201302, only a single language parameter is allowed. + $languageParameter = new LanguageSearchParameter(); + $english = new Language(); + $english->id = 1000; + $languageParameter->languages = array($english); + + // Create related to query search parameter. + $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter(); + $relatedToQuerySearchParameter->queries = array($keyword); + $selector->searchParameters[] = $relatedToQuerySearchParameter; + $selector->searchParameters[] = $languageParameter; + + // Set selector paging (required by this service). + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $targetingIdeaService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $targetingIdea) { + $data = MapUtils::GetMap($targetingIdea->data); + $keyword = $data['KEYWORD_TEXT']->value; + $search_volume = isset($data['SEARCH_VOLUME']->value) + ? $data['SEARCH_VOLUME']->value : 0; + $categoryIds = + implode(', ', $data['CATEGORY_PRODUCTS_AND_SERVICES']->value); + printf("Keyword idea with text '%s', category IDs (%s) and average " + . "monthly search volume '%s' was found.\n", + $keyword, $categoryIds, $search_volume); + } + } else { + print "No keywords ideas 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. + GetKeywordIdeasExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Optimization/GetPlacementIdeas.php b/examples/AdWords/v201306/Optimization/GetPlacementIdeas.php new file mode 100755 index 000000000..5897dda37 --- /dev/null +++ b/examples/AdWords/v201306/Optimization/GetPlacementIdeas.php @@ -0,0 +1,101 @@ +GetService('TargetingIdeaService', ADWORDS_VERSION); + + // Create seed url. + $url = 'mars.google.com'; + + // Create selector. + $selector = new TargetingIdeaSelector(); + $selector->requestType = 'IDEAS'; + $selector->ideaType = 'PLACEMENT'; + $selector->requestedAttributeTypes = array('CRITERION', 'PLACEMENT_TYPE'); + + // Create related to url search parameter. + $relatedToUrlSearchParameter = new RelatedToUrlSearchParameter(); + $relatedToUrlSearchParameter->urls = array($url); + $relatedToUrlSearchParameter->includeSubUrls = FALSE; + $selector->searchParameters[] = $relatedToUrlSearchParameter; + + // Set selector paging (required by this service). + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $targetingIdeaService->get($selector); + + // Display related placements. + if (isset($page->entries)) { + foreach ($page->entries as $targetingIdea) { + $data = MapUtils::GetMap($targetingIdea->data); + $placement = $data['CRITERION']->value; + $placementType = $data['PLACEMENT_TYPE']->value; + printf("Placement with url '%s' and type '%s' was found.\n", + $placement->url, $placementType); + } + } else { + print "No related placements 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. + GetPlacementIdeasExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Remarketing/AddAudience.php b/examples/AdWords/v201306/Remarketing/AddAudience.php new file mode 100755 index 000000000..36285aa23 --- /dev/null +++ b/examples/AdWords/v201306/Remarketing/AddAudience.php @@ -0,0 +1,107 @@ +GetService('AdwordsUserListService', ADWORDS_VERSION); + $conversionTrackerService = + $user->GetService('ConversionTrackerService', ADWORDS_VERSION); + + // Create conversion type (tag). + $conversionType = new UserListConversionType(); + $conversionType->name = 'Mars cruise customers #' . uniqid(); + + // Create remarketing user list. + $userList = new BasicUserList(); + $userList->name = 'Mars cruise customers #' . uniqid(); + $userList->conversionTypes = array($conversionType); + + // Set additional settings (optional). + $userList->description = 'A list of mars cruise customers in the last year'; + $userList->status = 'OPEN'; + $userList->membershipLifeSpan = 365; + + // Create operation. + $operation = new UserListOperation(); + $operation->operand = $userList; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $userListService->mutate($operations); + $userList = $result->value[0]; + + // Wait a moment before retrieving the conversion snippet. + sleep(1); + + // Create the selector. + $selector = new Selector(); + $selector->fields = array('Id'); + $selector->predicates[] = + new Predicate('Id', 'IN', array($userList->conversionTypes[0]->id)); + + // Make the get request. + $page = $conversionTrackerService->get($selector); + $conversionTracker = $page->entries[0]; + + // Display result. + printf("Audience with name '%s' and ID '%.0f' was added.\n", $userList->name, + $userList->id); + printf("Tag code:\n%s\n", $conversionTracker->snippet); +} + +// 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. + AddAudienceExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Remarketing/AddConversionTracker.php b/examples/AdWords/v201306/Remarketing/AddConversionTracker.php new file mode 100755 index 000000000..35e3265b4 --- /dev/null +++ b/examples/AdWords/v201306/Remarketing/AddConversionTracker.php @@ -0,0 +1,96 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddConversionTrackerExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $conversionTrackerService = + $user->GetService('ConversionTrackerService', ADWORDS_VERSION); + + // Create conversion tracker. + $conversionTracker = new AdWordsConversionTracker(); + $conversionTracker->name = 'Interplanetary Cruise Conversion #' . uniqid(); + + // Set additional settings (optional). + $conversionTracker->status = 'ENABLED'; + $conversionTracker->category = 'DEFAULT'; + $conversionTracker->viewthroughLookbackWindow = 15; + $conversionTracker->viewthroughConversionDeDupSearch = TRUE; + $conversionTracker->isProductAdsChargeable = TRUE; + $conversionTracker->productAdsChargeableConversionWindow = 15; + $conversionTracker->markupLanguage = 'HTML'; + $conversionTracker->textFormat = 'HIDDEN'; + $conversionTracker->conversionPageLanguage = 'en'; + $conversionTracker->backgroundColor = '#0000FF'; + $conversionTracker->userRevenueValue = 'someJavascriptVariable'; + + // Create operation. + $operation = new ConversionTrackerOperation(); + $operation->operand = $conversionTracker; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $conversionTrackerService->mutate($operations); + + // Display result. + $conversionTracker = $result->value[0]; + printf("Conversion type with name '%s' and ID '%.0f' was added.\n", + $conversionTracker->name, $conversionTracker->id); + printf("Tag code:\n%s\n", $conversionTracker->snippet); +} + +// 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. + AddConversionTrackerExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Reporting/DownloadCriteriaReport.php b/examples/AdWords/v201306/Reporting/DownloadCriteriaReport.php new file mode 100755 index 000000000..95a6bd0c3 --- /dev/null +++ b/examples/AdWords/v201306/Reporting/DownloadCriteriaReport.php @@ -0,0 +1,91 @@ +LoadService('ReportDefinitionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('CampaignId', 'AdGroupId', 'Id', 'Criteria', + 'CriteriaType', 'Impressions', 'Clicks', 'Cost'); + + // Filter out deleted criteria. + $selector->predicates[] = new Predicate('Status', 'NOT_IN', array('DELETED')); + + // Create report definition. + $reportDefinition = new ReportDefinition(); + $reportDefinition->selector = $selector; + $reportDefinition->reportName = 'Criteria performance report #' . uniqid(); + $reportDefinition->dateRangeType = 'LAST_7_DAYS'; + $reportDefinition->reportType = 'CRITERIA_PERFORMANCE_REPORT'; + $reportDefinition->downloadFormat = 'CSV'; + + // Exclude criteria that haven't recieved any impressions over the date range. + $reportDefinition->includeZeroImpressions = FALSE; + + // Set additional options. + $options = array('version' => ADWORDS_VERSION, 'returnMoneyInMicros' => TRUE); + + // Download report. + ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options); + + printf("Report with name '%s' was downloaded to '%s'.\n", + $reportDefinition->reportName, $filePath); +} + +// 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(); + + // Download the report to a file in the same directory as the example. + $filePath = dirname(__FILE__) . '/report.csv'; + + // Run the example. + DownloadCriteriaReportExample($user, $filePath); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Reporting/DownloadCriteriaReportWithAwql.php b/examples/AdWords/v201306/Reporting/DownloadCriteriaReportWithAwql.php new file mode 100755 index 000000000..426750712 --- /dev/null +++ b/examples/AdWords/v201306/Reporting/DownloadCriteriaReportWithAwql.php @@ -0,0 +1,82 @@ + + */ + +error_reporting(E_STRICT | E_ALL); + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +require_once ADWORDS_UTIL_PATH . '/ReportUtils.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $filePath the path of the file to download the report to + */ +function DownloadCriteriaReportWithAwqlExample(AdWordsUser $user, $filePath, + $reportFormat) { + // Prepare a date range for the last week. Instead you can use 'LAST_7_DAYS'. + $dateRange = sprintf('%d,%d', + date('Ymd', strtotime('-7 day')), date('Ymd', strtotime('-1 day'))); + + // Create report query. + $reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, ' + . 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT ' + . 'WHERE Status IN [ACTIVE, PAUSED] DURING ' . $dateRange; + + // Set additional options. + $options = array('version' => ADWORDS_VERSION); + + // Download report. + ReportUtils::DownloadReportWithAwql($reportQuery, $filePath, $user, + $reportFormat, $options); + + printf("Report was downloaded to '%s'.\n", $filePath); +} + +// 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(); + + // Download the report to a file in the same directory as the example. + $filePath = dirname(__FILE__) . '/report.csv'; + $reportFormat = 'CSV'; + + // Run the example. + DownloadCriteriaReportWithAwqlExample($user, $filePath, $reportFormat); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Reporting/GetCampaignStats.php b/examples/AdWords/v201306/Reporting/GetCampaignStats.php new file mode 100755 index 000000000..c645d0f42 --- /dev/null +++ b/examples/AdWords/v201306/Reporting/GetCampaignStats.php @@ -0,0 +1,100 @@ +GetService('CampaignService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = + array('Id', 'Name', 'Impressions', 'Clicks', 'Cost', 'Ctr'); + $selector->predicates[] = + new Predicate('Impressions', 'GREATER_THAN', array(0)); + + // Set date range to request stats for. + $dateRange = new DateRange(); + $dateRange->min = date('Ymd', strtotime('-1 week')); + $dateRange->max = date('Ymd', strtotime('-1 day')); + $selector->dateRange = $dateRange; + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and id '%s' had the following stats " + . "during the last week:\n", $campaign->name, $campaign->id); + printf(" Impressions: %d\n", $campaign->campaignStats->impressions); + printf(" Clicks: %d\n", $campaign->campaignStats->clicks); + printf(" Cost: $%.2f\n", $campaign->campaignStats->cost->microAmount + / AdWordsConstants::MICROS_PER_DOLLAR); + printf(" CTR: %.2f%%\n", $campaign->campaignStats->ctr * 100); + } + } else { + print "No matching campaigns 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. + GetCampaignStatsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Reporting/GetReportFields.php b/examples/AdWords/v201306/Reporting/GetReportFields.php new file mode 100755 index 000000000..c11f5b6b2 --- /dev/null +++ b/examples/AdWords/v201306/Reporting/GetReportFields.php @@ -0,0 +1,78 @@ +GetService('ReportDefinitionService', ADWORDS_VERSION); + + // The type of the report to get fields for. + $reportType = 'CAMPAIGN_PERFORMANCE_REPORT'; + + // Get report fields. + $reportDefinitionFields = + $reportDefinitionService->getReportFields($reportType); + + // Display results. + printf("The report type '%s' contains the following fields:\n", $reportType); + foreach ($reportDefinitionFields as $reportDefinitionField) { + printf(' %s (%s)', $reportDefinitionField->fieldName, + $reportDefinitionField->fieldType); + if (isset($reportDefinitionField->enumValues)) { + printf(' := [%s]', implode(', ', $reportDefinitionField->enumValues)); + } + print "\n"; + } +} + +// 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. + GetReportFieldsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Targeting/AddCampaignTargetingCriteria.php b/examples/AdWords/v201306/Targeting/AddCampaignTargetingCriteria.php new file mode 100755 index 000000000..755b74a96 --- /dev/null +++ b/examples/AdWords/v201306/Targeting/AddCampaignTargetingCriteria.php @@ -0,0 +1,103 @@ +GetService('CampaignCriterionService', ADWORDS_VERSION); + + $campaignCriteria = array(); + + // Create locations. The IDs can be found in the documentation or retrieved + // with the LocationCriterionService. + $california = new Location(); + $california->id = 21137; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $california); + + $mexico = new Location(); + $mexico->id = 2484; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $mexico); + + // Create languages. The IDs can be found in the documentation or retrieved + // with the ConstantDataService. + $english = new Language(); + $english->id = 1000; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $english); + + $spanish = new Language(); + $spanish->id = 1003; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $spanish); + + // Create operations. + $operations = array(); + foreach ($campaignCriteria as $campaignCriterion) { + $operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD'); + } + + // Make the mutate request. + $result = $campaignCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $campaignCriterion) { + printf("Campaign targeting criterion with ID '%s' and type '%s' was " + . "added.\n", $campaignCriterion->criterion->id, + $campaignCriterion->criterion->CriterionType); + } +} + +// 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. + AddCampaignTargetingCriteriaExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Targeting/GetCampaignTargetingCriteria.php b/examples/AdWords/v201306/Targeting/GetCampaignTargetingCriteria.php new file mode 100755 index 000000000..c98e62899 --- /dev/null +++ b/examples/AdWords/v201306/Targeting/GetCampaignTargetingCriteria.php @@ -0,0 +1,101 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to get targeting criteria + * for + */ +function GetCampaignTargetingCriteriaExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignCriterionService = + $user->GetService('CampaignCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'CriteriaType'); + + // Create predicates. + $selector->predicates[] = + new Predicate('CampaignId', 'IN', array($campaignId)); + $selector->predicates[] = new Predicate('CriteriaType', 'IN', + array('LANGUAGE', 'LOCATION', 'AGE_RANGE', 'CARRIER', + 'OPERATING_SYSTEM_VERSION', 'GENDER', 'POLYGON', 'PROXIMITY', + 'PLATFORM')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaignCriterion) { + printf("Campaign targeting criterion with ID '%s' and type '%s' was " + . "found.\n", $campaignCriterion->criterion->id, + $campaignCriterion->criterion->CriterionType); + } + } else { + print "No campaign targeting criteria 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. + GetCampaignTargetingCriteriaExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Targeting/GetTargetableLanguagesAndCarriers.php b/examples/AdWords/v201306/Targeting/GetTargetableLanguagesAndCarriers.php new file mode 100755 index 000000000..150647c28 --- /dev/null +++ b/examples/AdWords/v201306/Targeting/GetTargetableLanguagesAndCarriers.php @@ -0,0 +1,77 @@ +GetService('ConstantDataService', ADWORDS_VERSION); + + // Make the getLanguageCriterion request. + $languages = $constantDataService->getLanguageCriterion(); + + foreach ($languages as $language) { + printf("Language with name '%s' and ID '%s' was found.\n", + $language->name, $language->id); + } + + print "\n"; + + // Make the getCarrierCriterion request. + $carriers = $constantDataService->getCarrierCriterion(); + + foreach ($carriers as $carrier) { + printf("Carrier with name '%s', country code '%s', and ID '%s' was " + . "found.\n", $carrier->name, $carrier->countryCode, $carrier->id); + } +} + +// 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. + GetTargetableLanguagesAndCarriersExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/Targeting/LookupLocation.php b/examples/AdWords/v201306/Targeting/LookupLocation.php new file mode 100755 index 000000000..25c05a5ef --- /dev/null +++ b/examples/AdWords/v201306/Targeting/LookupLocation.php @@ -0,0 +1,109 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Gets a string representation for a location. + * @param Location $location the location + * @return string the string representation + */ +function GetLocationString($location) { + return sprintf('%s (%s)', $location->locationName, $location->displayType); +} + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function LookupLocationExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $locationCriterionService = + $user->GetService('LocationCriterionService', ADWORDS_VERSION); + + // Location names to look up. + $locationNames = array('Paris', 'Quebec', 'Spain', 'Deutschland'); + // Locale to retrieve location names in. + $locale = 'en'; + + $selector = new Selector(); + $selector->fields = array('Id', 'LocationName', 'CanonicalName', + 'DisplayType', 'ParentLocations', 'Reach', 'TargetingStatus'); + // Location names must match exactly, only EQUALS and IN are supported. + $selector->predicates[] = new Predicate('LocationName', 'IN', $locationNames); + // Only one locale can be used in a request. + $selector->predicates[] = new Predicate('Locale', 'EQUALS', $locale); + + // Make the get request. + $locationCriteria = $locationCriterionService->get($selector); + + // Display results. + if (isset($locationCriteria)) { + foreach ($locationCriteria as $locationCriterion) { + if (isset($locationCriterion->location->parentLocations)) { + $parentLocations = implode(', ', + array_map('GetLocationString', + $locationCriterion->location->parentLocations)); + } else { + $parentLocations = 'N/A'; + } + printf("The search term '%s' returned the location '%s' of type '%s' " + . "with ID '%s', parent locations '%s', and reach '%d' (%s).\n", + $locationCriterion->searchTerm, + $locationCriterion->location->locationName, + $locationCriterion->location->displayType, + $locationCriterion->location->id, + $parentLocations, + $locationCriterion->reach, + $locationCriterion->location->targetingStatus); + } + } else { + print "No location criteria were found.\n"; + } +} + +// 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. + LookupLocationExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201306/init.php b/examples/AdWords/v201306/init.php new file mode 100755 index 000000000..a8f239733 --- /dev/null +++ b/examples/AdWords/v201306/init.php @@ -0,0 +1,46 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function CreateAccountExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $managedCustomerService = + $user->GetService('ManagedCustomerService', ADWORDS_VERSION); + + // Create customer. + $customer = new ManagedCustomer(); + $customer->name = 'Account #' . uniqid(); + $customer->currencyCode = 'EUR'; + $customer->dateTimeZone = 'Europe/London'; + + // Create operation. + $operation = new ManagedCustomerOperation(); + $operation->operator = 'ADD'; + $operation->operand = $customer; + + $operations = array($operation); + + // Make the mutate request. + $result = $managedCustomerService->mutate($operations); + + // Display result. + $customer = $result->value[0]; + printf("Account with customer ID '%s' was created.\n", + $customer->customerId); +} + +// 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. + CreateAccountExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AccountManagement/GetAccountAlerts.php b/examples/AdWords/v201309/AccountManagement/GetAccountAlerts.php new file mode 100755 index 000000000..683810f08 --- /dev/null +++ b/examples/AdWords/v201309/AccountManagement/GetAccountAlerts.php @@ -0,0 +1,103 @@ +GetService('AlertService', ADWORDS_VERSION); + + // Create alert query. + $alertQuery = new AlertQuery(); + $alertQuery->clientSpec = 'ALL'; + $alertQuery->filterSpec = 'ALL'; + $alertQuery->types = array('ACCOUNT_BUDGET_BURN_RATE','ACCOUNT_BUDGET_ENDING', + 'ACCOUNT_ON_TARGET','CAMPAIGN_ENDED','CAMPAIGN_ENDING', + 'CREDIT_CARD_EXPIRING','DECLINED_PAYMENT', + 'MANAGER_LINK_PENDING','MISSING_BANK_REFERENCE_NUMBER', + 'PAYMENT_NOT_ENTERED','TV_ACCOUNT_BUDGET_ENDING','TV_ACCOUNT_ON_TARGET', + 'TV_ZERO_DAILY_SPENDING_LIMIT','USER_INVITE_ACCEPTED', + 'USER_INVITE_PENDING','ZERO_DAILY_SPENDING_LIMIT'); + $alertQuery->severities = array('GREEN', 'YELLOW', 'RED'); + $alertQuery->triggerTimeSpec = 'ALL_TIME'; + + // Create selector. + $selector = new AlertSelector(); + $selector->query = $alertQuery; + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $alertService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $alert) { + printf("Alert of type '%s' and severity '%s' for account '%d' was " + . "found.\n", $alert->alertType, $alert->alertSeverity, + $alert->clientCustomerId); + } + } else { + print "No alerts 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. + GetAccountAlertsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AccountManagement/GetAccountChanges.php b/examples/AdWords/v201309/AccountManagement/GetAccountChanges.php new file mode 100755 index 000000000..c17f3f3ad --- /dev/null +++ b/examples/AdWords/v201309/AccountManagement/GetAccountChanges.php @@ -0,0 +1,148 @@ +GetService('CampaignService', ADWORDS_VERSION); + $customerSyncService = $user->GetService('CustomerSyncService', ADWORDS_VERSION); + + // Get an array of all campaign ids. + $campaignIds = array(); + $selector = new Selector(); + $selector->fields = array('Id'); + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + do { + $page = $campaignService->get($selector); + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + $campaignIds[] = $campaign->id; + } + } + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + // Set the date time range, from 24 hours ago until now. + $dateTimeRange = new DateTimeRange(); + $dateTimeRange->min = date('Ymd his', strtotime('-1 day')); + $dateTimeRange->max = date('Ymd his'); + + // Create selector. + $selector = new CustomerSyncSelector(); + $selector->dateTimeRange = $dateTimeRange; + $selector->campaignIds = $campaignIds; + + // Make the get request. + $accountChanges = $customerSyncService->get($selector); + + // Display results. + if (isset($accountChanges)) { + printf("Most recent change: %s\n", $accountChanges->lastChangeTimestamp); + if (isset($accountChanges->changedCampaigns)) { + foreach ($accountChanges->changedCampaigns as $campaignChangeData) { + printf("Campaign with id '%.0f' has change status '%s'.\n", + $campaignChangeData->campaignId, + $campaignChangeData->campaignChangeStatus); + if ($campaignChangeData->campaignChangeStatus != 'NEW') { + printf("\tAdded ad extensions: %s\n", + ArrayToString($campaignChangeData->addedAdExtensions)); + printf("\tDeleted ad extensions: %s\n", + ArrayToString($campaignChangeData->deletedAdExtensions)); + printf("\tAdded campaign criteria: %s\n", + ArrayToString($campaignChangeData->addedCampaignCriteria)); + printf("\tDeleted campaign criteria: %s\n", + ArrayToString($campaignChangeData->deletedCampaignCriteria)); + printf("\tCampaign targeting changed: %s\n", + $campaignChangeData->campaignTargetingChanged ? 'true' + : 'false'); + if (isset($campaignChangeData->changedAdGroups)) { + foreach($campaignChangeData->changedAdGroups as + $adGroupChangeData) { + printf("\tAd Group with id '%.0f' has change status '%s'.\n", + $adGroupChangeData->adGroupId, + $adGroupChangeData->adGroupChangeStatus); + if ($adGroupChangeData->adGroupChangeStatus != 'NEW') { + printf("\t\tChanged ads: %s\n", + ArrayToString($adGroupChangeData->changedAds)); + printf("\t\tChanged criteria: %s\n", + ArrayToString($adGroupChangeData->changedCriteria)); + printf("\t\tDeleted criteria: %s\n", + ArrayToString($adGroupChangeData->deletedCriteria)); + } + } + } + } + } + } + } else { + print "No changes were found.\n"; + } +} + +/** + * Converts an array of values to a comma-separated string. + * @param array $array an array of values that can be converted to a string + * @return string a comma-separated string of the values + */ +function ArrayToString($array) { + if (!isset($array)) { + return ''; + } else { + return implode(', ', $array); + } +} + +// 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. + GetAccountChangesExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AccountManagement/GetAccountHierarchy.php b/examples/AdWords/v201309/AccountManagement/GetAccountHierarchy.php new file mode 100755 index 000000000..fce73ea3d --- /dev/null +++ b/examples/AdWords/v201309/AccountManagement/GetAccountHierarchy.php @@ -0,0 +1,127 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetAccountHierarchyExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $managedCustomerService = + $user->GetService('ManagedCustomerService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $graph = $managedCustomerService->get($selector); + + // Display serviced account graph. + if (isset($graph->entries)) { + // Create map from customerId to parent and child links. + $childLinks = array(); + $parentLinks = array(); + if (isset($graph->links)) { + foreach ($graph->links as $link) { + $childLinks[$link->managerCustomerId][] = $link; + $parentLinks[$link->clientCustomerId][] = $link; + } + } + // Create map from customerID to account, and find root account. + $accounts = array(); + $rootAccount = NULL; + foreach ($graph->entries as $account) { + $accounts[$account->customerId] = $account; + if (!array_key_exists($account->customerId, $parentLinks)) { + $rootAccount = $account; + } + } + // The root account may not be returned in the sandbox. + if (!isset($rootAccount)) { + $rootAccount = new Account(); + $rootAccount->customerId = 0; + $rootAccount->login = $user->GetEmail(); + } + // Display account tree. + print "(Customer Id, Account Name/Login)\n"; + DisplayAccountTree($rootAccount, NULL, $accounts, $childLinks, 0); + } else { + print "No serviced accounts were found.\n"; + } +} + +/** + * Displays an account tree, starting at the account and link provided, and + * recursing to all child accounts. + * @param Account $account the account to display + * @param Link $link the link used to reach this account + * @param array $accounts a map from customerId to account + * @param array $links a map from customerId to child links + * @param int $depth the depth of the current account in the tree + */ +function DisplayAccountTree($account, $link, $accounts, $links, $depth) { + print str_repeat('-', $depth * 2); + printf("%s, %s\n", $account->customerId, + !empty($link->descriptiveName) ? $link->descriptiveName :$account->login); + if (array_key_exists($account->customerId, $links)) { + foreach ($links[$account->customerId] as $childLink) { + $childAccount = $accounts[$childLink->clientCustomerId]; + DisplayAccountTree($childAccount, $childLink, $accounts, $links, + $depth +1); + } + } +} + +// 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. + GetAccountHierarchyExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/AddAdGroupBidModifier.php b/examples/AdWords/v201309/AdvancedOperations/AddAdGroupBidModifier.php new file mode 100755 index 000000000..3c48cfdd7 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/AddAdGroupBidModifier.php @@ -0,0 +1,101 @@ +GetService('AdGroupBidModifierService', + ADWORDS_VERSION); + + // Mobile criterion ID. + $criterionId = 30001; + + // Prepare to add an ad group level override. + $agBidModifier = new AdGroupBidModifier(); + $agBidModifier->adGroupId = $adGroupId; + $agBidModifier->criterion = new Platform(); + $agBidModifier->criterion->id = $criterionId; + $agBidModifier->bidModifier = $bidModifier; + + $operation = new AdGroupBidModifierOperation(); + + // Use 'ADD' to add a new modifier and 'SET' to update an existing one. A + // modifier can be removed with the 'REMOVE' operator. + $operation->operator = 'ADD'; + $operation->operand = $agBidModifier; + + $response = $bidModifierService->mutate(array($operation)); + + foreach ($response->value as $modifier) { + $value = 'none'; + if (!empty($modifier->bidModifier)) { + $value = $modifier->bidModifier; + } + printf( + 'AdGroup ID %d, Criterion ID %d was updated with ' . + "ad group level modifier: %s\n", + $modifier->adGroupId, + $modifier->criterion->id, + $value + ); + } +} + +// 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. + AddAdGroupBidModifierExample($user, $adGroupId, $bidModifier); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/AddClickToDownloadAd.php b/examples/AdWords/v201309/AdvancedOperations/AddClickToDownloadAd.php new file mode 100755 index 000000000..e4a3b7de8 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/AddClickToDownloadAd.php @@ -0,0 +1,133 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_ADGROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $adGroupId the ID of the ad group to add the ad to + */ +function AddClickToDownloadAd(AdWordsUser $user, $adGroupId) { + // Get the AdGroupAdService, which loads the required classes. + $adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create the template ad. + $clickToDownloadAppAd = new TemplateAd(); + + $clickToDownloadAppAd->name = 'Ad for demo game'; + $clickToDownloadAppAd->templateId = 353; + $clickToDownloadAppAd->url = + 'http://play.google.com/store/apps/details?id=com.example.demogame'; + $clickToDownloadAppAd->displayUrl = 'play.google.com'; + + // Create the template elements for the ad. You can refer to + // https://developers.google.com/adwords/api/docs/appendix/templateads + // for the list of avaliable template fields. + $headline = new TemplateElementField(); + $headline->name = 'headline'; + $headline->fieldText = 'Enjoy your drive in Mars'; + $headline->type = 'TEXT'; + + $description1 = new TemplateElementField(); + $description1->name = 'description1'; + $description1->fieldText = 'Realistic physics simulation'; + $description1->type = 'TEXT'; + + $description2 = new TemplateElementField(); + $description2->name = 'description2'; + $description2->fieldText = 'Race against players online'; + $description2->type = 'TEXT'; + + $appId = new TemplateElementField(); + $appId->name = 'appId'; + $appId->fieldText = 'com.example.demogame'; + $appId->type = 'TEXT'; + + $appStore = new TemplateElementField(); + $appStore->name = 'appStore'; + $appStore->fieldText = '2'; + $appStore->type = 'ENUM'; + + $adData = new TemplateElement(); + $adData->uniqueName = 'adData'; + $adData->fields = + array($headline, $description1, $description2, $appId, $appStore); + + $clickToDownloadAppAd->templateElements = array($adData); + + // Create the adgroupad. + $clickToDownloadAppAdGroupAd = new AdGroupAd(); + $clickToDownloadAppAdGroupAd->adGroupId = $adGroupId; + $clickToDownloadAppAdGroupAd->ad = $clickToDownloadAppAd; + + // Optional: Set the status. + $clickToDownloadAppAdGroupAd->status = 'PAUSED'; + + // Create the operation. + $operation = new AdGroupAdOperation(); + $operation->operator = 'ADD'; + $operation->operand = $clickToDownloadAppAdGroupAd; + + $operations = array($operation); + + // Create the ads. + $result = $adGroupAdService->mutate($operations); + + foreach ($result->value as $adGroupAd) { + printf('New click-to-download ad with ID = %d and URL = "%s" ' . + "was created.\n", $adGroupAd->ad->id, $adGroupAd->ad->url); + } +} + +// 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. + AddClickToDownloadAd($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/AddSitelinks.php b/examples/AdWords/v201309/AdvancedOperations/AddSitelinks.php new file mode 100755 index 000000000..69c0888d8 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/AddSitelinks.php @@ -0,0 +1,337 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function AddSitelinksExample(AdWordsUser $user, $campaignId) { + $sitelinksData = CreateSiteLinksFeed($user); + $sitelinksData = CreateSiteLinksFeedItems($user, $sitelinksData); + CreateSiteLinksFeedMapping($user, $sitelinksData); + CreateSiteLinksCampaignFeed($user, $sitelinksData, $campaignId); +} + +/** + * Creates the feed that holds the sitelinks data. + * @param AdWordsUser $user the user to run the example with + */ +function CreateSiteLinksFeed(AdWordsUser $user) { + // Map that holds IDs associated to the feeds metadata. + $sitelinksData = array(); + + // Get the FeedService, which loads the required classes. + $feedService = $user->GetService('FeedService', ADWORDS_VERSION); + + // Create attributes. + $textAttribute = new FeedAttribute(); + $textAttribute->type = 'STRING'; + $textAttribute->name = 'Link Text'; + $urlAttribute = new FeedAttribute(); + $urlAttribute->type = 'URL'; + $urlAttribute->name = 'Link URL'; + $line1Attribute = new FeedAttribute(); + $line1Attribute->type = 'STRING'; + $line1Attribute->name = 'Line 1 Description'; + $line2Attribute = new FeedAttribute(); + $line2Attribute->type = 'STRING'; + $line2Attribute->name = 'Line 2 Description'; + + // Create the feed. + $sitelinksFeed = new Feed(); + $sitelinksFeed->name = 'Feed For Site Links'; + $sitelinksFeed->attributes = array($textAttribute, $urlAttribute, + $line1Attribute, $line2Attribute); + $sitelinksFeed->origin = 'USER'; + + // Create operation. + $operation = new FeedOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sitelinksFeed; + + $operations = array($operation); + + // Add the feed. + $result = $feedService->mutate($operations); + + $savedFeed = $result->value[0]; + $sitelinksData['sitelinksFeedId'] = $savedFeed->id; + $savedAttributes = $savedFeed->attributes; + $sitelinksData['linkTextFeedAttributeId'] = $savedAttributes[0]->id; + $sitelinksData['linkUrlFeedAttributeId'] = $savedAttributes[1]->id; + $sitelinksData['line1FeedAttribute'] = $savedAttributes[2]->id; + $sitelinksData['line2FeedAttribute'] = $savedAttributes[3]->id; + + printf('Feed with name "%s" and ID %d with linkTextAttributeId %d' + . ", linkUrlAttributeId %d, line1Attribute %d and line2Attribute %d " + . "were created.\n", + $savedFeed->name, + $savedFeed->id, + $savedAttributes[0]->id, + $savedAttributes[1]->id, + $savedAttributes[2]->id, + $savedAttributes[3]->id); + + return $sitelinksData; +} + +/** + * Adds sitelinks items to the feed. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + */ +function CreateSiteLinksFeedItems(AdWordsUser $user, $sitelinksData) { + // Get the FeedItemService, which loads the required classes. + $feedItemService = $user->GetService('FeedItemService', ADWORDS_VERSION); + + // Create operations to add FeedItems. + $home = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Home', + 'http://www.example.com', 'Home line 1', 'Home line 2'); + $stores = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Stores', + 'http://www.example.com/stores', 'Stores line 1', 'Stores line 2'); + $onSale = NewSiteLinkFeedItemAddOperation($sitelinksData, 'On Sale', + 'http://www.example.com/sale', 'On Sale line 1', 'On Sale line 2'); + $support = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Support', + 'http://www.example.com/support', 'Support line 1', 'Support line 2'); + $products = NewSiteLinkFeedItemAddOperation($sitelinksData, 'Products', + 'http://www.example.com/products', 'Products line 1', 'Products line 2'); + $aboutUs = NewSiteLinkFeedItemAddOperation($sitelinksData, 'About Us', + 'http://www.example.com/about', 'About Us line 1', 'About Us line 2'); + + $operations = array($home, $stores, $onSale, $support, $products, $aboutUs); + + $result = $feedItemService->mutate($operations); + $sitelinksData['siteLinkFeedItemIds'] = array(); + + foreach ($result->value as $feedItem) { + printf("FeedItem with feedItemId %d was added.\n", $feedItem->feedItemId); + $sitelinksData['siteLinkFeedItemIds'][] = $feedItem->feedItemId; + } + + return $sitelinksData; +} + +// See the Placeholder reference page for a list of all the placeholder types and fields. +// https://developers.google.com/adwords/api/docs/appendix/placeholders.html +define('PLACEHOLDER_SITELINKS', 1); +define('PLACEHOLDER_FIELD_SITELINK_LINK_TEXT', 1); +define('PLACEHOLDER_FIELD_SITELINK_URL', 2); +define('PLACEHOLDER_FIELD_LINE_1_TEXT', 3); +define('PLACEHOLDER_FIELD_LINE_2_TEXT', 4); + +/** + * Maps the feed attributes to the sitelink placeholders. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + */ +function CreateSiteLinksFeedMapping(AdWordsUser $user, $sitelinksData) { + // Get the FeedMappingService, which loads the required classes. + $feedMappingService = $user->GetService('FeedMappingService', + ADWORDS_VERSION); + + // Map the FeedAttributeIds to the fieldId constants. + $linkTextFieldMapping = new AttributeFieldMapping(); + $linkTextFieldMapping->feedAttributeId = + $sitelinksData['linkTextFeedAttributeId']; + $linkTextFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_TEXT; + $linkUrlFieldMapping = new AttributeFieldMapping(); + $linkUrlFieldMapping->feedAttributeId = + $sitelinksData['linkUrlFeedAttributeId']; + $linkUrlFieldMapping->fieldId = PLACEHOLDER_FIELD_SITELINK_URL; + $line1FieldMapping = new AttributeFieldMapping(); + $line1FieldMapping->feedAttributeId = $sitelinksData['line1FeedAttribute']; + $line1FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_1_TEXT; + $line2FieldMapping = new AttributeFieldMapping(); + $line2FieldMapping->feedAttributeId = $sitelinksData['line2FeedAttribute']; + $line2FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_2_TEXT; + + // Create the FieldMapping and operation. + $feedMapping = new FeedMapping(); + $feedMapping->placeholderType = PLACEHOLDER_SITELINKS; + $feedMapping->feedId = $sitelinksData['sitelinksFeedId']; + $feedMapping->attributeFieldMappings = + array($linkTextFieldMapping, $linkUrlFieldMapping, $line1FieldMapping, + $line2FieldMapping); + $operation = new FeedMappingOperation(); + $operation->operand = $feedMapping; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Save the field mapping. + $result = $feedMappingService->mutate($operations); + foreach ($result->value as $feedMapping) { + printf('Feed mapping with ID %d and placeholderType %d was saved for ' . + "feed with ID %d.\n", + $feedMapping->feedMappingId, + $feedMapping->placeholderType, + $feedMapping->feedId); + } +} + +/** + * Creates the CampaignFeed associated to the feed data already populated. + * @param AdWordsUser $user the user to run the example with + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function CreateSiteLinksCampaignFeed(AdWordsUser $user, $sitelinksData, + $campaignId) { + // Get the CampaignFeedService, which loads the required classes. + $campaignFeedService = $user->GetService('CampaignFeedService', + ADWORDS_VERSION); + + $feedFunctionRequestContextOperand = new RequestContextOperand(); + $feedFunctionRequestContextOperand->contextType = 'FEED_ITEM_ID'; + + $feedItemFunction = new FeedFunction(); + $feedItemFunction->lhsOperand = array($feedFunctionRequestContextOperand); + $feedItemFunction->operator = 'IN'; + + $operands = array(); + foreach ($sitelinksData['siteLinkFeedItemIds'] as $feedItemId) { + $constantOperand = new ConstantOperand(); + $constantOperand->longValue = $feedItemId; + $constantOperand->type = 'LONG'; + $operands[] = $constantOperand; + } + $feedItemFunction->rhsOperand = $operands; + + # Optional: to target to a platform, define a function and 'AND' it with the + # feed item ID link: + $platformRequestContextOperand = new RequestContextOperand(); + $platformRequestContextOperand->contextType = 'DEVICE_PLATFORM'; + + $platformOperand = new ConstantOperand(); + $platformOperand->type = 'STRING'; + $platformOperand->stringValue = 'Mobile'; + + $platformFunction = new FeedFunction(); + $platformFunction->operator = 'EQUALS'; + $platformFunction->lhsOperand = array($platformRequestContextOperand); + $platformFunction->rhsOperand = array($platformOperand); + + $feedItemFunctionOperand = new FunctionOperand(); + $feedItemFunctionOperand->value = $feedItemFunction; + + $platformFunctionOperand = new FunctionOperand(); + $platformFunctionOperand->value = $platformFunction; + + $combinedFunction = new FeedFunction(); + $combinedFunction->operator = 'AND'; + $combinedFunction->lhsOperand = array($feedItemFunctionOperand, + $platformFunctionOperand); + + $campaignFeed = new CampaignFeed(); + $campaignFeed->feedId = $sitelinksData['sitelinksFeedId']; + $campaignFeed->campaignId = $campaignId; + $campaignFeed->matchingFunction = $combinedFunction; + // Specifying placeholder types on the CampaignFeed allows the same feed + // to be used for different placeholders in different Campaigns. + $campaignFeed->placeholderTypes = array(PLACEHOLDER_SITELINKS); + + $operation = new CampaignFeedOperation(); + $operation->operand = $campaignFeed; + $operation->operator = 'ADD'; + + $operations = array($operation); + + $result = $campaignFeedService->mutate($operations); + foreach ($result->value as $savedCampaignFeed) { + printf("Campaign with ID %d was associated with feed with ID %d.\n", + $savedCampaignFeed->campaignId, + $savedCampaignFeed->feedId); + } +} + +/** + * Creates a SitelinkFeedItem and wraps it in an ADD operation. + * @param map $sitelinksData IDs associated to created sitelinks feed metadata + * @param string $text text of the sitelink + * @param string $url URL of the sitelink + */ +function NewSiteLinkFeedItemAddOperation($sitelinksData, $text, $url, $line1, + $line2) { + // Create the FeedItemAttributeValues for our text values. + $linkTextAttributeValue = new FeedItemAttributeValue(); + $linkTextAttributeValue->feedAttributeId = + $sitelinksData['linkTextFeedAttributeId']; + $linkTextAttributeValue->stringValue = $text; + $linkUrlAttributeValue = new FeedItemAttributeValue(); + $linkUrlAttributeValue->feedAttributeId = + $sitelinksData['linkUrlFeedAttributeId']; + $linkUrlAttributeValue->stringValue = $url; + $line1AttributeValue = new FeedItemAttributeValue(); + $line1AttributeValue->feedAttributeId = $sitelinksData['line1FeedAttribute']; + $line1AttributeValue->stringValue = $line1; + $line2AttributeValue = new FeedItemAttributeValue(); + $line2AttributeValue->feedAttributeId = $sitelinksData['line2FeedAttribute']; + $line2AttributeValue->stringValue = $line2; + + + // Create the feed item and operation. + $item = new FeedItem(); + $item->feedId = $sitelinksData['sitelinksFeedId']; + $item->attributeValues = + array($linkTextAttributeValue, $linkUrlAttributeValue, + $line1AttributeValue, $line2AttributeValue); + $operation = new FeedItemOperation(); + $operation->operand = $item; + $operation->operator = 'ADD'; + return $operation; +} + +// 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. + AddSitelinksExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/CreateAndAttachSharedKeywordSet.php b/examples/AdWords/v201309/AdvancedOperations/CreateAndAttachSharedKeywordSet.php new file mode 100755 index 000000000..64fb957ef --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/CreateAndAttachSharedKeywordSet.php @@ -0,0 +1,153 @@ +GetService('SharedSetService'); + + $set = new SharedSet(); + $set->name = sprintf( + 'API Negative keyword list #%s', + uniqid() + ); + $set->type = 'NEGATIVE_KEYWORDS'; + + $operation = new SharedSetOperation(); + $operation->operator = 'ADD'; + $operation->operand = $set; + + $operations = array($operation); + + $result = $sharedSetService->mutate($operations); + + // Get the shared set ID and print it. + $set = $result->value[0]; + $sharedSetId = $set->sharedSetId; + printf( + "SharedSet '%s' has been created with ID '%s'\n", + $set->name, + $sharedSetId + ); + + // Add negative Keywords to SharedSet. + $sharedCriterionService = $user->GetService('SharedCriterionService'); + + $operations = array(); + foreach ($keywordTexts as $keywordText) { + $keyword = new Keyword(); + $keyword->text = $keywordText; + $keyword->matchType = 'BROAD'; + + $sharedCriterion = new SharedCriterion(); + $sharedCriterion->criterion = $keyword; + $sharedCriterion->negative = true; + $sharedCriterion->sharedSetId = $sharedSetId; + + $operation = new SharedCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sharedCriterion; + + + $operations[] = $operation; + } + + $result = $sharedCriterionService->mutate($operations); + + // Print the shared negative keywords. + foreach ($result->value as $sharedCriterion) { + printf( + "Shared negative Keyword '%s' created, with ID '%s'\n", + $sharedCriterion->criterion->text, + $sharedCriterion->criterion->id + ); + } + + // Attach the articles to the campaign. + $campaignSharedSetService = $user->GetService('CampaignSharedSetService'); + + $campaignSet = new CampaignSharedSet(); + $campaignSet->campaignId = $campaignId; + $campaignSet->sharedSetId = $sharedSetId; + + $operator = new CampaignSharedSetOperation(); + $operator->operator = 'ADD'; + $operator->operand = $campaignSet; + + $operations = array($operator); + + $result = $campaignSharedSetService->mutate($operations); + + // Print the CampaignSharedSet and its relating IDs. + $campaignSet = $result->value[0]; + printf( + "Created CampaignSharedSet with campaign ID '%s' and shared set ID '%s'\n", + $campaignSet->campaignId, + $campaignSet->sharedSetId + ); +} + +// 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. + CreateAndAttachSharedKeywordSetExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php b/examples/AdWords/v201309/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php new file mode 100755 index 000000000..54b2aa549 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php @@ -0,0 +1,208 @@ +GetService("CampaignSharedSetService"); + + // Create two predicates: + // Filter by campaign ID. + $campaignPredicate = new Predicate(); + $campaignPredicate->field = "CampaignId"; + $campaignPredicate->operator = "EQUALS"; + $campaignPredicate->values = array($campaignId); + + // Filter by shared set type. + $typePredicate = new Predicate(); + $typePredicate->field = "SharedSetType"; + $typePredicate->operator = "IN"; + $typePredicate->values = array("NEGATIVE_KEYWORDS", "NEGATIVE_PLACEMENTS"); + + $selector = new Selector(); + $selector->fields = array("SharedSetId", "CampaignId", "SharedSetName", + "SharedSetType", "Status"); + $selector->predicates = array($campaignPredicate, $typePredicate); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + $sharedSetIds = array(); + + do { + // Make the get request. + $page = $campaignSharedSetService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaignSharedSet) { + printf("A Campaign Shared Set with the shared set ID '%s', campaign " . + "ID '%s', name '%s', type '%s' and status '%s' was found.\n", + $campaignSharedSet->sharedSetId, $campaignSharedSet->campaignId, + $campaignSharedSet->sharedSetName, + $campaignSharedSet->sharedSetType, $campaignSharedSet->status); + + // Add the shared set ID to the response array. + $sharedSetIds[] = $campaignSharedSet->sharedSetId; + } + } + + // Configure the next page. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + if (empty($sharedSetIds)) { + throw new RuntimeException(sprintf( + "No shared sets for campaign ID \"%s\"", $campaignId)); + } + + return $sharedSetIds; +} + +function FindCriteriaForSharedSets(AdWordsUser $user, $sharedSetIds) { + $sharedCriterionService = $user->GetService("SharedCriterionService"); + + $predicate = new Predicate(); + $predicate->field = "SharedSetId"; + $predicate->operator = "IN"; + $predicate->values = $sharedSetIds; + + $selector = new Selector(); + $selector->fields = array("SharedSetId", "Id", "KeywordText", + "KeywordMatchType", "PlacementUrl"); + $selector->predicates = array($predicate); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + $sharedCriteriaPerSetId = array(); + do { + $page = $sharedCriterionService->get($selector); + + if (isset($page->entries)) { + foreach ($page->entries as $sharedCriterion) { + $sharedSetId = $sharedCriterion->sharedSetId; + printf("A SharedCriterion with the CriterionId \"%s\" was found " . + "for SharedSetId \"%s\".\n", + $sharedCriterion->criterion->id, $sharedSetId); + + // Add an array of shared set IDs mapping to a list of criterionIds + if (!isset($sharedCriteriaPerSetId[$sharedSetId])) { + $sharedCriteriaPerSetId[$sharedSetId] = array(); + } + + $sharedCriteriaPerSetId[$sharedSetId][] = + $sharedCriterion->criterion->id; + } + } + + // Configure the next page. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); + + if (empty($sharedCriteriaPerSetId)) { + throw new RuntimeException(sprintf( + "No shared criteria for sets: \"%s\"", + implode("\", \"", $sharedSetIds))); + } + + return $sharedCriteriaPerSetId; +} + +function RemoveCriteriaFromSharedSet(AdWordsUser $user, + $sharedSetsToCriterions) { + $sharedCriterionService = $user->GetService("SharedCriterionService"); + + $operations = array(); + foreach ($sharedSetsToCriterions as $sharedSetId => $criterionIds) { + foreach ($criterionIds as $criterionId) { + + $criterion = new Criterion(); + $criterion->id = $criterionId; + + $sharedCriterion = new SharedCriterion(); + $sharedCriterion->criterion = $criterion; + $sharedCriterion->sharedSetId = $sharedSetId; + + $operation = new SharedCriterionOperation(); + $operation->operator = "REMOVE"; + $operation->operand = $sharedCriterion; + $operations[] = $operation; + } + } + + $result = $sharedCriterionService->mutate($operations); + + // On nothing removed, raise an exception. + if (empty($result->value)) { + throw new RuntimeException("Unable to remove SharedCriterion."); + } + + foreach ($result->value as $sharedCriterion) { + printf("Deleted SharedCriterion with shared set ID \"%s\" and " . + "criterion ID \"%s\"\n", + $sharedCriterion->sharedSetId, + $sharedCriterion->criterion->id); + } +} + + +// 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. + FindAndRemoveCriteriaFromSharedSetExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/GetAdGroupBidModifiers.php b/examples/AdWords/v201309/AdvancedOperations/GetAdGroupBidModifiers.php new file mode 100755 index 000000000..5dbaab987 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/GetAdGroupBidModifiers.php @@ -0,0 +1,96 @@ +GetService('AdGroupBidModifierService', + ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('CampaignId', 'AdGroupId', 'BidModifier', 'Id'); + $selector->ordering[] = new OrderBy('CampaignId', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $bidModifierService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $modifier) { + $value = 'none'; + if (!empty($modifier->bidModifier)) { + $value = $modifier->bidModifier; + } + printf("Campaign ID %d, AdGroup ID %d, Criterion ID %d has ad group " . + "level modifier: %s\n", + $modifier->campaignId, + $modifier->adGroupId, + $modifier->criterion->id, + $value + ); + } + } else { + print "No bid modifiers 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. + GetAdGroupBidModifiersExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/UpdateSitelinks.php b/examples/AdWords/v201309/AdvancedOperations/UpdateSitelinks.php new file mode 100755 index 000000000..8e68e5878 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/UpdateSitelinks.php @@ -0,0 +1,247 @@ + + * + Replaces the Feed's existing FeedMapping with one that contains the new + * set of FeedItemAttributes + * + * The end result of this is that any campaign or ad group whose CampaignFeed + * or AdGroupFeed points to the Feed's ID will now serve line 1 and line 2 + * descriptions in its sitelinks. + * + * Tags: FeedItemService.mutate, FeedMappingService.mutate, FeedService.mutate + * Tags: FeedItemService.get, FeedMappingService.get, FeedService.get + * Restriction: adwords-only + * + * Copyright 2013, Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @category WebServices + * @copyright 2013, Google Inc. All Rights Reserved. + * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, + * Version 2.0 + * @author Paul Matthews + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +$feedId = (int) 'INSERT_FEED_ID'; + +$feedItemDescriptions = array( + 'INSERT_FEED_ITEM_A_ID_HERE' => array( + 'INSERT_FEED_ITEM_A_LINE1_DESC_HERE', + 'INSERT_FEED_ITEM_A_LINE2_DESC_HERE', + ), + 'INSERT_FEED_ITEM_B_ID_HERE' => array( + 'INSERT_FEED_ITEM_B_LINE1_DESC_HERE', + 'INSERT_FEED_ITEM_B_LINE2_DESC_HERE', + ), +); + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $feedId is the id of the feed to manipulate + * @param array $feedItemDescriptions the 2d array of feedItemId to values + */ +function UpdateSitelinksExample(AdWordsUser $user, $feedId, + $feedItemDescriptions) { + $feedService = $user->GetService('FeedService', ADWORDS_VERSION); + $feedItemService = $user->GetService('FeedItemService', ADWORDS_VERSION); + $feedMappingService = $user->GetService('FeedMappingService', + ADWORDS_VERSION); + + $selector = new Selector(); + $selector->fields = array('Id', 'Attributes'); + $selector->predicates = array(); + $selector->predicates[0] = new Predicate('Id', 'EQUALS', array($feedId)); + + $response = $feedService->get($selector); + $feed = $response->entries[0]; + + // Add new attributes to the feed. + $newAttributes = AddLine1AndLine2Attributes($feedService, $feed); + $line1Attribute = $newAttributes[0]; + $line2Attribute = $newAttributes[1]; + + // Update feed items. + UpdateFeedItems($feedItemService, $feedId, $line1Attribute, $line2Attribute, + $feedItemDescriptions); + + // Update feed mappings. + UpdateFeedMappings($feedMappingService, $feedId, $line1Attribute, + $line2Attribute, $feedItemDescriptions); +} + +/* + * Adds a FeedAttribute for line 1 and line 2 descriptions to the Feed. + * + * @param AdWordsSoapClient $feedService the feed service + * @param Feed $feed the feed to attach the attributes to + * @return array containing the created feed attributes + */ +function AddLine1AndLine2Attributes(AdWordsSoapClient $feedService, + Feed $feed) { + // This will be the starting index for the new attributes created below. + $nextAttributeIndex = count($feed->attributes); + + $line1Attribute = new FeedAttribute(); + $line1Attribute->type = 'STRING'; + $line1Attribute->name = 'Line 1 Description'; + $line2Attribute = new FeedAttribute(); + $line2Attribute->type = 'STRING'; + $line2Attribute->name = 'Line 2 Description'; + + // When adding new attributes DO NOT send existing attributes + // EVERY included attribute is to be added. + $feed->attributes = array($line1Attribute, $line2Attribute); + + $result = $feedService->mutate(array(new FeedOperation($feed, 'SET'))); + + // Get the new attributes from the mutated feed. + $mutatedFeed = $result->value[0]; + return array( + $mutatedFeed->attributes[$nextAttributeIndex], + $mutatedFeed->attributes[$nextAttributeIndex + 1], + ); +} + + +/** + * Updates FeedItems for the Feed, setting line 1 description and line 2 + * description from the contents of the feedItemDescriptions map. + * + * @param AdWordsSoapClient $feedService the feed service + * @param string $feedId the feedId to attach the items to. + * @param FeedAttribute $line1Attribute the FeedAttribute for line 1 description + * @param FeedAttribute $line2Attribute the FeedAttribute for line 2 description + * @param array $feedItemDescriptions the 2d array of feedItemId to values + */ +function UpdateFeedItems(AdWordsSoapClient $feedItemService, $feedId, + $line1Attribute, $line2Attribute, $feedItemDescriptions) { + $selector = new Selector(); + $selector->fields = array('FeedId', 'FeedItemId', 'AttributeValues'); + $selector->predicates = array(); + $selector->predicates[0] = new Predicate('FeedId', 'EQUALS', array($feedId)); + $selector->predicates[1] = new Predicate('FeedItemId', 'IN', + array_keys($feedItemDescriptions)); + + $feedItems = $feedItemService->get($selector)->entries; + + $itemOperations = array(); + foreach ($feedItems as $feedItem) { + $feedItemDescription = $feedItemDescriptions[$feedItem->feedItemId]; + + // Construct a FeedItemOperation that will set the line 1 and line 2 + // attribute values for this FeedItem. + $itemAttributeValues = array(); + $itemAttributeValues[0] = new FeedItemAttributeValue(); + $itemAttributeValues[0]->feedAttributeId = $line1Attribute->id; + $itemAttributeValues[0]->stringValue = $feedItemDescription[0]; + + $itemAttributeValues[1] = new FeedItemAttributeValue(); + $itemAttributeValues[1]->feedAttributeId = $line2Attribute->id; + $itemAttributeValues[1]->stringValue = $feedItemDescription[1]; + + $feedItem->attributeValues = $itemAttributeValues; + + $itemOperations[] = new FeedItemOperation($feedItem, 'SET'); + } + + $response = $feedItemService->mutate($itemOperations); + + printf("Updated %d items.\n", count($response->value)); +} + +/* + * See the Placeholder reference page for a list of all the placeholder types + * and fields: + * https://developers.google.com/adwords/api/docs/appendix/placeholders + */ +define('PLACEHOLDER_FIELD_LINE_1_TEXT', 3); +define('PLACEHOLDER_FIELD_LINE_2_TEXT', 4); + +/** + * Updates the FeedMapping for the Feed to include AttributeFieldMappings for + * the new line 1 and line 2 FeedAttributes. + * + * @param AdWordsSoapClient $feedMappingService the feed mapping service + * @param string $feedId the feedId to attach the items to. + * @param FeedAttribute $line1Attribute the FeedAttribute for line 1 description + * @param FeedAttribute $line2Attribute the FeedAttribute for line 2 description + */ +function UpdateFeedMappings(AdWordsSoapClient $feedMappingService, $feedId, + $line1Attribute, $line2Attribute) { + $selector = new Selector(); + $selector->fields = array('FeedId', 'FeedMappingId', 'PlaceholderType', + 'AttributeFieldMappings'); + $selector->predicates = array(); + $selector->predicates[0] = new Predicate('FeedId', 'EQUALS', array($feedId)); + $selector->predicates[1] = new Predicate('Status', 'EQUALS', array('ACTIVE')); + + $feedMapping = $feedMappingService->get($selector)->entries[0]; + + // Remove the existing mapping (FeedMapping is immutable). + $feedMapping = $feedMappingService->mutate(array( + new FeedMappingOperation($feedMapping, 'REMOVE')))->value[0]; + + // Create line 1 and line 2 attribute field mappings. + $line1FieldMapping = new AttributeFieldMapping(); + $line1FieldMapping->feedAttributeId = $line1Attribute->id; + $line1FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_1_TEXT; + + $line2FieldMapping = new AttributeFieldMapping(); + $line2FieldMapping->feedAttributeId = $line2Attribute->id; + $line2FieldMapping->fieldId = PLACEHOLDER_FIELD_LINE_2_TEXT; + + // Combine the existing field mappings with the new mappings. + $feedMapping->attributeFieldMappings = array_merge( + $feedMapping->attributeFieldMappings, + array($line1FieldMapping, $line2FieldMapping)); + + $response = $feedMappingService->mutate(array( + new FeedMappingOperation($feedMapping, 'ADD'))); + $mutatedMapping = $response->value[0]; + + printf("Updated field mappings for feedId %d and feedMappingId %d to:\n", + $mutatedMapping->feedId, $mutatedMapping->feedMappingId); + foreach ($mutatedMapping->attributeFieldMappings as $fieldMapping) { + printf(" feedAttributeId %s --> fieldId %s\n", + $fieldMapping->feedAttributeId, $fieldMapping->fieldId); + } +} + +// 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. + UpdateSitelinksExample($user, $feedId, $feedItemDescriptions); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/UploadOfflineConversions.php b/examples/AdWords/v201309/AdvancedOperations/UploadOfflineConversions.php new file mode 100755 index 000000000..1780563ee --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/UploadOfflineConversions.php @@ -0,0 +1,116 @@ + + */ + +// Include the initialization file. +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$conversionName = 'INSERT_CONVERSION_NAME_HERE'; +$gClId = 'INSERT_GOOGLE_CLICK_ID_HERE'; +$conversionTime = 'INSERT_CONVERSION_TIME_HERE'; +$conversionValue = 'INSERT_CONVERSION_VALUE_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the sitelinks to + */ +function UploadOfflineConversionsExample(AdWordsUser $user, $conversionName, + $gClId, $conversionTime, $conversionValue) { + // Get the services, which loads the required classes. + $conversionTrackerService = $user->GetService('ConversionTrackerService', + ADWORDS_VERSION); + $offlineConversionService = $user->GetService('OfflineConversionFeedService', + ADWORDS_VERSION); + + // Create an upload conversion. Once created, this entry will be visible + // under Tools and Analysis->Conversion and will have Source = "Import". + $uploadConversion = new UploadConversion(); + $uploadConversion->category = 'PAGE_VIEW'; + $uploadConversion->name = $conversionName; + $uploadConversion->viewthroughLookbackWindow = 30; + $uploadConversion->ctcLookbackWindow = 90; + + $uploadConversionOperation = new ConversionTrackerOperation(); + $uploadConversionOperation->operator = 'ADD'; + $uploadConversionOperation->operand = $uploadConversion; + + $uploadConversionOperations = array($uploadConversionOperation); + $result = $conversionTrackerService->mutate($uploadConversionOperations); + + $uploadConversion = $result->value[0]; + printf("New upload conversion type with name = '%s' and ID = %d was " . + "created.\n", $uploadConversion->name, $uploadConversion->id); + + // Associate offline conversions with the upload conversion we created. + $feed = new OfflineConversionFeed(); + $feed->conversionName = $conversionName; + $feed->conversionTime = $conversionTime; + $feed->conversionValue = $conversionValue; + $feed->googleClickId = $gClId; + + $offlineConversionOperation = new OfflineConversionFeedOperation(); + $offlineConversionOperation->operator = 'ADD'; + $offlineConversionOperation->operand = $feed; + + $offlineConversionOperations = array($offlineConversionOperation); + $result = $offlineConversionService->mutate($offlineConversionOperations); + + $feed = $result->value[0]; + printf('Uploaded offline conversion value of %d for Google Click ID = ' . + "'%s' to '%s'.", $feed->conversionValue, $feed->googleClickId, + $feed->conversionName); +} + +// 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. + UploadOfflineConversionsExample($user, $conversionName, $gClId, + $conversionTime, $conversionValue); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/AdvancedOperations/UseSharedBiddingStrategy.php b/examples/AdWords/v201309/AdvancedOperations/UseSharedBiddingStrategy.php new file mode 100755 index 000000000..266261f74 --- /dev/null +++ b/examples/AdWords/v201309/AdvancedOperations/UseSharedBiddingStrategy.php @@ -0,0 +1,191 @@ +budgetId; + } + CreateCampaignWithBiddingStrategy($user, $biddingStrategy->id, + $sharedBudgetId); +} + +/** + * Creates the bidding strategy object. + * @param AdWordsUser $user the user to run the example with + */ +function CreateBiddingStrategy(AdWordsUser $user) { + // Get the BiddingStrategyService, which loads the required classes. + $biddingStrategyService = + $user->GetService('BiddingStrategyService', ADWORDS_VERSION); + + // Create a shared bidding strategy. + $sharedBiddingStrategy = new SharedBiddingStrategy(); + $sharedBiddingStrategy->name = "Maximize Clicks " . uniqid(); + + $biddingScheme = new TargetSpendBiddingScheme(); + // Optionally set additional bidding scheme parameters. + $biddingScheme->bidCeiling = new Money('2000000'); + $biddingScheme->spendTarget = new Money('20000000'); + + $sharedBiddingStrategy->biddingScheme = $biddingScheme; + + // Create operation. + $operation = new BiddingStrategyOperation(); + $operation->operator = 'ADD'; + $operation->operand = $sharedBiddingStrategy; + + $result = $biddingStrategyService->mutate(array($operation)); + + $newBiddingStrategy = $result->value[0]; + + printf("Shared bidding strategy with name '%s' and ID %d of type %s was " + . "created.\n", $newBiddingStrategy->name, $newBiddingStrategy->id, + $newBiddingStrategy->biddingScheme->BiddingSchemeType); + + return $newBiddingStrategy; +} + +/** + * Creates an explicit budget to be used only to create the Campaign. + * @param AdWordsUser $user the user to run the example with + */ +function CreateSharedBudget($user) { + // Get the BudgetService, which loads the required classes. + $budgetService = $user->GetService('BudgetService', ADWORDS_VERSION); + + // Create a shared budget + $budget = new Budget(); + $budget->name = "Shared Interplanetary Budget #" . uniqid(); + $budget->period = 'DAILY'; + $budget->amount = new Money(50000000); + $budget->deliveryMethod = 'STANDARD'; + $budget->isExplicitlyShared = true; + + $operations = array(); + + // Create operation. + $operation = new BudgetOperation(); + $operation->operand = $budget; + $operation->operator = 'ADD'; + $operations[] = $operation; + + // Make the mutate request. + $result = $budgetService->mutate($operations); + return $result->value[0]; +} + +/** + * Create a Campaign with a Shared Bidding Strategy. + * @param AdWordsUser $user the user to run the example with + * @param string $biddingStrategyId the bidding strategy id to use + * @param string $sharedBudgetId the shared budget id to use + */ +function CreateCampaignWithBiddingStrategy(AdWordsUser $user, + $biddingStrategyId, $sharedBudgetId) { + // Get the CampaignService, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign. + $campaign = new Campaign(); + $campaign->name = 'Interplanetary Cruise #' . uniqid(); + + // Set the budget. + $campaign->budget = new Budget(); + $campaign->budget->budgetId = $sharedBudgetId; + + // Set bidding strategy (required). + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->biddingStrategyId = $biddingStrategyId; + + $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set keyword matching setting (required). + $keywordMatchSetting = new KeywordMatchSetting(); + $keywordMatchSetting->optIn = true; + $campaign->settings[] = $keywordMatchSetting; + + // Set network targeting (recommended). + $networkSetting = new NetworkSetting(); + $networkSetting->targetGoogleSearch = true; + $networkSetting->targetSearchNetwork = true; + $networkSetting->targetContentNetwork = true; + $campaign->networkSetting = $networkSetting; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'ADD'; + + $result = $campaignService->mutate(array($operation)); + + $newCampaign = $result->value[0]; + + printf("Campaign with name '%s', ID %d and bidding scheme ID %d was " + . "created.\n", $newCampaign->name, $newCampaign->id, + $newCampaign->biddingStrategyConfiguration->biddingStrategyId); + + return $newCampaign; +} + +// 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. + UseSharedBiddingStrategyExample($user, $budgetId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddAdGroupDemographicCriteria.php b/examples/AdWords/v201309/BasicOperations/AddAdGroupDemographicCriteria.php new file mode 100755 index 000000000..58653676b --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddAdGroupDemographicCriteria.php @@ -0,0 +1,110 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_AD_GROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddAdGroupDemographicCriteriaExample(AdWordsUser $user, $adGroupId) { + // Get the AdGroupCriterionService, which loads the required classes. + $adGroupCriterionService = $user->GetService('AdGroupCriterionService', + ADWORDS_VERSION); + + // Create biddable ad group criterion for gender + $genderTarget = new Gender(); + // Criterion Id for male. The IDs can be found here + // https://developers.google.com/adwords/api/docs/appendix/genders + $genderTarget->id = 10; + + $genderBiddableAdGroupCriterion = new BiddableAdGroupCriterion(); + $genderBiddableAdGroupCriterion->adGroupId = $adGroupId; + $genderBiddableAdGroupCriterion->criterion = $genderTarget; + + // Create negative ad group criterion for age range + $ageRangeNegative = new AgeRange(); + // Criterion Id for age 18 to 24. The IDs can be found here + // https://developers.google.com/adwords/api/docs/appendix/ages + + $ageRangeNegative->id = 503001; + $ageRangeNegativeAdGroupCriterion = new NegativeAdGroupCriterion(); + $ageRangeNegativeAdGroupCriterion->adGroupId = $adGroupId; + $ageRangeNegativeAdGroupCriterion->criterion = $ageRangeNegative; + + $operations = array(); + + // Create operations. + $genderBiddableAdGroupCriterionOperation = new AdGroupCriterionOperation(); + $genderBiddableAdGroupCriterionOperation->operand = + $genderBiddableAdGroupCriterion; + $genderBiddableAdGroupCriterionOperation->operator = 'ADD'; + $operations[] = $genderBiddableAdGroupCriterionOperation; + + $ageRangeNegativeAdGroupCriterionOperation = new AdGroupCriterionOperation(); + $ageRangeNegativeAdGroupCriterionOperation->operand = + $ageRangeNegativeAdGroupCriterion; + $ageRangeNegativeAdGroupCriterionOperation->operator = 'ADD'; + $operations[] = $ageRangeNegativeAdGroupCriterionOperation; + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Ad group criterion with ad group ID '%s', criterion ID '%s' " . + "and type '%s' was added.\n", $adGroupCriterion->adGroupId, + $adGroupCriterion->criterion->id, + $adGroupCriterion->criterion->CriterionType); + } +} + +// 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. + AddAdGroupDemographicCriteriaExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddAdGroups.php b/examples/AdWords/v201309/BasicOperations/AddAdGroups.php new file mode 100755 index 000000000..888e0d2b5 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddAdGroups.php @@ -0,0 +1,111 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to add the ad group to + */ +function AddAdGroupsExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); + + $numAdGroups = 2; + $operations = array(); + for ($i = 0; $i < $numAdGroups; $i++) { + // Create ad group. + $adGroup = new AdGroup(); + $adGroup->campaignId = $campaignId; + $adGroup->name = 'Earth to Mars Cruise #' . uniqid(); + + // Set bids (required). + $bid = new CpcBid(); + $bid->bid = new Money(1000000); + $bid->contentBid = new Money(750000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set additional settings (optional). + $adGroup->status = 'ENABLED'; + + // Targetting restriction settings - these setting only affect serving + // for the Display Network. + $targetingSetting = new TargetingSetting(); + // Restricting to serve ads that match your ad group placements. + $targetingSetting->details[] = + new TargetingSettingDetail('PLACEMENT', TRUE); + // Using your ad group verticals only for bidding. + $targetingSetting->details[] = + new TargetingSettingDetail('VERTICAL', FALSE); + $adGroup->settings[] = $targetingSetting; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroups = $result->value; + foreach ($adGroups as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was added.\n", $adGroup->name, + $adGroup->id); + } +} + +// 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. + AddAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddCampaigns.php b/examples/AdWords/v201309/BasicOperations/AddCampaigns.php new file mode 100755 index 000000000..420639a20 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddCampaigns.php @@ -0,0 +1,151 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddCampaignsExample(AdWordsUser $user) { + // Get the BudgetService, which loads the required classes. + $budgetService = $user->GetService('BudgetService', ADWORDS_VERSION); + + // Create the shared budget (required). + $budget = new Budget(); + $budget->name = 'Interplanetary Cruise Budget #' . uniqid(); + $budget->period = 'DAILY'; + $budget->amount = new Money(50000000); + $budget->deliveryMethod = 'STANDARD'; + + $operations = array(); + + // Create operation. + $operation = new BudgetOperation(); + $operation->operand = $budget; + $operation->operator = 'ADD'; + $operations[] = $operation; + + // Make the mutate request. + $result = $budgetService->mutate($operations); + $budget = $result->value[0]; + + // Get the CampaignService, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + $numCampaigns = 2; + $operations = array(); + for ($i = 0; $i < $numCampaigns; $i++) { + // Create campaign. + $campaign = new Campaign(); + $campaign->name = 'Interplanetary Cruise #' . uniqid(); + + // Set shared budget (required). + $campaign->budget = new Budget(); + $campaign->budget->budgetId = $budget->budgetId; + + // Set bidding strategy (required). + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPC'; + + // You can optionally provide a bidding scheme in place of the type. + $biddingScheme = new ManualCpcBiddingScheme(); + $biddingScheme->enhancedCpcEnabled = FALSE; + $biddingStrategyConfiguration->biddingScheme = $biddingScheme; + + $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set keyword matching setting (required). + $keywordMatchSetting = new KeywordMatchSetting(); + $keywordMatchSetting->optIn = TRUE; + $campaign->settings[] = $keywordMatchSetting; + + // Set network targeting (recommended). + $networkSetting = new NetworkSetting(); + $networkSetting->targetGoogleSearch = TRUE; + $networkSetting->targetSearchNetwork = TRUE; + $networkSetting->targetContentNetwork = TRUE; + $campaign->networkSetting = $networkSetting; + + // Set additional settings (optional). + $campaign->status = 'PAUSED'; + $campaign->startDate = date('Ymd', strtotime('+1 day')); + $campaign->endDate = date('Ymd', strtotime('+1 month')); + $campaign->adServingOptimizationStatus = 'ROTATE'; + + // Set frequency cap (optional). + $frequencyCap = new FrequencyCap(); + $frequencyCap->impressions = 5; + $frequencyCap->timeUnit = 'DAY'; + $frequencyCap->level = 'ADGROUP'; + $campaign->frequencyCap = $frequencyCap; + + // Set advanced location targeting settings (optional). + $geoTargetTypeSetting = new GeoTargetTypeSetting(); + $geoTargetTypeSetting->positiveGeoTargetType = 'DONT_CARE'; + $geoTargetTypeSetting->negativeGeoTargetType = 'DONT_CARE'; + $campaign->settings[] = $geoTargetTypeSetting; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display results. + foreach ($result->value as $campaign) { + printf("Campaign with name '%s' and ID '%s' was added.\n", $campaign->name, + $campaign->id); + } +} + +// 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. + AddCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddKeywords.php b/examples/AdWords/v201309/BasicOperations/AddKeywords.php new file mode 100755 index 000000000..7bdf0f2bb --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddKeywords.php @@ -0,0 +1,110 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + $numKeywords = 5; + $operations = array(); + for ($i = 0; $i < $numKeywords; $i++) { + // Create keyword criterion. + $keyword = new Keyword(); + $keyword->text = 'mars cruise ' . uniqid(); + $keyword->matchType = 'BROAD'; + + // Create biddable ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + // Set additional settings (optional). + $adGroupCriterion->userStatus = 'PAUSED'; + $adGroupCriterion->destinationUrl = 'http://www.example.com/mars'; + + // Set bids (optional). + $bid = new CpcBid(); + $bid->bid = new Money(500000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroupCriterion->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + $adGroupCriteria[] = $adGroupCriterion; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Keyword with text '%s', match type '%s', and ID '%s' was added.\n", + $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } +} + +// 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. + AddKeywordsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/AddTextAds.php b/examples/AdWords/v201309/BasicOperations/AddTextAds.php new file mode 100755 index 000000000..c8b78cabb --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/AddTextAds.php @@ -0,0 +1,102 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + $numAds = 5; + $operations = array(); + for ($i = 0; $i < $numAds; $i++) { + // Create text ad. + $textAd = new TextAd(); + $textAd->headline = 'Cruise #' . uniqid(); + $textAd->description1 = 'Visit the Red Planet in style.'; + $textAd->description2 = 'Low-gravity fun for everyone!'; + $textAd->displayUrl = 'www.example.com'; + $textAd->url = 'http://www.example.com'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Set additional settings (optional). + $adGroupAd->status = 'PAUSED'; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was added.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } +} + +// 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. + AddTextAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/DeleteAd.php b/examples/AdWords/v201309/BasicOperations/DeleteAd.php new file mode 100755 index 000000000..137fdb57e --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/DeleteAd.php @@ -0,0 +1,88 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create base class ad to avoid setting type specific fields. + $ad = new Ad(); + $ad->id = $adId; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $ad; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display result. + $adGroupAd = $result->value[0]; + printf("Ad with ID '%s' was deleted.\n", $adGroupAd->ad->id); +} + +// 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. + DeleteAdExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/DeleteAdGroup.php b/examples/AdWords/v201309/BasicOperations/DeleteAdGroup.php new file mode 100755 index 000000000..4694b9c6d --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/DeleteAdGroup.php @@ -0,0 +1,84 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group with DELETED status. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + $adGroup->status = 'DELETED'; + // Rename the ad group as you delete it, to avoid future name conflicts. + $adGroup->name = 'Deleted ' . date('Ymd his'); + + // Create operations. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' was deleted.\n", $adGroup->id); +} + +// 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. + DeleteAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/DeleteCampaign.php b/examples/AdWords/v201309/BasicOperations/DeleteCampaign.php new file mode 100755 index 000000000..94139c9c5 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/DeleteCampaign.php @@ -0,0 +1,85 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the id of the campaign to delete + */ +function DeleteCampaignExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign with DELETED status. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->status = 'DELETED'; + // Rename the campaign as you delete it, to avoid future name conflicts. + $campaign->name = 'Deleted ' . date('Ymd his'); + + // Create operations. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display result. + $campaign = $result->value[0]; + printf("Campaign with ID '%s' was deleted.\n", $campaign->id); +} + +// 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. + DeleteCampaignExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/DeleteKeyword.php b/examples/AdWords/v201309/BasicOperations/DeleteKeyword.php new file mode 100755 index 000000000..632bd391a --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/DeleteKeyword.php @@ -0,0 +1,92 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create criterion using an existing ID. Use the base class Criterion + // instead of Keyword to avoid having to set keyword-specific fields. + $criterion = new Criterion(); + $criterion->id = $criterionId; + + // Create ad group criterion. + $adGroupCriterion = new AdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with ID '%s' was deleted.\n", + $adGroupCriterion->criterion->id); +} + +// 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. + DeleteKeywordExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetAdGroups.php b/examples/AdWords/v201309/BasicOperations/GetAdGroups.php new file mode 100755 index 000000000..fcfcb57ac --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetAdGroups.php @@ -0,0 +1,94 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = + new Predicate('CampaignId', 'IN', array($campaignId)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was found.\n", + $adGroup->name, $adGroup->id); + } + } else { + print "No ad groups 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. + GetAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetCampaigns.php b/examples/AdWords/v201309/BasicOperations/GetCampaigns.php new file mode 100755 index 000000000..fb918a578 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetCampaigns.php @@ -0,0 +1,87 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetCampaignsExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and ID '%s' was found.\n", + $campaign->name, $campaign->id); + } + } else { + print "No campaigns 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. + GetCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetCampaignsWithAwql.php b/examples/AdWords/v201309/BasicOperations/GetCampaignsWithAwql.php new file mode 100755 index 000000000..ee2b801b3 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetCampaignsWithAwql.php @@ -0,0 +1,86 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetCampaignsWithAwqlExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create AWQL query. + $query = 'SELECT Id, Name, Status ORDER BY Name'; + + // Create paging controls. + $offset = 0; + + do { + $pageQuery = sprintf('%s LIMIT %d,%d', $query, $offset, + AdWordsConstants::RECOMMENDED_PAGE_SIZE); + // Make the query request. + $page = $campaignService->query($pageQuery); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaign) { + printf("Campaign with name '%s' and ID '%s' was found.\n", + $campaign->name, $campaign->id); + } + } else { + print "No campaigns were found.\n"; + } + + // Advance the paging offset. + $offset += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $offset); +} + +// 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. + GetCampaignsWithAwqlExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetKeywords.php b/examples/AdWords/v201309/BasicOperations/GetKeywords.php new file mode 100755 index 000000000..cc5fabec3 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetKeywords.php @@ -0,0 +1,99 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('KeywordText', 'KeywordMatchType', 'Id'); + $selector->ordering[] = new OrderBy('KeywordText', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('CriteriaType', 'IN', array('KEYWORD')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupCriterion) { + printf("Keyword with text '%s', match type '%s', and ID '%s' was " + . "found.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } + } else { + print "No keywords 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. + GetKeywordsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/GetTextAds.php b/examples/AdWords/v201309/BasicOperations/GetTextAds.php new file mode 100755 index 000000000..a6db808b7 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/GetTextAds.php @@ -0,0 +1,99 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Headline', 'Id'); + $selector->ordering[] = new OrderBy('Headline', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = new Predicate('AdType', 'IN', array('TEXT_AD')); + // By default disabled ads aren't returned by the selector. To return them + // include the DISABLED status in a predicate. + $selector->predicates[] = + new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was found.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } + } else { + print "No text ads 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. + GetTextAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/PauseAd.php b/examples/AdWords/v201309/BasicOperations/PauseAd.php new file mode 100755 index 000000000..dcd4451ab --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/PauseAd.php @@ -0,0 +1,93 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create ad using an existing ID. Use the base class Ad instead of TextAd to + // avoid having to set ad-specific fields. + $ad = new Ad(); + $ad->id = $adId; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $ad; + + // Update the status. + $adGroupAd->status = 'PAUSED'; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display result. + $adGroupAd = $result->value[0]; + printf("Ad of type '%s' with ID '%s' has updated status '%s'.\n", + $adGroupAd->ad->AdType, $adGroupAd->ad->id, $adGroupAd->status); +} + +// 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. + PauseAdExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/UpdateAdGroup.php b/examples/AdWords/v201309/BasicOperations/UpdateAdGroup.php new file mode 100755 index 000000000..5a87234c0 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/UpdateAdGroup.php @@ -0,0 +1,92 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group using an existing ID. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + + // Update the bid. + $bid = new CpcBid(); + $bid->bid = new Money(0.75 * AdWordsConstants::MICROS_PER_DOLLAR); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' has updated default bid '$%s'.\n", $adGroup->id, + $adGroup->biddingStrategyConfiguration->bids[0]->bid->microAmount / + AdWordsConstants::MICROS_PER_DOLLAR); + +} + +// 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. + UpdateAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/UpdateCampaign.php b/examples/AdWords/v201309/BasicOperations/UpdateCampaign.php new file mode 100755 index 000000000..9ec5346ae --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/UpdateCampaign.php @@ -0,0 +1,84 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to update + */ +function UpdateCampaignExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + // Create campaign using an existing ID. + $campaign = new Campaign(); + $campaign->id = $campaignId; + $campaign->status = 'PAUSED'; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display result. + $campaign = $result->value[0]; + printf("Campaign with ID '%s' was paused.\n", $campaign->id); +} + +// 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. + UpdateCampaignExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/BasicOperations/UpdateKeyword.php b/examples/AdWords/v201309/BasicOperations/UpdateKeyword.php new file mode 100755 index 000000000..a76859236 --- /dev/null +++ b/examples/AdWords/v201309/BasicOperations/UpdateKeyword.php @@ -0,0 +1,93 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + // Create criterion using an existing ID. Use the base class Criterion + // instead of Keyword to avoid having to set keyword-specific fields. + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Update destination URL. + $adGroupCriterion->destinationUrl = 'http://www.example.com/new'; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with ID '%s' has updated destination URL '%s'.\n", + $adGroupCriterion->criterion->id, $adGroupCriterion->destinationUrl); +} + +// 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. + UpdateKeywordExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/AddExperiment.php b/examples/AdWords/v201309/CampaignManagement/AddExperiment.php new file mode 100755 index 000000000..3ac309b02 --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/AddExperiment.php @@ -0,0 +1,163 @@ +GetService('ExperimentService', ADWORDS_VERSION); + $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); + $adGroupCriterionService = + $user->GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create experiment. + $experiment = new Experiment(); + $experiment->campaignId = $campaignId; + $experiment->name = 'Interplanetary Experiment #' . uniqid(); + $experiment->queryPercentage = 10; + + // Set additional settings (optional). + $experiment->startDateTime = date('Ymd His', strtotime('+1 day')); + $experiment->endDateTime = date('Ymd His', strtotime('+1 month')); + + // Create operation. + $experimentOperation = new ExperimentOperation(); + $experimentOperation->operand = $experiment; + $experimentOperation->operator = 'ADD'; + + $experimentOperations = array($experimentOperation); + + // Make the mutate request. + $result = $experimentService->mutate($experimentOperations); + + // Display result. + $experiment = $result->value[0]; + printf ("Experiment with name '%s' and ID '%.0f' was added.\n", + $experiment->name, $experiment->id); + + // Create ad group bid multipliers to be used in the experiment. + $adGroupBidMultipliers = new ManualCPCAdGroupExperimentBidMultipliers(); + $adGroupBidMultipliers->maxCpcMultiplier = new BidMultiplier(1.5); + + // Create ad group experiment data. + $adGroupExperimentData = new AdGroupExperimentData(); + $adGroupExperimentData->experimentId = $experiment->id; + $adGroupExperimentData->experimentDeltaStatus = 'MODIFIED'; + $adGroupExperimentData->experimentBidMultipliers = $adGroupBidMultipliers; + + // Create updated ad group. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + $adGroup->experimentData = $adGroupExperimentData; + + // Create operation. + $adGroupOperation = new AdGroupOperation(); + $adGroupOperation->operand = $adGroup; + $adGroupOperation->operator = 'SET'; + + $adGroupOperations = array($adGroupOperation); + + // Make the mutate request. + $result = $adGroupService->mutate($adGroupOperations); + + // Display result. + $adGroup = $result->value[0]; + printf ("Ad group with name '%s' and ID '%.0f' was updated in the " + . "experiment.\n", $adGroup->name, $adGroup->id); + + // Create experiment data for a new experiment-only keyword. + $adGroupCriterionExperimentData = + new BiddableAdGroupCriterionExperimentData(); + $adGroupCriterionExperimentData->experimentId = $experiment->id; + $adGroupCriterionExperimentData->experimentDeltaStatus = 'EXPERIMENT_ONLY'; + + // Create keyword. + $keyword = new Keyword('mars tour', 'BROAD'); + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + $adGroupCriterion->experimentData = $adGroupCriterionExperimentData; + + // Create operation. + $adGroupCriterionOperation = new AdGroupCriterionOperation(); + $adGroupCriterionOperation->operand = $adGroupCriterion; + $adGroupCriterionOperation->operator = 'ADD'; + + $adGroupCriterionOperations = array($adGroupCriterionOperation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($adGroupCriterionOperations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Keyword with text '%s', match type '%s', and ID '%s' was added to " + . "the experiment.\n", + $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); +} + +// 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. + AddExperimentExample($user, $campaignId, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/AddKeywordsInBulk.php b/examples/AdWords/v201309/CampaignManagement/AddKeywordsInBulk.php new file mode 100755 index 000000000..de78da77a --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/AddKeywordsInBulk.php @@ -0,0 +1,205 @@ +GetService('MutateJobService', ADWORDS_VERSION); + + // Generate operations. + $numKeywords = 100; + $operations = array(); + for ($i = 0; $i < $numKeywords; $i++) { + $keyword = new Keyword(); + // Randomly add invalid characters to keywords. + if (rand(0, 9) == 0) { + $keyword->text = 'keyword!!!' . uniqid(); + } else { + $keyword->text = 'keyword' . uniqid(); + } + $keyword->matchType = 'BROAD'; + + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + $operation = new AdGroupCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $adGroupCriterion; + $operations[] = $operation; + } + + // You can specify up to 3 job IDs that must successfully complete before + // this job can be processed. We won't set any in this example. + $policy = new BulkMutateJobPolicy(); + $policy->prerequisiteJobIds = array(); + + // Call mutate to create a new job. + printf("Creating job with %d operations.\n", sizeof($operations)); + $job = $mutateJobService->mutate($operations, $policy); + printf("Job with ID '%s' was created.\n", $job->id); + + // Create a selector for retrieving the job status and later its results. + $selector = new BulkMutateJobSelector(); + $selector->jobIds[] = $job->id; + $selector->includeStats = TRUE; + $selector->includeHistory = TRUE; + + $numRetries = 0; + $maxRetries = 100; + $retryInterval = 10; + do { + sleep($retryInterval); + $jobs = $mutateJobService->get($selector); + $job = $jobs[0]; + switch ($job->status) { + case 'PENDING': + printf("The job has been pending for approximately %s.\n", + strftime('%M:%S', time() - strtotime($job->history[0]->dateTime))); + break; + case 'PROCESSING': + printf("The job is processing and approximately %d%% complete.\n", + $job->stats->progressPercent); + break; + case 'COMPLETED': + printf("The job is complete and took approximately %d seconds to " + ."process.\n", $job->stats->processingTimeMillis / 100); + break; + case 'FAILED': + printf("The job failed with reason '%s'.\n", + ChoiceUtils::GetValue($job->failureReason)); + break; + } + $numRetries++; + } while (($job->status == 'PENDING' || $job->status == 'PROCESSING') && + $numRetries < $maxRetries); + + if ($job->status == 'COMPLETED') { + // Retrieve the results of the job. + $jobResult = ChoiceUtils::GetValue( + $mutateJobService->getResult($selector)); + + // Sort the keywords into groups based on the results. + $lost = array(); + $skipped = array(); + $failed = array(); + $errors = array(); + $genericErrors = array(); + + // Examines the errors to determine which keywords failed to be applied. + foreach ($jobResult->errors as $error) { + $index = OgnlUtils::GetOperationIndex($error->fieldPath); + if (isset($index)) { + $keywordText = $operations[$index]->operand->criterion->text; + switch ($error->reason) { + case 'LOST_RESULT': + $lost[] = $keywordText; + break; + case 'UNPROCESSED_RESULT': + case 'BATCH_FAILURE': + $skipped[] = $keywordText; + break; + default: + if (!in_array($keywordText, $failed)) { + $failed[] = $keywordText; + } + $errors[$keywordText][] = $error; + } + } else { + $genericErrors[] = $error; + } + } + + // Examine the results to determine which keywords were added successfully. + $succeeded = array(); + for ($i = 0; $i < sizeof($jobResult->results); $i++) { + $operation = $operations[$i]; + $result = ChoiceUtils::GetValue($jobResult->results[$i]); + if ($result instanceof AdGroupCriterion) { + $succeeded[] = $result->criterion->text; + } + } + + // Display the results of the job. + printf("%d keywords were added successfully: %s\n", sizeof($succeeded), + implode(', ', $succeeded)); + + printf("%d keywords were skipped and should be retried: %s\n", + sizeof($skipped), implode(', ', $skipped)); + + printf("%d keywords were not added due to errors:\n", sizeof($failed)); + foreach ($failed as $keywordText) { + $errorStrings = array(); + foreach ($errors[$keywordText] as $error) { + $errorStrings[] = $error->errorString; + } + printf("- %s: %s\n", $keywordText, implode(', ', $errorStrings)); + } + + printf("%d generic errors were encountered:\n", sizeof($genericErrors)); + foreach($genericErrors as $error) { + printf("- %s\n", $error->errorString); + } + } +} + +// 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. + AddKeywordsInBulkExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/AddLocationExtension.php b/examples/AdWords/v201309/CampaignManagement/AddLocationExtension.php new file mode 100755 index 000000000..a02a122b7 --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/AddLocationExtension.php @@ -0,0 +1,130 @@ +GetService('GeoLocationService', ADWORDS_VERSION); + $campaignAdExtensionService = + $user->GetService('CampaignAdExtensionService', ADWORDS_VERSION); + + // Create address. + $address = new Address(); + $address->streetAddress = '1600 Amphitheatre Parkway'; + $address->cityName = 'Mountain View'; + $address->provinceCode = 'US-CA'; + $address->postalCode = '94043'; + $address->countryCode = 'US'; + + // Create geo location selector. + $selector = new GeoLocationSelector(); + $selector->addresses = array($address); + + // Make the get request. + $result = $geoLocationService->get($selector); + + // Display result. + $geoLocation = $result[0]; + if ($geoLocation->GeoLocationType != 'InvalidGeoLocation') { + $lat = $geoLocation->geoPoint->latitudeInMicroDegrees / + AdWordsConstants::MICRO_DEGREES_PER_DEGREE; + $long = $geoLocation->geoPoint->longitudeInMicroDegrees / + AdWordsConstants::MICRO_DEGREES_PER_DEGREE; + printf("Address with street '%s' and lat/long '%s/%s' was found.\n", + $geoLocation->address->streetAddress, $lat, $long); + } else { + printf("Address with street '%s' could not be found.\n", + $address->streetAddress); + exit; + } + + // Create location extension. + $locationExtension = new LocationExtension(); + $locationExtension->address = $geoLocation->address; + $locationExtension->geoPoint = $geoLocation->geoPoint; + $locationExtension->encodedLocation = $geoLocation->encodedLocation; + $locationExtension->source = 'ADWORDS_FRONTEND'; + + // Set additional settings (optional). + $locationExtension->companyName = 'ACME Inc.'; + $locationExtension->phoneNumber = '(650) 253-0000'; + + // Create campaign ad extension. + $campaignAdExtension = new CampaignAdExtension(); + $campaignAdExtension->campaignId = $campaignId; + $campaignAdExtension->adExtension = $locationExtension; + + // Create operation. + $operation = new CampaignAdExtensionOperation(); + $operation->operand = $campaignAdExtension; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $campaignAdExtensionService->mutate($operations); + + // Display result. + $campaignAdExtension = $result->value[0]; + printf("Location extension with street address '%s' and ID '%s' was added.\n", + $campaignAdExtension->adExtension->address->streetAddress, + $campaignAdExtension->adExtension->id); +} + +// 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. + AddLocationExtensionExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAds.php b/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAds.php new file mode 100755 index 000000000..448f02c6e --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAds.php @@ -0,0 +1,103 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'AdGroupAdDisapprovalReasons'); + $selector->ordering = array(new OrderBy('Id', 'ASCENDING')); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('AdGroupCreativeApprovalStatus', 'IN', + array('DISAPPROVED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Ad with ID '%.0f', and type '%s' was disapproved for the " + . "following reasons:\n", $adGroupAd->ad->id, + $adGroupAd->ad->AdType); + if (!empty($adGroupAd->disapprovalReasons)) { + foreach ($adGroupAd->disapprovalReasons as $reason) { + printf("\t'%s'\n", $reason); + } + } + } + } else { + print "No disapproved ads 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. + GetAllDisapprovedAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.php b/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.php new file mode 100755 index 000000000..3a5d0965f --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.php @@ -0,0 +1,100 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$adGroupId = 'INSERT_AD_GROUP_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $adGroupId the parent ad group id of the ads to retrieve + */ +function GetAllDisapprovedAdsWithAwqlExample(AdWordsUser $user, $adGroupId) { + // Get the service, which loads the required classes. + $adGroupAdService = $user->GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create a query. + $query = sprintf('SELECT Id, AdGroupAdDisapprovalReasons WHERE AdGroupId = ' + . '%d AND AdGroupCreativeApprovalStatus = DISAPPROVED ORDER BY Id', + $adGroupId); + + // Create paging controls. + $offset = 0; + + do { + $pageQuery = sprintf('%s LIMIT %d,%d', $query, $offset, + AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + // Make the query request. + $page = $adGroupAdService->query($pageQuery); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Ad with ID '%.0f', and type '%s' was disapproved for the " + . "following reasons:\n", $adGroupAd->ad->id, + $adGroupAd->ad->AdType); + if (!empty($adGroupAd->disapprovalReasons)) { + foreach ($adGroupAd->disapprovalReasons as $reason) { + printf("\t'%s'\n", $reason); + } + } + } + } else { + print "No disapproved ads were found.\n"; + } + + // Advance the paging offset. + $offset += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $offset); +} + +// 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. + GetAllDisapprovedAdsWithAwqlExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/PromoteExperiment.php b/examples/AdWords/v201309/CampaignManagement/PromoteExperiment.php new file mode 100755 index 000000000..713a7a06e --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/PromoteExperiment.php @@ -0,0 +1,86 @@ +GetService('ExperimentService', ADWORDS_VERSION); + + // Create experiment with PROMOTED status. + $experiment = new Experiment(); + $experiment->id = $experimentId; + $experiment->status = 'PROMOTED'; + + // Create operation. + $operation = new ExperimentOperation(); + $operation->operand = $experiment; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $experimentService->mutate($operations); + + // Display result. + $experiment = $result->value[0]; + printf ("Experiment with name '%s' and ID '%s' was promoted.\n", + $experiment->name, $experiment->id); +} + +// 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. + PromoteExperimentExample($user, $experimentId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/SetAdParameters.php b/examples/AdWords/v201309/CampaignManagement/SetAdParameters.php new file mode 100755 index 000000000..6eea8a1b6 --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/SetAdParameters.php @@ -0,0 +1,93 @@ +GetService('AdParamService', ADWORDS_VERSION); + + // Create ad parameters. + $adParam1 = new AdParam($adGroupId, $keywordId, '100', 1); + $adParam2 = new AdParam($adGroupId, $keywordId, '$40', 2); + + // Create operations. + $operations = array(); + + $adParamOperation1 = new AdParamOperation(); + $adParamOperation1->operand = $adParam1; + $adParamOperation1->operator = 'SET'; + $operations[] = $adParamOperation1; + + $adParamOperation2 = new AdParamOperation(); + $adParamOperation2->operand = $adParam2; + $adParamOperation2->operator = 'SET'; + $operations[] = $adParamOperation2; + + // Make the mutate request. + $adParams = $adParamService->mutate($operations); + + // Display results. + foreach ($adParams as $adParam) { + printf("Ad parameter with insertion text '%s' and parameter index '%s' " + . "was set.\n", $adParam->insertionText, $adParam->paramIndex); + } +} + +// 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. + SetAdParametersExample($user, $adGroupId, $keywordId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/SetBidModifier.php b/examples/AdWords/v201309/CampaignManagement/SetBidModifier.php new file mode 100755 index 000000000..b4fabdc3b --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/SetBidModifier.php @@ -0,0 +1,102 @@ +GetService("CampaignCriterionService", ADWORDS_VERSION); + + // Create Mobile Platform. The ID can be found in the documentation. + // https://developers.google.com/adwords/api/docs/appendix/platforms + $mobile = new Platform(); + $mobile->id = 30001; // HighEndMobile = 30001 + + // Create criterion with modified bid. + $criterion = new CampaignCriterion(); + $criterion->campaignId = $campaignId; + $criterion->criterion = $mobile; + $criterion->bidModifier = $bidModifier; + + // Create SET operation. + $operation = new CampaignCriterionOperation(); + $operation->operator = "SET"; + $operation->operand = $criterion; + + // Update campaign criteria. + $results = $campaignCriterionService->mutate(array($operation)); + + // Display campaign criteria. + if (count($results->value)) { + foreach ($results->value as $campaignCriterion) { + printf( + "Campaign criterion with campaign ID '%s', criterion ID '%s', " + . "and type '%s' was modified with bid %.2f.\n", + $campaignCriterion->campaignId, + $campaignCriterion->criterion->id, + $campaignCriterion->criterion->type, + $campaignCriterion->bidModifier); + } + + return true; + } + print "No campaign criterias were modified."; +} + +// 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. + SetBidModifierExample($user, $campaignId, $bidModifier); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/CampaignManagement/ValidateTextAd.php b/examples/AdWords/v201309/CampaignManagement/ValidateTextAd.php new file mode 100755 index 000000000..75e323f2c --- /dev/null +++ b/examples/AdWords/v201309/CampaignManagement/ValidateTextAd.php @@ -0,0 +1,106 @@ +GetService('AdGroupAdService', ADWORDS_VERSION, NULL, NULL, TRUE); + + // Create invalid text ad. + $textAd = new TextAd(); + $textAd->headline = 'This headline is too long and will cause an error'; + $textAd->description1 = 'Description Line 1'; + $textAd->description2 = 'Description Line 2'; + $textAd->displayUrl = 'www.example.com'; + $textAd->url = 'http://www.example.com'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + try { + $result = $adGroupAdValidationService->mutate($operations); + printf("The text ad is valid.\n"); + } catch (SoapFault $e) { + $errors = ErrorUtils::GetApiErrors($e); + if (sizeof($errors) > 0) { + printf("The text ad is invalid for the following reasons:\n"); + foreach ($errors as $error) { + printf(" %s @ %s\n", $error->errorString, $error->fieldPath); + } + } else { + // Not an API error, so throw it up a level. + throw $e; + } + } +} + +// 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. + ValidateTextAdExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/ErrorHandling/HandlePartialFailures.php b/examples/AdWords/v201309/ErrorHandling/HandlePartialFailures.php new file mode 100755 index 000000000..5a6d59780 --- /dev/null +++ b/examples/AdWords/v201309/ErrorHandling/HandlePartialFailures.php @@ -0,0 +1,116 @@ +GetService('AdGroupCriterionService', + ADWORDS_VERSION, NULL, NULL, NULL, TRUE); + + // Create keywords. + $keywords = array(); + $keywords[] = new Keyword('mars cruise', 'BROAD'); + $keywords[] = new Keyword('inv@lid cruise', 'BROAD'); + $keywords[] = new Keyword('venus cruise', 'BROAD'); + $keywords[] = new Keyword('b(a)d keyword cruise', 'BROAD'); + + // Create ad group criteria and operations. + $operations = array(); + foreach ($keywords as $keyword) { + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $keyword; + + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + if ($adGroupCriterion->AdGroupCriterionType == 'BiddableAdGroupCriterion') { + printf("Keyword with text '%s', match type '%s', and ID '%s' was " + . "added.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, + $adGroupCriterion->criterion->id); + } + } + + // Check for partial failures. + if (isset($result->partialFailureErrors)) { + foreach ($result->partialFailureErrors as $error) { + $index = ErrorUtils::GetSourceOperationIndex($error); + if (isset($index)) { + $adGroupCriterion = $operations[$index]->operand; + printf("Keyword with text '%s' and match type '%s' failed with error " + . "'%s'.\n", $adGroupCriterion->criterion->text, + $adGroupCriterion->criterion->matchType, $error->errorString); + } else { + printf("Operations failed with error '%s'.\n", $error->errorString); + } + } + } +} + +// 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. + HandlePartialFailuresExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/ErrorHandling/HandlePolicyViolationError.php b/examples/AdWords/v201309/ErrorHandling/HandlePolicyViolationError.php new file mode 100755 index 000000000..8fd733cb6 --- /dev/null +++ b/examples/AdWords/v201309/ErrorHandling/HandlePolicyViolationError.php @@ -0,0 +1,146 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Get validateOnly version of the AdGroupAdService. + $adGroupAdValidationService = + $user->GetService('AdGroupAdService', ADWORDS_VERSION, NULL, NULL, TRUE); + + // Create text ad that violates an exemptable policy. This ad will only + // trigger an error in the production environment. + $textAd = new TextAd(); + $textAd->headline = 'Mars Cruise !!!'; + $textAd->description1 = 'Visit the Red Planet in style.'; + $textAd->description2 = 'Low-gravity fun for everyone!'; + $textAd->displayUrl = 'www.example.com'; + $textAd->url = 'http://www.example.com/'; + + // Create ad group ad. + $adGroupAd = new AdGroupAd(); + $adGroupAd->adGroupId = $adGroupId; + $adGroupAd->ad = $textAd; + + // Create operation. + $operation = new AdGroupAdOperation(); + $operation->operand = $adGroupAd; + $operation->operator = 'ADD'; + + $operations = array($operation); + + try { + // Make the mutate request. + $result = $adGroupAdValidationService->mutate($operations); + } catch (SoapFault $fault) { + $errors = ErrorUtils::GetApiErrors($fault); + if (sizeof($errors) == 0) { + // Not an API error, so throw fault. + throw $fault; + } + $operationIndicesToRemove = array(); + foreach ($errors as $error) { + if ($error->ApiErrorType == 'PolicyViolationError') { + $operationIndex = ErrorUtils::GetSourceOperationIndex($error); + $operation = $operations[$operationIndex]; + printf("Ad with headline '%s' violated %s policy '%s'.\n", + $operation->operand->ad->headline, + $error->isExemptable ? 'exemptable' : 'non-exemptable', + $error->externalPolicyName); + if ($error->isExemptable) { + // Add exemption request to the operation. + printf("Adding exemption request for policy name '%s' on text " + ."'%s'.\n", $error->key->policyName, $error->key->violatingText); + $operation->exemptionRequests[] = new ExemptionRequest($error->key); + } else { + // Remove non-exemptable operation. + print "Removing the operation from the request.\n"; + $operationIndicesToRemove[] = $operationIndex; + } + } else { + // Non-policy error returned, throw fault. + throw $fault; + } + } + $operationIndicesToRemove = array_unique($operationIndicesToRemove); + rsort($operationIndicesToRemove, SORT_NUMERIC); + if (sizeof($operationIndicesToRemove) > 0) { + foreach ($operationIndicesToRemove as $operationIndex) { + unset($operations[$operationIndex]); + } + } + } + + if (sizeof($operations) > 0) { + // Retry the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Text ad with headline '%s' and ID '%s' was added.\n", + $adGroupAd->ad->headline, $adGroupAd->ad->id); + } + } else { + print "All the operations were invalid with non-exemptable errors.\n"; + } +} + +// 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. + HandlePolicyViolationErrorExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.php b/examples/AdWords/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.php new file mode 100755 index 000000000..437373c5a --- /dev/null +++ b/examples/AdWords/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.php @@ -0,0 +1,65 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + */ +function HandleTwoFactorAuthorizationErrorExample() { + // Create an AdWordsUser using the credentials for a 2-step tester account. + $user = new AdWordsUser(NULL, '2steptester@gmail.com', 'testaccount'); + + try { + $authToken = $user->GetAuthToken(); + printf("Successfully retrieved auth token for the account '%s': '%s'\n", + $user->GetEmail(), $authToken); + } catch (AuthTokenException $e) { + if (strpos($e->GetError(), 'InvalidSecondFactor') !== FALSE) { + // See http://goo.gl/SHgXV for more details. + print "The account has 2-step verification enabled, so an " + . "application-specific password must be used instead.\n"; + } else { + print "Invalid email or password.\n"; + } + } +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Run the example. + HandleTwoFactorAuthorizationErrorExample(); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/AddExpressBusinesses.php b/examples/AdWords/v201309/Express/AddExpressBusinesses.php new file mode 100755 index 000000000..ff829bf19 --- /dev/null +++ b/examples/AdWords/v201309/Express/AddExpressBusinesses.php @@ -0,0 +1,94 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddExpressBusinessesExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $businessService = $user->GetService('ExpressBusinessService', + ADWORDS_VERSION); + + $business1 = new ExpressBusiness(); + $business1->status = 'ACTIVE'; + $business1->name = 'Express Interplanetary Cruise #' . uniqid(); + $business1->address = new Address('1600 Amphitheatre Pkwy', null, + 'Mountain View', 'CA', null, null, 'US'); + $business1->website = 'http://www.example.com/cruise1'; + + $business2 = new ExpressBusiness(); + $business2->status = 'ACTIVE'; + $business2->name = 'Express Interplanetary Cruise #' . uniqid(); + $business2->address = new Address('1600 Amphitheatre Pkwy', null, + 'Mountain View', 'CA', null, null, 'US'); + $business2->website = 'http://www.example.com/cruise2'; + + $operations = array(); + + $operation1 = new ExpressBusinessOperation(); + $operation1->operand = $business1; + $operation1->operator = 'ADD'; + $operations[] = $operation1; + + $operation2 = new ExpressBusinessOperation(); + $operation2->operand = $business2; + $operation2->operator = 'ADD'; + $operations[] = $operation2; + + $addedBusinesses = $businessService->mutate($operations); + + foreach($addedBusinesses as $addedBusiness) { + printf("Added express business with ID %d and name '%s'\n", + $addedBusiness->id, $addedBusiness->name); + } +} + +// 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. + AddExpressBusinessesExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/AddPromotion.php b/examples/AdWords/v201309/Express/AddPromotion.php new file mode 100755 index 000000000..0663f09e5 --- /dev/null +++ b/examples/AdWords/v201309/Express/AddPromotion.php @@ -0,0 +1,143 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$businessId = 'INSERT_BUSINESS_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddPromotionExample(AdWordsUser $user, $businessId) { + // Get the business service, which loads the required classes. + $businessService = $user->GetService('ExpressBusinessService', + ADWORDS_VERSION); + + // Get the business for the businessId. We will need its geo point + // to create a Proximity criterion for the new Promotion. + $businessSelector = new Selector(); + $businessSelector->fields = array('Id', 'GeoPoint'); + + $businessPredicate = new Predicate('Id', 'EQUALS', + array($businessId)); + $businessSelector->predicates = array($businessPredicate); + + $businessEntries = $businessService->get($businessSelector)->entries; + $business = $businessEntries[0]; + + // PromotionService requires the businessId on the user. + $user->SetExpressBusinessId($businessId); + + // Get the promotion service. + $promotionService = $user->GetService('PromotionService', + ADWORDS_VERSION); + + // Set up the new Promotion. + $marsTourPromotion = new Promotion(); + $budget = new Money(); + $budget->microAmount = 1000000; + $marsTourPromotion->name = 'Mars Tour Promotion ' . uniqid(); + $marsTourPromotion->status = 'PAUSED'; + $marsTourPromotion->destinationUrl = 'http://www.example.com'; + $marsTourPromotion->budget = $budget; + $marsTourPromotion->callTrackingEnabled = TRUE; + + // Criteria + $criteria = array(); + + // Criterion - Travel Agency product service + $productService = new ProductService(); + $productService->text = 'Travel Agency'; + $criteria[] = $productService; + + // Criterion - English language + // The ID can be found in the documentation: + // https://developers.google.com/adwords/api/docs/appendix/languagecodes + $language = new Language(); + $language->id = 1000; + $criteria[] = $language; + + // Criterion - Within 15 miles + $proximity = new Proximity(); + $proximity->geoPoint = $business->geoPoint; + $proximity->radiusDistanceUnits = 'MILES'; + $proximity->radiusInUnits = 15; + $criteria[] = $proximity; + + $marsTourPromotion->criteria = $criteria; + + // Creatives + $creatives = array(); + + $creative1 = new Creative('Standard Mars Trip', 'Fly coach to Mars', + 'Free in-flight pretzels'); + $creatives[] = $creative1; + + $creative2 = new Creative('Deluxe Mars Trip', 'Fly first class to Mars', + 'Unlimited powdered orange drink'); + $creatives[] = $creative2; + + $marsTourPromotion->creatives = $creatives; + + $operations = array(); + + $operation = new PromotionOperation(); + $operation->operand = $marsTourPromotion; + $operation->operator = 'ADD'; + $operations[] = $operation; + + $result = $promotionService->mutate($operations); + $addedPromotion = $result[0]; + + printf("Added promotion ID %d with name '%s' to business ID %d\n", + $addedPromotion->id, $addedPromotion->name, $businessId); +} + +// 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. + AddPromotionExample($user, $businessId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/GetExpressBusinesses.php b/examples/AdWords/v201309/Express/GetExpressBusinesses.php new file mode 100755 index 000000000..6e8c7cbe6 --- /dev/null +++ b/examples/AdWords/v201309/Express/GetExpressBusinesses.php @@ -0,0 +1,96 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetExpressBusinessesExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $businessService = $user->GetService('ExpressBusinessService', + ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'Name', 'Website', 'Address', 'GeoPoint', + 'Status'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $businessService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $business) { + $address = $business->address; + $geoPoint = $business->geoPoint; + printf("Express business found with name '%s' id %s website: %s " . + "address: %s,%s,%s,%s,%s geo point: %d,%d status: %s\n", + $business->name, $business->id, $business->website, + $address->streetAddress, $address->streetAddress2, $address->cityName, + $address->provinceName, $address->postalCode, + $geoPoint->latitudeInMicroDegrees, $geoPoint->longitudeInMicroDegrees, + $business->status + ); + } + } else { + print "No express businesses 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. + GetExpressBusinessesExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/GetPromotions.php b/examples/AdWords/v201309/Express/GetPromotions.php new file mode 100755 index 000000000..1b63a19d2 --- /dev/null +++ b/examples/AdWords/v201309/Express/GetPromotions.php @@ -0,0 +1,92 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$businessId = 'INSERT_BUSINESS_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetPromotionsExample(AdWordsUser $user, $businessId) { + $user->SetExpressBusinessId($businessId); + + // Get the service, which loads the required classes. + $promotionService = $user->GetService('PromotionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('PromotionId', 'Name'); + $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $promotionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $promotion) { + printf("Express promotion found with name '%s' " . + "id %s destinationUrl: %s\n", $promotion->name, $promotion->id, + $promotion->destinationUrl); + } + } else { + print "No express promotions 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. + GetPromotionsExample($user, $businessId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/UpdateExpressBusiness.php b/examples/AdWords/v201309/Express/UpdateExpressBusiness.php new file mode 100755 index 000000000..561685602 --- /dev/null +++ b/examples/AdWords/v201309/Express/UpdateExpressBusiness.php @@ -0,0 +1,83 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$businessId = 'INSERT_BUSINESS_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function UpdateExpressBusinessExample(AdWordsUser $user, $businessId) { + // Get the service, which loads the required classes. + $businessService = $user->GetService('ExpressBusinessService', + ADWORDS_VERSION); + + // Update the name and website for the business. + $business = new ExpressBusiness(); + $business->id = $businessId; + $business->name = 'Express Interplanetary Cruise #' . uniqid(); + $business->website = 'http://www.example.com/?myParam=' . uniqid(); + + $operations = array(); + + $operation = new ExpressBusinessOperation(); + $operation->operand = $business; + $operation->operator = 'SET'; + $operations[] = $operation; + + $result = $businessService->mutate($operations); + $mutatedBusiness = $result[0]; + + printf("Express business with ID %d and name '%s' was updated\n", + $mutatedBusiness->id, $mutatedBusiness->name); +} + +// 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. + UpdateExpressBusinessExample($user, $businessId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Express/UpdatePromotion.php b/examples/AdWords/v201309/Express/UpdatePromotion.php new file mode 100755 index 000000000..b24c73a72 --- /dev/null +++ b/examples/AdWords/v201309/Express/UpdatePromotion.php @@ -0,0 +1,89 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$businessId = 'INSERT_BUSINESS_ID_HERE'; +$promotionId = 'INSERT_PROMOTION_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function UpdatePromotionExample(AdWordsUser $user, $businessId, $promotionId) { + // PromotionService requires the businessId on the user. + $user->SetExpressBusinessId($businessId); + + // Get the service, which loads the required classes. + $promotionService = $user->GetService('PromotionService', + ADWORDS_VERSION); + + // Update the budget for the promotion. + $promotion = new Promotion(); + $promotion->id = $promotionId; + $newBudget = new Money(); + $newBudget->microAmount = 2000000; + $promotion->budget = $newBudget; + + $operations = array(); + + $operation = new PromotionOperation(); + $operation->operand = $promotion; + $operation->operator = 'SET'; + $operations[] = $operation; + + $result = $promotionService->mutate($operations); + $mutatedPromotion = $result[0]; + + printf("Promotion ID %d for business ID %d now has budget micro amount %d\n", + $mutatedPromotion->id, $businessId, + $mutatedPromotion->budget->microAmount); +} + +// 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. + UpdatePromotionExample($user, $businessId, $promotionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Misc/GetAllImagesAndVideos.php b/examples/AdWords/v201309/Misc/GetAllImagesAndVideos.php new file mode 100755 index 000000000..3a37c1f8d --- /dev/null +++ b/examples/AdWords/v201309/Misc/GetAllImagesAndVideos.php @@ -0,0 +1,100 @@ +GetService('MediaService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('MediaId', 'Width', 'Height', 'MimeType', 'Name'); + $selector->ordering = array(new OrderBy('MediaId', 'ASCENDING')); + + // Create predicates. + $selector->predicates[] = + new Predicate('Type', 'IN', array('IMAGE', 'VIDEO')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $mediaService->get($selector); + + // Display images. + if (isset($page->entries)) { + foreach ($page->entries as $media) { + if ($media->MediaType == 'Image') { + $dimensions = MapUtils::GetMap($media->dimensions); + printf("Image with dimensions '%dx%d', MIME type '%s', and id '%s' " + . "was found.\n", $dimensions['FULL']->width, + $dimensions['FULL']->height, $media->mimeType, $media->mediaId); + } else if ($media->MediaType == 'Video') { + printf("Video with name '%s' and id '%s' was found.\n", $media->name, + $media->mediaId); + } + } + } else { + print "No images or videos 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. + GetAllImagesAndVideosExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Misc/UploadImage.php b/examples/AdWords/v201309/Misc/UploadImage.php new file mode 100755 index 000000000..0bbd67633 --- /dev/null +++ b/examples/AdWords/v201309/Misc/UploadImage.php @@ -0,0 +1,77 @@ +GetService('MediaService', ADWORDS_VERSION); + + // Create image. + $image = new Image(); + $image->data = MediaUtils::GetBase64Data('http://goo.gl/HJM3L'); + $image->type = 'IMAGE'; + + // Make the upload request. + $result = $mediaService->upload(array($image)); + + // Display result. + $image = $result[0]; + $dimensions = MapUtils::GetMap($image->dimensions); + printf("Image with dimensions '%dx%d', MIME type '%s', and id '%s' was " + . "uploaded.\n", $dimensions['FULL']->width, + $dimensions['FULL']->height, $image->mimeType, $image->mediaId); +} + +// 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. + UploadImageExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Optimization/EstimateKeywordTraffic.php b/examples/AdWords/v201309/Optimization/EstimateKeywordTraffic.php new file mode 100755 index 000000000..b6213dc5f --- /dev/null +++ b/examples/AdWords/v201309/Optimization/EstimateKeywordTraffic.php @@ -0,0 +1,142 @@ +GetService('TrafficEstimatorService', ADWORDS_VERSION); + + // Create keywords. Up to 2000 keywords can be passed in a single request. + $keywords = array(); + $keywords[] = new Keyword('mars cruise', 'BROAD'); + $keywords[] = new Keyword('cheap cruise', 'PHRASE'); + $keywords[] = new Keyword('cruise', 'EXACT'); + + // Negative keywords don't return estimates, but adjust the estimates of the + // other keywords in the hypothetical ad group. + $negativeKeywords = array(); + $negativeKeywords[] = new Keyword('moon walk', 'BROAD'); + + // Create a keyword estimate request for each keyword. + $keywordEstimateRequests = array(); + foreach ($keywords as $keyword) { + $keywordEstimateRequest = new KeywordEstimateRequest(); + $keywordEstimateRequest->keyword = $keyword; + $keywordEstimateRequests[] = $keywordEstimateRequest; + } + + // Create a keyword estimate request for each negative keyword. + foreach ($negativeKeywords as $negativeKeyword) { + $keywordEstimateRequest = new KeywordEstimateRequest(); + $keywordEstimateRequest->keyword = $negativeKeyword; + $keywordEstimateRequest->isNegative = TRUE; + $keywordEstimateRequests[] = $keywordEstimateRequest; + } + + // Create ad group estimate requests. + $adGroupEstimateRequest = new AdGroupEstimateRequest(); + $adGroupEstimateRequest->keywordEstimateRequests = $keywordEstimateRequests; + $adGroupEstimateRequest->maxCpc = new Money(1000000); + + // Create campaign estimate requests. + $campaignEstimateRequest = new CampaignEstimateRequest(); + $campaignEstimateRequest->adGroupEstimateRequests[] = $adGroupEstimateRequest; + + // Set targeting criteria. Only locations and languages are supported. + $unitedStates = new Location(); + $unitedStates->id = 2840; + $campaignEstimateRequest->criteria[] = $unitedStates; + + $english = new Language(); + $english->id = 1000; + $campaignEstimateRequest->criteria[] = $english; + + // Create selector. + $selector = new TrafficEstimatorSelector(); + $selector->campaignEstimateRequests[] = $campaignEstimateRequest; + + // Make the get request. + $result = $trafficEstimatorService->get($selector); + + // Display results. + $keywordEstimates = + $result->campaignEstimates[0]->adGroupEstimates[0]->keywordEstimates; + for ($i = 0; $i < sizeof($keywordEstimates); $i++) { + $keywordEstimateRequest = $keywordEstimateRequests[$i]; + // Skip negative keywords, since they don't return estimates. + if (!$keywordEstimateRequest->isNegative) { + $keyword = $keywordEstimateRequest->keyword; + $keywordEstimate = $keywordEstimates[$i]; + + // Find the mean of the min and max values. + $meanAverageCpc = ($keywordEstimate->min->averageCpc->microAmount + + $keywordEstimate->max->averageCpc->microAmount) / 2; + $meanAveragePosition = ($keywordEstimate->min->averagePosition + + $keywordEstimate->max->averagePosition) / 2; + $meanClicks = ($keywordEstimate->min->clicksPerDay + + $keywordEstimate->max->clicksPerDay) / 2; + $meanTotalCost = ($keywordEstimate->min->totalCost->microAmount + + $keywordEstimate->max->totalCost->microAmount) / 2; + + printf("Results for the keyword with text '%s' and match type '%s':\n", + $keyword->text, $keyword->matchType); + printf(" Estimated average CPC in micros: %.0f\n", $meanAverageCpc); + printf(" Estimated ad position: %.2f \n", $meanAveragePosition); + printf(" Estimated daily clicks: %d\n", $meanClicks); + printf(" Estimated daily cost in micros: %.0f\n\n", $meanTotalCost); + } + } +} + +// 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. + EstimateKeywordTrafficExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Optimization/GetKeywordBidSimulations.php b/examples/AdWords/v201309/Optimization/GetKeywordBidSimulations.php new file mode 100755 index 000000000..5b562d67b --- /dev/null +++ b/examples/AdWords/v201309/Optimization/GetKeywordBidSimulations.php @@ -0,0 +1,106 @@ +GetService('DataService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('AdGroupId', 'CriterionId', 'StartDate', 'EndDate', + 'Bid', 'LocalClicks', 'LocalCost', 'MarginalCpc', 'LocalImpressions'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do{ + // Make the getCriterionBidLandscape request. + $page = $dataService->getCriterionBidLandscape($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $bidLandscape) { + printf("Found criterion bid landscape for keyword with id '%s', start " + . "date '%s', end date '%s', and landscape points:\n", + $bidLandscape->criterionId, $bidLandscape->startDate, + $bidLandscape->endDate); + foreach ($bidLandscape->landscapePoints as $bidLandscapePoint) { + printf(" bid: %.0f => clicks: %d, cost: %.0f, marginalCpc: %.0f, " + . "impressions: %d\n", + $bidLandscapePoint->bid->microAmount, $bidLandscapePoint->clicks, + $bidLandscapePoint->cost->microAmount, + $bidLandscapePoint->marginalCpc->microAmount, + $bidLandscapePoint->impressions); + } + print "\n"; + } + } else { + print "No criterion bid landscapes 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. + GetKeywordBidSimulationsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Optimization/GetKeywordIdeas.php b/examples/AdWords/v201309/Optimization/GetKeywordIdeas.php new file mode 100755 index 000000000..abb5d14d4 --- /dev/null +++ b/examples/AdWords/v201309/Optimization/GetKeywordIdeas.php @@ -0,0 +1,116 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +require_once UTIL_PATH . '/MapUtils.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function GetKeywordIdeasExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $targetingIdeaService = + $user->GetService('TargetingIdeaService', ADWORDS_VERSION); + + // Create seed keyword. + $keyword = 'mars cruise'; + + // Create selector. + $selector = new TargetingIdeaSelector(); + $selector->requestType = 'IDEAS'; + $selector->ideaType = 'KEYWORD'; + $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'SEARCH_VOLUME', + 'CATEGORY_PRODUCTS_AND_SERVICES'); + + // Create language search parameter (optional). + // The ID can be found in the documentation: + // https://developers.google.com/adwords/api/docs/appendix/languagecodes + // Note: As of v201302, only a single language parameter is allowed. + $languageParameter = new LanguageSearchParameter(); + $english = new Language(); + $english->id = 1000; + $languageParameter->languages = array($english); + + // Create related to query search parameter. + $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter(); + $relatedToQuerySearchParameter->queries = array($keyword); + $selector->searchParameters[] = $relatedToQuerySearchParameter; + $selector->searchParameters[] = $languageParameter; + + // Set selector paging (required by this service). + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $targetingIdeaService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $targetingIdea) { + $data = MapUtils::GetMap($targetingIdea->data); + $keyword = $data['KEYWORD_TEXT']->value; + $search_volume = isset($data['SEARCH_VOLUME']->value) + ? $data['SEARCH_VOLUME']->value : 0; + $categoryIds = + implode(', ', $data['CATEGORY_PRODUCTS_AND_SERVICES']->value); + printf("Keyword idea with text '%s', category IDs (%s) and average " + . "monthly search volume '%s' was found.\n", + $keyword, $categoryIds, $search_volume); + } + } else { + print "No keywords ideas 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. + GetKeywordIdeasExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Optimization/GetPlacementIdeas.php b/examples/AdWords/v201309/Optimization/GetPlacementIdeas.php new file mode 100755 index 000000000..f8180e99b --- /dev/null +++ b/examples/AdWords/v201309/Optimization/GetPlacementIdeas.php @@ -0,0 +1,101 @@ +GetService('TargetingIdeaService', ADWORDS_VERSION); + + // Create seed url. + $url = 'mars.google.com'; + + // Create selector. + $selector = new TargetingIdeaSelector(); + $selector->requestType = 'IDEAS'; + $selector->ideaType = 'PLACEMENT'; + $selector->requestedAttributeTypes = array('CRITERION', 'PLACEMENT_TYPE'); + + // Create related to url search parameter. + $relatedToUrlSearchParameter = new RelatedToUrlSearchParameter(); + $relatedToUrlSearchParameter->urls = array($url); + $relatedToUrlSearchParameter->includeSubUrls = FALSE; + $selector->searchParameters[] = $relatedToUrlSearchParameter; + + // Set selector paging (required by this service). + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $targetingIdeaService->get($selector); + + // Display related placements. + if (isset($page->entries)) { + foreach ($page->entries as $targetingIdea) { + $data = MapUtils::GetMap($targetingIdea->data); + $placement = $data['CRITERION']->value; + $placementType = $data['PLACEMENT_TYPE']->value; + printf("Placement with url '%s' and type '%s' was found.\n", + $placement->url, $placementType); + } + } else { + print "No related placements 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. + GetPlacementIdeasExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Remarketing/AddAudience.php b/examples/AdWords/v201309/Remarketing/AddAudience.php new file mode 100755 index 000000000..d4b7b946b --- /dev/null +++ b/examples/AdWords/v201309/Remarketing/AddAudience.php @@ -0,0 +1,107 @@ +GetService('AdwordsUserListService', ADWORDS_VERSION); + $conversionTrackerService = + $user->GetService('ConversionTrackerService', ADWORDS_VERSION); + + // Create conversion type (tag). + $conversionType = new UserListConversionType(); + $conversionType->name = 'Mars cruise customers #' . uniqid(); + + // Create remarketing user list. + $userList = new BasicUserList(); + $userList->name = 'Mars cruise customers #' . uniqid(); + $userList->conversionTypes = array($conversionType); + + // Set additional settings (optional). + $userList->description = 'A list of mars cruise customers in the last year'; + $userList->status = 'OPEN'; + $userList->membershipLifeSpan = 365; + + // Create operation. + $operation = new UserListOperation(); + $operation->operand = $userList; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $userListService->mutate($operations); + $userList = $result->value[0]; + + // Wait a moment before retrieving the conversion snippet. + sleep(1); + + // Create the selector. + $selector = new Selector(); + $selector->fields = array('Id'); + $selector->predicates[] = + new Predicate('Id', 'IN', array($userList->conversionTypes[0]->id)); + + // Make the get request. + $page = $conversionTrackerService->get($selector); + $conversionTracker = $page->entries[0]; + + // Display result. + printf("Audience with name '%s' and ID '%.0f' was added.\n", $userList->name, + $userList->id); + printf("Tag code:\n%s\n", $conversionTracker->snippet); +} + +// 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. + AddAudienceExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Remarketing/AddConversionTracker.php b/examples/AdWords/v201309/Remarketing/AddConversionTracker.php new file mode 100755 index 000000000..ff183b9f5 --- /dev/null +++ b/examples/AdWords/v201309/Remarketing/AddConversionTracker.php @@ -0,0 +1,95 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function AddConversionTrackerExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $conversionTrackerService = + $user->GetService('ConversionTrackerService', ADWORDS_VERSION); + + // Create conversion tracker. + $conversionTracker = new AdWordsConversionTracker(); + $conversionTracker->name = 'Interplanetary Cruise Conversion #' . uniqid(); + + // Set additional settings (optional). + $conversionTracker->status = 'ENABLED'; + $conversionTracker->category = 'DEFAULT'; + $conversionTracker->viewthroughLookbackWindow = 15; + $conversionTracker->isProductAdsChargeable = TRUE; + $conversionTracker->productAdsChargeableConversionWindow = 15; + $conversionTracker->markupLanguage = 'HTML'; + $conversionTracker->textFormat = 'HIDDEN'; + $conversionTracker->conversionPageLanguage = 'en'; + $conversionTracker->backgroundColor = '#0000FF'; + $conversionTracker->userRevenueValue = 'someJavascriptVariable'; + + // Create operation. + $operation = new ConversionTrackerOperation(); + $operation->operand = $conversionTracker; + $operation->operator = 'ADD'; + + $operations = array($operation); + + // Make the mutate request. + $result = $conversionTrackerService->mutate($operations); + + // Display result. + $conversionTracker = $result->value[0]; + printf("Conversion type with name '%s' and ID '%.0f' was added.\n", + $conversionTracker->name, $conversionTracker->id); + printf("Tag code:\n%s\n", $conversionTracker->snippet); +} + +// 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. + AddConversionTrackerExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Reporting/DownloadCriteriaReport.php b/examples/AdWords/v201309/Reporting/DownloadCriteriaReport.php new file mode 100755 index 000000000..a331f704e --- /dev/null +++ b/examples/AdWords/v201309/Reporting/DownloadCriteriaReport.php @@ -0,0 +1,91 @@ +LoadService('ReportDefinitionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('CampaignId', 'AdGroupId', 'Id', 'Criteria', + 'CriteriaType', 'Impressions', 'Clicks', 'Cost'); + + // Filter out deleted criteria. + $selector->predicates[] = new Predicate('Status', 'NOT_IN', array('DELETED')); + + // Create report definition. + $reportDefinition = new ReportDefinition(); + $reportDefinition->selector = $selector; + $reportDefinition->reportName = 'Criteria performance report #' . uniqid(); + $reportDefinition->dateRangeType = 'LAST_7_DAYS'; + $reportDefinition->reportType = 'CRITERIA_PERFORMANCE_REPORT'; + $reportDefinition->downloadFormat = 'CSV'; + + // Exclude criteria that haven't recieved any impressions over the date range. + $reportDefinition->includeZeroImpressions = FALSE; + + // Set additional options. + $options = array('version' => ADWORDS_VERSION, 'returnMoneyInMicros' => TRUE); + + // Download report. + ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options); + + printf("Report with name '%s' was downloaded to '%s'.\n", + $reportDefinition->reportName, $filePath); +} + +// 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(); + + // Download the report to a file in the same directory as the example. + $filePath = dirname(__FILE__) . '/report.csv'; + + // Run the example. + DownloadCriteriaReportExample($user, $filePath); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Reporting/DownloadCriteriaReportWithAwql.php b/examples/AdWords/v201309/Reporting/DownloadCriteriaReportWithAwql.php new file mode 100755 index 000000000..ed6c35d45 --- /dev/null +++ b/examples/AdWords/v201309/Reporting/DownloadCriteriaReportWithAwql.php @@ -0,0 +1,82 @@ + + */ + +error_reporting(E_STRICT | E_ALL); + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +require_once ADWORDS_UTIL_PATH . '/ReportUtils.php'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $filePath the path of the file to download the report to + */ +function DownloadCriteriaReportWithAwqlExample(AdWordsUser $user, $filePath, + $reportFormat) { + // Prepare a date range for the last week. Instead you can use 'LAST_7_DAYS'. + $dateRange = sprintf('%d,%d', + date('Ymd', strtotime('-7 day')), date('Ymd', strtotime('-1 day'))); + + // Create report query. + $reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, ' + . 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT ' + . 'WHERE Status IN [ACTIVE, PAUSED] DURING ' . $dateRange; + + // Set additional options. + $options = array('version' => ADWORDS_VERSION); + + // Download report. + ReportUtils::DownloadReportWithAwql($reportQuery, $filePath, $user, + $reportFormat, $options); + + printf("Report was downloaded to '%s'.\n", $filePath); +} + +// 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(); + + // Download the report to a file in the same directory as the example. + $filePath = dirname(__FILE__) . '/report.csv'; + $reportFormat = 'CSV'; + + // Run the example. + DownloadCriteriaReportWithAwqlExample($user, $filePath, $reportFormat); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Reporting/GetReportFields.php b/examples/AdWords/v201309/Reporting/GetReportFields.php new file mode 100755 index 000000000..89a9afee9 --- /dev/null +++ b/examples/AdWords/v201309/Reporting/GetReportFields.php @@ -0,0 +1,78 @@ +GetService('ReportDefinitionService', ADWORDS_VERSION); + + // The type of the report to get fields for. + $reportType = 'CAMPAIGN_PERFORMANCE_REPORT'; + + // Get report fields. + $reportDefinitionFields = + $reportDefinitionService->getReportFields($reportType); + + // Display results. + printf("The report type '%s' contains the following fields:\n", $reportType); + foreach ($reportDefinitionFields as $reportDefinitionField) { + printf(' %s (%s)', $reportDefinitionField->fieldName, + $reportDefinitionField->fieldType); + if (isset($reportDefinitionField->enumValues)) { + printf(' := [%s]', implode(', ', $reportDefinitionField->enumValues)); + } + print "\n"; + } +} + +// 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. + GetReportFieldsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Targeting/AddCampaignTargetingCriteria.php b/examples/AdWords/v201309/Targeting/AddCampaignTargetingCriteria.php new file mode 100755 index 000000000..ce47cc09d --- /dev/null +++ b/examples/AdWords/v201309/Targeting/AddCampaignTargetingCriteria.php @@ -0,0 +1,103 @@ +GetService('CampaignCriterionService', ADWORDS_VERSION); + + $campaignCriteria = array(); + + // Create locations. The IDs can be found in the documentation or retrieved + // with the LocationCriterionService. + $california = new Location(); + $california->id = 21137; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $california); + + $mexico = new Location(); + $mexico->id = 2484; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $mexico); + + // Create languages. The IDs can be found in the documentation or retrieved + // with the ConstantDataService. + $english = new Language(); + $english->id = 1000; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $english); + + $spanish = new Language(); + $spanish->id = 1003; + $campaignCriteria[] = new CampaignCriterion($campaignId, null, $spanish); + + // Create operations. + $operations = array(); + foreach ($campaignCriteria as $campaignCriterion) { + $operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD'); + } + + // Make the mutate request. + $result = $campaignCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $campaignCriterion) { + printf("Campaign targeting criterion with ID '%s' and type '%s' was " + . "added.\n", $campaignCriterion->criterion->id, + $campaignCriterion->criterion->CriterionType); + } +} + +// 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. + AddCampaignTargetingCriteriaExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Targeting/GetCampaignTargetingCriteria.php b/examples/AdWords/v201309/Targeting/GetCampaignTargetingCriteria.php new file mode 100755 index 000000000..f4ace5aa8 --- /dev/null +++ b/examples/AdWords/v201309/Targeting/GetCampaignTargetingCriteria.php @@ -0,0 +1,101 @@ + + * @author Eric Koleda + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +// Enter parameters required by the code example. +$campaignId = 'INSERT_CAMPAIGN_ID_HERE'; + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + * @param string $campaignId the ID of the campaign to get targeting criteria + * for + */ +function GetCampaignTargetingCriteriaExample(AdWordsUser $user, $campaignId) { + // Get the service, which loads the required classes. + $campaignCriterionService = + $user->GetService('CampaignCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('Id', 'CriteriaType'); + + // Create predicates. + $selector->predicates[] = + new Predicate('CampaignId', 'IN', array($campaignId)); + $selector->predicates[] = new Predicate('CriteriaType', 'IN', + array('LANGUAGE', 'LOCATION', 'AGE_RANGE', 'CARRIER', + 'OPERATING_SYSTEM_VERSION', 'GENDER', 'POLYGON', 'PROXIMITY', + 'PLATFORM')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $campaignCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $campaignCriterion) { + printf("Campaign targeting criterion with ID '%s' and type '%s' was " + . "found.\n", $campaignCriterion->criterion->id, + $campaignCriterion->criterion->CriterionType); + } + } else { + print "No campaign targeting criteria 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. + GetCampaignTargetingCriteriaExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Targeting/GetTargetableLanguagesAndCarriers.php b/examples/AdWords/v201309/Targeting/GetTargetableLanguagesAndCarriers.php new file mode 100755 index 000000000..dfd9fec8e --- /dev/null +++ b/examples/AdWords/v201309/Targeting/GetTargetableLanguagesAndCarriers.php @@ -0,0 +1,77 @@ +GetService('ConstantDataService', ADWORDS_VERSION); + + // Make the getLanguageCriterion request. + $languages = $constantDataService->getLanguageCriterion(); + + foreach ($languages as $language) { + printf("Language with name '%s' and ID '%s' was found.\n", + $language->name, $language->id); + } + + print "\n"; + + // Make the getCarrierCriterion request. + $carriers = $constantDataService->getCarrierCriterion(); + + foreach ($carriers as $carrier) { + printf("Carrier with name '%s', country code '%s', and ID '%s' was " + . "found.\n", $carrier->name, $carrier->countryCode, $carrier->id); + } +} + +// 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. + GetTargetableLanguagesAndCarriersExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/Targeting/LookupLocation.php b/examples/AdWords/v201309/Targeting/LookupLocation.php new file mode 100755 index 000000000..d4cd30807 --- /dev/null +++ b/examples/AdWords/v201309/Targeting/LookupLocation.php @@ -0,0 +1,109 @@ + + */ + +// Include the initialization file +require_once dirname(dirname(__FILE__)) . '/init.php'; + +/** + * Gets a string representation for a location. + * @param Location $location the location + * @return string the string representation + */ +function GetLocationString($location) { + return sprintf('%s (%s)', $location->locationName, $location->displayType); +} + +/** + * Runs the example. + * @param AdWordsUser $user the user to run the example with + */ +function LookupLocationExample(AdWordsUser $user) { + // Get the service, which loads the required classes. + $locationCriterionService = + $user->GetService('LocationCriterionService', ADWORDS_VERSION); + + // Location names to look up. + $locationNames = array('Paris', 'Quebec', 'Spain', 'Deutschland'); + // Locale to retrieve location names in. + $locale = 'en'; + + $selector = new Selector(); + $selector->fields = array('Id', 'LocationName', 'CanonicalName', + 'DisplayType', 'ParentLocations', 'Reach', 'TargetingStatus'); + // Location names must match exactly, only EQUALS and IN are supported. + $selector->predicates[] = new Predicate('LocationName', 'IN', $locationNames); + // Only one locale can be used in a request. + $selector->predicates[] = new Predicate('Locale', 'EQUALS', $locale); + + // Make the get request. + $locationCriteria = $locationCriterionService->get($selector); + + // Display results. + if (isset($locationCriteria)) { + foreach ($locationCriteria as $locationCriterion) { + if (isset($locationCriterion->location->parentLocations)) { + $parentLocations = implode(', ', + array_map('GetLocationString', + $locationCriterion->location->parentLocations)); + } else { + $parentLocations = 'N/A'; + } + printf("The search term '%s' returned the location '%s' of type '%s' " + . "with ID '%s', parent locations '%s', and reach '%d' (%s).\n", + $locationCriterion->searchTerm, + $locationCriterion->location->locationName, + $locationCriterion->location->displayType, + $locationCriterion->location->id, + $parentLocations, + $locationCriterion->reach, + $locationCriterion->location->targetingStatus); + } + } else { + print "No location criteria were found.\n"; + } +} + +// 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. + LookupLocationExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201309/init.php b/examples/AdWords/v201309/init.php new file mode 100755 index 000000000..e0f66811b --- /dev/null +++ b/examples/AdWords/v201309/init.php @@ -0,0 +1,46 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + $numAdGroups = 2; + $operations = array(); + for ($i = 0; $i < $numAdGroups; $i++) { + // Create ad group. + $adGroup = new AdGroup(); + $adGroup->campaignId = $campaignId; + $adGroup->name = 'Earth to Mars Cruise #' . uniqid(); + + // Set bids (required). + $bid = new CpmBid(); + $bid->bid = new Money(1000000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set additional settings (optional). + $adGroup->status = 'ENABLED'; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroups = $result->value; + foreach ($adGroups as $adGroup) { + printf("Ad group with name '%s' and ID '%s' was added.\n", $adGroup->name, + $adGroup->id); + } +} + +// 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. + AddAdGroupsExample($user, $campaignId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/AddCampaigns.php b/examples/Adx/v201306/BasicOperations/AddCampaigns.php new file mode 100755 index 000000000..d0332409f --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/AddCampaigns.php @@ -0,0 +1,146 @@ +GetService('BudgetService', ADWORDS_VERSION); + + // Create the shared budget (required). + $budget = new Budget(); + $budget->name = 'Interplanetary Cruise Budget #' . uniqid(); + $budget->period = 'DAILY'; + $budget->amount = new Money(50000000); + $budget->deliveryMethod = 'STANDARD'; + + $operations = array(); + + // Create operation. + $operation = new BudgetOperation(); + $operation->operand = $budget; + $operation->operator = 'ADD'; + $operations[] = $operation; + + // Make the mutate request. + $result = $budgetService->mutate($operations); + $budget = $result->value[0]; + + // Get the service, which loads the required classes. + $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION); + + $numCampaigns = 2; + $operations = array(); + for ($i = 0; $i < $numCampaigns; $i++) { + // Create campaign. + $campaign = new Campaign(); + $campaign->name = 'Interplanetary Cruise #' . uniqid(); + + // Set shared budget (required). + $campaign->budget = new Budget(); + $campaign->budget->budgetId = $budget->budgetId; + + // Set bidding strategy (required). + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->biddingStrategyType = 'MANUAL_CPM'; + $campaign->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Set keyword matching setting (required). + $keywordMatchSetting = new KeywordMatchSetting(); + $keywordMatchSetting->optIn = FALSE; + $campaign->settings[] = $keywordMatchSetting; + + // Set network targeting (recommended). + $networkSetting = new NetworkSetting(); + $networkSetting->targetContentNetwork = TRUE; + $campaign->networkSetting = $networkSetting; + + // Set additional settings (optional). + $campaign->status = 'PAUSED'; + $campaign->startDate = date('Ymd', strtotime('+1 day')); + $campaign->endDate = date('Ymd', strtotime('+1 month')); + $campaign->adServingOptimizationStatus = 'ROTATE'; + + // Set frequency cap (optional). + $frequencyCap = new FrequencyCap(); + $frequencyCap->impressions = 5; + $frequencyCap->timeUnit = 'DAY'; + $frequencyCap->level = 'ADGROUP'; + $campaign->frequencyCap = $frequencyCap; + + // Set advanced location targeting settings (optional). + $geoTargetTypeSetting = new GeoTargetTypeSetting(); + $geoTargetTypeSetting->positiveGeoTargetType = 'DONT_CARE'; + $geoTargetTypeSetting->negativeGeoTargetType = 'DONT_CARE'; + $campaign->settings[] = $geoTargetTypeSetting; + + // Set Real-Time bidding setting (optional). + $realTimeBiddingSetting = new RealTimeBiddingSetting(); + $realTimeBiddingSetting->optIn = TRUE; + $campaign->settings[] = $realTimeBiddingSetting; + + // Create operation. + $operation = new CampaignOperation(); + $operation->operand = $campaign; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $campaignService->mutate($operations); + + // Display results. + foreach ($result->value as $campaign) { + printf("Campaign with name '%s' and ID '%s' was added.\n", $campaign->name, + $campaign->id); + } +} + +// 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. + AddCampaignsExample($user); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/AddPlacements.php b/examples/Adx/v201306/BasicOperations/AddPlacements.php new file mode 100755 index 000000000..990a73c2f --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/AddPlacements.php @@ -0,0 +1,107 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + $numPlacements = 5; + $operations = array(); + for ($i = 0; $i < $numPlacements; $i++) { + // Create placement criterion. + $placement = new Placement(); + $placement->url = 'mars.google.com/' . uniqid(); + + // Create biddable ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $placement; + + // Set additional settings (optional). + $adGroupCriterion->userStatus = 'PAUSED'; + $adGroupCriterion->destinationUrl = 'http://www.example.com/mars'; + + // Set bids (optional). + $bid = new CpmBid(); + $bid->bid = new Money(500000); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroupCriterion->biddingStrategyConfiguration = + $biddingStrategyConfiguration; + + $adGroupCriteria[] = $adGroupCriterion; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + printf("Placement with URL '%s' and ID '%s' was added.\n", + $adGroupCriterion->criterion->url, + $adGroupCriterion->criterion->id); + } +} + +// 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. + AddPlacementsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/AddThirdPartyRedirectAds.php b/examples/Adx/v201306/BasicOperations/AddThirdPartyRedirectAds.php new file mode 100755 index 000000000..ce57ffade --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/AddThirdPartyRedirectAds.php @@ -0,0 +1,140 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + $numAds = 5; + + $thirdPartyRedirectAd = new ThirdPartyRedirectAd(); + $thirdPartyRedirectAd->name = 'Example third party ad #' . uniqid(); + $thirdPartyRedirectAd->url = 'http://www.example.com'; + + $thirdPartyRedirectAd->dimensions = new Dimensions(300, 250); + // This field normally contains the javascript ad tag. + $thirdPartyRedirectAd->snippet = ''; + + // DoubleClick Rich Media Expandable format ID. + $thirdPartyRedirectAd->certifiedVendorFormatId = 232; + $thirdPartyRedirectAd->isCookieTargeted = false; + $thirdPartyRedirectAd->isUserInterestTargeted = false; + $thirdPartyRedirectAd->isTagged = false; + + // Expandable Ad properties. + $thirdPartyRedirectAd->expandingDirections = + array('EXPANDING_UP', 'EXPANDING_DOWN'); + $thirdPartyRedirectAd->adAttributes = array('ROLL_OVER_TO_EXPAND'); + + // Create ad group ad. + $thirdPartyAdGroup = new AdGroupAd(); + $thirdPartyAdGroup->adGroupId = $adGroupId; + $thirdPartyAdGroup->ad = $thirdPartyRedirectAd; + + // Set additional settings (optional). + $thirdPartyAdGroup->status = 'PAUSED'; + + // Create operation. + $thirdPartyOperation = new AdGroupAdOperation(); + $thirdPartyOperation->operand = $thirdPartyAdGroup; + $thirdPartyOperation->operator = 'ADD'; + + // Create in stream third party redirect ad. + $inStreamRedirectAd = new ThirdPartyRedirectAd(); + $inStreamRedirectAd->name = 'Example third party ad #' . uniqid(); + $inStreamRedirectAd->url = 'http://www.example.com'; + + // Duration = 15 seconds + $inStreamRedirectAd->adDuration = 15000; + $inStreamRedirectAd->sourceUrl = 'http://ad.doubleclick.net/pfadx/' . + 'N270.126913.6102203221521/B3876671.21;dcadv=2215309;sz=0x0;' . + 'ord=%5btimestamp%5d;dcmt=text/xml'; + + // VAST (video) Unit. + $inStreamRedirectAd->certifiedVendorFormatId = 303; + + $inStreamRedirectAd->richMediaAdType = 'IN_STREAM_VIDEO'; + + // Create ad group ad. + $inStreamAdGroup = new AdGroupAd(); + $inStreamAdGroup->adGroupId = $adGroupId; + $inStreamAdGroup->ad = $inStreamRedirectAd; + + // Set additional settings (optional). + $inStreamAdGroup->status = 'PAUSED'; + + // Create operation. + $inStreamOperation = new AdGroupAdOperation(); + $inStreamOperation->operand = $inStreamAdGroup; + $inStreamOperation->operator = 'ADD'; + + $operations = array( + $thirdPartyOperation, + $inStreamOperation, + ); + + // Make the mutate request. + $result = $adGroupAdService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupAd) { + printf("Third party redirect ad with name '%s' and ID '%s' was added.\n", + $adGroupAd->ad->name, $adGroupAd->ad->id); + } +} + +// 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. + AddThirdPartyRedirectAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/DeletePlacement.php b/examples/Adx/v201306/BasicOperations/DeletePlacement.php new file mode 100755 index 000000000..c427104a1 --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/DeletePlacement.php @@ -0,0 +1,90 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create criterion using an existing ID. Use the base class Criterion + // instead of Placement to avoid having to set placement-specific fields. + $criterion = new Criterion(); + $criterion->id = $criterionId; + + // Create ad group criterion. + $adGroupCriterion = new AdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = new Criterion($criterionId); + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'REMOVE'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Placement with ID '%s' was deleted.\n", + $adGroupCriterion->criterion->id); +} + +// 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. + DeletePlacementExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/GetPlacements.php b/examples/Adx/v201306/BasicOperations/GetPlacements.php new file mode 100755 index 000000000..f328c1de4 --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/GetPlacements.php @@ -0,0 +1,96 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('PlacementUrl', 'Id'); + $selector->ordering[] = new OrderBy('PlacementUrl', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('CriteriaType', 'IN', array('PLACEMENT')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupCriterionService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupCriterion) { + printf("Placement with URL '%s' and ID '%s' was found.\n", + $adGroupCriterion->criterion->url, + $adGroupCriterion->criterion->id); + } + } else { + print "No placements 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. + GetPlacementsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/GetThirdPartyRedirectAds.php b/examples/Adx/v201306/BasicOperations/GetThirdPartyRedirectAds.php new file mode 100755 index 000000000..e835db781 --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/GetThirdPartyRedirectAds.php @@ -0,0 +1,99 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('RichMediaAdName', 'Id'); + $selector->ordering[] = new OrderBy('Id', 'ASCENDING'); + + // Create predicates. + $selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId)); + $selector->predicates[] = + new Predicate('AdType', 'IN', array('THIRD_PARTY_REDIRECT_AD')); + // By default disabled ads aren't returned by the selector. To return them + // include the DISABLED status in a predicate. + $selector->predicates[] = + new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED')); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $adGroupAdService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $adGroupAd) { + printf("Third party redirect ad with name '%s' and ID '%s' was " + . "found.\n", $adGroupAd->ad->name, $adGroupAd->ad->id); + } + } else { + print "No third party redirect ads 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. + GetThirdPartyRedirectAdsExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/UpdateAdGroup.php b/examples/Adx/v201306/BasicOperations/UpdateAdGroup.php new file mode 100755 index 000000000..3824608af --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/UpdateAdGroup.php @@ -0,0 +1,91 @@ +GetService('AdGroupService', ADWORDS_VERSION); + + // Create ad group using an existing ID. + $adGroup = new AdGroup(); + $adGroup->id = $adGroupId; + + // Update the bid. + $bid = new CpmBid(); + $bid->bid = new Money(0.75 * AdWordsConstants::MICROS_PER_DOLLAR); + $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); + $biddingStrategyConfiguration->bids[] = $bid; + $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; + + // Create operation. + $operation = new AdGroupOperation(); + $operation->operand = $adGroup; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupService->mutate($operations); + + // Display result. + $adGroup = $result->value[0]; + printf("Ad group with ID '%s' has updated default bid '$%s'.\n", $adGroup->id, + $adGroup->biddingStrategyConfiguration->bids[0]->bid->microAmount / + AdWordsConstants::MICROS_PER_DOLLAR); +} + +// 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. + UpdateAdGroupExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/BasicOperations/UpdatePlacement.php b/examples/Adx/v201306/BasicOperations/UpdatePlacement.php new file mode 100755 index 000000000..3c2368fe2 --- /dev/null +++ b/examples/Adx/v201306/BasicOperations/UpdatePlacement.php @@ -0,0 +1,94 @@ +GetService('AdGroupCriterionService', ADWORDS_VERSION); + + // Create criterion using an existing ID. Use the base class Criterion + // instead of Placement to avoid having to set placement-specific fields. + $criterion = new Placement(); + $criterion->id = $criterionId; + + // Create ad group criterion. + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $criterion; + + // Update destination URL. + $adGroupCriterion->destinationUrl = 'http://www.example.com/new'; + + // Create operation. + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'SET'; + + $operations = array($operation); + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display result. + $adGroupCriterion = $result->value[0]; + printf("Placement with ID '%s' has updated destination URL '%s'.\n", + $adGroupCriterion->criterion->id, $adGroupCriterion->destinationUrl); +} + +// 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. + UpdatePlacementExample($user, $adGroupId, $criterionId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/CampaignManagement/AddPlacementsInBulk.php b/examples/Adx/v201306/CampaignManagement/AddPlacementsInBulk.php new file mode 100755 index 000000000..32d5d38d6 --- /dev/null +++ b/examples/Adx/v201306/CampaignManagement/AddPlacementsInBulk.php @@ -0,0 +1,203 @@ +GetService('MutateJobService', ADWORDS_VERSION); + + // Generate operations. + $numPlacements = 100; + $operations = array(); + for ($i = 0; $i < $numPlacements; $i++) { + $placement = new Placement(); + // Randomly add invalid characters to placement URLs. + if (rand(0, 9) == 0) { + $placement->url = 'mars.google.com/<' . uniqid(); + } else { + $placement->url = 'mars.google.com/' . uniqid(); + } + + $adGroupCriterion = new BiddableAdGroupCriterion(); + $adGroupCriterion->adGroupId = $adGroupId; + $adGroupCriterion->criterion = $placement; + + $operation = new AdGroupCriterionOperation(); + $operation->operator = 'ADD'; + $operation->operand = $adGroupCriterion; + $operations[] = $operation; + } + + // You can specify up to 3 job IDs that must successfully complete before + // this job can be processed. We won't set any in this example. + $policy = new BulkMutateJobPolicy(); + $policy->prerequisiteJobIds = array(); + + // Call mutate to create a new job. + printf("Creating job with %d operations.\n", sizeof($operations)); + $job = $mutateJobService->mutate($operations, $policy); + printf("Job with ID '%s' was created.\n", $job->id); + + // Create a selector for retrieving the job status and later its results. + $selector = new BulkMutateJobSelector(); + $selector->jobIds[] = $job->id; + $selector->includeStats = TRUE; + $selector->includeHistory = TRUE; + + $numRetries = 0; + $maxRetries = 100; + $retryInterval = 10; + do { + sleep($retryInterval); + $jobs = $mutateJobService->get($selector); + $job = $jobs[0]; + switch ($job->status) { + case 'PENDING': + printf("The job has been pending for approximately %s.\n", + strftime('%M:%S', time() - strtotime($job->history[0]->dateTime))); + break; + case 'PROCESSING': + printf("The job is processing and approximately %d%% complete.\n", + $job->stats->progressPercent); + break; + case 'COMPLETED': + printf("The job is complete and took approximately %d seconds to " + ."process.\n", $job->stats->processingTimeMillis / 100); + break; + case 'FAILED': + printf("The job failed with reason '%s'.\n", + ChoiceUtils::GetValue($job->failureReason)); + break; + } + $numRetries++; + } while (($job->status == 'PENDING' || $job->status == 'PROCESSING') && + $numRetries < $maxRetries); + + if ($job->status == 'COMPLETED') { + // Retrieve the results of the job. + $jobResult = ChoiceUtils::GetValue( + $mutateJobService->getResult($selector)); + + // Sort the placements into groups based on the results. + $lost = array(); + $skipped = array(); + $failed = array(); + $errors = array(); + $genericErrors = array(); + + // Examines the errors to determine which placements failed to be applied. + foreach ($jobResult->errors as $error) { + $index = OgnlUtils::GetOperationIndex($error->fieldPath); + if (isset($index)) { + $placementUrl = $operations[$index]->operand->criterion->url; + switch ($error->reason) { + case 'LOST_RESULT': + $lost[] = $placementUrl; + break; + case 'UNPROCESSED_RESULT': + case 'BATCH_FAILURE': + $skipped[] = $placementUrl; + break; + default: + if (!in_array($placementUrl, $failed)) { + $failed[] = $placementUrl; + } + $errors[$placementUrl][] = $error; + } + } else { + $genericErrors[] = $error; + } + } + + // Examine the results to determine which placements were added + // successfully. + $succeeded = array(); + for ($i = 0; $i < sizeof($jobResult->results); $i++) { + $operation = $operations[$i]; + $result = ChoiceUtils::GetValue($jobResult->results[$i]); + if ($result instanceof AdGroupCriterion) { + $succeeded[] = $result->criterion->url; + } + } + + // Display the results of the job. + printf("%d placements were added successfully: %s\n", sizeof($succeeded), + implode(', ', $succeeded)); + + printf("%d placements were skipped and should be retried: %s\n", + sizeof($skipped), implode(', ', $skipped)); + + printf("%d placements were not added due to errors:\n", sizeof($failed)); + foreach ($failed as $placementUrl) { + $errorStrings = array(); + foreach ($errors[$placementUrl] as $error) { + $errorStrings[] = $error->errorString; + } + printf("- %s: %s\n", $placementUrl, implode(', ', $errorStrings)); + } + + printf("%d generic errors were encountered:\n", sizeof($genericErrors)); + foreach($genericErrors as $error) { + printf("- %s\n", $error->errorString); + } + } +} + +// 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. + AddPlacementsInBulkExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/ErrorHandling/HandlePartialFailures.php b/examples/Adx/v201306/ErrorHandling/HandlePartialFailures.php new file mode 100755 index 000000000..cf4232ac6 --- /dev/null +++ b/examples/Adx/v201306/ErrorHandling/HandlePartialFailures.php @@ -0,0 +1,114 @@ +GetService('AdGroupCriterionService', + ADWORDS_VERSION, NULL, NULL, NULL, TRUE); + + // Create placements. + $placements = array(); + $placements[] = new Placement('mars.google.com'); + $placements[] = new Placement('bad.url'); + $placements[] = new Placement('venus.google.com'); + $placements[] = new Placement('example.com/invalidadGroupId = $adGroupId; + $adGroupCriterion->criterion = $placement; + + $operation = new AdGroupCriterionOperation(); + $operation->operand = $adGroupCriterion; + $operation->operator = 'ADD'; + + $operations[] = $operation; + } + + // Make the mutate request. + $result = $adGroupCriterionService->mutate($operations); + + // Display results. + foreach ($result->value as $adGroupCriterion) { + if ($adGroupCriterion->AdGroupCriterionType == 'BiddableAdGroupCriterion') { + printf("Placement with URL '%s' and ID '%s' was added.\n", + $adGroupCriterion->criterion->url, + $adGroupCriterion->criterion->id); + } + } + + // Check for partial failures. + if (isset($result->partialFailureErrors)) { + foreach ($result->partialFailureErrors as $error) { + $index = ErrorUtils::GetSourceOperationIndex($error); + if (isset($index)) { + $adGroupCriterion = $operations[$index]->operand; + printf("Placement with URL '%s' failed with error '%s'.\n", + $adGroupCriterion->criterion->url, $error->errorString); + } else { + printf("Operations failed with error '%s'.\n", $error->errorString); + } + } + } +} + +// 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. + HandlePartialFailuresExample($user, $adGroupId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Adx/v201306/init.php b/examples/Adx/v201306/init.php new file mode 100755 index 000000000..53dfea7c5 --- /dev/null +++ b/examples/Adx/v201306/init.php @@ -0,0 +1,46 @@ +GetTrigger(); + if (in_array($trigger, $requiredAuthFields)) { + $errorMessage = sprintf( + "Your OAuth2 Credentials are missing the '%s'. Please see" + . " GetRefreshToken.php for further information.", + $trigger + ); + } + } + printf("%s\n%s\n", $errorMessage, $raisedException->getMessage()); + } +} diff --git a/examples/Common/HandleCaptcha.php b/examples/Common/HandleCaptcha.php new file mode 100755 index 000000000..5fdfe3cdb --- /dev/null +++ b/examples/Common/HandleCaptcha.php @@ -0,0 +1,90 @@ +GetAuthToken(); + print '.'; + } + } catch (AuthTokenException $e) { + print "\n"; + if ($e->GetError() == 'CaptchaRequired') { + print "A CAPTCHA is required.\n"; + printf("View CAPTCHA challenge image: %s/accounts/%s\n", + $authToken->GetServer(), $e->GetCaptchaUrl()); + $captchaToken = $e->GetCaptchaToken(); + $captchaResponse = readInput('Enter CAPTCHA response: '); + // Request new AuthToken using CAPTCHA token and response. + try { + $authToken = new AuthToken($email, $password, $service, $source, NULL, + NULL, $captchaToken, $captchaResponse); + $value = $authToken->GetAuthToken(); + print "CAPTCHA challenge passed.\n"; + } catch (AuthTokenException $e) { + print "CAPTCHA challenge failed.\n"; + } + } else { + printf("AuthTokenException: %s\n", $e->GetError()); + } + } +} catch (Exception $e) { + print $e->getMessage(); +} + diff --git a/examples/Dfp/Auth/GetRefreshToken.php b/examples/Dfp/Auth/GetRefreshToken.php new file mode 100755 index 000000000..bf516ad94 --- /dev/null +++ b/examples/Dfp/Auth/GetRefreshToken.php @@ -0,0 +1,110 @@ +GetOAuth2Handler(); + $authorizationUrl = $OAuth2Handler->GetAuthorizationUrl( + $user->GetOAuth2Info(), $redirectUri, $offline); + + // In a web application you would redirect the user to the authorization URL + // and after approving the token they would be redirected back to the + // redirect URL, with the URL parameter "code" added. For desktop + // or server applications, spawn a browser to the URL and then have the user + // enter the authorization code that is displayed. + printf("Log in to your DFP account and open the following URL:\n%s\n\n", + $authorizationUrl); + print "After approving the token enter the authorization code here: "; + $stdin = fopen('php://stdin', 'r'); + $code = trim(fgets($stdin)); + fclose($stdin); + print "\n"; + + // Get the access token using the authorization code. Ensure you use the same + // redirect URL used when requesting authorization. + $user->SetOAuth2Info( + $OAuth2Handler->GetAccessToken( + $user->GetOAuth2Info(), $code, $redirectUri)); + + // The access token expires but the refresh token obtained for offline use + // doesn't, and should be stored for later use. + return $user->GetOAuth2Info(); +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Get the client ID and secret from the auth.ini file. If you do not have a + // client ID or secret, please create one of type "installed application" in + // the Google API console: https://code.google.com/apis/console#access + // and set it in the auth.ini file. + $user = new DfpUser(); + $user->LogAll(); + + // Get the OAuth2 credential. + $oauth2Info = GetOAuth2Credential($user); + + // Enter the refresh token into your auth.ini file. + printf("Your refresh token is: %s\n\n", $oauth2Info['refresh_token']); + printf("In your auth.ini file, edit the refresh_token line to be:\n" + . "refresh_token = \"%s\"\n", $oauth2Info['refresh_token']); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/README.md b/examples/Dfp/README.md new file mode 100755 index 000000000..862a395ca --- /dev/null +++ b/examples/Dfp/README.md @@ -0,0 +1,12 @@ +### DoubleClick for Publishers API PHP Client Library Examples + +For instructions on how to get started, please visit our GitHub project: +https://github.com/googleads/googleads-php-lib + +For API and client library updates and news, please follow our +[Google+ Ads Developers page](https://plus.google.com/+GoogleAdsDevelopers/posts) +and our [Google Ads Developers blog](http://googleadsdeveloper.blogspot.com/). + +For any issues relating to the API in general (not this library), please see the +[DFP API forum](https://groups.google.com/forum/#!forum/google-doubleclick-for-publishers-api) + diff --git a/examples/Dfp/v201208/AudienceSegmentService/GetAllAudienceSegmentsExample.php b/examples/Dfp/v201208/AudienceSegmentService/GetAllAudienceSegmentsExample.php new file mode 100755 index 000000000..a8ca77600 --- /dev/null +++ b/examples/Dfp/v201208/AudienceSegmentService/GetAllAudienceSegmentsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201208'); + + // Set defaults for page and statement. + $page = new AudienceSegmentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all audience segments. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + print $i . ') Audience segment with ID "' + . $audienceSegment->id . '", and name "' . $audienceSegment->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201208/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..1a297b81d --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201208/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..6871848fb --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201208/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..624d5129a --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // Create a statement to only select companies that are advertisers sorted + // by name. + $filterStatement = + new Statement("WHERE type = :type ORDER BY name LIMIT 500", $vars); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CompanyService/GetCompanyExample.php b/examples/Dfp/v201208/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..c3ce5fc4a --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201208/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..f50cb6e99 --- /dev/null +++ b/examples/Dfp/v201208/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201208'); + + // Create a statement to only select companies that are advertisers. + $filterStatement = new Statement("WHERE type = 'ADVERTISER' LIMIT 500"); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + if (isset($page->results)) { + $companies = $page->results; + + // Update each local company object by appending LLC. to its name. + foreach ($companies as $company) { + $company->name .= ' LLC.'; + } + + // Update the companies on the server. + $companies = $companyService->updateCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '" and name "' . $company->name . "\" was updated.\n"; + } + } else { + print "No companies updated.\n"; + } + } else { + print "No companies found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ContentService/GetAllContentExample.php b/examples/Dfp/v201208/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..e1a9ea116 --- /dev/null +++ b/examples/Dfp/v201208/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201208'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201208/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..8d7dae815 --- /dev/null +++ b/examples/Dfp/v201208/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Get content browse custom targeting key ID. + $network = $networkService->getCurrentNetwork(); + $contentBrowseCustomTargetingKeyId = + $network->contentBrowseCustomTargetingKeyId; + + // Create a statement to select the categories matching the name comedy. + $categoryFilterStatement = new Statement( + "WHERE customTargetingKeyId = :contentBrowseCustomTargetingKeyId " + . "and name = :category LIMIT 1"); + $categoryFilterStatement->values = MapUtils::GetMapEntries(array( + 'contentBrowseCustomTargetingKeyId' => + new NumberValue($contentBrowseCustomTargetingKeyId), + 'category' => new TextValue('comedy'))); + + // Get categories matching the filter statement. + $customTargetingValuePage = + $customTargetingService->getCustomTargetingValuesByStatement( + $categoryFilterStatement); + + // Get the custom targeting value ID for the comedy category. + $categoryCustomTargetingValueId = $customTargetingValuePage->results[0]->id; + + // Create a statement to get all active content. + $filterStatement = new Statement("WHERE status = 'ACTIVE' LIMIT 500"); + + // Get content by statement. + $page = $contentService->getContentByStatementAndCustomTargetingValue( + $filterStatement, $categoryCustomTargetingValueId); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201208/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..15da82c85 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201208'); + + // Set the line item ID and creative set ID to associate. + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + $creativeSetId = "INSERT_CREATIVE_SET_ID_HERE"; + + $lica = new LineItemCreativeAssociation(); + $lica->lineItemId = $lineItemId; + $lica->creativeSetId = $creativeSetId; + + // Create the LICA on the server. + $licas = $licaService->createLineItemCreativeAssociations(array($lica)); + $lica = $licas[0]; + + printf("A LICA with line item ID %d and creative set ID %d was created.", + $lica->lineItemId, $lica->creativeSetId); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201208/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..9f33e88c2 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($templateCreative)) { + printf("A template creative with ID '%s', name '%s', and type '%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->CreativeType, + $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201208/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..9ffde93af --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/CreateCreativesExample.php @@ -0,0 +1,109 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->imageName = 'image.jpg'; + $imageCreative->imageByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $imageCreative->size = new Size(300, 250); + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + foreach ($imageCreatives as $creative) { + // Use instanceof to determine what type of creative was returned. + if ($creative instanceof ImageCreative) { + print 'An image creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and size {' . $creative->size->width + . ', ' . $creative->size->height . "} was created and\n" + . ' can be previewed at: ' . $creative->previewUrl . "\n"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201208/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..796bbd53b --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201208/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..91ff70e9e --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeService/GetCreativeExample.php b/examples/Dfp/v201208/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..1f5ae7788 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201208/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..e63fdd772 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('creativeType' => new TextValue('ImageCreative'))); + + // Create a statement to only select image creatives. + $filterStatement = + new Statement("WHERE creativeType = :creativeType LIMIT 500", $vars); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201208/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..e9c55f1e5 --- /dev/null +++ b/examples/Dfp/v201208/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201208'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // Display results. + if (isset($creatives)) { + foreach ($creatives as $creative) { + print 'An image creative with ID "' . $creative->id + . '" and destination URL "' . $creative->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No creatives updated.\n"; + } + } else { + print "No creatives found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201208/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..737b4ce85 --- /dev/null +++ b/examples/Dfp/v201208/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201208'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201208/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..ce9005bd9 --- /dev/null +++ b/examples/Dfp/v201208/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201208'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201208/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..ad16e4be1 --- /dev/null +++ b/examples/Dfp/v201208/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201208'); + + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('masterCreativeId' => new NumberValue($masterCreativeID))); + + // Create a statement object to only select creative sets that have the given + // master creative. + $filterStatement = + new Statement("WHERE masterCreativeId = :masterCreativeId LIMIT 500", + $vars); + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201208/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..7b3e3c7ad --- /dev/null +++ b/examples/Dfp/v201208/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201208'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($creativeSet)) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was updated.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201208/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..12d6c1804 --- /dev/null +++ b/examples/Dfp/v201208/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201208'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..48a475dcf --- /dev/null +++ b/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201208'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..7078dbf01 --- /dev/null +++ b/examples/Dfp/v201208/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201208'); + + // Create a statement to only select system defined creative templates. + $filterStatement = + new Statement("WHERE type = :type LIMIT 500"); + $filterStatement->values = MapUtils::GetMapEntries( + array('type' => new TextValue('SYSTEM_DEFINED'))); + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201208/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..51f73da90 --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201208'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201208/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..de703e7a2 --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201208'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201208/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..da3a6b86c --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' + . $customField->id . '" and name "' . $customField->name + . "\" will be deactivated.\n"; + $i++; + $customFieldIds[] = $customField->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201208/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..65a0ab1d3 --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201208'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201208/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..1e2acb3f5 --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201208'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201208/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..0648d82ea --- /dev/null +++ b/examples/Dfp/v201208/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201208'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields found to update.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201208/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..066ab50a3 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..69f7745a7 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Set the name of the custom targeting key to delete. + $keyName = 'INSERT_CUSTOM_TARGETING_KEY_NAME_HERE'; + + // Create statement text to only select custom targeting key by the given + // name. + $filterStatementText = 'WHERE name = :name'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting keys deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting keys were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..59e8d2747 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Set ID of the custom targeting key to delete values from. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create statement text to only select custom values by the given custom + // targeting key ID. + $filterStatementText = 'WHERE customTargetingKeyId = :keyId'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting values deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting values were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201208/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..33f43a30b --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + $keys = array(); + $offset = 0; + + do { + // Create statement to page through all custom targeting keys. + $filterStatement = new Statement('LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = array_merge($keys, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + + $values = array(); + + if (sizeof($keys) > 0) { + $keyIds = array_map(create_function('$key', 'return $key->id;'), $keys); + + // Create statement text to all custom targeting values for all custom + // targeting keys. + $filterStatementText = sprintf('WHERE customTargetingKeyId IN (%s)', + implode(',', $keyIds)); + $offset = 0; + + do { + // Create statement to page through all custom targeting values. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = array_merge($values, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + } + + // Create map of custom targeting key id to custom targeting values. + $keyIdToValueMap = array(); + foreach ($values as $value) { + $keyIdToValueMap[$value->customTargetingKeyId][] = $value; + } + + // Display keys and values. + $keyCount = 0; + foreach ($keys as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $keyCount, $key->id, + $key->name, $key->displayName, $key->type); + if (array_key_exists($key->id, $keyIdToValueMap)) { + $valueCount = 0; + foreach ($keyIdToValueMap[$key->id] as $value) { + printf("\t%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $valueCount, $value->id, + $value->name, $value->displayName); + $valueCount++; + } + } + $keyCount++; + } + + printf("Found %d keys and %d values.\n", sizeof($keys), sizeof($values)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..81e3bf446 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Create a statement to only select predefined custom targeting keys. + $filterStatement = new Statement('WHERE type = :type LIMIT 500', + MapUtils::GetMapEntries(array('type' => new TextValue('PREDEFINED')))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName, $key->type); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..2015a5197 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..3e5dcaf19 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // Update each local custom targeting key object by changing its display + // name. + foreach ($keys as $key) { + if (empty($key->displayName)) { + $key->displayName = $key->name; + } + $key->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // Display results. + if (isset($keys)) { + foreach ($page->results as $key) { + printf("Custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was updated.\n", $key->id, $key->name, + $key->displayName); + } + } else { + print "No custom targeting keys updated.\n"; + } + } else { + print "No custom targeting keys found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..8c4a93330 --- /dev/null +++ b/examples/Dfp/v201208/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201208'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $valueId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($valueId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = $page->results; + + // Update each local custom targeting value object by changing its display + // name. + foreach ($values as $value) { + if (empty($value->displayName)) { + $value->displayName = $value->name; + } + $value->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting values on the server. + $values = $customTargetingService->updateCustomTargetingValues($values); + + // Display results. + if (isset($values)) { + foreach ($page->results as $value) { + printf("Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was updated.\n", $value->id, $value->name, + $value->displayName); + } + } else { + print "No custom targeting values updated.\n"; + } + } else { + print "No custom targeting values found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201208/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..e7e36f44f --- /dev/null +++ b/examples/Dfp/v201208/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,80 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201208'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n", $percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ForecastService/GetForecastExample.php b/examples/Dfp/v201208/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..f680e760a --- /dev/null +++ b/examples/Dfp/v201208/ForecastService/GetForecastExample.php @@ -0,0 +1,112 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201208'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the line item's time to be now until the projected end date time. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 week')); + + // Set the line item to use 50% of the impressions. + $lineItem->unitType = 'IMPRESSIONS'; + $lineItem->unitsBought = 50; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n",$percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201208/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..346d51074 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201208/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..a100bb136 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201208/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..3fcf22e72 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201208/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..3eb66ad92 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + $adUnitIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201208/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..ad48fbfd3 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201208/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..86c80eda0 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('targetPlatform' => new TextValue('WEB'))); + + // Create a statement to only select web ad units sizes. + $filterStatement = new Statement("WHERE targetPlatform = :targetPlatform", + $vars); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + printf ("Number of ad unit sizes found: %d\n", count($adUnitSizes)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201208/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..6aef38ffb --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create a statement to select the children of the effective root ad unit. + $filterStatement = + new Statement("WHERE parentId = :id LIMIT 500", + MapUtils::GetMapEntries(array( + 'id' => new NumberValue($effectiveRootAdUnitId)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201208/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..0ffbf1772 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201208/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..4fb728da5 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201208'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + + diff --git a/examples/Dfp/v201208/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201208/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..c15ba84b4 --- /dev/null +++ b/examples/Dfp/v201208/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'Ad unit with ID "' . $adUnit->id . '", name "' . $adUnit->name + . '", and AdSense enabled "' + . ($adUnit->inheritedAdSenseSettings->value->adSenseEnabled + ? 'TRUE' : 'FALSE') + . "\" was updated.\n"; + } + } + } else { + print "No ad units updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LabelService/CreateLabelsExample.php b/examples/Dfp/v201208/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..3e0400fb3 --- /dev/null +++ b/examples/Dfp/v201208/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201208/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..80648c824 --- /dev/null +++ b/examples/Dfp/v201208/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + foreach ($page->results as $label) { + printf("A label with ID '%s' and name '%s' will be deactivated.\n", + $label->id, $label->name); + $labelIds[] = $label->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201208/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..dfe34fac7 --- /dev/null +++ b/examples/Dfp/v201208/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LabelService/GetLabelExample.php b/examples/Dfp/v201208/LabelService/GetLabelExample.php new file mode 100755 index 000000000..d8376e9d0 --- /dev/null +++ b/examples/Dfp/v201208/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201208/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..37ea7043e --- /dev/null +++ b/examples/Dfp/v201208/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201208/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..4f41db46b --- /dev/null +++ b/examples/Dfp/v201208/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201208'); + + // Create a statement to only select labels that are active. + $filterStatement = new Statement( + "WHERE isActive = true LIMIT 500"); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + if (isset($page->results)) { + $labels = $page->results; + + // Update each local label object's description. + foreach ($labels as $label) { + $label->description = 'Last updated on ' . date('Ymd'); + } + + // Update the labels on the server. + $labels = $labelService->updateLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and description '%s' was " + . "updated.\n", $label->id, $label->name, $label->description); + } + } else { + print "No labels updated.\n"; + } + } else { + print "No labels found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LicaService/CreateLicasExample.php b/examples/Dfp/v201208/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..fadb524ec --- /dev/null +++ b/examples/Dfp/v201208/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201208/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..8ad649a30 --- /dev/null +++ b/examples/Dfp/v201208/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + $creativeIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LicaService/GetAllLicasExample.php b/examples/Dfp/v201208/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..a21c2fdcc --- /dev/null +++ b/examples/Dfp/v201208/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, creative set ID %d, and " . + "status %s was found.\n", $i, $lica->lineItemId, + $lica->creativeSetId, $lica->status); + } else { + printf("%d) LICA with line item ID %d, creative ID %d, and status " . + "%s was found.\n", $i, $lica->lineItemId, $lica->creativeId, + $lica->status); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LicaService/GetLicaExample.php b/examples/Dfp/v201208/LicaService/GetLicaExample.php new file mode 100755 index 000000000..17d301090 --- /dev/null +++ b/examples/Dfp/v201208/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201208/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..eac8c70fd --- /dev/null +++ b/examples/Dfp/v201208/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create a statement to only select LICAs for the given lineItem ID. + $filterStatement = + new Statement("WHERE lineItemId = :lineItemId LIMIT 500", $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LicaService/UpdateLicasExample.php b/examples/Dfp/v201208/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..a8dbbefc0 --- /dev/null +++ b/examples/Dfp/v201208/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201208'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and destination URL "' . $lica->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No LICAs updated.\n"; + } + } else { + print "No LICAs found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201208/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..839acfc4c --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('orderId' => new NumberValue($orderId))); + + // Create statement text to select approved line items from a given order. + $filterStatementText = + "WHERE orderId = :orderId AND status = 'NEEDS_CREATIVES'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + $lineItemIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Archived line items cannot be activated. + if (!$lineItem->isArchived) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" will be activated.\n"; + $i++; + $lineItemIds[] = $lineItem->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of line items to be activated: ' . sizeof($lineItemIds) . "\n"; + + if (sizeof($lineItemIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $lineItemIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ActivateLineItems(); + + // Perform action. + $result = + $lineItemService->performLineItemAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of line items activated: ' . $result->numChanges . "\n"; + } else { + print "No line items were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201208/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..7e18eb5b6 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is + // $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with with ID "' . $lineItem->id + . '", belonging to order ID "' . $lineItem->orderId + . '", and name "' . $lineItem->name + . "\" was created.\n"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201208/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..a24200366 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_MOBILE_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create technology targeting. + $technologyTargeting = new TechnologyTargeting(); + + // Create device manufacturer targeting. + $deviceManufacturerTargeting = new DeviceManufacturerTargeting(); + $deviceManufacturerTargeting->isTargeted = TRUE; + + // Target the Google device manufacturer (40100). + $deviceManufacturerTechnology = new Technology(); + $deviceManufacturerTechnology->id = 40100; + $deviceManufacturerTargeting->deviceManufacturers = + array($deviceManufacturerTechnology); + $technologyTargeting->deviceManufacturerTargeting = + $deviceManufacturerTargeting; + + // Create mobile device targeting. + $mobileDeviceTargeting = new MobileDeviceTargeting(); + + // Exclude the Nexus One device (604046). + $mobileDeviceTechnology = new Technology(); + $mobileDeviceTechnology->id = 604046; + $mobileDeviceTargeting->targetedMobileDevices = + array($mobileDeviceTechnology); + $technologyTargeting->mobileDeviceTargeting = $mobileDeviceTargeting; + + // Create mobile device submodel targeting. + $mobileDeviceSubmodelTargeting = new MobileDeviceSubmodelTargeting(); + + // Target the iPhone 4 device submodel (640003). + $mobileDeviceSubmodelTechnology = new Technology(); + $mobileDeviceSubmodelTechnology->id = 640003; + $mobileDeviceSubmodelTargeting->targetedMobileDeviceSubmodels = + array($mobileDeviceSubmodelTechnology); + $technologyTargeting->mobileDeviceSubmodelTargeting = + $mobileDeviceSubmodelTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Mobile line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = TRUE; + + // Set the target platform to mobile. + $lineItem->targetPlatform = 'MOBILE'; + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + // Create the line item on the server. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + prinf("A line item with with ID '%s', belonging to order ID '%s', and name " + . "'%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201208/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..9bfcd96f7 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,163 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetedVideoAdUnitId = 'INSERT_TARGETED_VIDEO_AD_UNIT_ID_HERE'; + + // Set the custom targeting key ID and value ID representing the metadata + // on the content to target. This would typically be a key representing + // a 'genre' and a value representing something like 'comedy'. + $contentCustomTargetingKeyId = 'INSERT_CONTENT_CUSTOM_TARGETING_KEY_ID_HERE'; + $contentCustomTargetingValueId = + 'INSERT_CONTENT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Create custom criteria for the content metadata targeting. + $contentCustomCriteria = new CustomCriteria(); + $contentCustomCriteria->keyId = $contentCustomTargetingKeyId; + $contentCustomCriteria->valueIds = array($contentCustomTargetingValueId); + $contentCustomCriteria->operator = 'IS'; + + // Create custom criteria set. + $customCriteriaSet = new CustomCriteriaSet(); + $customCriteriaSet->children = array($contentCustomCriteria); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedVideoPositions = array('PREROLL'); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Video line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // Create the line item on the server. + $lineItems = $lineItemService->createLineItems($lineItem); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + printf("A line item with with ID '%s', belonging to order ID '%s', and " + . "name '%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201208/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..e2d3ca73a --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/GetLineItemExample.php b/examples/Dfp/v201208/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..479f71eb3 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201208/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..19a92d63d --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId))); + + // Create a statement to only select line items that need creatives + // from a given order. + $filterStatement = new Statement("WHERE orderId = :orderId " + . " AND status = 'NEEDS_CREATIVES' LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201208/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..d6c2b957d --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Calculate time from three days ago. + $threeDaysAgo = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('-3 day')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId), + 'threeDaysAgo' => new TextValue($threeDaysAgo))); + + // Create statement object to only select line items belonging to the order + // and have been modified in the last 3 days. + $filterStatement = new Statement("WHERE orderId = :orderId " + . "AND lastModifiedDateTime >= :threeDaysAgo " + . "LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Format lastModifiedDateTime for printing. + $lastModifiedDateTime = + DateTimeUtils::GetDateTime($lineItem->lastModifiedDateTime); + $lastModifiedDateTimeText = $lastModifiedDateTime + ->format(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT); + + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", with name "' . $lineItem->name + . '", and last modified ' . $lastModifiedDateTimeText + . " was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201208/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..61c5e5977 --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201208/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..a0856046c --- /dev/null +++ b/examples/Dfp/v201208/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create a statement to get line items with even delivery rates. + $filterStatement = + new Statement("WHERE deliveryRateType = 'EVENLY' and orderId = " + . $orderId . ' LIMIT 500'); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + if (isset($page->results)) { + $lineItems = $page->results; + + // Remove archived line items. + array_filter($lineItems, + create_function('$lineItem', 'return !$lineItem->isArchived;')); + + // Update each local line item object by changing its delivery rate. + foreach ($lineItems as $lineItem) { + $lineItem->deliveryRateType = 'AS_FAST_AS_POSSIBLE'; + } + + // Update the line items on the server. + $lineItems = $lineItemService->updateLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", name "' . $lineItem->name + . '", and delivery rate "' . $lineItem->deliveryRateType + . "\" was updated.\n"; + } + } else { + print "No line items updated.\n"; + } + } else { + print "No line items found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201208/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..168200704 --- /dev/null +++ b/examples/Dfp/v201208/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get all networks that you have access to with the current login + // credentials. + $networks = $networkService->getAllNetworks(); + + // Display results. + if (isset($networks)) { + $i = 0; + foreach ($networks as $network) { + print $i . ') Network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $i . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201208/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..91ed71250 --- /dev/null +++ b/examples/Dfp/v201208/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201208/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..417cc7dfb --- /dev/null +++ b/examples/Dfp/v201208/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201208'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201208/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..2438c53e9 --- /dev/null +++ b/examples/Dfp/v201208/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // Create a datetime representing today. + $today = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, strtotime('now')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('today' => new TextValue($today))); + + // Create statement text to get all draft and pending approval orders that + // haven't ended and aren't archived. + $filterStatementText = "WHERE status IN ('DRAFT', 'PENDING_APPROVAL') " + . "AND endDateTime >= :today " + . "AND isArchived = FALSE "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " + . $offset, $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + $orderIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + // Archived orders cannot be approved. + if (!$order->isArchived) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and status "' . $order->status + . "\" will be approved.\n"; + $i++; + $orderIds[] = $order->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of orders to be approved: ' . sizeof($orderIds) . "\n"; + + if (sizeof($orderIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $orderIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveAndOverbookOrders(); + + // Perform action. + $result = $orderService->performOrderAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of orders approved: ' . $result->numChanges . "\n"; + } else { + print "No orders were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/OrderService/CreateOrdersExample.php b/examples/Dfp/v201208/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..4b234c078 --- /dev/null +++ b/examples/Dfp/v201208/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201208'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201208/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..0043644d0 --- /dev/null +++ b/examples/Dfp/v201208/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/OrderService/GetOrderExample.php b/examples/Dfp/v201208/OrderService/GetOrderExample.php new file mode 100755 index 000000000..2fd52130e --- /dev/null +++ b/examples/Dfp/v201208/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201208/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..4c8daccaf --- /dev/null +++ b/examples/Dfp/v201208/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // Set the ID of the advertiser (company) to get orders for. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('advertiserId' => new NumberValue($advertiserId))); + + // Create a statement to only select orders for a given advertiser. + $filterStatement = + new Statement("WHERE advertiserId = :advertiserId LIMIT 500", $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201208/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..5327f3325 --- /dev/null +++ b/examples/Dfp/v201208/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201208'); + + // Create a statement to get all orders. + $filterStatement = new Statement('LIMIT 500'); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + if (isset($page->results)) { + $orders = $page->results; + + // Remove archived orders. + array_filter($orders, + create_function('$order', 'return !$order->isArchived;')); + + // Update each local order object by changing its notes. + foreach ($orders as $order) { + $order->notes = 'Spoke to advertiser. All is well.'; + } + + // Update the orders on the server. + $orders = $orderService->updateOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'Order with ID "' . $order->id + . '", name "' . $order->name + . '", advertiser ID "' . $order->advertiserId + . '", and notes "' . $order->notes + . "\" was updated.\n"; + } + } else { + print "No orders updated.\n"; + } + } else { + print "No orders found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201208/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..514ce5ef5 --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201208/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..5335c2f9f --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201208/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..f6b7ac547 --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/PlacementService/GetPlacementExample.php b/examples/Dfp/v201208/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..d4ae3bb33 --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201208/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..e104f05bf --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201208/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..75f890a70 --- /dev/null +++ b/examples/Dfp/v201208/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201208'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201208'); + + // Create a statement to select first 500 placements. + $filterStatement = new Statement("LIMIT 500"); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + if (isset($page->results)) { + $placements = $page->results; + + // Update each local placement object by adding the root ad unit. + foreach ($placements as $placement) { + $placement->targetingDescription = !empty($placement->description) ? + $placement->description : 'Generic description'; + $placement->targetingAdLocation = 'All images on sports pages.'; + $placement->targetingSiteName = 'http://code.google.com'; + $placement->isAdSenseTargetingEnabled = TRUE; + } + + // Update the placements on the server. + $placements = $placementService->updatePlacements($placements); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and AdSense targeting "' + . ($placement->isAdSenseTargetingEnabled ? 'enabled' : 'disabled') + . "\" was updated.\n"; + } + } else { + print "No placements updated.\n"; + } + } else { + print "No placements found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/PublisherQueryLanguageService/GetAllCitiesExample.php b/examples/Dfp/v201208/PublisherQueryLanguageService/GetAllCitiesExample.php new file mode 100755 index 000000000..ad8a68eaf --- /dev/null +++ b/examples/Dfp/v201208/PublisherQueryLanguageService/GetAllCitiesExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201208'); + + // Create statement to select all targetable cities. + $selectStatement = + new Statement('SELECT * FROM City WHERE targetable = true LIMIT 500'); + + // Get all cities. + // A limit of 500 is set here. You may want to page through such a large + // result set. + // For criteria that do not have a 'targetable' property, that predicate + // may be left off, i.e. just "SELECT * FROM Browser_Groups LIMIT 500". + $resultSet = $pqlService->select($selectStatement); + + // Display results. + if (isset($resultSet)) { + $columnLabels = array_map( + create_function('$columnType', 'return $columnType->labelName;'), + $resultSet->columnTypes); + printf("Columns are: %s\n", implode(', ', $columnLabels)); + $i = 0; + foreach($resultSet->rows as $row) { + $values = array_map(create_function('$value', 'return $value->value;'), + $row->values); + printf("%d) %s\n", $i, implode(', ', $values)); + $i++; + } + } else { + print "No results returned.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ReportService/DownloadReportExample.php b/examples/Dfp/v201208/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..57375d992 --- /dev/null +++ b/examples/Dfp/v201208/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report. Ex: CSV_DUMP + $exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + + // Set the file name to download the gzipped report to. Ex: report.csv.gz. + $fileName = 'INSERT_FILE_NAME_HERE' . '.gz'; + + $filePath = dirname(__FILE__) . '/' . $fileName; + + $downloadUrl = + $reportService->getReportDownloadURL($reportJobId, $exportFormat); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + + ReportUtils::DownloadReport($downloadUrl, $filePath); + + printf("Report downloaded to file '%s'.\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201208/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..6236a3cae --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Set the order id to report on. + $order_id = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($order_id))); + + // Create statement text to filter based on an order id. + $filterStatementText = 'WHERE order_id = :orderId'; + + // Create statement object from text. + $filterStatement = new Statement($filterStatementText, $vars); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'AD_SERVER_CTR', 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_AVERAGE_ECPM'); + $reportQuery->statement = $filterStatement; + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201208/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..2d93c289f --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', 'AD_UNIT_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS', + 'TOTAL_INVENTORY_LEVEL_IMPRESSIONS', + 'TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201208/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..142b2ae63 --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('MERGED_AD_SERVER_IMPRESSIONS', + 'MERGED_AD_SERVER_CLICKS', 'MERGED_AD_SERVER_CTR', + 'MERGED_AD_SERVER_CPM_AND_CPC_REVENUE', 'MERGED_AD_SERVER_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201208/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..4718f979e --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201208'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Set defaults for page and statement. + $page = new LineItemPage(); + $vars = MapUtils::GetMapEntries(array('orderId' => + new NumberValue($orderId))); + $filterStatement = new Statement(NULL, $vars); + $offset = 0; + + // Collect all line item custom field IDs for an order. + $customFieldIds = array(); + do { + // Create a statement to only select line items from a given order. + $filterStatement->query = sprintf('WHERE orderId = :orderId LIMIT 500 ' . + 'OFFSET %d', $offset); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Get custom field IDs from the line items of an order. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $customFieldValue) { + $customFieldId = $customFieldValue->customFieldId; + if (!in_array($customFieldId, $customFieldIds)) { + $customFieldIds[] = $customFieldId; + } + } + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('LINE_ITEM'); + $reportQuery->customFieldIds = $customFieldIds; + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); + $reportJob->reportQuery = $reportQuery; + + // Report on a single order. + $filterStatement->query = 'WHERE ORDER_ID = :orderId'; + $reportQuery->statement = $filterStatement; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ReportService/RunSalesReportExample.php b/examples/Dfp/v201208/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..6c09c3f57 --- /dev/null +++ b/examples/Dfp/v201208/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201208'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('SALESPERSON'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', + 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201208/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..fb594904c --- /dev/null +++ b/examples/Dfp/v201208/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201208'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201208/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..6e796e751 --- /dev/null +++ b/examples/Dfp/v201208/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201208'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..e1614b5b9 --- /dev/null +++ b/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201208'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..bef9b8a00 --- /dev/null +++ b/examples/Dfp/v201208/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201208'); + + // Create a statement to only select suggested ad units with more than 50 + // requests. + $filterStatement = + new Statement("WHERE numRequests > :numRequests LIMIT 500", + MapUtils::GetMapEntries(array('numRequests' => new NumberValue(50)))); + + // Get ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/TeamService/CreateTeamsExample.php b/examples/Dfp/v201208/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..8989e1688 --- /dev/null +++ b/examples/Dfp/v201208/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201208/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..75a29d13a --- /dev/null +++ b/examples/Dfp/v201208/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/TeamService/GetTeamExample.php b/examples/Dfp/v201208/TeamService/GetTeamExample.php new file mode 100755 index 000000000..7aac9cc56 --- /dev/null +++ b/examples/Dfp/v201208/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201208/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..84e305454 --- /dev/null +++ b/examples/Dfp/v201208/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201208/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..c6c99f6fb --- /dev/null +++ b/examples/Dfp/v201208/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201208'); + + // Set the ID of the ad unit to add to the teams. + $adUnitID = "INSERT_AD_UNIT_ID_HERE"; + + // Create a statement to select first 5 teams that aren't + // built-in. + $filterStatement = new Statement("WHERE id > 0 LIMIT 5"); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + if (isset($page->results)) { + $teams = $page->results; + + $i = 0; + // Update each local team object by appending the ad unit to it. + foreach ($teams as $team) { + if (!$team->hasAllInventory) { + if (!isset($team->adUnitIds)) { + // Empty team inventory. + $team->adUnitIds = array(); + } + $team->adUnitIds[] = $adUnitID; + $i++; + } + } + + // Reorganize the $teams array. + $teams = array_values($teams); + + // Update the teams on the server. + $teams = $teamService->updateTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "' . $team->name . "\" was updated.\n"; + } + } else { + print "No teams updated.\n"; + } + } else { + print "No teams found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php b/examples/Dfp/v201208/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php new file mode 100755 index 000000000..847e678a1 --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php @@ -0,0 +1,126 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Set the company that the third party slots to archive belong to. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array( + 'companyId' => new NumberValue($companyId), + 'status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active third party slots. + $filterStatementText = 'WHERE companyId = :companyId AND status = :status'; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . ' LIMIT 500 OFFSET ' . $offset, + $vars); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + $thirdPartySlotIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' will be archived.\n", + $thirdPartySlot->id); + $i++; + $thirdPartySlotIds[] = $thirdPartySlot->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of third party slots to be archived: %d\n", + sizeof($thirdPartySlotIds)); + + if (sizeof($thirdPartySlotIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $thirdPartySlotIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ArchiveThirdPartySlots(); + + // Perform action. + $result = $thirdPartySlotService->performThirdPartySlotAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of third party slots archived: %d\n", + $result->numChanges); + } else { + print "No third party slots were archived.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ThirdPartySlotService/CreateThirdPartySlotExample.php b/examples/Dfp/v201208/ThirdPartySlotService/CreateThirdPartySlotExample.php new file mode 100755 index 000000000..194edfb3b --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/CreateThirdPartySlotExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Set the company ID to associate with this third party slot. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Set the external unique ID to associate with this third party slot. + $externalUniqueId = 'INSERT_EXTERNAL_UNIQUE_ID_HERE'; + + // Set the external unique name to associate with this third party slot. + $externalUniqueName = 'INSERT_EXTERNAL_UNIQUE_NAME_HERE'; + + // Set the creative IDs to associate with this third party slot. + $creativeIds = array('INSERT_CREATIVE_ID_HERE'); + + // Create the ThirdPartySlot object. + $thirdPartySlot = new ThirdPartySlot(); + $thirdPartySlot->companyId = $companyId; + $thirdPartySlot->description = 'Third party slot description.'; + $thirdPartySlot->externalUniqueId = $externalUniqueId; + $thirdPartySlot->externalUniqueName = $externalUniqueName; + + // Set the creatives that the third party slot will represent. + $thirdPartySlot->creativeIds = $creativeIds; + + // Create the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->createThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("A third party slot with ID '%s' and name '%s' was created.\n", + $thirdPartySlot->id, $thirdPartySlot->externalUniqueName); + } else { + print "No third party slot was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ThirdPartySlotService/GetAllThirdPartySlotsExample.php b/examples/Dfp/v201208/ThirdPartySlotService/GetAllThirdPartySlotsExample.php new file mode 100755 index 000000000..e7f85abde --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/GetAllThirdPartySlotsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Set defaults for page and statement. + $page = new ThirdPartySlotPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all third party slots. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php b/examples/Dfp/v201208/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php new file mode 100755 index 000000000..ca690ed24 --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Create a statement. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", + MapUtils::GetMapEntries(array('status' => new TextValue('ARCHIVED')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/ThirdPartySlotService/UpdateThirdPartySlotExample.php b/examples/Dfp/v201208/ThirdPartySlotService/UpdateThirdPartySlotExample.php new file mode 100755 index 000000000..3128dd845 --- /dev/null +++ b/examples/Dfp/v201208/ThirdPartySlotService/UpdateThirdPartySlotExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201208'); + + // Create a statement to get one active third party slot. + $filterStatement = new Statement('WHERE status = :status LIMIT 1', + MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + if (isset($page->results)) { + $thirdPartySlot = $page->results[0]; + + // Update the local third party slot by changing its description. + $thirdPartySlot->description = 'Updated description'; + + // Update the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->updateThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("Third party slot with ID '%s' and description '%s' was " + . "updated.\n", $thirdPartySlot->id, $thirdPartySlot->description); + } else { + print "The third party slot was not updated.\n"; + } + } else { + print "No third party slot was found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/CreateUsersExample.php b/examples/Dfp/v201208/UserService/CreateUsersExample.php new file mode 100755 index 000000000..e41bb4055 --- /dev/null +++ b/examples/Dfp/v201208/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/DeactivateUserExample.php b/examples/Dfp/v201208/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..61dfb376d --- /dev/null +++ b/examples/Dfp/v201208/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and status "' . ($usr->isActive ? 'ACTIVE' : 'INACTIVE') + . "\" will be deactivated.\n"; + $i++; + $userIds[] = $usr->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/GetAllRolesExample.php b/examples/Dfp/v201208/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..370d15e33 --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Get all roles. + $roles = $userService->getAllRoles(); + + if (isset($roles)) { + foreach ($roles as $role) { + print 'Role with ID "' . $role->id . '" and name "' . $role->name + . "\" was found.\n"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/GetAllUsersExample.php b/examples/Dfp/v201208/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..ef4c19078 --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print "Number of results found: " . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/GetCurrentUserExample.php b/examples/Dfp/v201208/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..6dd58441e --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/GetUserExample.php b/examples/Dfp/v201208/UserService/GetUserExample.php new file mode 100755 index 000000000..f0f6f631f --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201208/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..36597fd29 --- /dev/null +++ b/examples/Dfp/v201208/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Create a statement to get all users sorted by name. + $filterStatement = new Statement('ORDER BY name LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserService/UpdateUsersExample.php b/examples/Dfp/v201208/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..00132a109 --- /dev/null +++ b/examples/Dfp/v201208/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201208'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $usr) { + print 'A user with ID "' . $usr->id + . '", name "' . $usr->name + . '", and role "' . $usr->roleName . "\" was updated.\n"; + } + } else { + print "No users updated.\n"; + } + } else { + print "No users found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201208/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..cfb27c353 --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201208/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..7e7d03c45 --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText + . " LIMIT 500 OFFSET " . $offset, $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201208/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..446b90134 --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User Team association between user with ID "' + . $uta->userId . '" and team with ID "' + . $uta->teamId . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..2c85740e8 --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..bb062b1aa --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201208'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201208"); + + // Get the current user. + $currentUserId = $userService->getCurrentUser()->id; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($currentUserId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = + new Statement("WHERE userId = :userId LIMIT 500", $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201208/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201208/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..7b823bc8f --- /dev/null +++ b/examples/Dfp/v201208/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201208'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = new Statement("WHERE userId = :userId LIMIT 500", $vars); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . '" was updated to access type "' + . $uta->overriddenTeamAccessType . '".\n'; + } + } else { + print "No user team associations updated.\n"; + } + } else { + print "No user team associations found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/AudienceSegmentService/GetAllAudienceSegmentsExample.php b/examples/Dfp/v201211/AudienceSegmentService/GetAllAudienceSegmentsExample.php new file mode 100755 index 000000000..191ed97da --- /dev/null +++ b/examples/Dfp/v201211/AudienceSegmentService/GetAllAudienceSegmentsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201211'); + + // Set defaults for page and statement. + $page = new AudienceSegmentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all audience segments. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + print $i . ') Audience segment with ID "' + . $audienceSegment->id . '", and name "' . $audienceSegment->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201211/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..4dd0a4918 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201211/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..356a64477 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201211/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..f23e34795 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // Create a statement to only select companies that are advertisers sorted + // by name. + $filterStatement = + new Statement("WHERE type = :type ORDER BY name LIMIT 500", $vars); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CompanyService/GetCompanyExample.php b/examples/Dfp/v201211/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..e5394d3e0 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201211/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..ca1d56df2 --- /dev/null +++ b/examples/Dfp/v201211/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201211'); + + // Create a statement to only select companies that are advertisers. + $filterStatement = new Statement("WHERE type = 'ADVERTISER' LIMIT 500"); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + if (isset($page->results)) { + $companies = $page->results; + + // Update each local company object by appending LLC. to its name. + foreach ($companies as $company) { + $company->name .= ' LLC.'; + } + + // Update the companies on the server. + $companies = $companyService->updateCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '" and name "' . $company->name . "\" was updated.\n"; + } + } else { + print "No companies updated.\n"; + } + } else { + print "No companies found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ContentService/GetAllContentExample.php b/examples/Dfp/v201211/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..3dc13ce05 --- /dev/null +++ b/examples/Dfp/v201211/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201211'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201211/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..35d356367 --- /dev/null +++ b/examples/Dfp/v201211/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Get content browse custom targeting key ID. + $network = $networkService->getCurrentNetwork(); + $contentBrowseCustomTargetingKeyId = + $network->contentBrowseCustomTargetingKeyId; + + // Create a statement to select the categories matching the name comedy. + $categoryFilterStatement = new Statement( + "WHERE customTargetingKeyId = :contentBrowseCustomTargetingKeyId " + . "and name = :category LIMIT 1"); + $categoryFilterStatement->values = MapUtils::GetMapEntries(array( + 'contentBrowseCustomTargetingKeyId' => + new NumberValue($contentBrowseCustomTargetingKeyId), + 'category' => new TextValue('comedy'))); + + // Get categories matching the filter statement. + $customTargetingValuePage = + $customTargetingService->getCustomTargetingValuesByStatement( + $categoryFilterStatement); + + // Get the custom targeting value ID for the comedy category. + $categoryCustomTargetingValueId = $customTargetingValuePage->results[0]->id; + + // Create a statement to get all active content. + $filterStatement = new Statement("WHERE status = 'ACTIVE' LIMIT 500"); + + // Get content by statement. + $page = $contentService->getContentByStatementAndCustomTargetingValue( + $filterStatement, $categoryCustomTargetingValueId); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201211/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..d30302e39 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201211'); + + // Set the line item ID and creative set ID to associate. + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + $creativeSetId = "INSERT_CREATIVE_SET_ID_HERE"; + + $lica = new LineItemCreativeAssociation(); + $lica->lineItemId = $lineItemId; + $lica->creativeSetId = $creativeSetId; + + // Create the LICA on the server. + $licas = $licaService->createLineItemCreativeAssociations(array($lica)); + $lica = $licas[0]; + + printf("A LICA with line item ID %d and creative set ID %d was created.", + $lica->lineItemId, $lica->creativeSetId); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201211/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..2c31355c3 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($templateCreative)) { + printf("A template creative with ID '%s', name '%s', and type '%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->CreativeType, + $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201211/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..fa146b553 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/CreateCreativesExample.php @@ -0,0 +1,109 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->imageName = 'image.jpg'; + $imageCreative->imageByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $imageCreative->size = new Size(300, 250); + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + foreach ($imageCreatives as $creative) { + // Use instanceof to determine what type of creative was returned. + if ($creative instanceof ImageCreative) { + print 'An image creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and size {' . $creative->size->width + . ', ' . $creative->size->height . "} was created and\n" + . ' can be previewed at: ' . $creative->previewUrl . "\n"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201211/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..9393ec729 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201211/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..79dfb38b6 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeService/GetCreativeExample.php b/examples/Dfp/v201211/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..f1a3999ab --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201211/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..2a24022f5 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('creativeType' => new TextValue('ImageCreative'))); + + // Create a statement to only select image creatives. + $filterStatement = + new Statement("WHERE creativeType = :creativeType LIMIT 500", $vars); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201211/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..b42be6849 --- /dev/null +++ b/examples/Dfp/v201211/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201211'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // Display results. + if (isset($creatives)) { + foreach ($creatives as $creative) { + print 'An image creative with ID "' . $creative->id + . '" and destination URL "' . $creative->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No creatives updated.\n"; + } + } else { + print "No creatives found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201211/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..17f31c603 --- /dev/null +++ b/examples/Dfp/v201211/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201211'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201211/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..0ee44d0f6 --- /dev/null +++ b/examples/Dfp/v201211/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201211'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201211/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..c9a56264a --- /dev/null +++ b/examples/Dfp/v201211/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201211'); + + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('masterCreativeId' => new NumberValue($masterCreativeID))); + + // Create a statement object to only select creative sets that have the given + // master creative. + $filterStatement = + new Statement("WHERE masterCreativeId = :masterCreativeId LIMIT 500", + $vars); + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201211/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..f71d81350 --- /dev/null +++ b/examples/Dfp/v201211/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201211'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($creativeSet)) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was updated.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201211/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..a4f6619d3 --- /dev/null +++ b/examples/Dfp/v201211/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201211'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..7376acf5c --- /dev/null +++ b/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201211'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..b03eaccb5 --- /dev/null +++ b/examples/Dfp/v201211/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201211'); + + // Create a statement to only select system defined creative templates. + $filterStatement = + new Statement("WHERE type = :type LIMIT 500"); + $filterStatement->values = MapUtils::GetMapEntries( + array('type' => new TextValue('SYSTEM_DEFINED'))); + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201211/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..c2e2e4a33 --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201211/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..a8c89c2ab --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Create a query to select the active creative wrappers for the given label. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'), + 'labelId' => new NumberValue($labelId))); + $filterStatement = + new Statement('WHERE status = :status AND labelId = :labelId', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' will be deactivated.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of creative wrappers to be deactivated: %s\n", + $page->totalResultSetSize); + + // Perform action. + $result = $creativeWrapperService->performCreativeWrapperAction( + new DeactivateCreativeWrappers(), $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of creative wrappers deactivated: %s\n", + $result->numChanges); + } else { + printf("No creative wrappers were deactivated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201211/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..677783d16 --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201211/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..bd7226f2a --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement(new Statement()); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201211/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..04dba445e --- /dev/null +++ b/examples/Dfp/v201211/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201211'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201211/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..0efdb5b38 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201211'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201211/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..10b710f53 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201211'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201211/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..b4455b642 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' + . $customField->id . '" and name "' . $customField->name + . "\" will be deactivated.\n"; + $i++; + $customFieldIds[] = $customField->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201211/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..0f2ebf8d6 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201211'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201211/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..6baacba3d --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201211'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201211/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..d3b934f35 --- /dev/null +++ b/examples/Dfp/v201211/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201211'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields found to update.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201211/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..8b112874d --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..9cb38196a --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Set the name of the custom targeting key to delete. + $keyName = 'INSERT_CUSTOM_TARGETING_KEY_NAME_HERE'; + + // Create statement text to only select custom targeting key by the given + // name. + $filterStatementText = 'WHERE name = :name'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting keys deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting keys were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..ee41b89e1 --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Set ID of the custom targeting key to delete values from. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create statement text to only select custom values by the given custom + // targeting key ID. + $filterStatementText = 'WHERE customTargetingKeyId = :keyId'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting values deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting values were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201211/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..cafb0dfef --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + $keys = array(); + $offset = 0; + + do { + // Create statement to page through all custom targeting keys. + $filterStatement = new Statement('LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = array_merge($keys, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + + $values = array(); + + if (sizeof($keys) > 0) { + $keyIds = array_map(create_function('$key', 'return $key->id;'), $keys); + + // Create statement text to all custom targeting values for all custom + // targeting keys. + $filterStatementText = sprintf('WHERE customTargetingKeyId IN (%s)', + implode(',', $keyIds)); + $offset = 0; + + do { + // Create statement to page through all custom targeting values. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = array_merge($values, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + } + + // Create map of custom targeting key id to custom targeting values. + $keyIdToValueMap = array(); + foreach ($values as $value) { + $keyIdToValueMap[$value->customTargetingKeyId][] = $value; + } + + // Display keys and values. + $keyCount = 0; + foreach ($keys as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $keyCount, $key->id, + $key->name, $key->displayName, $key->type); + if (array_key_exists($key->id, $keyIdToValueMap)) { + $valueCount = 0; + foreach ($keyIdToValueMap[$key->id] as $value) { + printf("\t%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $valueCount, $value->id, + $value->name, $value->displayName); + $valueCount++; + } + } + $keyCount++; + } + + printf("Found %d keys and %d values.\n", sizeof($keys), sizeof($values)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..bd3131f32 --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Create a statement to only select predefined custom targeting keys. + $filterStatement = new Statement('WHERE type = :type LIMIT 500', + MapUtils::GetMapEntries(array('type' => new TextValue('PREDEFINED')))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName, $key->type); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..b9adee1fa --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..e3f5b9ca3 --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // Update each local custom targeting key object by changing its display + // name. + foreach ($keys as $key) { + if (empty($key->displayName)) { + $key->displayName = $key->name; + } + $key->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // Display results. + if (isset($keys)) { + foreach ($page->results as $key) { + printf("Custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was updated.\n", $key->id, $key->name, + $key->displayName); + } + } else { + print "No custom targeting keys updated.\n"; + } + } else { + print "No custom targeting keys found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..8d1d76fa7 --- /dev/null +++ b/examples/Dfp/v201211/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201211'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $valueId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($valueId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = $page->results; + + // Update each local custom targeting value object by changing its display + // name. + foreach ($values as $value) { + if (empty($value->displayName)) { + $value->displayName = $value->name; + } + $value->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting values on the server. + $values = $customTargetingService->updateCustomTargetingValues($values); + + // Display results. + if (isset($values)) { + foreach ($page->results as $value) { + printf("Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was updated.\n", $value->id, $value->name, + $value->displayName); + } + } else { + print "No custom targeting values updated.\n"; + } + } else { + print "No custom targeting values found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201211/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..1f2586fee --- /dev/null +++ b/examples/Dfp/v201211/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,80 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201211'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n", $percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ForecastService/GetForecastExample.php b/examples/Dfp/v201211/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..803e6e626 --- /dev/null +++ b/examples/Dfp/v201211/ForecastService/GetForecastExample.php @@ -0,0 +1,112 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201211'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the line item's time to be now until the projected end date time. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 week')); + + // Set the line item to use 50% of the impressions. + $lineItem->unitType = 'IMPRESSIONS'; + $lineItem->unitsBought = 50; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n",$percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201211/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..46fded94f --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201211/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..830419823 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201211/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..76d69507c --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201211/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..b8eaa9cf2 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + $adUnitIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201211/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..a6c0bbdf8 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201211/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..87c1fff21 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('targetPlatform' => new TextValue('WEB'))); + + // Create a statement to only select web ad units sizes. + $filterStatement = new Statement("WHERE targetPlatform = :targetPlatform", + $vars); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + printf ("Number of ad unit sizes found: %d\n", count($adUnitSizes)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201211/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..bd7fb1130 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create a statement to select the children of the effective root ad unit. + $filterStatement = + new Statement("WHERE parentId = :id LIMIT 500", + MapUtils::GetMapEntries(array( + 'id' => new NumberValue($effectiveRootAdUnitId)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201211/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..87fedf2ec --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201211/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..53d564dab --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201211'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + + diff --git a/examples/Dfp/v201211/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201211/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..48c3952f2 --- /dev/null +++ b/examples/Dfp/v201211/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'Ad unit with ID "' . $adUnit->id . '", name "' . $adUnit->name + . '", and AdSense enabled "' + . ($adUnit->inheritedAdSenseSettings->value->adSenseEnabled + ? 'TRUE' : 'FALSE') + . "\" was updated.\n"; + } + } + } else { + print "No ad units updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LabelService/CreateLabelsExample.php b/examples/Dfp/v201211/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..03a83efc1 --- /dev/null +++ b/examples/Dfp/v201211/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201211/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..b8ce3a172 --- /dev/null +++ b/examples/Dfp/v201211/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + foreach ($page->results as $label) { + printf("A label with ID '%s' and name '%s' will be deactivated.\n", + $label->id, $label->name); + $labelIds[] = $label->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201211/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..5bb599df8 --- /dev/null +++ b/examples/Dfp/v201211/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LabelService/GetLabelExample.php b/examples/Dfp/v201211/LabelService/GetLabelExample.php new file mode 100755 index 000000000..ac5bbbb99 --- /dev/null +++ b/examples/Dfp/v201211/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201211/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..d76848e5d --- /dev/null +++ b/examples/Dfp/v201211/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201211/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..fca948e2e --- /dev/null +++ b/examples/Dfp/v201211/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201211'); + + // Create a statement to only select labels that are active. + $filterStatement = new Statement( + "WHERE isActive = true LIMIT 500"); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + if (isset($page->results)) { + $labels = $page->results; + + // Update each local label object's description. + foreach ($labels as $label) { + $label->description = 'Last updated on ' . date('Ymd'); + } + + // Update the labels on the server. + $labels = $labelService->updateLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and description '%s' was " + . "updated.\n", $label->id, $label->name, $label->description); + } + } else { + print "No labels updated.\n"; + } + } else { + print "No labels found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LicaService/CreateLicasExample.php b/examples/Dfp/v201211/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..ee61b4b5b --- /dev/null +++ b/examples/Dfp/v201211/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201211/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..82fba9d80 --- /dev/null +++ b/examples/Dfp/v201211/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + $creativeIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LicaService/GetAllLicasExample.php b/examples/Dfp/v201211/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..dd037f05a --- /dev/null +++ b/examples/Dfp/v201211/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, creative set ID %d, and " . + "status %s was found.\n", $i, $lica->lineItemId, + $lica->creativeSetId, $lica->status); + } else { + printf("%d) LICA with line item ID %d, creative ID %d, and status " . + "%s was found.\n", $i, $lica->lineItemId, $lica->creativeId, + $lica->status); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LicaService/GetLicaExample.php b/examples/Dfp/v201211/LicaService/GetLicaExample.php new file mode 100755 index 000000000..188db080f --- /dev/null +++ b/examples/Dfp/v201211/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201211/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..42e5fa790 --- /dev/null +++ b/examples/Dfp/v201211/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create a statement to only select LICAs for the given lineItem ID. + $filterStatement = + new Statement("WHERE lineItemId = :lineItemId LIMIT 500", $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LicaService/UpdateLicasExample.php b/examples/Dfp/v201211/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..54fe418f4 --- /dev/null +++ b/examples/Dfp/v201211/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201211'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and destination URL "' . $lica->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No LICAs updated.\n"; + } + } else { + print "No LICAs found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201211/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..e1c10a809 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('orderId' => new NumberValue($orderId))); + + // Create statement text to select approved line items from a given order. + $filterStatementText = + "WHERE orderId = :orderId AND status = 'NEEDS_CREATIVES'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + $lineItemIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Archived line items cannot be activated. + if (!$lineItem->isArchived) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" will be activated.\n"; + $i++; + $lineItemIds[] = $lineItem->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of line items to be activated: ' . sizeof($lineItemIds) . "\n"; + + if (sizeof($lineItemIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $lineItemIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ActivateLineItems(); + + // Perform action. + $result = + $lineItemService->performLineItemAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of line items activated: ' . $result->numChanges . "\n"; + } else { + print "No line items were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201211/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..684ba6869 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +select($selectStatementOffset); + + if (isset($resultSet->rows)) { + foreach($resultSet->rows as $row) { + $untargetableLocationIds[] = $row->values[0]->value; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + return $untargetableLocationIds; +} + +/** + * Finds all untargetable locations. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a list of untargetable location IDs + */ +function getAllUntargetableLocations($user) { + // Tables that represent all different location types. + $LOCATION_TABLES = array('Country', 'Region', 'Metro', 'City', 'Postal_Code'); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', + API_VERSION); + $untargetableLocationIds = array(); + + // Find all untargetable locations for each location type. + foreach ($LOCATION_TABLES as $table) { + $untargetableLocationIds = array_merge($untargetableLocationIds, + getAllUntargetableLocationsHelper($pqlService, $table)); + } + + return $untargetableLocationIds; +} + +/** + * Builds a map of geo targets to the line items targeting them. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a map of geo targets to the line items targeting them + */ +function buildGeoTargetToLineItemsMap($user) { + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', API_VERSION); + + // Set defaults for page and statement. + $LIMIT = 500; + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + // Map of geo targets to all line items targeting it. + $geoTargetToLineItemsMap = array(); + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT '. $LIMIT . ' OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // If a line item has geo targeting, store it in the map. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->targeting->geoTargeting->targetedLocations)) { + foreach ($lineItem->targeting->geoTargeting->targetedLocations as + $targetedLocation) { + $lineItemIds = array(); + if (isset($geoTargetToLineItemsMap[$targetedLocation->id])) { + $lineItemIds = $geoTargetToLineItemsMap[$targetedLocation->id]; + } + $lineItemIds[] = $lineItem->id; + $geoTargetToLineItemsMap[$targetedLocation->id] = $lineItemIds; + } + } + } + } + + $offset += $LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $geoTargetToLineItemsMap; +} + +/** + * Finds all the geo targets in the specified map that are deprecated. + * + * @param array $geoTargetToLineItemsMap a map of geo targets to the line items + * targeting them + * @param array $untargetableLocationIds a list of deprecated location IDs + * @return a map of deprecated geo targets to the line items targeting them + */ +function findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds) { + // A map of deprecated geo targets to the line items targeting them. + $lineItemsToUpdate = array(); + + foreach ($geoTargetToLineItemsMap as $geoTargetId => $lineItemIds) { + if (in_array($geoTargetId, $untargetableLocationIds)) { + $lineItemsToUpdate[$geoTargetId] = $lineItemIds; + } + } + + return $lineItemsToUpdate; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogAll(); + + // Find all untargetable locations. + $untargetableLocationIds = getAllUntargetableLocations($user); + printf("Found %d untargetable locations.\n", count($untargetableLocationIds)); + + // Build a map of geo targets to the line items targeting them. + $geoTargetToLineItemsMap = buildGeoTargetToLineItemsMap($user); + + // Find all the deprecated geo targets from that map. + $lineItemsToUpdate = findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds); + + $i = 0; + // Print the line items that need to be updated. + foreach ($lineItemsToUpdate as $geoTargetId => $lineItemIds) { + printf("%d) The following line items are targeting deprecated location %d" + . " and need to be updated: %s\n", $i, $geoTargetId, implode(', ', + $lineItemIds)); + $i++; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201211/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..76584f6a3 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is + // $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with with ID "' . $lineItem->id + . '", belonging to order ID "' . $lineItem->orderId + . '", and name "' . $lineItem->name + . "\" was created.\n"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201211/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..912b13bb0 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_MOBILE_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create technology targeting. + $technologyTargeting = new TechnologyTargeting(); + + // Create device manufacturer targeting. + $deviceManufacturerTargeting = new DeviceManufacturerTargeting(); + $deviceManufacturerTargeting->isTargeted = TRUE; + + // Target the Google device manufacturer (40100). + $deviceManufacturerTechnology = new Technology(); + $deviceManufacturerTechnology->id = 40100; + $deviceManufacturerTargeting->deviceManufacturers = + array($deviceManufacturerTechnology); + $technologyTargeting->deviceManufacturerTargeting = + $deviceManufacturerTargeting; + + // Create mobile device targeting. + $mobileDeviceTargeting = new MobileDeviceTargeting(); + + // Exclude the Nexus One device (604046). + $mobileDeviceTechnology = new Technology(); + $mobileDeviceTechnology->id = 604046; + $mobileDeviceTargeting->targetedMobileDevices = + array($mobileDeviceTechnology); + $technologyTargeting->mobileDeviceTargeting = $mobileDeviceTargeting; + + // Create mobile device submodel targeting. + $mobileDeviceSubmodelTargeting = new MobileDeviceSubmodelTargeting(); + + // Target the iPhone 4 device submodel (640003). + $mobileDeviceSubmodelTechnology = new Technology(); + $mobileDeviceSubmodelTechnology->id = 640003; + $mobileDeviceSubmodelTargeting->targetedMobileDeviceSubmodels = + array($mobileDeviceSubmodelTechnology); + $technologyTargeting->mobileDeviceSubmodelTargeting = + $mobileDeviceSubmodelTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Mobile line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = TRUE; + + // Set the target platform to mobile. + $lineItem->targetPlatform = 'MOBILE'; + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + // Create the line item on the server. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + prinf("A line item with with ID '%s', belonging to order ID '%s', and name " + . "'%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201211/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..1fa90a091 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,163 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetedVideoAdUnitId = 'INSERT_TARGETED_VIDEO_AD_UNIT_ID_HERE'; + + // Set the custom targeting key ID and value ID representing the metadata + // on the content to target. This would typically be a key representing + // a 'genre' and a value representing something like 'comedy'. + $contentCustomTargetingKeyId = 'INSERT_CONTENT_CUSTOM_TARGETING_KEY_ID_HERE'; + $contentCustomTargetingValueId = + 'INSERT_CONTENT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Create custom criteria for the content metadata targeting. + $contentCustomCriteria = new CustomCriteria(); + $contentCustomCriteria->keyId = $contentCustomTargetingKeyId; + $contentCustomCriteria->valueIds = array($contentCustomTargetingValueId); + $contentCustomCriteria->operator = 'IS'; + + // Create custom criteria set. + $customCriteriaSet = new CustomCriteriaSet(); + $customCriteriaSet->children = array($contentCustomCriteria); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedVideoPositions = array('PREROLL'); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Video line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // Create the line item on the server. + $lineItems = $lineItemService->createLineItems($lineItem); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + printf("A line item with with ID '%s', belonging to order ID '%s', and " + . "name '%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201211/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..de6b5cf79 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/GetLineItemExample.php b/examples/Dfp/v201211/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..76750a8da --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201211/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..84fbb1097 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId))); + + // Create a statement to only select line items that need creatives + // from a given order. + $filterStatement = new Statement("WHERE orderId = :orderId " + . " AND status = 'NEEDS_CREATIVES' LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201211/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..61c8fc959 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Calculate time from three days ago. + $threeDaysAgo = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('-3 day')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId), + 'threeDaysAgo' => new TextValue($threeDaysAgo))); + + // Create statement object to only select line items belonging to the order + // and have been modified in the last 3 days. + $filterStatement = new Statement("WHERE orderId = :orderId " + . "AND lastModifiedDateTime >= :threeDaysAgo " + . "LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Format lastModifiedDateTime for printing. + $lastModifiedDateTime = + DateTimeUtils::GetDateTime($lineItem->lastModifiedDateTime); + $lastModifiedDateTimeText = $lastModifiedDateTime + ->format(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT); + + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", with name "' . $lineItem->name + . '", and last modified ' . $lastModifiedDateTimeText + . " was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201211/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..bc445b367 --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201211/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..973a53f5d --- /dev/null +++ b/examples/Dfp/v201211/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create a statement to get line items with even delivery rates. + $filterStatement = + new Statement("WHERE deliveryRateType = 'EVENLY' and orderId = " + . $orderId . ' LIMIT 500'); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + if (isset($page->results)) { + $lineItems = $page->results; + + // Remove archived line items. + array_filter($lineItems, + create_function('$lineItem', 'return !$lineItem->isArchived;')); + + // Update each local line item object by changing its delivery rate. + foreach ($lineItems as $lineItem) { + $lineItem->deliveryRateType = 'AS_FAST_AS_POSSIBLE'; + } + + // Update the line items on the server. + $lineItems = $lineItemService->updateLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", name "' . $lineItem->name + . '", and delivery rate "' . $lineItem->deliveryRateType + . "\" was updated.\n"; + } + } else { + print "No line items updated.\n"; + } + } else { + print "No line items found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201211/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..4e671cec3 --- /dev/null +++ b/examples/Dfp/v201211/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get all networks that you have access to with the current login + // credentials. + $networks = $networkService->getAllNetworks(); + + // Display results. + if (isset($networks)) { + $i = 0; + foreach ($networks as $network) { + print $i . ') Network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $i . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201211/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..f49dc1219 --- /dev/null +++ b/examples/Dfp/v201211/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201211/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..4472109f3 --- /dev/null +++ b/examples/Dfp/v201211/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201211'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201211/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..d94e0b8bc --- /dev/null +++ b/examples/Dfp/v201211/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // Create a datetime representing today. + $today = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, strtotime('now')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('today' => new TextValue($today))); + + // Create statement text to get all draft and pending approval orders that + // haven't ended and aren't archived. + $filterStatementText = "WHERE status IN ('DRAFT', 'PENDING_APPROVAL') " + . "AND endDateTime >= :today " + . "AND isArchived = FALSE "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " + . $offset, $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + $orderIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + // Archived orders cannot be approved. + if (!$order->isArchived) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and status "' . $order->status + . "\" will be approved.\n"; + $i++; + $orderIds[] = $order->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of orders to be approved: ' . sizeof($orderIds) . "\n"; + + if (sizeof($orderIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $orderIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveAndOverbookOrders(); + + // Perform action. + $result = $orderService->performOrderAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of orders approved: ' . $result->numChanges . "\n"; + } else { + print "No orders were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/OrderService/CreateOrdersExample.php b/examples/Dfp/v201211/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..82135b270 --- /dev/null +++ b/examples/Dfp/v201211/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201211'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201211/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..b71804c13 --- /dev/null +++ b/examples/Dfp/v201211/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/OrderService/GetOrderExample.php b/examples/Dfp/v201211/OrderService/GetOrderExample.php new file mode 100755 index 000000000..7f676d31a --- /dev/null +++ b/examples/Dfp/v201211/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201211/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..b25e76a16 --- /dev/null +++ b/examples/Dfp/v201211/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // Set the ID of the advertiser (company) to get orders for. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('advertiserId' => new NumberValue($advertiserId))); + + // Create a statement to only select orders for a given advertiser. + $filterStatement = + new Statement("WHERE advertiserId = :advertiserId LIMIT 500", $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201211/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..89455f89b --- /dev/null +++ b/examples/Dfp/v201211/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201211'); + + // Create a statement to get all orders. + $filterStatement = new Statement('LIMIT 500'); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + if (isset($page->results)) { + $orders = $page->results; + + // Remove archived orders. + array_filter($orders, + create_function('$order', 'return !$order->isArchived;')); + + // Update each local order object by changing its notes. + foreach ($orders as $order) { + $order->notes = 'Spoke to advertiser. All is well.'; + } + + // Update the orders on the server. + $orders = $orderService->updateOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'Order with ID "' . $order->id + . '", name "' . $order->name + . '", advertiser ID "' . $order->advertiserId + . '", and notes "' . $order->notes + . "\" was updated.\n"; + } + } else { + print "No orders updated.\n"; + } + } else { + print "No orders found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201211/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..f8d70b880 --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201211/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..a0dc7f669 --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201211/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..351a67435 --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/PlacementService/GetPlacementExample.php b/examples/Dfp/v201211/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..66f492677 --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201211/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..35a3b690a --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201211/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..8fdab139e --- /dev/null +++ b/examples/Dfp/v201211/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201211'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201211'); + + // Create a statement to select first 500 placements. + $filterStatement = new Statement("LIMIT 500"); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + if (isset($page->results)) { + $placements = $page->results; + + // Update each local placement object by adding the root ad unit. + foreach ($placements as $placement) { + $placement->targetingDescription = !empty($placement->description) ? + $placement->description : 'Generic description'; + $placement->targetingAdLocation = 'All images on sports pages.'; + $placement->targetingSiteName = 'http://code.google.com'; + $placement->isAdSenseTargetingEnabled = TRUE; + } + + // Update the placements on the server. + $placements = $placementService->updatePlacements($placements); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and AdSense targeting "' + . ($placement->isAdSenseTargetingEnabled ? 'enabled' : 'disabled') + . "\" was updated.\n"; + } + } else { + print "No placements updated.\n"; + } + } else { + print "No placements found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/PublisherQueryLanguageService/GetAllCitiesExample.php b/examples/Dfp/v201211/PublisherQueryLanguageService/GetAllCitiesExample.php new file mode 100755 index 000000000..a999a2dc8 --- /dev/null +++ b/examples/Dfp/v201211/PublisherQueryLanguageService/GetAllCitiesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201211'); + + // Define the number of cities we want to get at a time. + $LIMIT = 500; + + // Create statement to select all targetable cities. + // For criteria that do not have a 'targetable' property, that predicate + // may be left off, i.e. just "SELECT * FROM Browser_Groups LIMIT 500". + $selectStatement = 'SELECT * FROM City WHERE targetable = true LIMIT ' . + $LIMIT; + $offset = 0; + $resultSetSize = 0; + $allRows = array(); + $i = 0; + + $mapColumnTypesToLabelsFn = create_function('$columnType', + 'return $columnType->labelName;'); + $mapRowValueToValueFn = create_function('$value', 'return $value->value;'); + + do { + $selectStatementOffset = + new Statement($selectStatement . ' OFFSET ' . $offset); + + // Get all cities. + $resultSet = $pqlService->select($selectStatementOffset); + + if (isset($resultSet->rows)) { + // Display results. + $columnLabels = array_map($mapColumnTypesToLabelsFn, + $resultSet->columnTypes); + printf("Columns are: %s\n", implode(', ', $columnLabels)); + + foreach($resultSet->rows as $row) { + $values = array_map($mapRowValueToValueFn, $row->values); + + // Collect all cities from each page. + $allRows[] = $values; + + printf("%d) %s\n", $i, implode(', ', $values)); + $i++; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + printf("Number of results found: %d\n", count($allRows)); + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201211/ReportService/DownloadReportExample.php b/examples/Dfp/v201211/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..ae7ff3617 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report. Ex: CSV_DUMP + $exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + + // Set the file name to download the gzipped report to. Ex: report.csv.gz. + $fileName = 'INSERT_FILE_NAME_HERE' . '.gz'; + + $filePath = dirname(__FILE__) . '/' . $fileName; + + $downloadUrl = + $reportService->getReportDownloadURL($reportJobId, $exportFormat); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + + ReportUtils::DownloadReport($downloadUrl, $filePath); + + printf("Report downloaded to file '%s'.\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201211/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..faefc3812 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Set the order id to report on. + $order_id = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($order_id))); + + // Create statement text to filter based on an order id. + $filterStatementText = 'WHERE order_id = :orderId'; + + // Create statement object from text. + $filterStatement = new Statement($filterStatementText, $vars); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'AD_SERVER_CTR', 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_AVERAGE_ECPM'); + $reportQuery->statement = $filterStatement; + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201211/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..da88dd918 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', 'AD_UNIT_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS', + 'TOTAL_INVENTORY_LEVEL_IMPRESSIONS', + 'TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201211/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..5568d4f4b --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('MERGED_AD_SERVER_IMPRESSIONS', + 'MERGED_AD_SERVER_CLICKS', 'MERGED_AD_SERVER_CTR', + 'MERGED_AD_SERVER_CPM_AND_CPC_REVENUE', 'MERGED_AD_SERVER_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201211/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..479988fb5 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201211'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Set defaults for page and statement. + $page = new LineItemPage(); + $vars = MapUtils::GetMapEntries(array('orderId' => + new NumberValue($orderId))); + $filterStatement = new Statement(NULL, $vars); + $offset = 0; + + // Collect all line item custom field IDs for an order. + $customFieldIds = array(); + do { + // Create a statement to only select line items from a given order. + $filterStatement->query = sprintf('WHERE orderId = :orderId LIMIT 500 ' . + 'OFFSET %d', $offset); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Get custom field IDs from the line items of an order. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $customFieldValue) { + $customFieldId = $customFieldValue->customFieldId; + if (!in_array($customFieldId, $customFieldIds)) { + $customFieldIds[] = $customFieldId; + } + } + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('LINE_ITEM'); + $reportQuery->customFieldIds = $customFieldIds; + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); + $reportJob->reportQuery = $reportQuery; + + // Report on a single order. + $filterStatement->query = 'WHERE ORDER_ID = :orderId'; + $reportQuery->statement = $filterStatement; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ReportService/RunSalesReportExample.php b/examples/Dfp/v201211/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..703f055c0 --- /dev/null +++ b/examples/Dfp/v201211/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201211'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('SALESPERSON'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', + 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201211/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..a187a5a95 --- /dev/null +++ b/examples/Dfp/v201211/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201211'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201211/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..9689dbf13 --- /dev/null +++ b/examples/Dfp/v201211/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201211'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..9482fe016 --- /dev/null +++ b/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201211'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..85a0795f5 --- /dev/null +++ b/examples/Dfp/v201211/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201211'); + + // Create a statement to only select suggested ad units with more than 50 + // requests. + $filterStatement = + new Statement("WHERE numRequests > :numRequests LIMIT 500", + MapUtils::GetMapEntries(array('numRequests' => new NumberValue(50)))); + + // Get ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/TeamService/CreateTeamsExample.php b/examples/Dfp/v201211/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..3dea7c142 --- /dev/null +++ b/examples/Dfp/v201211/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201211/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..532c1cd67 --- /dev/null +++ b/examples/Dfp/v201211/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/TeamService/GetTeamExample.php b/examples/Dfp/v201211/TeamService/GetTeamExample.php new file mode 100755 index 000000000..bd1a23406 --- /dev/null +++ b/examples/Dfp/v201211/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201211/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..1556c534c --- /dev/null +++ b/examples/Dfp/v201211/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201211/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..a97fb6678 --- /dev/null +++ b/examples/Dfp/v201211/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201211'); + + // Set the ID of the ad unit to add to the teams. + $adUnitID = "INSERT_AD_UNIT_ID_HERE"; + + // Create a statement to select first 5 teams that aren't + // built-in. + $filterStatement = new Statement("WHERE id > 0 LIMIT 5"); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + if (isset($page->results)) { + $teams = $page->results; + + $i = 0; + // Update each local team object by appending the ad unit to it. + foreach ($teams as $team) { + if (!$team->hasAllInventory) { + if (!isset($team->adUnitIds)) { + // Empty team inventory. + $team->adUnitIds = array(); + } + $team->adUnitIds[] = $adUnitID; + $i++; + } + } + + // Reorganize the $teams array. + $teams = array_values($teams); + + // Update the teams on the server. + $teams = $teamService->updateTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "' . $team->name . "\" was updated.\n"; + } + } else { + print "No teams updated.\n"; + } + } else { + print "No teams found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php b/examples/Dfp/v201211/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php new file mode 100755 index 000000000..34ec6eb36 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php @@ -0,0 +1,126 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Set the company that the third party slots to archive belong to. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array( + 'companyId' => new NumberValue($companyId), + 'status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active third party slots. + $filterStatementText = 'WHERE companyId = :companyId AND status = :status'; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . ' LIMIT 500 OFFSET ' . $offset, + $vars); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + $thirdPartySlotIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' will be archived.\n", + $thirdPartySlot->id); + $i++; + $thirdPartySlotIds[] = $thirdPartySlot->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of third party slots to be archived: %d\n", + sizeof($thirdPartySlotIds)); + + if (sizeof($thirdPartySlotIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $thirdPartySlotIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ArchiveThirdPartySlots(); + + // Perform action. + $result = $thirdPartySlotService->performThirdPartySlotAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of third party slots archived: %d\n", + $result->numChanges); + } else { + print "No third party slots were archived.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ThirdPartySlotService/CreateThirdPartySlotExample.php b/examples/Dfp/v201211/ThirdPartySlotService/CreateThirdPartySlotExample.php new file mode 100755 index 000000000..1845caea9 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/CreateThirdPartySlotExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Set the company ID to associate with this third party slot. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Set the external unique ID to associate with this third party slot. + $externalUniqueId = 'INSERT_EXTERNAL_UNIQUE_ID_HERE'; + + // Set the external unique name to associate with this third party slot. + $externalUniqueName = 'INSERT_EXTERNAL_UNIQUE_NAME_HERE'; + + // Set the creative IDs to associate with this third party slot. + $creativeIds = array('INSERT_CREATIVE_ID_HERE'); + + // Create the ThirdPartySlot object. + $thirdPartySlot = new ThirdPartySlot(); + $thirdPartySlot->companyId = $companyId; + $thirdPartySlot->description = 'Third party slot description.'; + $thirdPartySlot->externalUniqueId = $externalUniqueId; + $thirdPartySlot->externalUniqueName = $externalUniqueName; + + // Set the creatives that the third party slot will represent. + $thirdPartySlot->creativeIds = $creativeIds; + + // Create the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->createThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("A third party slot with ID '%s' and name '%s' was created.\n", + $thirdPartySlot->id, $thirdPartySlot->externalUniqueName); + } else { + print "No third party slot was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ThirdPartySlotService/GetAllThirdPartySlotsExample.php b/examples/Dfp/v201211/ThirdPartySlotService/GetAllThirdPartySlotsExample.php new file mode 100755 index 000000000..99ff273a4 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/GetAllThirdPartySlotsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Set defaults for page and statement. + $page = new ThirdPartySlotPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all third party slots. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php b/examples/Dfp/v201211/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php new file mode 100755 index 000000000..ca7a6f4d3 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Create a statement. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", + MapUtils::GetMapEntries(array('status' => new TextValue('ARCHIVED')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/ThirdPartySlotService/UpdateThirdPartySlotExample.php b/examples/Dfp/v201211/ThirdPartySlotService/UpdateThirdPartySlotExample.php new file mode 100755 index 000000000..5365f3c25 --- /dev/null +++ b/examples/Dfp/v201211/ThirdPartySlotService/UpdateThirdPartySlotExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201211'); + + // Create a statement to get one active third party slot. + $filterStatement = new Statement('WHERE status = :status LIMIT 1', + MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + if (isset($page->results)) { + $thirdPartySlot = $page->results[0]; + + // Update the local third party slot by changing its description. + $thirdPartySlot->description = 'Updated description'; + + // Update the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->updateThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("Third party slot with ID '%s' and description '%s' was " + . "updated.\n", $thirdPartySlot->id, $thirdPartySlot->description); + } else { + print "The third party slot was not updated.\n"; + } + } else { + print "No third party slot was found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/CreateUsersExample.php b/examples/Dfp/v201211/UserService/CreateUsersExample.php new file mode 100755 index 000000000..72f91a17a --- /dev/null +++ b/examples/Dfp/v201211/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/DeactivateUserExample.php b/examples/Dfp/v201211/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..e266b4deb --- /dev/null +++ b/examples/Dfp/v201211/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and status "' . ($usr->isActive ? 'ACTIVE' : 'INACTIVE') + . "\" will be deactivated.\n"; + $i++; + $userIds[] = $usr->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/GetAllRolesExample.php b/examples/Dfp/v201211/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..9c8a113bb --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Get all roles. + $roles = $userService->getAllRoles(); + + if (isset($roles)) { + foreach ($roles as $role) { + print 'Role with ID "' . $role->id . '" and name "' . $role->name + . "\" was found.\n"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/GetAllUsersExample.php b/examples/Dfp/v201211/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..58874a30a --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print "Number of results found: " . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/GetCurrentUserExample.php b/examples/Dfp/v201211/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..d55a80a06 --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/GetUserExample.php b/examples/Dfp/v201211/UserService/GetUserExample.php new file mode 100755 index 000000000..84ca7cc17 --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201211/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..07ff7f263 --- /dev/null +++ b/examples/Dfp/v201211/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Create a statement to get all users sorted by name. + $filterStatement = new Statement('ORDER BY name LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserService/UpdateUsersExample.php b/examples/Dfp/v201211/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..6e0655946 --- /dev/null +++ b/examples/Dfp/v201211/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201211'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $usr) { + print 'A user with ID "' . $usr->id + . '", name "' . $usr->name + . '", and role "' . $usr->roleName . "\" was updated.\n"; + } + } else { + print "No users updated.\n"; + } + } else { + print "No users found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201211/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..b550cdf9b --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201211/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..069febf6a --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText + . " LIMIT 500 OFFSET " . $offset, $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201211/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..85b32e4a7 --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User Team association between user with ID "' + . $uta->userId . '" and team with ID "' + . $uta->teamId . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..a9b6cce04 --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..8b4c15b02 --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201211'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201211"); + + // Get the current user. + $currentUserId = $userService->getCurrentUser()->id; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($currentUserId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = + new Statement("WHERE userId = :userId LIMIT 500", $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201211/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201211/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..40590efe4 --- /dev/null +++ b/examples/Dfp/v201211/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201211'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = new Statement("WHERE userId = :userId LIMIT 500", $vars); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . '" was updated to access type "' + . $uta->overriddenTeamAccessType . '".\n'; + } + } else { + print "No user team associations updated.\n"; + } + } else { + print "No user team associations found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201302/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..4eb14e7f4 --- /dev/null +++ b/examples/Dfp/v201302/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201302'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201302/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..45868e660 --- /dev/null +++ b/examples/Dfp/v201302/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201302'); + + // Statement parts to help build a statement that only selects active activity + // groups. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + $i++, $activityGroup->id, $activityGroup->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201302/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..c37e70da0 --- /dev/null +++ b/examples/Dfp/v201302/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201302'); + + // Statement parts to help build a statement that selects all activity groups. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + $i++, $activityGroup->id, $activityGroup->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201302/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..6588fac41 --- /dev/null +++ b/examples/Dfp/v201302/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201302'); + + // Set the ID of the activity group and the company to update it with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Get the activity group. + $activityGroup = $activityGroupService->getActivityGroup($activityGroupId); + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity groups on the server. + $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->name); + } + } else { + printf("No activity groups were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ActivityService/CreateActivities.php b/examples/Dfp/v201302/ActivityService/CreateActivities.php new file mode 100755 index 000000000..5f060d99c --- /dev/null +++ b/examples/Dfp/v201302/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201302'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ActivityService/GetActiveActivities.php b/examples/Dfp/v201302/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..5ac049d11 --- /dev/null +++ b/examples/Dfp/v201302/ActivityService/GetActiveActivities.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201302'); + + // Set the ID of the activity group these activities are associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Statement parts to help build a statement that only selects active + // activities. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId and status = ' . + ':status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId), 'status' => new TextValue($STATUS))); + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", and type \"%s\" " . + "was found.\n", $i++, $activity->id, $activity->name, + $activity->type); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ActivityService/GetAllActivities.php b/examples/Dfp/v201302/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..0a1f965ca --- /dev/null +++ b/examples/Dfp/v201302/ActivityService/GetAllActivities.php @@ -0,0 +1,136 @@ +GetService('ActivityGroupService', + 'v201302'); + + // Statement parts to help build a statement that selects all activity groups. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $activityGroup) { + $activityGroupIds[] = $activityGroup->id; + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $activityGroupIds; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201302'); + + // Statement parts to help build a statement to get all activities for an + // activity group. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId ORDER BY id LIMIT ' . + '%d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + + $totalResultsCounter = 0; + + $activityGroupIds = getAllActivityGroupIds($user); + + foreach ($activityGroupIds as $activityGroupId) { + // Set the activity group ID to select from. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId))); + + $page = new ActivityPage(); + $offset = 0; + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", type \"%s\", and " . + "activity group ID \"%d\" was found.\n", $totalResultsCounter++, + $activity->id, $activity->name, $activity->type, + $activityGroupId); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + } + printf("Number of results found: %d\n", $totalResultsCounter); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ActivityService/UpdateActivities.php b/examples/Dfp/v201302/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..4914f5f41 --- /dev/null +++ b/examples/Dfp/v201302/ActivityService/UpdateActivities.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201302'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // Get the activity. + $activity = $activityService->getActivity($activityId); + + // Update the expected URL. + $activity->expectedURL = 'https://google.com'; + + // Update the activity on the server. + $activities = $activityService->updateActivities(array($activity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $updatedActivity) { + printf("Activity with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivity->id, $updatedActivity->name); + } + } else { + printf("No activities were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/AudienceSegmentService/GetAllAudienceSegmentsExample.php b/examples/Dfp/v201302/AudienceSegmentService/GetAllAudienceSegmentsExample.php new file mode 100755 index 000000000..96085af51 --- /dev/null +++ b/examples/Dfp/v201302/AudienceSegmentService/GetAllAudienceSegmentsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201302'); + + // Set defaults for page and statement. + $page = new AudienceSegmentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all audience segments. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + print $i . ') Audience segment with ID "' + . $audienceSegment->id . '", and name "' . $audienceSegment->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201302/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..4e4cf6dbf --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201302/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..9611b8108 --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} diff --git a/examples/Dfp/v201302/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201302/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..f8d6fac19 --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // Create a statement to only select companies that are advertisers sorted + // by name. + $filterStatement = + new Statement("WHERE type = :type ORDER BY name LIMIT 500", $vars); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CompanyService/GetCompanyExample.php b/examples/Dfp/v201302/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..0c16dddef --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201302/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..f7b0765c0 --- /dev/null +++ b/examples/Dfp/v201302/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201302'); + + // Create a statement to only select companies that are advertisers. + $filterStatement = new Statement("WHERE type = 'ADVERTISER' LIMIT 500"); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + if (isset($page->results)) { + $companies = $page->results; + + // Update each local company object by appending LLC. to its name. + foreach ($companies as $company) { + $company->name .= ' LLC.'; + } + + // Update the companies on the server. + $companies = $companyService->updateCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '" and name "' . $company->name . "\" was updated.\n"; + } + } else { + print "No companies updated.\n"; + } + } else { + print "No companies found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ContactService/CreateContacts.php b/examples/Dfp/v201302/ContactService/CreateContacts.php new file mode 100755 index 000000000..0b3b64acd --- /dev/null +++ b/examples/Dfp/v201302/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201302'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ContactService/GetAllContacts.php b/examples/Dfp/v201302/ContactService/GetAllContacts.php new file mode 100755 index 000000000..d26a5b806 --- /dev/null +++ b/examples/Dfp/v201302/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201302'); + + // Statement parts to help build a statement to select all contacts. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + $contact->id, $contact->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201302/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..4bf8392dc --- /dev/null +++ b/examples/Dfp/v201302/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201302'); + + // Statement parts to help build a statement to only select contacts that + // aren't invited yet. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'UNINVITED'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + $contact->id, $contact->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ContactService/UpdateContacts.php b/examples/Dfp/v201302/ContactService/UpdateContacts.php new file mode 100755 index 000000000..5dca39449 --- /dev/null +++ b/examples/Dfp/v201302/ContactService/UpdateContacts.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201302'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // Get the contact. + $contact = $contactService->getContact($contactId); + + // Update the address on the contact. + $contact->address = '123 New Street, New York, NY, 10011'; + + // Update the contact on the server. + $contacts = $contactService->updateContacts(array($contact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $updatedContact) { + printf("Contact with ID \"%d\", name \"%s\", and address \"%s\" was " . + "updated.\n", $updatedContact->id, $updatedContact->name, + $updatedContact->address); + } + } else { + printf("No contacts were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ContentService/GetAllContentExample.php b/examples/Dfp/v201302/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..83c3936a0 --- /dev/null +++ b/examples/Dfp/v201302/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201302'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201302/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..dcd66ecb0 --- /dev/null +++ b/examples/Dfp/v201302/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Get content browse custom targeting key ID. + $network = $networkService->getCurrentNetwork(); + $contentBrowseCustomTargetingKeyId = + $network->contentBrowseCustomTargetingKeyId; + + // Create a statement to select the categories matching the name comedy. + $categoryFilterStatement = new Statement( + "WHERE customTargetingKeyId = :contentBrowseCustomTargetingKeyId " + . "and name = :category LIMIT 1"); + $categoryFilterStatement->values = MapUtils::GetMapEntries(array( + 'contentBrowseCustomTargetingKeyId' => + new NumberValue($contentBrowseCustomTargetingKeyId), + 'category' => new TextValue('comedy'))); + + // Get categories matching the filter statement. + $customTargetingValuePage = + $customTargetingService->getCustomTargetingValuesByStatement( + $categoryFilterStatement); + + // Get the custom targeting value ID for the comedy category. + $categoryCustomTargetingValueId = $customTargetingValuePage->results[0]->id; + + // Create a statement to get all active content. + $filterStatement = new Statement("WHERE status = 'ACTIVE' LIMIT 500"); + + // Get content by statement. + $page = $contentService->getContentByStatementAndCustomTargetingValue( + $filterStatement, $categoryCustomTargetingValueId); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201302/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..542711a8c --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201302'); + + // Set the line item ID and creative set ID to associate. + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + $creativeSetId = "INSERT_CREATIVE_SET_ID_HERE"; + + $lica = new LineItemCreativeAssociation(); + $lica->lineItemId = $lineItemId; + $lica->creativeSetId = $creativeSetId; + + // Create the LICA on the server. + $licas = $licaService->createLineItemCreativeAssociations(array($lica)); + $lica = $licas[0]; + + printf("A LICA with line item ID %d and creative set ID %d was created.", + $lica->lineItemId, $lica->creativeSetId); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201302/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..e64c16d9b --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($templateCreative)) { + printf("A template creative with ID '%s', name '%s', and type '%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->CreativeType, + $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201302/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..fdfb03e68 --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + foreach ($imageCreatives as $creative) { + // Use instanceof to determine what type of creative was returned. + if ($creative instanceof ImageCreative) { + print 'An image creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and size {' . $creative->size->width + . ', ' . $creative->size->height . "} was created and\n" + . ' can be previewed at: ' . $creative->previewUrl . "\n"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201302/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..a15156662 --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201302/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..3b2cd6f2c --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeService/GetCreativeExample.php b/examples/Dfp/v201302/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..1f13968dd --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201302/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..649f192d5 --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('creativeType' => new TextValue('ImageCreative'))); + + // Create a statement to only select image creatives. + $filterStatement = + new Statement("WHERE creativeType = :creativeType LIMIT 500", $vars); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201302/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..a077ac0c6 --- /dev/null +++ b/examples/Dfp/v201302/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201302'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // Display results. + if (isset($creatives)) { + foreach ($creatives as $creative) { + print 'An image creative with ID "' . $creative->id + . '" and destination URL "' . $creative->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No creatives updated.\n"; + } + } else { + print "No creatives found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201302/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..06618172b --- /dev/null +++ b/examples/Dfp/v201302/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201302'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201302/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..d788c5a24 --- /dev/null +++ b/examples/Dfp/v201302/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201302'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201302/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..874a67acd --- /dev/null +++ b/examples/Dfp/v201302/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201302'); + + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('masterCreativeId' => new NumberValue($masterCreativeID))); + + // Create a statement object to only select creative sets that have the given + // master creative. + $filterStatement = + new Statement("WHERE masterCreativeId = :masterCreativeId LIMIT 500", + $vars); + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201302/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..313d1c74c --- /dev/null +++ b/examples/Dfp/v201302/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201302'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($creativeSet)) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was updated.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201302/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..2d031768d --- /dev/null +++ b/examples/Dfp/v201302/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201302'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..e2faf2362 --- /dev/null +++ b/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201302'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..768a801d0 --- /dev/null +++ b/examples/Dfp/v201302/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201302'); + + // Create a statement to only select system defined creative templates. + $filterStatement = + new Statement("WHERE type = :type LIMIT 500"); + $filterStatement->values = MapUtils::GetMapEntries( + array('type' => new TextValue('SYSTEM_DEFINED'))); + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201302/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..e716164a2 --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201302/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..e3d738aa2 --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Create a query to select the active creative wrappers for the given label. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'), + 'labelId' => new NumberValue($labelId))); + $filterStatement = + new Statement('WHERE status = :status AND labelId = :labelId', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' will be deactivated.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of creative wrappers to be deactivated: %s\n", + $page->totalResultSetSize); + + // Perform action. + $result = $creativeWrapperService->performCreativeWrapperAction( + new DeactivateCreativeWrappers(), $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of creative wrappers deactivated: %s\n", + $result->numChanges); + } else { + printf("No creative wrappers were deactivated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201302/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..abf4a097d --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201302/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..f5961d766 --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement(new Statement()); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201302/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..c6c9cad0a --- /dev/null +++ b/examples/Dfp/v201302/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201302'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201302/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..68c1a5630 --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201302'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201302/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..d32803003 --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201302'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201302/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..306a5651c --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' + . $customField->id . '" and name "' . $customField->name + . "\" will be deactivated.\n"; + $i++; + $customFieldIds[] = $customField->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201302/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..3436018b4 --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201302'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201302/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..0afa8e17c --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201302'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201302/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..5c6447a53 --- /dev/null +++ b/examples/Dfp/v201302/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201302'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields found to update.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201302/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..d77dfc71d --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..5646442a2 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Set the name of the custom targeting key to delete. + $keyName = 'INSERT_CUSTOM_TARGETING_KEY_NAME_HERE'; + + // Create statement text to only select custom targeting key by the given + // name. + $filterStatementText = 'WHERE name = :name'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting keys deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting keys were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..8f2a1a8e7 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Set ID of the custom targeting key to delete values from. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create statement text to only select custom values by the given custom + // targeting key ID. + $filterStatementText = 'WHERE customTargetingKeyId = :keyId'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting values deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting values were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201302/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..4d4ffc31e --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + $keys = array(); + $offset = 0; + + do { + // Create statement to page through all custom targeting keys. + $filterStatement = new Statement('LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = array_merge($keys, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + + $values = array(); + + if (sizeof($keys) > 0) { + $keyIds = array_map(create_function('$key', 'return $key->id;'), $keys); + + // Create statement text to all custom targeting values for all custom + // targeting keys. + $filterStatementText = sprintf('WHERE customTargetingKeyId IN (%s)', + implode(',', $keyIds)); + $offset = 0; + + do { + // Create statement to page through all custom targeting values. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = array_merge($values, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + } + + // Create map of custom targeting key id to custom targeting values. + $keyIdToValueMap = array(); + foreach ($values as $value) { + $keyIdToValueMap[$value->customTargetingKeyId][] = $value; + } + + // Display keys and values. + $keyCount = 0; + foreach ($keys as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $keyCount, $key->id, + $key->name, $key->displayName, $key->type); + if (array_key_exists($key->id, $keyIdToValueMap)) { + $valueCount = 0; + foreach ($keyIdToValueMap[$key->id] as $value) { + printf("\t%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $valueCount, $value->id, + $value->name, $value->displayName); + $valueCount++; + } + } + $keyCount++; + } + + printf("Found %d keys and %d values.\n", sizeof($keys), sizeof($values)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..fe575d457 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Create a statement to only select predefined custom targeting keys. + $filterStatement = new Statement('WHERE type = :type LIMIT 500', + MapUtils::GetMapEntries(array('type' => new TextValue('PREDEFINED')))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName, $key->type); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..fe14a3789 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..3da6c3021 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // Update each local custom targeting key object by changing its display + // name. + foreach ($keys as $key) { + if (empty($key->displayName)) { + $key->displayName = $key->name; + } + $key->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // Display results. + if (isset($keys)) { + foreach ($page->results as $key) { + printf("Custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was updated.\n", $key->id, $key->name, + $key->displayName); + } + } else { + print "No custom targeting keys updated.\n"; + } + } else { + print "No custom targeting keys found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..34cdca266 --- /dev/null +++ b/examples/Dfp/v201302/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201302'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $valueId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($valueId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = $page->results; + + // Update each local custom targeting value object by changing its display + // name. + foreach ($values as $value) { + if (empty($value->displayName)) { + $value->displayName = $value->name; + } + $value->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting values on the server. + $values = $customTargetingService->updateCustomTargetingValues($values); + + // Display results. + if (isset($values)) { + foreach ($page->results as $value) { + printf("Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was updated.\n", $value->id, $value->name, + $value->displayName); + } + } else { + print "No custom targeting values updated.\n"; + } + } else { + print "No custom targeting values found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201302/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..81c8a6676 --- /dev/null +++ b/examples/Dfp/v201302/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,80 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201302'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n", $percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ForecastService/GetForecastExample.php b/examples/Dfp/v201302/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..57df1c109 --- /dev/null +++ b/examples/Dfp/v201302/ForecastService/GetForecastExample.php @@ -0,0 +1,112 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201302'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the line item's time to be now until the projected end date time. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 week')); + + // Set the line item to use 50% of the impressions. + $lineItem->unitType = 'IMPRESSIONS'; + $lineItem->unitsBought = 50; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n",$percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201302/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..fd7954d8b --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201302/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..a862af90f --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201302/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..3951f50a0 --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201302/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..de88ca64d --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + $adUnitIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201302/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..97af2b987 --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201302/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..0dcaedb7e --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('targetPlatform' => new TextValue('WEB'))); + + // Create a statement to only select web ad units sizes. + $filterStatement = new Statement("WHERE targetPlatform = :targetPlatform", + $vars); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + printf ("Number of ad unit sizes found: %d\n", count($adUnitSizes)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201302/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..872530980 --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create a statement to select the children of the effective root ad unit. + $filterStatement = + new Statement("WHERE parentId = :id LIMIT 500", + MapUtils::GetMapEntries(array( + 'id' => new NumberValue($effectiveRootAdUnitId)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201302/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..3a9362c48 --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201302/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..163f041bb --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201302'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + + diff --git a/examples/Dfp/v201302/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201302/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..739323ede --- /dev/null +++ b/examples/Dfp/v201302/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'Ad unit with ID "' . $adUnit->id . '", name "' . $adUnit->name + . '", and AdSense enabled "' + . ($adUnit->inheritedAdSenseSettings->value->adSenseEnabled + ? 'TRUE' : 'FALSE') + . "\" was updated.\n"; + } + } + } else { + print "No ad units updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LabelService/CreateLabelsExample.php b/examples/Dfp/v201302/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..b1dadd820 --- /dev/null +++ b/examples/Dfp/v201302/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201302/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..a5f30f64d --- /dev/null +++ b/examples/Dfp/v201302/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + foreach ($page->results as $label) { + printf("A label with ID '%s' and name '%s' will be deactivated.\n", + $label->id, $label->name); + $labelIds[] = $label->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201302/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..d212a2f9e --- /dev/null +++ b/examples/Dfp/v201302/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LabelService/GetLabelExample.php b/examples/Dfp/v201302/LabelService/GetLabelExample.php new file mode 100755 index 000000000..c98c3f3ed --- /dev/null +++ b/examples/Dfp/v201302/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201302/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..185fb5892 --- /dev/null +++ b/examples/Dfp/v201302/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201302/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..3454294ad --- /dev/null +++ b/examples/Dfp/v201302/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201302'); + + // Create a statement to only select labels that are active. + $filterStatement = new Statement( + "WHERE isActive = true LIMIT 500"); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + if (isset($page->results)) { + $labels = $page->results; + + // Update each local label object's description. + foreach ($labels as $label) { + $label->description = 'Last updated on ' . date('Ymd'); + } + + // Update the labels on the server. + $labels = $labelService->updateLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and description '%s' was " + . "updated.\n", $label->id, $label->name, $label->description); + } + } else { + print "No labels updated.\n"; + } + } else { + print "No labels found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LicaService/CreateLicasExample.php b/examples/Dfp/v201302/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..bbe704e25 --- /dev/null +++ b/examples/Dfp/v201302/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201302/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..be7ef5dfa --- /dev/null +++ b/examples/Dfp/v201302/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + $creativeIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LicaService/GetAllLicasExample.php b/examples/Dfp/v201302/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..a462d91ef --- /dev/null +++ b/examples/Dfp/v201302/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, creative set ID %d, and " . + "status %s was found.\n", $i, $lica->lineItemId, + $lica->creativeSetId, $lica->status); + } else { + printf("%d) LICA with line item ID %d, creative ID %d, and status " . + "%s was found.\n", $i, $lica->lineItemId, $lica->creativeId, + $lica->status); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LicaService/GetLicaExample.php b/examples/Dfp/v201302/LicaService/GetLicaExample.php new file mode 100755 index 000000000..d4e1d3b83 --- /dev/null +++ b/examples/Dfp/v201302/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201302/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..9a48db8f5 --- /dev/null +++ b/examples/Dfp/v201302/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create a statement to only select LICAs for the given lineItem ID. + $filterStatement = + new Statement("WHERE lineItemId = :lineItemId LIMIT 500", $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LicaService/UpdateLicasExample.php b/examples/Dfp/v201302/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..744714325 --- /dev/null +++ b/examples/Dfp/v201302/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201302'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and destination URL "' . $lica->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No LICAs updated.\n"; + } + } else { + print "No LICAs found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201302/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..18ab80d56 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('orderId' => new NumberValue($orderId))); + + // Create statement text to select approved line items from a given order. + $filterStatementText = + "WHERE orderId = :orderId AND status = 'NEEDS_CREATIVES'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + $lineItemIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Archived line items cannot be activated. + if (!$lineItem->isArchived) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" will be activated.\n"; + $i++; + $lineItemIds[] = $lineItem->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of line items to be activated: ' . sizeof($lineItemIds) . "\n"; + + if (sizeof($lineItemIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $lineItemIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ActivateLineItems(); + + // Perform action. + $result = + $lineItemService->performLineItemAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of line items activated: ' . $result->numChanges . "\n"; + } else { + print "No line items were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201302/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..022917f20 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +select($selectStatementOffset); + + if (isset($resultSet->rows)) { + foreach($resultSet->rows as $row) { + $untargetableLocationIds[] = $row->values[0]->value; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + return $untargetableLocationIds; +} + +/** + * Finds all untargetable locations. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a list of untargetable location IDs + */ +function getAllUntargetableLocations($user) { + // Tables that represent all different location types. + $LOCATION_TABLES = array('Country', 'Region', 'Metro', 'City', 'Postal_Code'); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', + API_VERSION); + $untargetableLocationIds = array(); + + // Find all untargetable locations for each location type. + foreach ($LOCATION_TABLES as $table) { + $untargetableLocationIds = array_merge($untargetableLocationIds, + getAllUntargetableLocationsHelper($pqlService, $table)); + } + + return $untargetableLocationIds; +} + +/** + * Builds a map of geo targets to the line items targeting them. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a map of geo targets to the line items targeting them + */ +function buildGeoTargetToLineItemsMap($user) { + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', API_VERSION); + + // Set defaults for page and statement. + $LIMIT = 500; + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + // Map of geo targets to all line items targeting it. + $geoTargetToLineItemsMap = array(); + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT '. $LIMIT . ' OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // If a line item has geo targeting, store it in the map. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->targeting->geoTargeting->targetedLocations)) { + foreach ($lineItem->targeting->geoTargeting->targetedLocations as + $targetedLocation) { + $lineItemIds = array(); + if (isset($geoTargetToLineItemsMap[$targetedLocation->id])) { + $lineItemIds = $geoTargetToLineItemsMap[$targetedLocation->id]; + } + $lineItemIds[] = $lineItem->id; + $geoTargetToLineItemsMap[$targetedLocation->id] = $lineItemIds; + } + } + } + } + + $offset += $LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $geoTargetToLineItemsMap; +} + +/** + * Finds all the geo targets in the specified map that are deprecated. + * + * @param array $geoTargetToLineItemsMap a map of geo targets to the line items + * targeting them + * @param array $untargetableLocationIds a list of deprecated location IDs + * @return a map of deprecated geo targets to the line items targeting them + */ +function findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds) { + // A map of deprecated geo targets to the line items targeting them. + $lineItemsToUpdate = array(); + + foreach ($geoTargetToLineItemsMap as $geoTargetId => $lineItemIds) { + if (in_array($geoTargetId, $untargetableLocationIds)) { + $lineItemsToUpdate[$geoTargetId] = $lineItemIds; + } + } + + return $lineItemsToUpdate; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogAll(); + + // Find all untargetable locations. + $untargetableLocationIds = getAllUntargetableLocations($user); + printf("Found %d untargetable locations.\n", count($untargetableLocationIds)); + + // Build a map of geo targets to the line items targeting them. + $geoTargetToLineItemsMap = buildGeoTargetToLineItemsMap($user); + + // Find all the deprecated geo targets from that map. + $lineItemsToUpdate = findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds); + + $i = 0; + // Print the line items that need to be updated. + foreach ($lineItemsToUpdate as $geoTargetId => $lineItemIds) { + printf("%d) The following line items are targeting deprecated location %d" + . " and need to be updated: %s\n", $i, $geoTargetId, implode(', ', + $lineItemIds)); + $i++; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201302/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..6f0c2e59d --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is + // $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with with ID "' . $lineItem->id + . '", belonging to order ID "' . $lineItem->orderId + . '", and name "' . $lineItem->name + . "\" was created.\n"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201302/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..52ff3c58c --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_MOBILE_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create technology targeting. + $technologyTargeting = new TechnologyTargeting(); + + // Create device manufacturer targeting. + $deviceManufacturerTargeting = new DeviceManufacturerTargeting(); + $deviceManufacturerTargeting->isTargeted = TRUE; + + // Target the Google device manufacturer (40100). + $deviceManufacturerTechnology = new Technology(); + $deviceManufacturerTechnology->id = 40100; + $deviceManufacturerTargeting->deviceManufacturers = + array($deviceManufacturerTechnology); + $technologyTargeting->deviceManufacturerTargeting = + $deviceManufacturerTargeting; + + // Create mobile device targeting. + $mobileDeviceTargeting = new MobileDeviceTargeting(); + + // Exclude the Nexus One device (604046). + $mobileDeviceTechnology = new Technology(); + $mobileDeviceTechnology->id = 604046; + $mobileDeviceTargeting->targetedMobileDevices = + array($mobileDeviceTechnology); + $technologyTargeting->mobileDeviceTargeting = $mobileDeviceTargeting; + + // Create mobile device submodel targeting. + $mobileDeviceSubmodelTargeting = new MobileDeviceSubmodelTargeting(); + + // Target the iPhone 4 device submodel (640003). + $mobileDeviceSubmodelTechnology = new Technology(); + $mobileDeviceSubmodelTechnology->id = 640003; + $mobileDeviceSubmodelTargeting->targetedMobileDeviceSubmodels = + array($mobileDeviceSubmodelTechnology); + $technologyTargeting->mobileDeviceSubmodelTargeting = + $mobileDeviceSubmodelTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Mobile line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = TRUE; + + // Set the target platform to mobile. + $lineItem->targetPlatform = 'MOBILE'; + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + // Create the line item on the server. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + prinf("A line item with with ID '%s', belonging to order ID '%s', and name " + . "'%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201302/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..cfebac40e --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetedVideoAdUnitId = 'INSERT_TARGETED_VIDEO_AD_UNIT_ID_HERE'; + + // Set the custom targeting key ID and value ID representing the metadata + // on the content to target. This would typically be a key representing + // a 'genre' and a value representing something like 'comedy'. + $contentCustomTargetingKeyId = 'INSERT_CONTENT_CUSTOM_TARGETING_KEY_ID_HERE'; + $contentCustomTargetingValueId = + 'INSERT_CONTENT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Create custom criteria for the content metadata targeting. + $contentCustomCriteria = new CustomCriteria(); + $contentCustomCriteria->keyId = $contentCustomTargetingKeyId; + $contentCustomCriteria->valueIds = array($contentCustomTargetingValueId); + $contentCustomCriteria->operator = 'IS'; + + // Create custom criteria set. + $customCriteriaSet = new CustomCriteriaSet(); + $customCriteriaSet->children = array($contentCustomCriteria); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // Create the line item on the server. + $lineItems = $lineItemService->createLineItems($lineItem); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + printf("A line item with with ID '%s', belonging to order ID '%s', and " + . "name '%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } + } else { + printf("No line items created."); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201302/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..39a5dbbf7 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/GetLineItemExample.php b/examples/Dfp/v201302/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..10646b6f0 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201302/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..63839408a --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId))); + + // Create a statement to only select line items that need creatives + // from a given order. + $filterStatement = new Statement("WHERE orderId = :orderId " + . " AND status = 'NEEDS_CREATIVES' LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201302/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..7138ebd37 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Calculate time from three days ago. + $threeDaysAgo = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('-3 day')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId), + 'threeDaysAgo' => new TextValue($threeDaysAgo))); + + // Create statement object to only select line items belonging to the order + // and have been modified in the last 3 days. + $filterStatement = new Statement("WHERE orderId = :orderId " + . "AND lastModifiedDateTime >= :threeDaysAgo " + . "LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Format lastModifiedDateTime for printing. + $lastModifiedDateTime = + DateTimeUtils::GetDateTime($lineItem->lastModifiedDateTime); + $lastModifiedDateTimeText = $lastModifiedDateTime + ->format(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT); + + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", with name "' . $lineItem->name + . '", and last modified ' . $lastModifiedDateTimeText + . " was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201302/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..3bc83946d --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201302/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..1d97eb595 --- /dev/null +++ b/examples/Dfp/v201302/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create a statement to get line items with even delivery rates. + $filterStatement = + new Statement("WHERE deliveryRateType = 'EVENLY' and orderId = " + . $orderId . ' LIMIT 500'); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + if (isset($page->results)) { + $lineItems = $page->results; + + // Remove archived line items. + array_filter($lineItems, + create_function('$lineItem', 'return !$lineItem->isArchived;')); + + // Update each local line item object by changing its delivery rate. + foreach ($lineItems as $lineItem) { + $lineItem->deliveryRateType = 'AS_FAST_AS_POSSIBLE'; + } + + // Update the line items on the server. + $lineItems = $lineItemService->updateLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", name "' . $lineItem->name + . '", and delivery rate "' . $lineItem->deliveryRateType + . "\" was updated.\n"; + } + } else { + print "No line items updated.\n"; + } + } else { + print "No line items found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201302/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..d860390e3 --- /dev/null +++ b/examples/Dfp/v201302/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get all networks that you have access to with the current login + // credentials. + $networks = $networkService->getAllNetworks(); + + // Display results. + if (isset($networks)) { + $i = 0; + foreach ($networks as $network) { + print $i . ') Network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $i . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201302/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..0da7c1597 --- /dev/null +++ b/examples/Dfp/v201302/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201302/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..e30345327 --- /dev/null +++ b/examples/Dfp/v201302/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201302'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201302/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..875d43164 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // Create a datetime representing today. + $today = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, strtotime('now')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('today' => new TextValue($today))); + + // Create statement text to get all draft and pending approval orders that + // haven't ended and aren't archived. + $filterStatementText = "WHERE status IN ('DRAFT', 'PENDING_APPROVAL') " + . "AND endDateTime >= :today " + . "AND isArchived = FALSE "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " + . $offset, $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + $orderIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + // Archived orders cannot be approved. + if (!$order->isArchived) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and status "' . $order->status + . "\" will be approved.\n"; + $i++; + $orderIds[] = $order->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of orders to be approved: ' . sizeof($orderIds) . "\n"; + + if (sizeof($orderIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $orderIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveAndOverbookOrders(); + + // Perform action. + $result = $orderService->performOrderAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of orders approved: ' . $result->numChanges . "\n"; + } else { + print "No orders were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/OrderService/CreateOrdersExample.php b/examples/Dfp/v201302/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..c683876a1 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201302'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201302/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..ce77a37e0 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/OrderService/GetOrderExample.php b/examples/Dfp/v201302/OrderService/GetOrderExample.php new file mode 100755 index 000000000..2952dc8be --- /dev/null +++ b/examples/Dfp/v201302/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201302/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..7ea1c2659 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // Set the ID of the advertiser (company) to get orders for. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('advertiserId' => new NumberValue($advertiserId))); + + // Create a statement to only select orders for a given advertiser. + $filterStatement = + new Statement("WHERE advertiserId = :advertiserId LIMIT 500", $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201302/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..966d53412 --- /dev/null +++ b/examples/Dfp/v201302/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201302'); + + // Create a statement to get all orders. + $filterStatement = new Statement('LIMIT 500'); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + if (isset($page->results)) { + $orders = $page->results; + + // Remove archived orders. + array_filter($orders, + create_function('$order', 'return !$order->isArchived;')); + + // Update each local order object by changing its notes. + foreach ($orders as $order) { + $order->notes = 'Spoke to advertiser. All is well.'; + } + + // Update the orders on the server. + $orders = $orderService->updateOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'Order with ID "' . $order->id + . '", name "' . $order->name + . '", advertiser ID "' . $order->advertiserId + . '", and notes "' . $order->notes + . "\" was updated.\n"; + } + } else { + print "No orders updated.\n"; + } + } else { + print "No orders found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201302/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..055d26d1e --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201302/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..79fbe7994 --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201302/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..57d1abcb2 --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/PlacementService/GetPlacementExample.php b/examples/Dfp/v201302/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..0c60289e2 --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201302/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..a77b7f9c1 --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201302/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..e973262cd --- /dev/null +++ b/examples/Dfp/v201302/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201302'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201302'); + + // Create a statement to select first 500 placements. + $filterStatement = new Statement("LIMIT 500"); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + if (isset($page->results)) { + $placements = $page->results; + + // Update each local placement object by adding the root ad unit. + foreach ($placements as $placement) { + $placement->targetingDescription = !empty($placement->description) ? + $placement->description : 'Generic description'; + $placement->targetingAdLocation = 'All images on sports pages.'; + $placement->targetingSiteName = 'http://code.google.com'; + $placement->isAdSenseTargetingEnabled = TRUE; + } + + // Update the placements on the server. + $placements = $placementService->updatePlacements($placements); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and AdSense targeting "' + . ($placement->isAdSenseTargetingEnabled ? 'enabled' : 'disabled') + . "\" was updated.\n"; + } + } else { + print "No placements updated.\n"; + } + } else { + print "No placements found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/PublisherQueryLanguageService/GetAllCitiesExample.php b/examples/Dfp/v201302/PublisherQueryLanguageService/GetAllCitiesExample.php new file mode 100755 index 000000000..2e98f5841 --- /dev/null +++ b/examples/Dfp/v201302/PublisherQueryLanguageService/GetAllCitiesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201302'); + + // Define the number of cities we want to get at a time. + $LIMIT = 500; + + // Create statement to select all targetable cities. + // For criteria that do not have a 'targetable' property, that predicate + // may be left off, i.e. just "SELECT * FROM Browser_Groups LIMIT 500". + $selectStatement = 'SELECT * FROM City WHERE targetable = true LIMIT ' . + $LIMIT; + $offset = 0; + $resultSetSize = 0; + $allRows = array(); + $i = 0; + + $mapColumnTypesToLabelsFn = create_function('$columnType', + 'return $columnType->labelName;'); + $mapRowValueToValueFn = create_function('$value', 'return $value->value;'); + + do { + $selectStatementOffset = + new Statement($selectStatement . ' OFFSET ' . $offset); + + // Get all cities. + $resultSet = $pqlService->select($selectStatementOffset); + + if (isset($resultSet->rows)) { + // Display results. + $columnLabels = array_map($mapColumnTypesToLabelsFn, + $resultSet->columnTypes); + printf("Columns are: %s\n", implode(', ', $columnLabels)); + + foreach($resultSet->rows as $row) { + $values = array_map($mapRowValueToValueFn, $row->values); + + // Collect all cities from each page. + $allRows[] = $values; + + printf("%d) %s\n", $i, implode(', ', $values)); + $i++; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + printf("Number of results found: %d\n", count($allRows)); + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201302/ReportService/DisplayReportExample.php b/examples/Dfp/v201302/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..61c2ba0e6 --- /dev/null +++ b/examples/Dfp/v201302/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report (e.g., CSV_DUMP) and download without + // compression so we can print it. + $reportDownloadOptions = new ReportDownloadOptions(); + $reportDownloadOptions->exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + $reportDownloadOptions->useGzipCompression = false; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ReportService/DownloadReportExample.php b/examples/Dfp/v201302/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..bd8d5b9c5 --- /dev/null +++ b/examples/Dfp/v201302/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report. Ex: CSV_DUMP + $exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + + // Set the file name to download the gzipped report to. Ex: report.csv.gz. + $fileName = 'INSERT_FILE_NAME_HERE' . '.gz'; + + $filePath = dirname(__FILE__) . '/' . $fileName; + + $downloadUrl = + $reportService->getReportDownloadURL($reportJobId, $exportFormat); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + + ReportUtils::DownloadReport($downloadUrl, $filePath); + + printf("Report downloaded to file '%s'.\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201302/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..12ac62ef9 --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Set the order id to report on. + $order_id = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($order_id))); + + // Create statement text to filter based on an order id. + $filterStatementText = 'WHERE order_id = :orderId'; + + // Create statement object from text. + $filterStatement = new Statement($filterStatementText, $vars); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'AD_SERVER_CTR', 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportQuery->statement = $filterStatement; + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201302/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..2815e598d --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', 'AD_UNIT_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS', + 'TOTAL_INVENTORY_LEVEL_IMPRESSIONS', + 'TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201302/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..731ec648e --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('MERGED_AD_SERVER_IMPRESSIONS', + 'MERGED_AD_SERVER_CLICKS', 'MERGED_AD_SERVER_CTR', + 'MERGED_AD_SERVER_CPM_AND_CPC_REVENUE', + 'MERGED_AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ReportService/RunReachReportExample.php b/examples/Dfp/v201302/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..f8ecf681b --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'REACH_LIFETIME'; + $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); + $reportQuery->columns = array('REACH_FREQUENCY', + 'REACH_AVERAGE_REVENUE', + 'REACH'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201302/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201302/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..251ff625b --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201302'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Set defaults for page and statement. + $page = new LineItemPage(); + $vars = MapUtils::GetMapEntries(array('orderId' => + new NumberValue($orderId))); + $filterStatement = new Statement(NULL, $vars); + $offset = 0; + + // Collect all line item custom field IDs for an order. + $customFieldIds = array(); + do { + // Create a statement to only select line items from a given order. + $filterStatement->query = sprintf('WHERE orderId = :orderId LIMIT 500 ' . + 'OFFSET %d', $offset); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Get custom field IDs from the line items of an order. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $customFieldValue) { + $customFieldId = $customFieldValue->customFieldId; + if (!in_array($customFieldId, $customFieldIds)) { + $customFieldIds[] = $customFieldId; + } + } + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); + $reportQuery->customFieldIds = $customFieldIds; + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); + $reportJob->reportQuery = $reportQuery; + + // Report on a single order. + $filterStatement->query = 'WHERE ORDER_ID = :orderId'; + $reportQuery->statement = $filterStatement; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ReportService/RunSalesReportExample.php b/examples/Dfp/v201302/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..019f56f95 --- /dev/null +++ b/examples/Dfp/v201302/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201302'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('SALESPERSON_ID', 'SALESPERSON_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', + 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201302/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..11e37a4d6 --- /dev/null +++ b/examples/Dfp/v201302/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201302'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201302/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..eff2b080a --- /dev/null +++ b/examples/Dfp/v201302/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201302'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..ad07fbb4d --- /dev/null +++ b/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201302'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..fc05f1540 --- /dev/null +++ b/examples/Dfp/v201302/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201302'); + + // Create a statement to only select suggested ad units with more than 50 + // requests. + $filterStatement = + new Statement("WHERE numRequests > :numRequests LIMIT 500", + MapUtils::GetMapEntries(array('numRequests' => new NumberValue(50)))); + + // Get ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/TeamService/CreateTeamsExample.php b/examples/Dfp/v201302/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..a0180f447 --- /dev/null +++ b/examples/Dfp/v201302/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201302/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..367e2aba9 --- /dev/null +++ b/examples/Dfp/v201302/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/TeamService/GetTeamExample.php b/examples/Dfp/v201302/TeamService/GetTeamExample.php new file mode 100755 index 000000000..ccae3c54f --- /dev/null +++ b/examples/Dfp/v201302/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201302/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..3396eacf0 --- /dev/null +++ b/examples/Dfp/v201302/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201302/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..e49e591ef --- /dev/null +++ b/examples/Dfp/v201302/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201302'); + + // Set the ID of the ad unit to add to the teams. + $adUnitID = "INSERT_AD_UNIT_ID_HERE"; + + // Create a statement to select first 5 teams that aren't + // built-in. + $filterStatement = new Statement("WHERE id > 0 LIMIT 5"); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + if (isset($page->results)) { + $teams = $page->results; + + $i = 0; + // Update each local team object by appending the ad unit to it. + foreach ($teams as $team) { + if (!$team->hasAllInventory) { + if (!isset($team->adUnitIds)) { + // Empty team inventory. + $team->adUnitIds = array(); + } + $team->adUnitIds[] = $adUnitID; + $i++; + } + } + + // Reorganize the $teams array. + $teams = array_values($teams); + + // Update the teams on the server. + $teams = $teamService->updateTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "' . $team->name . "\" was updated.\n"; + } + } else { + print "No teams updated.\n"; + } + } else { + print "No teams found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php b/examples/Dfp/v201302/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php new file mode 100755 index 000000000..bfd2012c7 --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/ArchiveThirdPartySlotsExample.php @@ -0,0 +1,126 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Set the company that the third party slots to archive belong to. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array( + 'companyId' => new NumberValue($companyId), + 'status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active third party slots. + $filterStatementText = 'WHERE companyId = :companyId AND status = :status'; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . ' LIMIT 500 OFFSET ' . $offset, + $vars); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + $thirdPartySlotIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' will be archived.\n", + $thirdPartySlot->id); + $i++; + $thirdPartySlotIds[] = $thirdPartySlot->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of third party slots to be archived: %d\n", + sizeof($thirdPartySlotIds)); + + if (sizeof($thirdPartySlotIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $thirdPartySlotIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ArchiveThirdPartySlots(); + + // Perform action. + $result = $thirdPartySlotService->performThirdPartySlotAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of third party slots archived: %d\n", + $result->numChanges); + } else { + print "No third party slots were archived.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ThirdPartySlotService/CreateThirdPartySlotExample.php b/examples/Dfp/v201302/ThirdPartySlotService/CreateThirdPartySlotExample.php new file mode 100755 index 000000000..efc284b3a --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/CreateThirdPartySlotExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Set the company ID to associate with this third party slot. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Set the external unique ID to associate with this third party slot. + $externalUniqueId = 'INSERT_EXTERNAL_UNIQUE_ID_HERE'; + + // Set the external unique name to associate with this third party slot. + $externalUniqueName = 'INSERT_EXTERNAL_UNIQUE_NAME_HERE'; + + // Set the creative IDs to associate with this third party slot. + $creativeIds = array('INSERT_CREATIVE_ID_HERE'); + + // Create the ThirdPartySlot object. + $thirdPartySlot = new ThirdPartySlot(); + $thirdPartySlot->companyId = $companyId; + $thirdPartySlot->description = 'Third party slot description.'; + $thirdPartySlot->externalUniqueId = $externalUniqueId; + $thirdPartySlot->externalUniqueName = $externalUniqueName; + + // Set the creatives that the third party slot will represent. + $thirdPartySlot->creativeIds = $creativeIds; + + // Create the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->createThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("A third party slot with ID '%s' and name '%s' was created.\n", + $thirdPartySlot->id, $thirdPartySlot->externalUniqueName); + } else { + print "No third party slot was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ThirdPartySlotService/GetAllThirdPartySlotsExample.php b/examples/Dfp/v201302/ThirdPartySlotService/GetAllThirdPartySlotsExample.php new file mode 100755 index 000000000..cacbcff1d --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/GetAllThirdPartySlotsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Set defaults for page and statement. + $page = new ThirdPartySlotPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all third party slots. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php b/examples/Dfp/v201302/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php new file mode 100755 index 000000000..4e30d115f --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/GetThirdPartySlotsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Create a statement. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", + MapUtils::GetMapEntries(array('status' => new TextValue('ARCHIVED')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $thirdPartySlot) { + printf("Third party slot with ID '%s' was found.\n", + $thirdPartySlot->id); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/ThirdPartySlotService/UpdateThirdPartySlotExample.php b/examples/Dfp/v201302/ThirdPartySlotService/UpdateThirdPartySlotExample.php new file mode 100755 index 000000000..e74baebea --- /dev/null +++ b/examples/Dfp/v201302/ThirdPartySlotService/UpdateThirdPartySlotExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ThirdPartySlotService. + $thirdPartySlotService = + $user->GetService('ThirdPartySlotService', 'v201302'); + + // Create a statement to get one active third party slot. + $filterStatement = new Statement('WHERE status = :status LIMIT 1', + MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE')))); + + // Get third party slots by statement. + $page = + $thirdPartySlotService->getThirdPartySlotsByStatement($filterStatement); + + if (isset($page->results)) { + $thirdPartySlot = $page->results[0]; + + // Update the local third party slot by changing its description. + $thirdPartySlot->description = 'Updated description'; + + // Update the third party slot on the server. + $thirdPartySlot = + $thirdPartySlotService->updateThirdPartySlot($thirdPartySlot); + + // Display results. + if (isset($thirdPartySlot)) { + printf("Third party slot with ID '%s' and description '%s' was " + . "updated.\n", $thirdPartySlot->id, $thirdPartySlot->description); + } else { + print "The third party slot was not updated.\n"; + } + } else { + print "No third party slot was found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/CreateUsersExample.php b/examples/Dfp/v201302/UserService/CreateUsersExample.php new file mode 100755 index 000000000..5a8cc21bc --- /dev/null +++ b/examples/Dfp/v201302/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/DeactivateUserExample.php b/examples/Dfp/v201302/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..bf3f2964f --- /dev/null +++ b/examples/Dfp/v201302/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and status "' . ($usr->isActive ? 'ACTIVE' : 'INACTIVE') + . "\" will be deactivated.\n"; + $i++; + $userIds[] = $usr->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/GetAllRolesExample.php b/examples/Dfp/v201302/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..1114a4a3a --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Get all roles. + $roles = $userService->getAllRoles(); + + if (isset($roles)) { + foreach ($roles as $role) { + print 'Role with ID "' . $role->id . '" and name "' . $role->name + . "\" was found.\n"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/GetAllUsersExample.php b/examples/Dfp/v201302/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..89fe7bcba --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print "Number of results found: " . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/GetCurrentUserExample.php b/examples/Dfp/v201302/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..f66ee180a --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/GetUserExample.php b/examples/Dfp/v201302/UserService/GetUserExample.php new file mode 100755 index 000000000..67876a2a1 --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201302/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..63ef8b061 --- /dev/null +++ b/examples/Dfp/v201302/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Create a statement to get all users sorted by name. + $filterStatement = new Statement('ORDER BY name LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserService/UpdateUsersExample.php b/examples/Dfp/v201302/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..c2098bd04 --- /dev/null +++ b/examples/Dfp/v201302/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201302'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $usr) { + print 'A user with ID "' . $usr->id + . '", name "' . $usr->name + . '", and role "' . $usr->roleName . "\" was updated.\n"; + } + } else { + print "No users updated.\n"; + } + } else { + print "No users found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201302/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..18dad7a37 --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201302/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..378d9d0f5 --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText + . " LIMIT 500 OFFSET " . $offset, $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201302/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..91e7fde10 --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User Team association between user with ID "' + . $uta->userId . '" and team with ID "' + . $uta->teamId . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..ff0d86d9d --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..df71445cf --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201302'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201302"); + + // Get the current user. + $currentUserId = $userService->getCurrentUser()->id; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($currentUserId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = + new Statement("WHERE userId = :userId LIMIT 500", $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201302/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201302/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..12c99d608 --- /dev/null +++ b/examples/Dfp/v201302/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201302'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = new Statement("WHERE userId = :userId LIMIT 500", $vars); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . '" was updated to access type "' + . $uta->overriddenTeamAccessType . '".\n'; + } + } else { + print "No user team associations updated.\n"; + } + } else { + print "No user team associations found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201306/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..297f3ec00 --- /dev/null +++ b/examples/Dfp/v201306/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201306'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201306/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..d693837b2 --- /dev/null +++ b/examples/Dfp/v201306/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201306'); + + // Statement parts to help build a statement that only selects active activity + // groups. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + $i++, $activityGroup->id, $activityGroup->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201306/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..90b4f0841 --- /dev/null +++ b/examples/Dfp/v201306/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201306'); + + // Statement parts to help build a statement that selects all activity groups. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + $i++, $activityGroup->id, $activityGroup->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201306/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..169ecf089 --- /dev/null +++ b/examples/Dfp/v201306/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201306'); + + // Set the ID of the activity group and the company to update it with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Get the activity group. + $activityGroup = $activityGroupService->getActivityGroup($activityGroupId); + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity groups on the server. + $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->name); + } + } else { + printf("No activity groups were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ActivityService/CreateActivities.php b/examples/Dfp/v201306/ActivityService/CreateActivities.php new file mode 100755 index 000000000..c48c17faa --- /dev/null +++ b/examples/Dfp/v201306/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201306'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ActivityService/GetActiveActivities.php b/examples/Dfp/v201306/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..49aec1e6b --- /dev/null +++ b/examples/Dfp/v201306/ActivityService/GetActiveActivities.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201306'); + + // Set the ID of the activity group these activities are associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Statement parts to help build a statement that only selects active + // activities. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId and status = ' . + ':status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId), 'status' => new TextValue($STATUS))); + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", and type \"%s\" " . + "was found.\n", $i++, $activity->id, $activity->name, + $activity->type); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ActivityService/GetAllActivities.php b/examples/Dfp/v201306/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..22822397e --- /dev/null +++ b/examples/Dfp/v201306/ActivityService/GetAllActivities.php @@ -0,0 +1,136 @@ +GetService('ActivityGroupService', + 'v201306'); + + // Statement parts to help build a statement that selects all activity groups. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $activityGroup) { + $activityGroupIds[] = $activityGroup->id; + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $activityGroupIds; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201306'); + + // Statement parts to help build a statement to get all activities for an + // activity group. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId ORDER BY id LIMIT ' . + '%d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + + $totalResultsCounter = 0; + + $activityGroupIds = getAllActivityGroupIds($user); + + foreach ($activityGroupIds as $activityGroupId) { + // Set the activity group ID to select from. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId))); + + $page = new ActivityPage(); + $offset = 0; + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", type \"%s\", and " . + "activity group ID \"%d\" was found.\n", $totalResultsCounter++, + $activity->id, $activity->name, $activity->type, + $activityGroupId); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + } + printf("Number of results found: %d\n", $totalResultsCounter); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ActivityService/UpdateActivities.php b/examples/Dfp/v201306/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..cdcab1233 --- /dev/null +++ b/examples/Dfp/v201306/ActivityService/UpdateActivities.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201306'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // Get the activity. + $activity = $activityService->getActivity($activityId); + + // Update the expected URL. + $activity->expectedURL = 'https://google.com'; + + // Update the activity on the server. + $activities = $activityService->updateActivities(array($activity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $updatedActivity) { + printf("Activity with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivity->id, $updatedActivity->name); + } + } else { + printf("No activities were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/AudienceSegmentService/GetAllAudienceSegmentsExample.php b/examples/Dfp/v201306/AudienceSegmentService/GetAllAudienceSegmentsExample.php new file mode 100755 index 000000000..e828364c1 --- /dev/null +++ b/examples/Dfp/v201306/AudienceSegmentService/GetAllAudienceSegmentsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201306'); + + // Set defaults for page and statement. + $page = new AudienceSegmentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all audience segments. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + print $i . ') Audience segment with ID "' + . $audienceSegment->id . '", and name "' . $audienceSegment->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201306/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..413e007e9 --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201306/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..b4265f95b --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} diff --git a/examples/Dfp/v201306/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201306/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..9c4f9ef15 --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // Create a statement to only select companies that are advertisers sorted + // by name. + $filterStatement = + new Statement("WHERE type = :type ORDER BY name LIMIT 500", $vars); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CompanyService/GetCompanyExample.php b/examples/Dfp/v201306/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..08d843b24 --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201306/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..795a562e0 --- /dev/null +++ b/examples/Dfp/v201306/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201306'); + + // Create a statement to only select companies that are advertisers. + $filterStatement = new Statement("WHERE type = 'ADVERTISER' LIMIT 500"); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + if (isset($page->results)) { + $companies = $page->results; + + // Update each local company object by appending LLC. to its name. + foreach ($companies as $company) { + $company->name .= ' LLC.'; + } + + // Update the companies on the server. + $companies = $companyService->updateCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '" and name "' . $company->name . "\" was updated.\n"; + } + } else { + print "No companies updated.\n"; + } + } else { + print "No companies found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ContactService/CreateContacts.php b/examples/Dfp/v201306/ContactService/CreateContacts.php new file mode 100755 index 000000000..67817b234 --- /dev/null +++ b/examples/Dfp/v201306/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201306'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ContactService/GetAllContacts.php b/examples/Dfp/v201306/ContactService/GetAllContacts.php new file mode 100755 index 000000000..68afb5ca5 --- /dev/null +++ b/examples/Dfp/v201306/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201306'); + + // Statement parts to help build a statement to select all contacts. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + $contact->id, $contact->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201306/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..c28b29cd0 --- /dev/null +++ b/examples/Dfp/v201306/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201306'); + + // Statement parts to help build a statement to only select contacts that + // aren't invited yet. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'UNINVITED'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + $contact->id, $contact->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ContactService/UpdateContacts.php b/examples/Dfp/v201306/ContactService/UpdateContacts.php new file mode 100755 index 000000000..1eedb8abe --- /dev/null +++ b/examples/Dfp/v201306/ContactService/UpdateContacts.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201306'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // Get the contact. + $contact = $contactService->getContact($contactId); + + // Update the address on the contact. + $contact->address = '123 New Street, New York, NY, 10011'; + + // Update the contact on the server. + $contacts = $contactService->updateContacts(array($contact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $updatedContact) { + printf("Contact with ID \"%d\", name \"%s\", and address \"%s\" was " . + "updated.\n", $updatedContact->id, $updatedContact->name, + $updatedContact->address); + } + } else { + printf("No contacts were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ContentService/GetAllContentExample.php b/examples/Dfp/v201306/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..780599e20 --- /dev/null +++ b/examples/Dfp/v201306/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201306'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201306/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..867b3c164 --- /dev/null +++ b/examples/Dfp/v201306/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Get content browse custom targeting key ID. + $network = $networkService->getCurrentNetwork(); + $contentBrowseCustomTargetingKeyId = + $network->contentBrowseCustomTargetingKeyId; + + // Create a statement to select the categories matching the name comedy. + $categoryFilterStatement = new Statement( + "WHERE customTargetingKeyId = :contentBrowseCustomTargetingKeyId " + . "and name = :category LIMIT 1"); + $categoryFilterStatement->values = MapUtils::GetMapEntries(array( + 'contentBrowseCustomTargetingKeyId' => + new NumberValue($contentBrowseCustomTargetingKeyId), + 'category' => new TextValue('comedy'))); + + // Get categories matching the filter statement. + $customTargetingValuePage = + $customTargetingService->getCustomTargetingValuesByStatement( + $categoryFilterStatement); + + // Get the custom targeting value ID for the comedy category. + $categoryCustomTargetingValueId = $customTargetingValuePage->results[0]->id; + + // Create a statement to get all active content. + $filterStatement = new Statement("WHERE status = 'ACTIVE' LIMIT 500"); + + // Get content by statement. + $page = $contentService->getContentByStatementAndCustomTargetingValue( + $filterStatement, $categoryCustomTargetingValueId); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201306/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..b948752cd --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201306'); + + // Set the line item ID and creative set ID to associate. + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + $creativeSetId = "INSERT_CREATIVE_SET_ID_HERE"; + + $lica = new LineItemCreativeAssociation(); + $lica->lineItemId = $lineItemId; + $lica->creativeSetId = $creativeSetId; + + // Create the LICA on the server. + $licas = $licaService->createLineItemCreativeAssociations(array($lica)); + $lica = $licas[0]; + + printf("A LICA with line item ID %d and creative set ID %d was created.", + $lica->lineItemId, $lica->creativeSetId); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201306/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..5240fb07c --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($templateCreative)) { + printf("A template creative with ID '%s', name '%s', and type '%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->CreativeType, + $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201306/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..e27a9e636 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + foreach ($imageCreatives as $creative) { + // Use instanceof to determine what type of creative was returned. + if ($creative instanceof ImageCreative) { + print 'An image creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and size {' . $creative->size->width + . ', ' . $creative->size->height . "} was created and\n" + . ' can be previewed at: ' . $creative->previewUrl . "\n"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201306/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..0397dfba7 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201306/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..503cd7430 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeService/GetCreativeExample.php b/examples/Dfp/v201306/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..dda390944 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201306/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..a5fb59495 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('creativeType' => new TextValue('ImageCreative'))); + + // Create a statement to only select image creatives. + $filterStatement = + new Statement("WHERE creativeType = :creativeType LIMIT 500", $vars); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201306/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..845e6fe16 --- /dev/null +++ b/examples/Dfp/v201306/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201306'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // Display results. + if (isset($creatives)) { + foreach ($creatives as $creative) { + print 'An image creative with ID "' . $creative->id + . '" and destination URL "' . $creative->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No creatives updated.\n"; + } + } else { + print "No creatives found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201306/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..fb3582225 --- /dev/null +++ b/examples/Dfp/v201306/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201306'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201306/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..e6092f234 --- /dev/null +++ b/examples/Dfp/v201306/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201306'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201306/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..77200806f --- /dev/null +++ b/examples/Dfp/v201306/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201306'); + + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('masterCreativeId' => new NumberValue($masterCreativeID))); + + // Create a statement object to only select creative sets that have the given + // master creative. + $filterStatement = + new Statement("WHERE masterCreativeId = :masterCreativeId LIMIT 500", + $vars); + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201306/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..1c1336239 --- /dev/null +++ b/examples/Dfp/v201306/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201306'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($creativeSet)) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was updated.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201306/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..e667a6826 --- /dev/null +++ b/examples/Dfp/v201306/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201306'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..5c39bc6c7 --- /dev/null +++ b/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201306'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..c0e3bcef5 --- /dev/null +++ b/examples/Dfp/v201306/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201306'); + + // Create a statement to only select system defined creative templates. + $filterStatement = + new Statement("WHERE type = :type LIMIT 500"); + $filterStatement->values = MapUtils::GetMapEntries( + array('type' => new TextValue('SYSTEM_DEFINED'))); + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201306/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..704424a7f --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201306/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..491705ca6 --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Create a query to select the active creative wrappers for the given label. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'), + 'labelId' => new NumberValue($labelId))); + $filterStatement = + new Statement('WHERE status = :status AND labelId = :labelId', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' will be deactivated.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of creative wrappers to be deactivated: %s\n", + $page->totalResultSetSize); + + // Perform action. + $result = $creativeWrapperService->performCreativeWrapperAction( + new DeactivateCreativeWrappers(), $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of creative wrappers deactivated: %s\n", + $result->numChanges); + } else { + printf("No creative wrappers were deactivated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201306/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..36633920f --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201306/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..4d62235b7 --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement(new Statement()); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201306/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..91bd68209 --- /dev/null +++ b/examples/Dfp/v201306/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201306'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201306/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..d55de6db4 --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201306'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201306/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..ef891ed73 --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201306'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201306/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..e18b5c7bc --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' + . $customField->id . '" and name "' . $customField->name + . "\" will be deactivated.\n"; + $i++; + $customFieldIds[] = $customField->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201306/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..32e4ebbb1 --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201306'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201306/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..6dcc730a5 --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201306'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201306/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..a6b1bf18f --- /dev/null +++ b/examples/Dfp/v201306/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201306'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields found to update.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201306/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..60cf1bae3 --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..420f721fc --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Set the name of the custom targeting key to delete. + $keyName = 'INSERT_CUSTOM_TARGETING_KEY_NAME_HERE'; + + // Create statement text to only select custom targeting key by the given + // name. + $filterStatementText = 'WHERE name = :name'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting keys deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting keys were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..0edb8ca4d --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Set ID of the custom targeting key to delete values from. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create statement text to only select custom values by the given custom + // targeting key ID. + $filterStatementText = 'WHERE customTargetingKeyId = :keyId'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting values deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting values were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201306/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..2b09e6caa --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + $keys = array(); + $offset = 0; + + do { + // Create statement to page through all custom targeting keys. + $filterStatement = new Statement('LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = array_merge($keys, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + + $values = array(); + + if (sizeof($keys) > 0) { + $keyIds = array_map(create_function('$key', 'return $key->id;'), $keys); + + // Create statement text to all custom targeting values for all custom + // targeting keys. + $filterStatementText = sprintf('WHERE customTargetingKeyId IN (%s)', + implode(',', $keyIds)); + $offset = 0; + + do { + // Create statement to page through all custom targeting values. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = array_merge($values, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + } + + // Create map of custom targeting key id to custom targeting values. + $keyIdToValueMap = array(); + foreach ($values as $value) { + $keyIdToValueMap[$value->customTargetingKeyId][] = $value; + } + + // Display keys and values. + $keyCount = 0; + foreach ($keys as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $keyCount, $key->id, + $key->name, $key->displayName, $key->type); + if (array_key_exists($key->id, $keyIdToValueMap)) { + $valueCount = 0; + foreach ($keyIdToValueMap[$key->id] as $value) { + printf("\t%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $valueCount, $value->id, + $value->name, $value->displayName); + $valueCount++; + } + } + $keyCount++; + } + + printf("Found %d keys and %d values.\n", sizeof($keys), sizeof($values)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..8eb511a7f --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Create a statement to only select predefined custom targeting keys. + $filterStatement = new Statement('WHERE type = :type LIMIT 500', + MapUtils::GetMapEntries(array('type' => new TextValue('PREDEFINED')))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName, $key->type); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..ddcc2cadc --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..965d44cee --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // Update each local custom targeting key object by changing its display + // name. + foreach ($keys as $key) { + if (empty($key->displayName)) { + $key->displayName = $key->name; + } + $key->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // Display results. + if (isset($keys)) { + foreach ($page->results as $key) { + printf("Custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was updated.\n", $key->id, $key->name, + $key->displayName); + } + } else { + print "No custom targeting keys updated.\n"; + } + } else { + print "No custom targeting keys found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..ed450f7bc --- /dev/null +++ b/examples/Dfp/v201306/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201306'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $valueId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($valueId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = $page->results; + + // Update each local custom targeting value object by changing its display + // name. + foreach ($values as $value) { + if (empty($value->displayName)) { + $value->displayName = $value->name; + } + $value->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting values on the server. + $values = $customTargetingService->updateCustomTargetingValues($values); + + // Display results. + if (isset($values)) { + foreach ($page->results as $value) { + printf("Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was updated.\n", $value->id, $value->name, + $value->displayName); + } + } else { + print "No custom targeting values updated.\n"; + } + } else { + print "No custom targeting values found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201306/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..492703ba3 --- /dev/null +++ b/examples/Dfp/v201306/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,80 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201306'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n", $percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ForecastService/GetForecastExample.php b/examples/Dfp/v201306/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..47d437f8d --- /dev/null +++ b/examples/Dfp/v201306/ForecastService/GetForecastExample.php @@ -0,0 +1,112 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201306'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the line item's time to be now until the projected end date time. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 week')); + + // Set the line item to use 50% of the impressions. + $lineItem->unitType = 'IMPRESSIONS'; + $lineItem->unitsBought = 50; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n",$percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201306/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..6696801a4 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201306/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..84d71a9c0 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201306/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..6c2cfd7ab --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201306/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..80e331091 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + $adUnitIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201306/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..1b790d01a --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201306/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..5b737d750 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('targetPlatform' => new TextValue('WEB'))); + + // Create a statement to only select web ad units sizes. + $filterStatement = new Statement("WHERE targetPlatform = :targetPlatform", + $vars); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + printf ("Number of ad unit sizes found: %d\n", count($adUnitSizes)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201306/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..954d9822e --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create a statement to select the children of the effective root ad unit. + $filterStatement = + new Statement("WHERE parentId = :id LIMIT 500", + MapUtils::GetMapEntries(array( + 'id' => new NumberValue($effectiveRootAdUnitId)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201306/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..c9b75a1e5 --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201306/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..4bd46a65d --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201306'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + + diff --git a/examples/Dfp/v201306/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201306/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..9fc6c916b --- /dev/null +++ b/examples/Dfp/v201306/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'Ad unit with ID "' . $adUnit->id . '", name "' . $adUnit->name + . '", and AdSense enabled "' + . ($adUnit->inheritedAdSenseSettings->value->adSenseEnabled + ? 'TRUE' : 'FALSE') + . "\" was updated.\n"; + } + } + } else { + print "No ad units updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LabelService/CreateLabelsExample.php b/examples/Dfp/v201306/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..9b0d2deec --- /dev/null +++ b/examples/Dfp/v201306/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201306/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..5ae9081ad --- /dev/null +++ b/examples/Dfp/v201306/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + foreach ($page->results as $label) { + printf("A label with ID '%s' and name '%s' will be deactivated.\n", + $label->id, $label->name); + $labelIds[] = $label->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201306/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..123e24cd5 --- /dev/null +++ b/examples/Dfp/v201306/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LabelService/GetLabelExample.php b/examples/Dfp/v201306/LabelService/GetLabelExample.php new file mode 100755 index 000000000..5b3129ae3 --- /dev/null +++ b/examples/Dfp/v201306/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201306/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..c8a7a3298 --- /dev/null +++ b/examples/Dfp/v201306/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201306/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..92eb67720 --- /dev/null +++ b/examples/Dfp/v201306/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201306'); + + // Create a statement to only select labels that are active. + $filterStatement = new Statement( + "WHERE isActive = true LIMIT 500"); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + if (isset($page->results)) { + $labels = $page->results; + + // Update each local label object's description. + foreach ($labels as $label) { + $label->description = 'Last updated on ' . date('Ymd'); + } + + // Update the labels on the server. + $labels = $labelService->updateLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and description '%s' was " + . "updated.\n", $label->id, $label->name, $label->description); + } + } else { + print "No labels updated.\n"; + } + } else { + print "No labels found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LicaService/CreateLicasExample.php b/examples/Dfp/v201306/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..7036194cc --- /dev/null +++ b/examples/Dfp/v201306/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201306/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..90210e130 --- /dev/null +++ b/examples/Dfp/v201306/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + $creativeIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LicaService/GetAllLicasExample.php b/examples/Dfp/v201306/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..9e2d2010e --- /dev/null +++ b/examples/Dfp/v201306/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, creative set ID %d, and " . + "status %s was found.\n", $i, $lica->lineItemId, + $lica->creativeSetId, $lica->status); + } else { + printf("%d) LICA with line item ID %d, creative ID %d, and status " . + "%s was found.\n", $i, $lica->lineItemId, $lica->creativeId, + $lica->status); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LicaService/GetLicaExample.php b/examples/Dfp/v201306/LicaService/GetLicaExample.php new file mode 100755 index 000000000..d6291222c --- /dev/null +++ b/examples/Dfp/v201306/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201306/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..f3d8edd1d --- /dev/null +++ b/examples/Dfp/v201306/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create a statement to only select LICAs for the given lineItem ID. + $filterStatement = + new Statement("WHERE lineItemId = :lineItemId LIMIT 500", $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LicaService/UpdateLicasExample.php b/examples/Dfp/v201306/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..54dbb9f39 --- /dev/null +++ b/examples/Dfp/v201306/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201306'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and destination URL "' . $lica->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No LICAs updated.\n"; + } + } else { + print "No LICAs found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201306/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..386b5a92e --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('orderId' => new NumberValue($orderId))); + + // Create statement text to select approved line items from a given order. + $filterStatementText = + "WHERE orderId = :orderId AND status = 'NEEDS_CREATIVES'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + $lineItemIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Archived line items cannot be activated. + if (!$lineItem->isArchived) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" will be activated.\n"; + $i++; + $lineItemIds[] = $lineItem->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of line items to be activated: ' . sizeof($lineItemIds) . "\n"; + + if (sizeof($lineItemIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $lineItemIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ActivateLineItems(); + + // Perform action. + $result = + $lineItemService->performLineItemAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of line items activated: ' . $result->numChanges . "\n"; + } else { + print "No line items were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201306/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..6ce9a4c57 --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +select($selectStatementOffset); + + if (isset($resultSet->rows)) { + foreach($resultSet->rows as $row) { + $untargetableLocationIds[] = $row->values[0]->value; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + return $untargetableLocationIds; +} + +/** + * Finds all untargetable locations. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a list of untargetable location IDs + */ +function getAllUntargetableLocations($user) { + // Tables that represent all different location types. + $LOCATION_TABLES = array('Country', 'Region', 'Metro', 'City', 'Postal_Code'); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', + API_VERSION); + $untargetableLocationIds = array(); + + // Find all untargetable locations for each location type. + foreach ($LOCATION_TABLES as $table) { + $untargetableLocationIds = array_merge($untargetableLocationIds, + getAllUntargetableLocationsHelper($pqlService, $table)); + } + + return $untargetableLocationIds; +} + +/** + * Builds a map of geo targets to the line items targeting them. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a map of geo targets to the line items targeting them + */ +function buildGeoTargetToLineItemsMap($user) { + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', API_VERSION); + + // Set defaults for page and statement. + $LIMIT = 500; + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + // Map of geo targets to all line items targeting it. + $geoTargetToLineItemsMap = array(); + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT '. $LIMIT . ' OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // If a line item has geo targeting, store it in the map. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->targeting->geoTargeting->targetedLocations)) { + foreach ($lineItem->targeting->geoTargeting->targetedLocations as + $targetedLocation) { + $lineItemIds = array(); + if (isset($geoTargetToLineItemsMap[$targetedLocation->id])) { + $lineItemIds = $geoTargetToLineItemsMap[$targetedLocation->id]; + } + $lineItemIds[] = $lineItem->id; + $geoTargetToLineItemsMap[$targetedLocation->id] = $lineItemIds; + } + } + } + } + + $offset += $LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $geoTargetToLineItemsMap; +} + +/** + * Finds all the geo targets in the specified map that are deprecated. + * + * @param array $geoTargetToLineItemsMap a map of geo targets to the line items + * targeting them + * @param array $untargetableLocationIds a list of deprecated location IDs + * @return a map of deprecated geo targets to the line items targeting them + */ +function findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds) { + // A map of deprecated geo targets to the line items targeting them. + $lineItemsToUpdate = array(); + + foreach ($geoTargetToLineItemsMap as $geoTargetId => $lineItemIds) { + if (in_array($geoTargetId, $untargetableLocationIds)) { + $lineItemsToUpdate[$geoTargetId] = $lineItemIds; + } + } + + return $lineItemsToUpdate; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogAll(); + + // Find all untargetable locations. + $untargetableLocationIds = getAllUntargetableLocations($user); + printf("Found %d untargetable locations.\n", count($untargetableLocationIds)); + + // Build a map of geo targets to the line items targeting them. + $geoTargetToLineItemsMap = buildGeoTargetToLineItemsMap($user); + + // Find all the deprecated geo targets from that map. + $lineItemsToUpdate = findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds); + + $i = 0; + // Print the line items that need to be updated. + foreach ($lineItemsToUpdate as $geoTargetId => $lineItemIds) { + printf("%d) The following line items are targeting deprecated location %d" + . " and need to be updated: %s\n", $i, $geoTargetId, implode(', ', + $lineItemIds)); + $i++; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201306/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..34a6d91ff --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is + // $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with with ID "' . $lineItem->id + . '", belonging to order ID "' . $lineItem->orderId + . '", and name "' . $lineItem->name + . "\" was created.\n"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201306/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..f450b29dd --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_MOBILE_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create technology targeting. + $technologyTargeting = new TechnologyTargeting(); + + // Create device manufacturer targeting. + $deviceManufacturerTargeting = new DeviceManufacturerTargeting(); + $deviceManufacturerTargeting->isTargeted = TRUE; + + // Target the Google device manufacturer (40100). + $deviceManufacturerTechnology = new Technology(); + $deviceManufacturerTechnology->id = 40100; + $deviceManufacturerTargeting->deviceManufacturers = + array($deviceManufacturerTechnology); + $technologyTargeting->deviceManufacturerTargeting = + $deviceManufacturerTargeting; + + // Create mobile device targeting. + $mobileDeviceTargeting = new MobileDeviceTargeting(); + + // Exclude the Nexus One device (604046). + $mobileDeviceTechnology = new Technology(); + $mobileDeviceTechnology->id = 604046; + $mobileDeviceTargeting->targetedMobileDevices = + array($mobileDeviceTechnology); + $technologyTargeting->mobileDeviceTargeting = $mobileDeviceTargeting; + + // Create mobile device submodel targeting. + $mobileDeviceSubmodelTargeting = new MobileDeviceSubmodelTargeting(); + + // Target the iPhone 4 device submodel (640003). + $mobileDeviceSubmodelTechnology = new Technology(); + $mobileDeviceSubmodelTechnology->id = 640003; + $mobileDeviceSubmodelTargeting->targetedMobileDeviceSubmodels = + array($mobileDeviceSubmodelTechnology); + $technologyTargeting->mobileDeviceSubmodelTargeting = + $mobileDeviceSubmodelTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Mobile line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = TRUE; + + // Set the target platform to mobile. + $lineItem->targetPlatform = 'MOBILE'; + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + // Create the line item on the server. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + prinf("A line item with with ID '%s', belonging to order ID '%s', and name " + . "'%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201306/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..d17b2839e --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetedVideoAdUnitId = 'INSERT_TARGETED_VIDEO_AD_UNIT_ID_HERE'; + + // Set the custom targeting key ID and value ID representing the metadata + // on the content to target. This would typically be a key representing + // a 'genre' and a value representing something like 'comedy'. + $contentCustomTargetingKeyId = 'INSERT_CONTENT_CUSTOM_TARGETING_KEY_ID_HERE'; + $contentCustomTargetingValueId = + 'INSERT_CONTENT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Create custom criteria for the content metadata targeting. + $contentCustomCriteria = new CustomCriteria(); + $contentCustomCriteria->keyId = $contentCustomTargetingKeyId; + $contentCustomCriteria->valueIds = array($contentCustomTargetingValueId); + $contentCustomCriteria->operator = 'IS'; + + // Create custom criteria set. + $customCriteriaSet = new CustomCriteriaSet(); + $customCriteriaSet->children = array($contentCustomCriteria); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // Create the line item on the server. + $lineItems = $lineItemService->createLineItems($lineItem); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + printf("A line item with with ID '%s', belonging to order ID '%s', and " + . "name '%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } + } else { + printf("No line items created."); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201306/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..784d6973a --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/GetLineItemExample.php b/examples/Dfp/v201306/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..6ded49f12 --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201306/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..04fc04dcd --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId))); + + // Create a statement to only select line items that need creatives + // from a given order. + $filterStatement = new Statement("WHERE orderId = :orderId " + . " AND status = 'NEEDS_CREATIVES' LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201306/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..1c8c3d567 --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Calculate time from three days ago. + $threeDaysAgo = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('-3 day')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId), + 'threeDaysAgo' => new TextValue($threeDaysAgo))); + + // Create statement object to only select line items belonging to the order + // and have been modified in the last 3 days. + $filterStatement = new Statement("WHERE orderId = :orderId " + . "AND lastModifiedDateTime >= :threeDaysAgo " + . "LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Format lastModifiedDateTime for printing. + $lastModifiedDateTime = + DateTimeUtils::GetDateTime($lineItem->lastModifiedDateTime); + $lastModifiedDateTimeText = $lastModifiedDateTime + ->format(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT); + + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", with name "' . $lineItem->name + . '", and last modified ' . $lastModifiedDateTimeText + . " was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201306/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..e6432dbbd --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201306/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..d36df493e --- /dev/null +++ b/examples/Dfp/v201306/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create a statement to get line items with even delivery rates. + $filterStatement = + new Statement("WHERE deliveryRateType = 'EVENLY' and orderId = " + . $orderId . ' LIMIT 500'); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + if (isset($page->results)) { + $lineItems = $page->results; + + // Remove archived line items. + array_filter($lineItems, + create_function('$lineItem', 'return !$lineItem->isArchived;')); + + // Update each local line item object by changing its delivery rate. + foreach ($lineItems as $lineItem) { + $lineItem->deliveryRateType = 'AS_FAST_AS_POSSIBLE'; + } + + // Update the line items on the server. + $lineItems = $lineItemService->updateLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", name "' . $lineItem->name + . '", and delivery rate "' . $lineItem->deliveryRateType + . "\" was updated.\n"; + } + } else { + print "No line items updated.\n"; + } + } else { + print "No line items found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201306/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..c0da0f509 --- /dev/null +++ b/examples/Dfp/v201306/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get all networks that you have access to with the current login + // credentials. + $networks = $networkService->getAllNetworks(); + + // Display results. + if (isset($networks)) { + $i = 0; + foreach ($networks as $network) { + print $i . ') Network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $i . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201306/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..551bf74f9 --- /dev/null +++ b/examples/Dfp/v201306/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201306/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..111f166a2 --- /dev/null +++ b/examples/Dfp/v201306/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201306'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201306/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..6e5ecb6a1 --- /dev/null +++ b/examples/Dfp/v201306/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // Create a datetime representing today. + $today = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, strtotime('now')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('today' => new TextValue($today))); + + // Create statement text to get all draft and pending approval orders that + // haven't ended and aren't archived. + $filterStatementText = "WHERE status IN ('DRAFT', 'PENDING_APPROVAL') " + . "AND endDateTime >= :today " + . "AND isArchived = FALSE "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " + . $offset, $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + $orderIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + // Archived orders cannot be approved. + if (!$order->isArchived) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and status "' . $order->status + . "\" will be approved.\n"; + $i++; + $orderIds[] = $order->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of orders to be approved: ' . sizeof($orderIds) . "\n"; + + if (sizeof($orderIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $orderIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveAndOverbookOrders(); + + // Perform action. + $result = $orderService->performOrderAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of orders approved: ' . $result->numChanges . "\n"; + } else { + print "No orders were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/OrderService/CreateOrdersExample.php b/examples/Dfp/v201306/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..b1a4cadd1 --- /dev/null +++ b/examples/Dfp/v201306/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201306'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201306/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..2f52f1f35 --- /dev/null +++ b/examples/Dfp/v201306/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/OrderService/GetOrderExample.php b/examples/Dfp/v201306/OrderService/GetOrderExample.php new file mode 100755 index 000000000..1bc38c804 --- /dev/null +++ b/examples/Dfp/v201306/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201306/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..a50a310da --- /dev/null +++ b/examples/Dfp/v201306/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // Set the ID of the advertiser (company) to get orders for. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('advertiserId' => new NumberValue($advertiserId))); + + // Create a statement to only select orders for a given advertiser. + $filterStatement = + new Statement("WHERE advertiserId = :advertiserId LIMIT 500", $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201306/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..a3734030d --- /dev/null +++ b/examples/Dfp/v201306/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201306'); + + // Create a statement to get all orders. + $filterStatement = new Statement('LIMIT 500'); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + if (isset($page->results)) { + $orders = $page->results; + + // Remove archived orders. + array_filter($orders, + create_function('$order', 'return !$order->isArchived;')); + + // Update each local order object by changing its notes. + foreach ($orders as $order) { + $order->notes = 'Spoke to advertiser. All is well.'; + } + + // Update the orders on the server. + $orders = $orderService->updateOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'Order with ID "' . $order->id + . '", name "' . $order->name + . '", advertiser ID "' . $order->advertiserId + . '", and notes "' . $order->notes + . "\" was updated.\n"; + } + } else { + print "No orders updated.\n"; + } + } else { + print "No orders found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201306/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..5ebe12947 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201306/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..76aedb99a --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201306/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..24bb47af4 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/PlacementService/GetPlacementExample.php b/examples/Dfp/v201306/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..9f3e38309 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201306/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..6c8355201 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201306/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..c26329d41 --- /dev/null +++ b/examples/Dfp/v201306/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201306'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201306'); + + // Create a statement to select first 500 placements. + $filterStatement = new Statement("LIMIT 500"); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + if (isset($page->results)) { + $placements = $page->results; + + // Update each local placement object by adding the root ad unit. + foreach ($placements as $placement) { + $placement->targetingDescription = !empty($placement->description) ? + $placement->description : 'Generic description'; + $placement->targetingAdLocation = 'All images on sports pages.'; + $placement->targetingSiteName = 'http://code.google.com'; + $placement->isAdSenseTargetingEnabled = TRUE; + } + + // Update the placements on the server. + $placements = $placementService->updatePlacements($placements); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and AdSense targeting "' + . ($placement->isAdSenseTargetingEnabled ? 'enabled' : 'disabled') + . "\" was updated.\n"; + } + } else { + print "No placements updated.\n"; + } + } else { + print "No placements found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/PublisherQueryLanguageService/GetAllCitiesExample.php b/examples/Dfp/v201306/PublisherQueryLanguageService/GetAllCitiesExample.php new file mode 100755 index 000000000..71a6e6606 --- /dev/null +++ b/examples/Dfp/v201306/PublisherQueryLanguageService/GetAllCitiesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201306'); + + // Define the number of cities we want to get at a time. + $LIMIT = 500; + + // Create statement to select all targetable cities. + // For criteria that do not have a 'targetable' property, that predicate + // may be left off, i.e. just "SELECT * FROM Browser_Groups LIMIT 500". + $selectStatement = 'SELECT * FROM City WHERE targetable = true LIMIT ' . + $LIMIT; + $offset = 0; + $resultSetSize = 0; + $allRows = array(); + $i = 0; + + $mapColumnTypesToLabelsFn = create_function('$columnType', + 'return $columnType->labelName;'); + $mapRowValueToValueFn = create_function('$value', 'return $value->value;'); + + do { + $selectStatementOffset = + new Statement($selectStatement . ' OFFSET ' . $offset); + + // Get all cities. + $resultSet = $pqlService->select($selectStatementOffset); + + if (isset($resultSet->rows)) { + // Display results. + $columnLabels = array_map($mapColumnTypesToLabelsFn, + $resultSet->columnTypes); + printf("Columns are: %s\n", implode(', ', $columnLabels)); + + foreach($resultSet->rows as $row) { + $values = array_map($mapRowValueToValueFn, $row->values); + + // Collect all cities from each page. + $allRows[] = $values; + + printf("%d) %s\n", $i, implode(', ', $values)); + $i++; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + printf("Number of results found: %d\n", count($allRows)); + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201306/ReportService/DisplayReportExample.php b/examples/Dfp/v201306/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..3e12db1a6 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report (e.g., CSV_DUMP) and download without + // compression so we can print it. + $reportDownloadOptions = new ReportDownloadOptions(); + $reportDownloadOptions->exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + $reportDownloadOptions->useGzipCompression = false; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ReportService/DownloadReportExample.php b/examples/Dfp/v201306/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..451354fdc --- /dev/null +++ b/examples/Dfp/v201306/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report. Ex: CSV_DUMP + $exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + + // Set the file name to download the gzipped report to. Ex: report.csv.gz. + $fileName = 'INSERT_FILE_NAME_HERE' . '.gz'; + + $filePath = dirname(__FILE__) . '/' . $fileName; + + $downloadUrl = + $reportService->getReportDownloadURL($reportJobId, $exportFormat); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + + ReportUtils::DownloadReport($downloadUrl, $filePath); + + printf("Report downloaded to file '%s'.\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201306/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..4b558dea5 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Set the order id to report on. + $order_id = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($order_id))); + + // Create statement text to filter based on an order id. + $filterStatementText = 'WHERE order_id = :orderId'; + + // Create statement object from text. + $filterStatement = new Statement($filterStatementText, $vars); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'AD_SERVER_CTR', 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportQuery->statement = $filterStatement; + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201306/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..6c83c506f --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', 'AD_UNIT_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS', + 'TOTAL_INVENTORY_LEVEL_IMPRESSIONS', + 'TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201306/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..e774ed4ac --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('MERGED_AD_SERVER_IMPRESSIONS', + 'MERGED_AD_SERVER_CLICKS', 'MERGED_AD_SERVER_CTR', + 'MERGED_AD_SERVER_CPM_AND_CPC_REVENUE', + 'MERGED_AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ReportService/RunReachReportExample.php b/examples/Dfp/v201306/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..cfe2bd544 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'REACH_LIFETIME'; + $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); + $reportQuery->columns = array('REACH_FREQUENCY', + 'REACH_AVERAGE_REVENUE', + 'REACH'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201306/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201306/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..e3915cd28 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201306'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Set defaults for page and statement. + $page = new LineItemPage(); + $vars = MapUtils::GetMapEntries(array('orderId' => + new NumberValue($orderId))); + $filterStatement = new Statement(NULL, $vars); + $offset = 0; + + // Collect all line item custom field IDs for an order. + $customFieldIds = array(); + do { + // Create a statement to only select line items from a given order. + $filterStatement->query = sprintf('WHERE orderId = :orderId LIMIT 500 ' . + 'OFFSET %d', $offset); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Get custom field IDs from the line items of an order. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $customFieldValue) { + $customFieldId = $customFieldValue->customFieldId; + if (!in_array($customFieldId, $customFieldIds)) { + $customFieldIds[] = $customFieldId; + } + } + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); + $reportQuery->customFieldIds = $customFieldIds; + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); + $reportJob->reportQuery = $reportQuery; + + // Report on a single order. + $filterStatement->query = 'WHERE ORDER_ID = :orderId'; + $reportQuery->statement = $filterStatement; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/ReportService/RunSalesReportExample.php b/examples/Dfp/v201306/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..f6149c118 --- /dev/null +++ b/examples/Dfp/v201306/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201306'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('SALESPERSON_ID', 'SALESPERSON_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', + 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201306/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..3b6e1bf85 --- /dev/null +++ b/examples/Dfp/v201306/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201306'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201306/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..0cf518954 --- /dev/null +++ b/examples/Dfp/v201306/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201306'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..8e94d42f8 --- /dev/null +++ b/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201306'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..9868523fc --- /dev/null +++ b/examples/Dfp/v201306/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201306'); + + // Create a statement to only select suggested ad units with more than 50 + // requests. + $filterStatement = + new Statement("WHERE numRequests > :numRequests LIMIT 500", + MapUtils::GetMapEntries(array('numRequests' => new NumberValue(50)))); + + // Get ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/TeamService/CreateTeamsExample.php b/examples/Dfp/v201306/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..7a40475ad --- /dev/null +++ b/examples/Dfp/v201306/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201306/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..f2d1b7626 --- /dev/null +++ b/examples/Dfp/v201306/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/TeamService/GetTeamExample.php b/examples/Dfp/v201306/TeamService/GetTeamExample.php new file mode 100755 index 000000000..e758ee13c --- /dev/null +++ b/examples/Dfp/v201306/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201306/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..7a69c4986 --- /dev/null +++ b/examples/Dfp/v201306/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201306/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..9fa19b2b6 --- /dev/null +++ b/examples/Dfp/v201306/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201306'); + + // Set the ID of the ad unit to add to the teams. + $adUnitID = "INSERT_AD_UNIT_ID_HERE"; + + // Create a statement to select first 5 teams that aren't + // built-in. + $filterStatement = new Statement("WHERE id > 0 LIMIT 5"); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + if (isset($page->results)) { + $teams = $page->results; + + $i = 0; + // Update each local team object by appending the ad unit to it. + foreach ($teams as $team) { + if (!$team->hasAllInventory) { + if (!isset($team->adUnitIds)) { + // Empty team inventory. + $team->adUnitIds = array(); + } + $team->adUnitIds[] = $adUnitID; + $i++; + } + } + + // Reorganize the $teams array. + $teams = array_values($teams); + + // Update the teams on the server. + $teams = $teamService->updateTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "' . $team->name . "\" was updated.\n"; + } + } else { + print "No teams updated.\n"; + } + } else { + print "No teams found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/CreateUsersExample.php b/examples/Dfp/v201306/UserService/CreateUsersExample.php new file mode 100755 index 000000000..2d2f46c3a --- /dev/null +++ b/examples/Dfp/v201306/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/DeactivateUserExample.php b/examples/Dfp/v201306/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..04e650c1d --- /dev/null +++ b/examples/Dfp/v201306/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and status "' . ($usr->isActive ? 'ACTIVE' : 'INACTIVE') + . "\" will be deactivated.\n"; + $i++; + $userIds[] = $usr->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/GetAllRolesExample.php b/examples/Dfp/v201306/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..e92a130e9 --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Get all roles. + $roles = $userService->getAllRoles(); + + if (isset($roles)) { + foreach ($roles as $role) { + print 'Role with ID "' . $role->id . '" and name "' . $role->name + . "\" was found.\n"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/GetAllUsersExample.php b/examples/Dfp/v201306/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..5b4b4415a --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print "Number of results found: " . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/GetCurrentUserExample.php b/examples/Dfp/v201306/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..a20b9deac --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/GetUserExample.php b/examples/Dfp/v201306/UserService/GetUserExample.php new file mode 100755 index 000000000..0f4db8179 --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201306/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..8ae9be852 --- /dev/null +++ b/examples/Dfp/v201306/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Create a statement to get all users sorted by name. + $filterStatement = new Statement('ORDER BY name LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserService/UpdateUsersExample.php b/examples/Dfp/v201306/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..eca26aa38 --- /dev/null +++ b/examples/Dfp/v201306/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201306'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $usr) { + print 'A user with ID "' . $usr->id + . '", name "' . $usr->name + . '", and role "' . $usr->roleName . "\" was updated.\n"; + } + } else { + print "No users updated.\n"; + } + } else { + print "No users found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201306/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..87f2f6c41 --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201306/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..3acef6ca8 --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText + . " LIMIT 500 OFFSET " . $offset, $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201306/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..c18dfa16e --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User Team association between user with ID "' + . $uta->userId . '" and team with ID "' + . $uta->teamId . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..c34135a8f --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..c29e37d0e --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201306'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201306"); + + // Get the current user. + $currentUserId = $userService->getCurrentUser()->id; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($currentUserId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = + new Statement("WHERE userId = :userId LIMIT 500", $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201306/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201306/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..eb2bec3d9 --- /dev/null +++ b/examples/Dfp/v201306/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201306'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = new Statement("WHERE userId = :userId LIMIT 500", $vars); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . '" was updated to access type "' + . $uta->overriddenTeamAccessType . '".\n'; + } + } else { + print "No user team associations updated.\n"; + } + } else { + print "No user team associations found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201308/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..63e9e8b0b --- /dev/null +++ b/examples/Dfp/v201308/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201308'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201308/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..5e437baa2 --- /dev/null +++ b/examples/Dfp/v201308/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201308'); + + // Statement parts to help build a statement that only selects active activity + // groups. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + $i++, $activityGroup->id, $activityGroup->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201308/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..086b766df --- /dev/null +++ b/examples/Dfp/v201308/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201308'); + + // Statement parts to help build a statement that selects all activity groups. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + $i++, $activityGroup->id, $activityGroup->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201308/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..bae994efc --- /dev/null +++ b/examples/Dfp/v201308/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201308'); + + // Set the ID of the activity group and the company to update it with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Get the activity group. + $activityGroup = $activityGroupService->getActivityGroup($activityGroupId); + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity groups on the server. + $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->name); + } + } else { + printf("No activity groups were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ActivityService/CreateActivities.php b/examples/Dfp/v201308/ActivityService/CreateActivities.php new file mode 100755 index 000000000..46713df4b --- /dev/null +++ b/examples/Dfp/v201308/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201308'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ActivityService/GetActiveActivities.php b/examples/Dfp/v201308/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..bb3aa7b5a --- /dev/null +++ b/examples/Dfp/v201308/ActivityService/GetActiveActivities.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201308'); + + // Set the ID of the activity group these activities are associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Statement parts to help build a statement that only selects active + // activities. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId and status = ' . + ':status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId), 'status' => new TextValue($STATUS))); + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", and type \"%s\" " . + "was found.\n", $i++, $activity->id, $activity->name, + $activity->type); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ActivityService/GetAllActivities.php b/examples/Dfp/v201308/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..0f7865406 --- /dev/null +++ b/examples/Dfp/v201308/ActivityService/GetAllActivities.php @@ -0,0 +1,136 @@ +GetService('ActivityGroupService', + 'v201308'); + + // Statement parts to help build a statement that selects all activity groups. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $activityGroup) { + $activityGroupIds[] = $activityGroup->id; + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $activityGroupIds; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201308'); + + // Statement parts to help build a statement to get all activities for an + // activity group. + $pqlTemplate = 'WHERE activityGroupId = :activityGroupId ORDER BY id LIMIT ' . + '%d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + + $totalResultsCounter = 0; + + $activityGroupIds = getAllActivityGroupIds($user); + + foreach ($activityGroupIds as $activityGroupId) { + // Set the activity group ID to select from. + $vars = MapUtils::GetMapEntries(array('activityGroupId' => + new NumberValue($activityGroupId))); + + $page = new ActivityPage(); + $offset = 0; + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", type \"%s\", and " . + "activity group ID \"%d\" was found.\n", $totalResultsCounter++, + $activity->id, $activity->name, $activity->type, + $activityGroupId); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + } + printf("Number of results found: %d\n", $totalResultsCounter); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ActivityService/UpdateActivities.php b/examples/Dfp/v201308/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..3e9b28da7 --- /dev/null +++ b/examples/Dfp/v201308/ActivityService/UpdateActivities.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201308'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // Get the activity. + $activity = $activityService->getActivity($activityId); + + // Update the expected URL. + $activity->expectedURL = 'https://google.com'; + + // Update the activity on the server. + $activities = $activityService->updateActivities(array($activity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $updatedActivity) { + printf("Activity with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivity->id, $updatedActivity->name); + } + } else { + printf("No activities were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/AudienceSegmentService/CreateAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/CreateAudienceSegments.php new file mode 100755 index 000000000..6093d5cc0 --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/CreateAudienceSegments.php @@ -0,0 +1,118 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Set the IDs of the custom criteria to be used in the segment rule. + $customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + $customTargetingValueId = 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create inventory targeting to be used in the segment rule. + $inventoryTargeting = new InventoryTargeting(); + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create custom criteria to be used in the segment rule. + $customCriteria = new CustomCriteria(); + $customCriteria->keyId = $customTargetingKeyId; + $customCriteria->valueIds = array($customTargetingValueId); + $customCriteria->operator = 'IS'; + + // Create the custom criteria set that will resemble: + // $customCriteria.key == $customCriteria.value + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'AND'; + $topCustomCriteriaSet->children = array($customCriteria); + + // Create the audience segment rule. + $rule = new FirstPartyAudienceSegmentRule(); + $rule->inventoryRule = $inventoryTargeting; + $rule->customCriteriaRule = $topCustomCriteriaSet; + + // Create an audience segment. + $audienceSegment = new RuleBasedFirstPartyAudienceSegment(); + $audienceSegment->name = sprintf('Sports enthusiasts audience segment #%s', + uniqid()); + $audienceSegment->description = 'Sports enthusiasts between the ages of 20 ' + . 'and 30.'; + $audienceSegment->pageViews = 6; + $audienceSegment->recencyDays = 6; + $audienceSegment->membershipExpirationDays = 88; + $audienceSegment->rule = $rule; + + // Create the audience segment on the server. + $audienceSegments = $audienceSegmentService->createAudienceSegments( + array($audienceSegment)); + + // Display results. + foreach ($audienceSegments as $createdAudienceSegment) { + printf("An audience segment with ID \"%d\", name \"%s\", and type \"%s\" " + . "was created.\n", $createdAudienceSegment->id, + $createdAudienceSegment->name, $createdAudienceSegment->type); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/GetAllAudienceSegments.php new file mode 100755 index 000000000..03b1d9600 --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/GetAllAudienceSegments.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201308'); + + // Statement parts to help build a statement to select all audience segments. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + printf("%d) Audience segment with ID \"%d\" and name \"%s\" was " + . "found.\n", $i++, $audienceSegment->id, $audienceSegment->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/GetFirstPartyAudienceSegments.php new file mode 100755 index 000000000..5e221f6cc --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('FIRST_PARTY'))); + + // Statement parts to help build a statement to select all first party + // audience segments. + $pqlTemplate = "WHERE type = :type ORDER BY id LIMIT %d OFFSET %d"; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + printf("%d) First party audience segment with ID \"%d\" and name " + . "\"%s\" was found.\n", $i++, $audienceSegment->id, + $audienceSegment->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php new file mode 100755 index 000000000..51c1e2fa3 --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -0,0 +1,125 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201308'); + + $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('FIRST_PARTY'), + 'audienceSegmentId' => new NumberValue($audienceSegmentId))); + + // Statement parts to help build a statement to select specified first party + // audience segment. + $pqlTemplate = "WHERE id IN (:audienceSegmentId) AND type = :type ORDER BY " + . "id LIMIT %d OFFSET %d"; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + $audienceSegmentIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + printf("%d) Audience segment with ID \"%d\" and name \"%s\" will be " + . "populated.\n", $i++, $audienceSegment->id, + $audienceSegment->name); + $audienceSegmentIds[] = $audienceSegment->id; + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of audience segments to be populated: %d\n", + sizeof($audienceSegmentIds)); + + if (sizeof($audienceSegmentIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', + implode(',', $audienceSegmentIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new PopulateAudienceSegments(); + + // Perform action. + $result = $audienceSegmentService->performAudienceSegmentAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of audience segments populated: %d\n", + $result->numChanges); + } else { + printf("No audience segments were populated.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201308/AudienceSegmentService/UpdateAudienceSegments.php new file mode 100755 index 000000000..6efadaaa8 --- /dev/null +++ b/examples/Dfp/v201308/AudienceSegmentService/UpdateAudienceSegments.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201308'); + + // Set the ID of the first party audience segment to update. + $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('audienceSegmentId' => new NumberValue($audienceSegmentId))); + + // Create statement text to select the audience segment to update. + $filterStatementText = "WHERE id = :audienceSegmentId LIMIT 1"; + + // Get the audience segment. + $audienceSegment = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement($filterStatementText, $vars))->results[0]; + + // Update the member expiration days. + $audienceSegment->membershipExpirationDays = 180; + + // Update the audience segment on the server. + $audienceSegments = + $audienceSegmentService->updateAudienceSegments(array($audienceSegment)); + + // Display results. + if (isset($audienceSegments)) { + foreach ($audienceSegments as $updatedAudienceSegment) { + printf("Audience segment with ID \"%d\" and name \"%s\" was updated.\n", + $updatedAudienceSegment->id, $updatedAudienceSegment->name); + } + } else { + printf("No audience segments were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201308/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..16091d0a3 --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201308/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..3682a14b5 --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} diff --git a/examples/Dfp/v201308/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201308/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..35447406b --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // Create a statement to only select companies that are advertisers sorted + // by name. + $filterStatement = + new Statement("WHERE type = :type ORDER BY name LIMIT 500", $vars); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CompanyService/GetCompanyExample.php b/examples/Dfp/v201308/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..23a42b57a --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201308/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..e3e577c3d --- /dev/null +++ b/examples/Dfp/v201308/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201308'); + + // Create a statement to only select companies that are advertisers. + $filterStatement = new Statement("WHERE type = 'ADVERTISER' LIMIT 500"); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + if (isset($page->results)) { + $companies = $page->results; + + // Update each local company object by appending LLC. to its name. + foreach ($companies as $company) { + $company->name .= ' LLC.'; + } + + // Update the companies on the server. + $companies = $companyService->updateCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '" and name "' . $company->name . "\" was updated.\n"; + } + } else { + print "No companies updated.\n"; + } + } else { + print "No companies found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ContactService/CreateContacts.php b/examples/Dfp/v201308/ContactService/CreateContacts.php new file mode 100755 index 000000000..7fc2157bc --- /dev/null +++ b/examples/Dfp/v201308/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201308'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ContactService/GetAllContacts.php b/examples/Dfp/v201308/ContactService/GetAllContacts.php new file mode 100755 index 000000000..a396b98f9 --- /dev/null +++ b/examples/Dfp/v201308/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201308'); + + // Statement parts to help build a statement to select all contacts. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + $contact->id, $contact->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201308/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..c8c95b84f --- /dev/null +++ b/examples/Dfp/v201308/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201308'); + + // Statement parts to help build a statement to only select contacts that + // aren't invited yet. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'UNINVITED'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + $contact->id, $contact->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ContactService/UpdateContacts.php b/examples/Dfp/v201308/ContactService/UpdateContacts.php new file mode 100755 index 000000000..56f98e92d --- /dev/null +++ b/examples/Dfp/v201308/ContactService/UpdateContacts.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201308'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // Get the contact. + $contact = $contactService->getContact($contactId); + + // Update the address on the contact. + $contact->address = '123 New Street, New York, NY, 10011'; + + // Update the contact on the server. + $contacts = $contactService->updateContacts(array($contact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $updatedContact) { + printf("Contact with ID \"%d\", name \"%s\", and address \"%s\" was " . + "updated.\n", $updatedContact->id, $updatedContact->name, + $updatedContact->address); + } + } else { + printf("No contacts were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ContentService/GetAllContentExample.php b/examples/Dfp/v201308/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..f2c7038fe --- /dev/null +++ b/examples/Dfp/v201308/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201308'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201308/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..0e786d07c --- /dev/null +++ b/examples/Dfp/v201308/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Get content browse custom targeting key ID. + $network = $networkService->getCurrentNetwork(); + $contentBrowseCustomTargetingKeyId = + $network->contentBrowseCustomTargetingKeyId; + + // Create a statement to select the categories matching the name comedy. + $categoryFilterStatement = new Statement( + "WHERE customTargetingKeyId = :contentBrowseCustomTargetingKeyId " + . "and name = :category LIMIT 1"); + $categoryFilterStatement->values = MapUtils::GetMapEntries(array( + 'contentBrowseCustomTargetingKeyId' => + new NumberValue($contentBrowseCustomTargetingKeyId), + 'category' => new TextValue('comedy'))); + + // Get categories matching the filter statement. + $customTargetingValuePage = + $customTargetingService->getCustomTargetingValuesByStatement( + $categoryFilterStatement); + + // Get the custom targeting value ID for the comedy category. + $categoryCustomTargetingValueId = $customTargetingValuePage->results[0]->id; + + // Create a statement to get all active content. + $filterStatement = new Statement("WHERE status = 'ACTIVE' LIMIT 500"); + + // Get content by statement. + $page = $contentService->getContentByStatementAndCustomTargetingValue( + $filterStatement, $categoryCustomTargetingValueId); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201308/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..2d33b1d76 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201308'); + + // Set the line item ID and creative set ID to associate. + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + $creativeSetId = "INSERT_CREATIVE_SET_ID_HERE"; + + $lica = new LineItemCreativeAssociation(); + $lica->lineItemId = $lineItemId; + $lica->creativeSetId = $creativeSetId; + + // Create the LICA on the server. + $licas = $licaService->createLineItemCreativeAssociations(array($lica)); + $lica = $licas[0]; + + printf("A LICA with line item ID %d and creative set ID %d was created.", + $lica->lineItemId, $lica->creativeSetId); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201308/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..a533bbd42 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($templateCreative)) { + printf("A template creative with ID '%s', name '%s', and type '%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->CreativeType, + $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201308/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..8469fe5e3 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + foreach ($imageCreatives as $creative) { + // Use instanceof to determine what type of creative was returned. + if ($creative instanceof ImageCreative) { + print 'An image creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and size {' . $creative->size->width + . ', ' . $creative->size->height . "} was created and\n" + . ' can be previewed at: ' . $creative->previewUrl . "\n"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201308/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..bee0ca630 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201308/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..864bf3bb5 --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeService/GetCreativeExample.php b/examples/Dfp/v201308/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..3c5ba106e --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201308/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..fcc7458bf --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('creativeType' => new TextValue('ImageCreative'))); + + // Create a statement to only select image creatives. + $filterStatement = + new Statement("WHERE creativeType = :creativeType LIMIT 500", $vars); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201308/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..5112d9cda --- /dev/null +++ b/examples/Dfp/v201308/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201308'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // Display results. + if (isset($creatives)) { + foreach ($creatives as $creative) { + print 'An image creative with ID "' . $creative->id + . '" and destination URL "' . $creative->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No creatives updated.\n"; + } + } else { + print "No creatives found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201308/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..767692d09 --- /dev/null +++ b/examples/Dfp/v201308/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201308'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201308/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..bbcb51286 --- /dev/null +++ b/examples/Dfp/v201308/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201308'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201308/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..4201ed385 --- /dev/null +++ b/examples/Dfp/v201308/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201308'); + + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('masterCreativeId' => new NumberValue($masterCreativeID))); + + // Create a statement object to only select creative sets that have the given + // master creative. + $filterStatement = + new Statement("WHERE masterCreativeId = :masterCreativeId LIMIT 500", + $vars); + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201308/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..5a22cd924 --- /dev/null +++ b/examples/Dfp/v201308/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201308'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($creativeSet)) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was updated.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201308/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..21070c3aa --- /dev/null +++ b/examples/Dfp/v201308/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201308'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..88b2b487d --- /dev/null +++ b/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201308'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..e674ca19a --- /dev/null +++ b/examples/Dfp/v201308/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201308'); + + // Create a statement to only select system defined creative templates. + $filterStatement = + new Statement("WHERE type = :type LIMIT 500"); + $filterStatement->values = MapUtils::GetMapEntries( + array('type' => new TextValue('SYSTEM_DEFINED'))); + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201308/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..0778e67b4 --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201308/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201308/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..ed81a549f --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Create a query to select the active creative wrappers for the given label. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'), + 'labelId' => new NumberValue($labelId))); + $filterStatement = + new Statement('WHERE status = :status AND labelId = :labelId', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' will be deactivated.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of creative wrappers to be deactivated: %s\n", + $page->totalResultSetSize); + + // Perform action. + $result = $creativeWrapperService->performCreativeWrapperAction( + new DeactivateCreativeWrappers(), $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of creative wrappers deactivated: %s\n", + $result->numChanges); + } else { + printf("No creative wrappers were deactivated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201308/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201308/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..c333812b4 --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201308/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201308/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..8af97c1db --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement(new Statement()); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201308/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201308/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..bc815731b --- /dev/null +++ b/examples/Dfp/v201308/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201308'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201308/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201308/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..63d49c469 --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201308'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201308/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..2c2c3112c --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201308'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201308/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..b15989577 --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' + . $customField->id . '" and name "' . $customField->name + . "\" will be deactivated.\n"; + $i++; + $customFieldIds[] = $customField->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201308/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..87493c16f --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201308'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201308/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..40b166612 --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201308'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201308/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..e69f19f30 --- /dev/null +++ b/examples/Dfp/v201308/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201308'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields found to update.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201308/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..00346ad93 --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..73bcb8a56 --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Set the name of the custom targeting key to delete. + $keyName = 'INSERT_CUSTOM_TARGETING_KEY_NAME_HERE'; + + // Create statement text to only select custom targeting key by the given + // name. + $filterStatementText = 'WHERE name = :name'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting keys deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting keys were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..e09dd25be --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Set ID of the custom targeting key to delete values from. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create statement text to only select custom values by the given custom + // targeting key ID. + $filterStatementText = 'WHERE customTargetingKeyId = :keyId'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting values deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting values were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201308/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..510a7d74f --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + $keys = array(); + $offset = 0; + + do { + // Create statement to page through all custom targeting keys. + $filterStatement = new Statement('LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = array_merge($keys, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + + $values = array(); + + if (sizeof($keys) > 0) { + $keyIds = array_map(create_function('$key', 'return $key->id;'), $keys); + + // Create statement text to all custom targeting values for all custom + // targeting keys. + $filterStatementText = sprintf('WHERE customTargetingKeyId IN (%s)', + implode(',', $keyIds)); + $offset = 0; + + do { + // Create statement to page through all custom targeting values. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = array_merge($values, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + } + + // Create map of custom targeting key id to custom targeting values. + $keyIdToValueMap = array(); + foreach ($values as $value) { + $keyIdToValueMap[$value->customTargetingKeyId][] = $value; + } + + // Display keys and values. + $keyCount = 0; + foreach ($keys as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $keyCount, $key->id, + $key->name, $key->displayName, $key->type); + if (array_key_exists($key->id, $keyIdToValueMap)) { + $valueCount = 0; + foreach ($keyIdToValueMap[$key->id] as $value) { + printf("\t%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $valueCount, $value->id, + $value->name, $value->displayName); + $valueCount++; + } + } + $keyCount++; + } + + printf("Found %d keys and %d values.\n", sizeof($keys), sizeof($values)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..8015c484a --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Create a statement to only select predefined custom targeting keys. + $filterStatement = new Statement('WHERE type = :type LIMIT 500', + MapUtils::GetMapEntries(array('type' => new TextValue('PREDEFINED')))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName, $key->type); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..0f58355de --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..5643dddfd --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // Update each local custom targeting key object by changing its display + // name. + foreach ($keys as $key) { + if (empty($key->displayName)) { + $key->displayName = $key->name; + } + $key->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // Display results. + if (isset($keys)) { + foreach ($page->results as $key) { + printf("Custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was updated.\n", $key->id, $key->name, + $key->displayName); + } + } else { + print "No custom targeting keys updated.\n"; + } + } else { + print "No custom targeting keys found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..c61a47c1d --- /dev/null +++ b/examples/Dfp/v201308/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201308'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $valueId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($valueId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = $page->results; + + // Update each local custom targeting value object by changing its display + // name. + foreach ($values as $value) { + if (empty($value->displayName)) { + $value->displayName = $value->name; + } + $value->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting values on the server. + $values = $customTargetingService->updateCustomTargetingValues($values); + + // Display results. + if (isset($values)) { + foreach ($page->results as $value) { + printf("Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was updated.\n", $value->id, $value->name, + $value->displayName); + } + } else { + print "No custom targeting values updated.\n"; + } + } else { + print "No custom targeting values found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201308/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..414a9d2ae --- /dev/null +++ b/examples/Dfp/v201308/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201308'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n", $percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ForecastService/GetForecastExample.php b/examples/Dfp/v201308/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..ac99eaa15 --- /dev/null +++ b/examples/Dfp/v201308/ForecastService/GetForecastExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201308'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the line item's time to be now until the projected end date time. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 week')); + + // Set the line item to use 50% of the impressions. + $lineItem->unitType = 'IMPRESSIONS'; + $lineItem->unitsBought = 50; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n",$percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201308/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..f088dd92e --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201308/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..0cc347212 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201308/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..50ac7445f --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201308/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..c064df752 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + $adUnitIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201308/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..68940afa7 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201308/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..4bb98064b --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('targetPlatform' => new TextValue('WEB'))); + + // Create a statement to only select web ad units sizes. + $filterStatement = new Statement("WHERE targetPlatform = :targetPlatform", + $vars); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + printf ("Number of ad unit sizes found: %d\n", count($adUnitSizes)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201308/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..7524e2b97 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create a statement to select the children of the effective root ad unit. + $filterStatement = + new Statement("WHERE parentId = :id LIMIT 500", + MapUtils::GetMapEntries(array( + 'id' => new NumberValue($effectiveRootAdUnitId)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201308/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..fc4285af9 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201308/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..e1f76b506 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201308'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + + diff --git a/examples/Dfp/v201308/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201308/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..1f59bb912 --- /dev/null +++ b/examples/Dfp/v201308/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'Ad unit with ID "' . $adUnit->id . '", name "' . $adUnit->name + . '", and AdSense enabled "' + . ($adUnit->inheritedAdSenseSettings->value->adSenseEnabled + ? 'TRUE' : 'FALSE') + . "\" was updated.\n"; + } + } + } else { + print "No ad units updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LabelService/CreateLabelsExample.php b/examples/Dfp/v201308/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..9642bebc4 --- /dev/null +++ b/examples/Dfp/v201308/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201308/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..f8dc3c838 --- /dev/null +++ b/examples/Dfp/v201308/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + foreach ($page->results as $label) { + printf("A label with ID '%s' and name '%s' will be deactivated.\n", + $label->id, $label->name); + $labelIds[] = $label->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201308/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..43c1855e6 --- /dev/null +++ b/examples/Dfp/v201308/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LabelService/GetLabelExample.php b/examples/Dfp/v201308/LabelService/GetLabelExample.php new file mode 100755 index 000000000..cbc3b8c2c --- /dev/null +++ b/examples/Dfp/v201308/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201308/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..cd8c41075 --- /dev/null +++ b/examples/Dfp/v201308/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201308/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..69a8269fe --- /dev/null +++ b/examples/Dfp/v201308/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201308'); + + // Create a statement to only select labels that are active. + $filterStatement = new Statement( + "WHERE isActive = true LIMIT 500"); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + if (isset($page->results)) { + $labels = $page->results; + + // Update each local label object's description. + foreach ($labels as $label) { + $label->description = 'Last updated on ' . date('Ymd'); + } + + // Update the labels on the server. + $labels = $labelService->updateLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and description '%s' was " + . "updated.\n", $label->id, $label->name, $label->description); + } + } else { + print "No labels updated.\n"; + } + } else { + print "No labels found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LicaService/CreateLicasExample.php b/examples/Dfp/v201308/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..933eab1bc --- /dev/null +++ b/examples/Dfp/v201308/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201308/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..ffe93130a --- /dev/null +++ b/examples/Dfp/v201308/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + $creativeIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LicaService/GetAllLicasExample.php b/examples/Dfp/v201308/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..750f1b284 --- /dev/null +++ b/examples/Dfp/v201308/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, creative set ID %d, and " . + "status %s was found.\n", $i, $lica->lineItemId, + $lica->creativeSetId, $lica->status); + } else { + printf("%d) LICA with line item ID %d, creative ID %d, and status " . + "%s was found.\n", $i, $lica->lineItemId, $lica->creativeId, + $lica->status); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LicaService/GetLicaExample.php b/examples/Dfp/v201308/LicaService/GetLicaExample.php new file mode 100755 index 000000000..1cd991710 --- /dev/null +++ b/examples/Dfp/v201308/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201308/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..1460d9be1 --- /dev/null +++ b/examples/Dfp/v201308/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create a statement to only select LICAs for the given lineItem ID. + $filterStatement = + new Statement("WHERE lineItemId = :lineItemId LIMIT 500", $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LicaService/UpdateLicasExample.php b/examples/Dfp/v201308/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..5a1b08d49 --- /dev/null +++ b/examples/Dfp/v201308/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201308'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and destination URL "' . $lica->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No LICAs updated.\n"; + } + } else { + print "No LICAs found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201308/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..1dd76b8d7 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('orderId' => new NumberValue($orderId))); + + // Create statement text to select approved line items from a given order. + $filterStatementText = + "WHERE orderId = :orderId AND status = 'NEEDS_CREATIVES'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + $lineItemIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Archived line items cannot be activated. + if (!$lineItem->isArchived) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" will be activated.\n"; + $i++; + $lineItemIds[] = $lineItem->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of line items to be activated: ' . sizeof($lineItemIds) . "\n"; + + if (sizeof($lineItemIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $lineItemIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ActivateLineItems(); + + // Perform action. + $result = + $lineItemService->performLineItemAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of line items activated: ' . $result->numChanges . "\n"; + } else { + print "No line items were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201308/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..88e7b3b4c --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +select($selectStatementOffset); + + if (isset($resultSet->rows)) { + foreach($resultSet->rows as $row) { + $untargetableLocationIds[] = $row->values[0]->value; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + return $untargetableLocationIds; +} + +/** + * Finds all untargetable locations. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a list of untargetable location IDs + */ +function getAllUntargetableLocations($user) { + // Tables that represent all different location types. + $LOCATION_TABLES = array('Country', 'Region', 'Metro', 'City', 'Postal_Code'); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', + API_VERSION); + $untargetableLocationIds = array(); + + // Find all untargetable locations for each location type. + foreach ($LOCATION_TABLES as $table) { + $untargetableLocationIds = array_merge($untargetableLocationIds, + getAllUntargetableLocationsHelper($pqlService, $table)); + } + + return $untargetableLocationIds; +} + +/** + * Builds a map of geo targets to the line items targeting them. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a map of geo targets to the line items targeting them + */ +function buildGeoTargetToLineItemsMap($user) { + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', API_VERSION); + + // Set defaults for page and statement. + $LIMIT = 500; + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + // Map of geo targets to all line items targeting it. + $geoTargetToLineItemsMap = array(); + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT '. $LIMIT . ' OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // If a line item has geo targeting, store it in the map. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->targeting->geoTargeting->targetedLocations)) { + foreach ($lineItem->targeting->geoTargeting->targetedLocations as + $targetedLocation) { + $lineItemIds = array(); + if (isset($geoTargetToLineItemsMap[$targetedLocation->id])) { + $lineItemIds = $geoTargetToLineItemsMap[$targetedLocation->id]; + } + $lineItemIds[] = $lineItem->id; + $geoTargetToLineItemsMap[$targetedLocation->id] = $lineItemIds; + } + } + } + } + + $offset += $LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $geoTargetToLineItemsMap; +} + +/** + * Finds all the geo targets in the specified map that are deprecated. + * + * @param array $geoTargetToLineItemsMap a map of geo targets to the line items + * targeting them + * @param array $untargetableLocationIds a list of deprecated location IDs + * @return a map of deprecated geo targets to the line items targeting them + */ +function findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds) { + // A map of deprecated geo targets to the line items targeting them. + $lineItemsToUpdate = array(); + + foreach ($geoTargetToLineItemsMap as $geoTargetId => $lineItemIds) { + if (in_array($geoTargetId, $untargetableLocationIds)) { + $lineItemsToUpdate[$geoTargetId] = $lineItemIds; + } + } + + return $lineItemsToUpdate; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogAll(); + + // Find all untargetable locations. + $untargetableLocationIds = getAllUntargetableLocations($user); + printf("Found %d untargetable locations.\n", count($untargetableLocationIds)); + + // Build a map of geo targets to the line items targeting them. + $geoTargetToLineItemsMap = buildGeoTargetToLineItemsMap($user); + + // Find all the deprecated geo targets from that map. + $lineItemsToUpdate = findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds); + + $i = 0; + // Print the line items that need to be updated. + foreach ($lineItemsToUpdate as $geoTargetId => $lineItemIds) { + printf("%d) The following line items are targeting deprecated location %d" + . " and need to be updated: %s\n", $i, $geoTargetId, implode(', ', + $lineItemIds)); + $i++; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201308/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..41b3b3c88 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is + // $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with with ID "' . $lineItem->id + . '", belonging to order ID "' . $lineItem->orderId + . '", and name "' . $lineItem->name + . "\" was created.\n"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201308/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..4e26ed294 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_MOBILE_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create technology targeting. + $technologyTargeting = new TechnologyTargeting(); + + // Create device manufacturer targeting. + $deviceManufacturerTargeting = new DeviceManufacturerTargeting(); + $deviceManufacturerTargeting->isTargeted = TRUE; + + // Target the Google device manufacturer (40100). + $deviceManufacturerTechnology = new Technology(); + $deviceManufacturerTechnology->id = 40100; + $deviceManufacturerTargeting->deviceManufacturers = + array($deviceManufacturerTechnology); + $technologyTargeting->deviceManufacturerTargeting = + $deviceManufacturerTargeting; + + // Create mobile device targeting. + $mobileDeviceTargeting = new MobileDeviceTargeting(); + + // Exclude the Nexus One device (604046). + $mobileDeviceTechnology = new Technology(); + $mobileDeviceTechnology->id = 604046; + $mobileDeviceTargeting->targetedMobileDevices = + array($mobileDeviceTechnology); + $technologyTargeting->mobileDeviceTargeting = $mobileDeviceTargeting; + + // Create mobile device submodel targeting. + $mobileDeviceSubmodelTargeting = new MobileDeviceSubmodelTargeting(); + + // Target the iPhone 4 device submodel (640003). + $mobileDeviceSubmodelTechnology = new Technology(); + $mobileDeviceSubmodelTechnology->id = 640003; + $mobileDeviceSubmodelTargeting->targetedMobileDeviceSubmodels = + array($mobileDeviceSubmodelTechnology); + $technologyTargeting->mobileDeviceSubmodelTargeting = + $mobileDeviceSubmodelTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Mobile line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = TRUE; + + // Set the target platform to mobile. + $lineItem->targetPlatform = 'MOBILE'; + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + // Create the line item on the server. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + prinf("A line item with with ID '%s', belonging to order ID '%s', and name " + . "'%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201308/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..1547d2ff3 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetedVideoAdUnitId = 'INSERT_TARGETED_VIDEO_AD_UNIT_ID_HERE'; + + // Set the custom targeting key ID and value ID representing the metadata + // on the content to target. This would typically be a key representing + // a 'genre' and a value representing something like 'comedy'. + $contentCustomTargetingKeyId = 'INSERT_CONTENT_CUSTOM_TARGETING_KEY_ID_HERE'; + $contentCustomTargetingValueId = + 'INSERT_CONTENT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Create custom criteria for the content metadata targeting. + $contentCustomCriteria = new CustomCriteria(); + $contentCustomCriteria->keyId = $contentCustomTargetingKeyId; + $contentCustomCriteria->valueIds = array($contentCustomTargetingValueId); + $contentCustomCriteria->operator = 'IS'; + + // Create custom criteria set. + $customCriteriaSet = new CustomCriteriaSet(); + $customCriteriaSet->children = array($contentCustomCriteria); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // Create the line item on the server. + $lineItems = $lineItemService->createLineItems($lineItem); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + printf("A line item with with ID '%s', belonging to order ID '%s', and " + . "name '%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } + } else { + printf("No line items created."); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201308/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..e826b1adb --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/GetLineItemExample.php b/examples/Dfp/v201308/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..d9e98983f --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201308/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..a31070589 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId))); + + // Create a statement to only select line items that need creatives + // from a given order. + $filterStatement = new Statement("WHERE orderId = :orderId " + . " AND status = 'NEEDS_CREATIVES' LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201308/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..1723c6910 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Calculate time from three days ago. + $threeDaysAgo = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('-3 day')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId), + 'threeDaysAgo' => new TextValue($threeDaysAgo))); + + // Create statement object to only select line items belonging to the order + // and have been modified in the last 3 days. + $filterStatement = new Statement("WHERE orderId = :orderId " + . "AND lastModifiedDateTime >= :threeDaysAgo " + . "LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Format lastModifiedDateTime for printing. + $lastModifiedDateTime = + DateTimeUtils::GetDateTime($lineItem->lastModifiedDateTime); + $lastModifiedDateTimeText = $lastModifiedDateTime + ->format(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT); + + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", with name "' . $lineItem->name + . '", and last modified ' . $lastModifiedDateTimeText + . " was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201308/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..f7249fbc2 --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201308/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..552f380bc --- /dev/null +++ b/examples/Dfp/v201308/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create a statement to get line items with even delivery rates. + $filterStatement = + new Statement("WHERE deliveryRateType = 'EVENLY' and orderId = " + . $orderId . ' LIMIT 500'); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + if (isset($page->results)) { + $lineItems = $page->results; + + // Remove archived line items. + array_filter($lineItems, + create_function('$lineItem', 'return !$lineItem->isArchived;')); + + // Update each local line item object by changing its delivery rate. + foreach ($lineItems as $lineItem) { + $lineItem->deliveryRateType = 'AS_FAST_AS_POSSIBLE'; + } + + // Update the line items on the server. + $lineItems = $lineItemService->updateLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", name "' . $lineItem->name + . '", and delivery rate "' . $lineItem->deliveryRateType + . "\" was updated.\n"; + } + } else { + print "No line items updated.\n"; + } + } else { + print "No line items found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201308/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..54a4e6875 --- /dev/null +++ b/examples/Dfp/v201308/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get all networks that you have access to with the current login + // credentials. + $networks = $networkService->getAllNetworks(); + + // Display results. + if (isset($networks)) { + $i = 0; + foreach ($networks as $network) { + print $i . ') Network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $i . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201308/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..709024929 --- /dev/null +++ b/examples/Dfp/v201308/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201308/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..9b0ea4f99 --- /dev/null +++ b/examples/Dfp/v201308/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201308'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201308/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..0c1710f95 --- /dev/null +++ b/examples/Dfp/v201308/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // Create a datetime representing today. + $today = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, strtotime('now')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('today' => new TextValue($today))); + + // Create statement text to get all draft and pending approval orders that + // haven't ended and aren't archived. + $filterStatementText = "WHERE status IN ('DRAFT', 'PENDING_APPROVAL') " + . "AND endDateTime >= :today " + . "AND isArchived = FALSE "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " + . $offset, $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + $orderIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + // Archived orders cannot be approved. + if (!$order->isArchived) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and status "' . $order->status + . "\" will be approved.\n"; + $i++; + $orderIds[] = $order->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of orders to be approved: ' . sizeof($orderIds) . "\n"; + + if (sizeof($orderIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $orderIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveAndOverbookOrders(); + + // Perform action. + $result = $orderService->performOrderAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of orders approved: ' . $result->numChanges . "\n"; + } else { + print "No orders were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/OrderService/CreateOrdersExample.php b/examples/Dfp/v201308/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..0c45298a1 --- /dev/null +++ b/examples/Dfp/v201308/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201308'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201308/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..9d6bf2c6f --- /dev/null +++ b/examples/Dfp/v201308/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/OrderService/GetOrderExample.php b/examples/Dfp/v201308/OrderService/GetOrderExample.php new file mode 100755 index 000000000..b9058161c --- /dev/null +++ b/examples/Dfp/v201308/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201308/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..06968b88d --- /dev/null +++ b/examples/Dfp/v201308/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // Set the ID of the advertiser (company) to get orders for. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('advertiserId' => new NumberValue($advertiserId))); + + // Create a statement to only select orders for a given advertiser. + $filterStatement = + new Statement("WHERE advertiserId = :advertiserId LIMIT 500", $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201308/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..31414acbf --- /dev/null +++ b/examples/Dfp/v201308/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201308'); + + // Create a statement to get all orders. + $filterStatement = new Statement('LIMIT 500'); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + if (isset($page->results)) { + $orders = $page->results; + + // Remove archived orders. + array_filter($orders, + create_function('$order', 'return !$order->isArchived;')); + + // Update each local order object by changing its notes. + foreach ($orders as $order) { + $order->notes = 'Spoke to advertiser. All is well.'; + } + + // Update the orders on the server. + $orders = $orderService->updateOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'Order with ID "' . $order->id + . '", name "' . $order->name + . '", advertiser ID "' . $order->advertiserId + . '", and notes "' . $order->notes + . "\" was updated.\n"; + } + } else { + print "No orders updated.\n"; + } + } else { + print "No orders found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201308/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..2e4fbb54d --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201308/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..d08530d45 --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201308/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..021ad2bf5 --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/PlacementService/GetPlacementExample.php b/examples/Dfp/v201308/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..38a3edc3c --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201308/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..e79d16419 --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201308/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..e7fd2f079 --- /dev/null +++ b/examples/Dfp/v201308/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201308'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201308'); + + // Create a statement to select first 500 placements. + $filterStatement = new Statement("LIMIT 500"); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + if (isset($page->results)) { + $placements = $page->results; + + // Update each local placement object by adding the root ad unit. + foreach ($placements as $placement) { + $placement->targetingDescription = !empty($placement->description) ? + $placement->description : 'Generic description'; + $placement->targetingAdLocation = 'All images on sports pages.'; + $placement->targetingSiteName = 'http://code.google.com'; + $placement->isAdSenseTargetingEnabled = TRUE; + } + + // Update the placements on the server. + $placements = $placementService->updatePlacements($placements); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and AdSense targeting "' + . ($placement->isAdSenseTargetingEnabled ? 'enabled' : 'disabled') + . "\" was updated.\n"; + } + } else { + print "No placements updated.\n"; + } + } else { + print "No placements found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/PublisherQueryLanguageService/GetAllLineItems.php b/examples/Dfp/v201308/PublisherQueryLanguageService/GetAllLineItems.php new file mode 100755 index 000000000..4a2fb6771 --- /dev/null +++ b/examples/Dfp/v201308/PublisherQueryLanguageService/GetAllLineItems.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201308'); + + // Statement parts to help build a statement to select all line items. + $pqlTemplate = 'SELECT Id, Name, Status FROM Line_Item ORDER BY Id ASC LIMIT ' + . '%d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + $i = 0; + + do { + // Get all line items. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d line items beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Line-Items-%s.csv", sys_get_temp_dir(), uniqid()); + ob_start(); + $fp = fopen($filePath, 'w'); + + // Write the result set to a CSV. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + ob_end_clean(); + + printf("Line items saved to %s\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201308/PublisherQueryLanguageService/GetGeoTargets.php new file mode 100755 index 000000000..2625f7601 --- /dev/null +++ b/examples/Dfp/v201308/PublisherQueryLanguageService/GetGeoTargets.php @@ -0,0 +1,116 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201308'); + + // Set the type of geo target. + $geoTargetType = 'City'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue($geoTargetType))); + + // Statement parts to help build a statement to select all targetable cities. + $pqlTemplate = "SELECT Id, Name, CanonicalParentId, ParentIds, CountryCode, " + . "Type, Targetable FROM Geo_Target WHERE Type = :type AND Targetable = " + . "true ORDER BY CountryCode ASC, Name ASC LIMIT %d OFFSET %d "; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + $i = 0; + + do { + // Get all cities. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d geo targets beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/%s-%s.csv", sys_get_temp_dir(), $geoTargetType, + uniqid()); + ob_start(); + $fp = fopen($filePath, 'w'); + + // Write the result set to a CSV. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + ob_end_clean(); + + printf("Geo targets saved to %s\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201308/PublisherQueryLanguageService/GetLineItemsNamedLike.php new file mode 100755 index 000000000..487bd64e3 --- /dev/null +++ b/examples/Dfp/v201308/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201308'); + + // Statement parts to help build a statement to select all cities that start + // with "Santa". + $pqlTemplate = "SELECT Id, Name, Status FROM Line_Item WHERE Name LIKE 'line " + . "item%%' ORDER BY Id ASC LIMIT %d OFFSET %d"; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + $i = 0; + + do { + // Get line items like 'line item%'. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d line items beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Line-Items-Named-Like-%s.csv", sys_get_temp_dir(), + uniqid()); + ob_start(); + $fp = fopen($filePath, 'w'); + + // Write the result set to a CSV. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + ob_end_clean(); + + printf("Line items saved to %s\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ReportService/DisplayReportExample.php b/examples/Dfp/v201308/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..0633155d3 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report (e.g., CSV_DUMP) and download without + // compression so we can print it. + $reportDownloadOptions = new ReportDownloadOptions(); + $reportDownloadOptions->exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + $reportDownloadOptions->useGzipCompression = false; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ReportService/DownloadReportExample.php b/examples/Dfp/v201308/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..5f3b5ec47 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report. Ex: CSV_DUMP + $exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + + // Set the file name to download the gzipped report to. Ex: report.csv.gz. + $fileName = 'INSERT_FILE_NAME_HERE' . '.gz'; + + $filePath = dirname(__FILE__) . '/' . $fileName; + + $downloadUrl = + $reportService->getReportDownloadURL($reportJobId, $exportFormat); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + + ReportUtils::DownloadReport($downloadUrl, $filePath); + + printf("Report downloaded to file '%s'.\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201308/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..b486c0e52 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Set the order id to report on. + $order_id = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($order_id))); + + // Create statement text to filter based on an order id. + $filterStatementText = 'WHERE order_id = :orderId'; + + // Create statement object from text. + $filterStatement = new Statement($filterStatementText, $vars); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'AD_SERVER_CTR', 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportQuery->statement = $filterStatement; + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201308/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..10c14a4b3 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunInventoryReportExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_WEEK'; + $reportQuery->dimensions = array('DATE', 'AD_UNIT_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS', + 'TOTAL_INVENTORY_LEVEL_IMPRESSIONS', + 'TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201308/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..843b3e231 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('MERGED_AD_SERVER_IMPRESSIONS', + 'MERGED_AD_SERVER_CLICKS', 'MERGED_AD_SERVER_CTR', + 'MERGED_AD_SERVER_CPM_AND_CPC_REVENUE', + 'MERGED_AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ReportService/RunReachReportExample.php b/examples/Dfp/v201308/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..13457b58a --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'REACH_LIFETIME'; + $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); + $reportQuery->columns = array('REACH_FREQUENCY', + 'REACH_AVERAGE_REVENUE', + 'REACH'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201308/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201308/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..82832a190 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201308'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Set defaults for page and statement. + $page = new LineItemPage(); + $vars = MapUtils::GetMapEntries(array('orderId' => + new NumberValue($orderId))); + $filterStatement = new Statement(NULL, $vars); + $offset = 0; + + // Collect all line item custom field IDs for an order. + $customFieldIds = array(); + do { + // Create a statement to only select line items from a given order. + $filterStatement->query = sprintf('WHERE orderId = :orderId LIMIT 500 ' . + 'OFFSET %d', $offset); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Get custom field IDs from the line items of an order. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $customFieldValue) { + $customFieldId = $customFieldValue->customFieldId; + if (!in_array($customFieldId, $customFieldIds)) { + $customFieldIds[] = $customFieldId; + } + } + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); + $reportQuery->customFieldIds = $customFieldIds; + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); + $reportJob->reportQuery = $reportQuery; + + // Report on a single order. + $filterStatement->query = 'WHERE ORDER_ID = :orderId'; + $reportQuery->statement = $filterStatement; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/ReportService/RunSalesReportExample.php b/examples/Dfp/v201308/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..e45559dc2 --- /dev/null +++ b/examples/Dfp/v201308/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201308'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('SALESPERSON_ID', 'SALESPERSON_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', + 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201308/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..32f9696a5 --- /dev/null +++ b/examples/Dfp/v201308/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201308'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201308/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..2a310ebb0 --- /dev/null +++ b/examples/Dfp/v201308/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201308'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..7fdbf9964 --- /dev/null +++ b/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201308'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..353acb3fd --- /dev/null +++ b/examples/Dfp/v201308/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201308'); + + // Create a statement to only select suggested ad units with more than 50 + // requests. + $filterStatement = + new Statement("WHERE numRequests > :numRequests LIMIT 500", + MapUtils::GetMapEntries(array('numRequests' => new NumberValue(50)))); + + // Get ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/TeamService/CreateTeamsExample.php b/examples/Dfp/v201308/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..ef47733b5 --- /dev/null +++ b/examples/Dfp/v201308/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201308/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..862af447b --- /dev/null +++ b/examples/Dfp/v201308/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/TeamService/GetTeamExample.php b/examples/Dfp/v201308/TeamService/GetTeamExample.php new file mode 100755 index 000000000..fc0614128 --- /dev/null +++ b/examples/Dfp/v201308/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201308/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..2e69663bf --- /dev/null +++ b/examples/Dfp/v201308/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201308/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..795144c80 --- /dev/null +++ b/examples/Dfp/v201308/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201308'); + + // Set the ID of the ad unit to add to the teams. + $adUnitID = "INSERT_AD_UNIT_ID_HERE"; + + // Create a statement to select first 5 teams that aren't + // built-in. + $filterStatement = new Statement("WHERE id > 0 LIMIT 5"); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + if (isset($page->results)) { + $teams = $page->results; + + $i = 0; + // Update each local team object by appending the ad unit to it. + foreach ($teams as $team) { + if (!$team->hasAllInventory) { + if (!isset($team->adUnitIds)) { + // Empty team inventory. + $team->adUnitIds = array(); + } + $team->adUnitIds[] = $adUnitID; + $i++; + } + } + + // Reorganize the $teams array. + $teams = array_values($teams); + + // Update the teams on the server. + $teams = $teamService->updateTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "' . $team->name . "\" was updated.\n"; + } + } else { + print "No teams updated.\n"; + } + } else { + print "No teams found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/CreateUsersExample.php b/examples/Dfp/v201308/UserService/CreateUsersExample.php new file mode 100755 index 000000000..58257a534 --- /dev/null +++ b/examples/Dfp/v201308/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/DeactivateUserExample.php b/examples/Dfp/v201308/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..7c552f8a1 --- /dev/null +++ b/examples/Dfp/v201308/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and status "' . ($usr->isActive ? 'ACTIVE' : 'INACTIVE') + . "\" will be deactivated.\n"; + $i++; + $userIds[] = $usr->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/GetAllRolesExample.php b/examples/Dfp/v201308/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..36b4b4511 --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Get all roles. + $roles = $userService->getAllRoles(); + + if (isset($roles)) { + foreach ($roles as $role) { + print 'Role with ID "' . $role->id . '" and name "' . $role->name + . "\" was found.\n"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/GetAllUsersExample.php b/examples/Dfp/v201308/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..329e5b210 --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print "Number of results found: " . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/GetCurrentUserExample.php b/examples/Dfp/v201308/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..e32c96d4a --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/GetUserExample.php b/examples/Dfp/v201308/UserService/GetUserExample.php new file mode 100755 index 000000000..5fd25d6e1 --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201308/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..dd5e2e319 --- /dev/null +++ b/examples/Dfp/v201308/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Create a statement to get all users sorted by name. + $filterStatement = new Statement('ORDER BY name LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserService/UpdateUsersExample.php b/examples/Dfp/v201308/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..cfba5fa73 --- /dev/null +++ b/examples/Dfp/v201308/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201308'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $usr) { + print 'A user with ID "' . $usr->id + . '", name "' . $usr->name + . '", and role "' . $usr->roleName . "\" was updated.\n"; + } + } else { + print "No users updated.\n"; + } + } else { + print "No users found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201308/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..c06d7ba99 --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201308/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..86c8ad69a --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText + . " LIMIT 500 OFFSET " . $offset, $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201308/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..25f2e2ad1 --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User Team association between user with ID "' + . $uta->userId . '" and team with ID "' + . $uta->teamId . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..0b2651d3f --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..9eafe44f7 --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201308'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201308"); + + // Get the current user. + $currentUserId = $userService->getCurrentUser()->id; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($currentUserId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = + new Statement("WHERE userId = :userId LIMIT 500", $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201308/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201308/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..4c83ffec9 --- /dev/null +++ b/examples/Dfp/v201308/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201308'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = new Statement("WHERE userId = :userId LIMIT 500", $vars); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . '" was updated to access type "' + . $uta->overriddenTeamAccessType . '".\n'; + } + } else { + print "No user team associations updated.\n"; + } + } else { + print "No user team associations found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201311/ActivityGroupService/CreateActivityGroups.php new file mode 100755 index 000000000..a2b16c82b --- /dev/null +++ b/examples/Dfp/v201311/ActivityGroupService/CreateActivityGroups.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201311'); + + // Set the ID of the advertiser company this activity group is associated + // with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create a short-term activity group. + $shortTermActivityGroup = new ActivityGroup(); + $shortTermActivityGroup->name = sprintf('Short-term activity group #%s', + uniqid()); + $shortTermActivityGroup->companyIds = array($advertiserCompanyId); + $shortTermActivityGroup->clicksLookback = 1; + $shortTermActivityGroup->impressionsLookback = 1; + + // Create a long-term activity group. + $longTermActivityGroup = new ActivityGroup(); + $longTermActivityGroup->name = sprintf('Long-term activity group #%s', + uniqid()); + $longTermActivityGroup->companyIds = array($advertiserCompanyId); + $longTermActivityGroup->clicksLookback = 30; + $longTermActivityGroup->impressionsLookback = 30; + + // Create the activity groups on the server. + $activityGroups = $activityGroupService->createActivityGroups( + array($shortTermActivityGroup, $longTermActivityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $activityGroup) { + printf("An activity group with ID \"%d\" and name \"%s\" was created.\n", + $activityGroup->id, $activityGroup->name); + } + } else { + printf("No activity groups were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201311/ActivityGroupService/GetActiveActivityGroups.php new file mode 100755 index 000000000..712c2883c --- /dev/null +++ b/examples/Dfp/v201311/ActivityGroupService/GetActiveActivityGroups.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201311'); + + // Statement parts to help build a statement that only selects active activity + // groups. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + $i++, $activityGroup->id, $activityGroup->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201311/ActivityGroupService/GetAllActivityGroups.php new file mode 100755 index 000000000..c071e8f1e --- /dev/null +++ b/examples/Dfp/v201311/ActivityGroupService/GetAllActivityGroups.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201311'); + + // Statement parts to help build a statement that selects all activity groups. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityGroupPage(); + + do { + // Get activity groups by statement. + $page = $activityGroupService->getActivityGroupsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activityGroup) { + printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + $i++, $activityGroup->id, $activityGroup->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201311/ActivityGroupService/UpdateActivityGroups.php new file mode 100755 index 000000000..1a190f9c7 --- /dev/null +++ b/examples/Dfp/v201311/ActivityGroupService/UpdateActivityGroups.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ActivityGroupService. + $activityGroupService = $user->GetService('ActivityGroupService', 'v201311'); + + // Set the ID of the activity group and the company to update it with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Get the activity group. + $activityGroup = $activityGroupService->getActivityGroup($activityGroupId); + + // Update the companies. + $activityGroup->companyIds[] = $advertiserCompanyId; + + // Update the activity groups on the server. + $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); + + // Display results. + if (isset($activityGroups)) { + foreach ($activityGroups as $updatedActivityGroup) { + printf("Activity group with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivityGroup->id, $updatedActivityGroup->name); + } + } else { + printf("No activity groups were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ActivityService/CreateActivities.php b/examples/Dfp/v201311/ActivityService/CreateActivities.php new file mode 100755 index 000000000..e97123f6b --- /dev/null +++ b/examples/Dfp/v201311/ActivityService/CreateActivities.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201311'); + + // Set the ID of the activity group this activity is associated with. + $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; + + // Create a daily visits activity. + $dailyVisitsActivity = new Activity(); + $dailyVisitsActivity->name = sprintf('Activity #%s', uniqid()); + $dailyVisitsActivity->activityGroupId = $activityGroupId; + $dailyVisitsActivity->type = 'DAILY_VISITS'; + + // Create a custom activity. + $customActivity = new Activity(); + $customActivity->name = sprintf('Activity #%s', uniqid()); + $customActivity->activityGroupId = $activityGroupId; + $customActivity->type = 'CUSTOM'; + + // Create the activities on the server. + $activities = $activityService->createActivities( + array($dailyVisitsActivity, $customActivity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $activity) { + printf("An activity with ID \"%d\", name \"%s\", and type \"%s\" was " . + "created.\n", $activity->id, $activity->name, $activity->type); + } + } else { + printf("No activities were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ActivityService/GetActiveActivities.php b/examples/Dfp/v201311/ActivityService/GetActiveActivities.php new file mode 100755 index 000000000..6d21c5305 --- /dev/null +++ b/examples/Dfp/v201311/ActivityService/GetActiveActivities.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201311'); + + // Statement parts to help build a statement that only selects active + // activities. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'ACTIVE'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", and type \"%s\" " . + "was found.\n", $i++, $activity->id, $activity->name, + $activity->type); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ActivityService/GetAllActivities.php b/examples/Dfp/v201311/ActivityService/GetAllActivities.php new file mode 100755 index 000000000..ab4896cdd --- /dev/null +++ b/examples/Dfp/v201311/ActivityService/GetAllActivities.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201311'); + + // Statement parts to help build a statement that selects all activities. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ActivityPage(); + + do { + // Get activities by statement. + $page = $activityService->getActivitiesByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $activity) { + printf("%d) Activity with ID \"%d\", name \"%s\", and type \"%s\" " . + "was found.\n", $i++, $activity->id, $activity->name, + $activity->type); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ActivityService/UpdateActivities.php b/examples/Dfp/v201311/ActivityService/UpdateActivities.php new file mode 100755 index 000000000..8847706fb --- /dev/null +++ b/examples/Dfp/v201311/ActivityService/UpdateActivities.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ActivityService. + $activityService = $user->GetService('ActivityService', 'v201311'); + + // Set the ID of the activity to update. + $activityId = 'INSERT_ACTIVITY_ID_HERE'; + + // Get the activity. + $activity = $activityService->getActivity($activityId); + + // Update the expected URL. + $activity->expectedURL = 'https://google.com'; + + // Update the activity on the server. + $activities = $activityService->updateActivities(array($activity)); + + // Display results. + if (isset($activities)) { + foreach ($activities as $updatedActivity) { + printf("Activity with ID \"%d\" and name \"%s\" was updated.\n", + $updatedActivity->id, $updatedActivity->name); + } + } else { + printf("No activities were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/AudienceSegmentService/CreateAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/CreateAudienceSegments.php new file mode 100755 index 000000000..a178494d3 --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/CreateAudienceSegments.php @@ -0,0 +1,118 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Set the IDs of the custom criteria to be used in the segment rule. + $customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + $customTargetingValueId = 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create inventory targeting to be used in the segment rule. + $inventoryTargeting = new InventoryTargeting(); + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create custom criteria to be used in the segment rule. + $customCriteria = new CustomCriteria(); + $customCriteria->keyId = $customTargetingKeyId; + $customCriteria->valueIds = array($customTargetingValueId); + $customCriteria->operator = 'IS'; + + // Create the custom criteria set that will resemble: + // $customCriteria.key == $customCriteria.value + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'AND'; + $topCustomCriteriaSet->children = array($customCriteria); + + // Create the audience segment rule. + $rule = new FirstPartyAudienceSegmentRule(); + $rule->inventoryRule = $inventoryTargeting; + $rule->customCriteriaRule = $topCustomCriteriaSet; + + // Create an audience segment. + $audienceSegment = new RuleBasedFirstPartyAudienceSegment(); + $audienceSegment->name = sprintf('Sports enthusiasts audience segment #%s', + uniqid()); + $audienceSegment->description = 'Sports enthusiasts between the ages of 20 ' + . 'and 30.'; + $audienceSegment->pageViews = 6; + $audienceSegment->recencyDays = 6; + $audienceSegment->membershipExpirationDays = 88; + $audienceSegment->rule = $rule; + + // Create the audience segment on the server. + $audienceSegments = $audienceSegmentService->createAudienceSegments( + array($audienceSegment)); + + // Display results. + foreach ($audienceSegments as $createdAudienceSegment) { + printf("An audience segment with ID \"%d\", name \"%s\", and type \"%s\" " + . "was created.\n", $createdAudienceSegment->id, + $createdAudienceSegment->name, $createdAudienceSegment->type); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/GetAllAudienceSegments.php new file mode 100755 index 000000000..e9614a2c5 --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/GetAllAudienceSegments.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201311'); + + // Statement parts to help build a statement to select all audience segments. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + printf("%d) Audience segment with ID \"%d\", name \"%s\", and size " + . "\"%d\" was found.\n", $i++, $audienceSegment->id, + $audienceSegment->name, $audienceSegment->size); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/GetFirstPartyAudienceSegments.php new file mode 100755 index 000000000..2e529571e --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('FIRST_PARTY'))); + + // Statement parts to help build a statement to select all first party + // audience segments. + $pqlTemplate = "WHERE type = :type ORDER BY id LIMIT %d OFFSET %d"; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + printf("%d) First party audience segment with ID \"%d\", name " + . "\"%s\", and size \"%d\" was found.\n", $i++, + $audienceSegment->id, $audienceSegment->name, + $audienceSegment->size); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php new file mode 100755 index 000000000..745620880 --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -0,0 +1,125 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201311'); + + $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('FIRST_PARTY'), + 'audienceSegmentId' => new NumberValue($audienceSegmentId))); + + // Statement parts to help build a statement to select specified first party + // audience segment. + $pqlTemplate = "WHERE id IN (:audienceSegmentId) AND type = :type ORDER BY " + . "id LIMIT %d OFFSET %d"; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new AudienceSegmentPage(); + + do { + // Get audience segments by statement. + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), + $vars)); + + // Display results. + $audienceSegmentIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $audienceSegment) { + printf("%d) Audience segment with ID \"%d\" and name \"%s\" will be " + . "populated.\n", $i++, $audienceSegment->id, + $audienceSegment->name); + $audienceSegmentIds[] = $audienceSegment->id; + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of audience segments to be populated: %d\n", + sizeof($audienceSegmentIds)); + + if (sizeof($audienceSegmentIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', + implode(',', $audienceSegmentIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new PopulateAudienceSegments(); + + // Perform action. + $result = $audienceSegmentService->performAudienceSegmentAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of audience segments populated: %d\n", + $result->numChanges); + } else { + printf("No audience segments were populated.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201311/AudienceSegmentService/UpdateAudienceSegments.php new file mode 100755 index 000000000..24d199a98 --- /dev/null +++ b/examples/Dfp/v201311/AudienceSegmentService/UpdateAudienceSegments.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the AudienceSegmentService. + $audienceSegmentService = $user->GetService('AudienceSegmentService', + 'v201311'); + + // Set the ID of the first party audience segment to update. + $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('audienceSegmentId' => new NumberValue($audienceSegmentId))); + + // Create statement text to select the audience segment to update. + $filterStatementText = "WHERE id = :audienceSegmentId LIMIT 1"; + + // Get the audience segment. + $audienceSegment = $audienceSegmentService->getAudienceSegmentsByStatement( + new Statement($filterStatementText, $vars))->results[0]; + + // Update the member expiration days. + $audienceSegment->membershipExpirationDays = 180; + + // Update the audience segment on the server. + $audienceSegments = + $audienceSegmentService->updateAudienceSegments(array($audienceSegment)); + + // Display results. + if (isset($audienceSegments)) { + foreach ($audienceSegments as $updatedAudienceSegment) { + printf("Audience segment with ID \"%d\" and name \"%s\" was updated.\n", + $updatedAudienceSegment->id, $updatedAudienceSegment->name); + } + } else { + printf("No audience segments were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201311/CompanyService/CreateCompaniesExample.php new file mode 100755 index 000000000..3d50e775e --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/CreateCompaniesExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Create an array to store local company objects. + $companies = array(); + + for ($i = 0; $i < 5; $i++) { + $company = new Company(); + $company->name = 'Advertiser #' . $i; + $company->type = 'ADVERTISER'; + + $companies[] = $company; + } + + // Create the companies on the server. + $companies = $companyService->createCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '", name "'. $company->name + . '", and type "' . $company->type . "\" was created.\n"; + } + } else { + print "No companies created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201311/CompanyService/GetAllCompaniesExample.php new file mode 100755 index 000000000..0368344b2 --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/GetAllCompaniesExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Set defaults for page and statement. + $page = new CompanyPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all companies. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} diff --git a/examples/Dfp/v201311/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201311/CompanyService/GetCompaniesByStatementExample.php new file mode 100755 index 000000000..00216fbb5 --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/GetCompaniesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue('ADVERTISER'))); + + // Create a statement to only select companies that are advertisers sorted + // by name. + $filterStatement = + new Statement("WHERE type = :type ORDER BY name LIMIT 500", $vars); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $company) { + print $i . ') Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CompanyService/GetCompanyExample.php b/examples/Dfp/v201311/CompanyService/GetCompanyExample.php new file mode 100755 index 000000000..877da2f24 --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/GetCompanyExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Set the ID of the company to get. + $companyId = 'INSERT_COMPANY_ID_HERE'; + + // Get the company. + $company = $companyService->getCompany($companyId); + + // Display results. + if (isset($company)) { + print 'Company with ID "' . $company->id + . '", name "' . $company->name + . '", and type "' . $company->type . "\" was found.\n"; + } else { + print "No company found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201311/CompanyService/UpdateCompaniesExample.php new file mode 100755 index 000000000..49bce4d45 --- /dev/null +++ b/examples/Dfp/v201311/CompanyService/UpdateCompaniesExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201311'); + + // Create a statement to only select companies that are advertisers. + $filterStatement = new Statement("WHERE type = 'ADVERTISER' LIMIT 500"); + + // Get companies by statement. + $page = $companyService->getCompaniesByStatement($filterStatement); + + if (isset($page->results)) { + $companies = $page->results; + + // Update each local company object by appending LLC. to its name. + foreach ($companies as $company) { + $company->name .= ' LLC.'; + } + + // Update the companies on the server. + $companies = $companyService->updateCompanies($companies); + + // Display results. + if (isset($companies)) { + foreach ($companies as $company) { + print 'A company with ID "' . $company->id + . '" and name "' . $company->name . "\" was updated.\n"; + } + } else { + print "No companies updated.\n"; + } + } else { + print "No companies found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ContactService/CreateContacts.php b/examples/Dfp/v201311/ContactService/CreateContacts.php new file mode 100755 index 000000000..a245c0daf --- /dev/null +++ b/examples/Dfp/v201311/ContactService/CreateContacts.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201311'); + + // Set the ID of the advertiser company this contact is associated with. + $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Set the ID of the agency company this contact is associated with. + $agencyCompanyId = 'INSERT_AGENCY_COMPANY_ID_HERE'; + + // Create an advertiser contact. + $advertiserContact = new Contact(); + $advertiserContact->name = sprintf('Mr. Advertiser #%s', uniqid()); + $advertiserContact->email = 'advertiser@advertising.com'; + $advertiserContact->companyId = $advertiserCompanyId; + + // Create an agency contact. + $agencyContact = new Contact(); + $agencyContact->name = sprintf('Ms. Agency #%s', uniqid()); + $agencyContact->email = 'agency@agencies.com'; + $agencyContact->companyId = $agencyCompanyId; + + // Create the contacts on the server. + $contacts = $contactService->createContacts(array($advertiserContact, + $agencyContact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $contact) { + printf("A contact with ID \"%d\" and name \"%s\" was created.\n", + $contact->id, $contact->name); + } + } else { + printf("No contacts were created.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ContactService/GetAllContacts.php b/examples/Dfp/v201311/ContactService/GetAllContacts.php new file mode 100755 index 000000000..e3e752af3 --- /dev/null +++ b/examples/Dfp/v201311/ContactService/GetAllContacts.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201311'); + + // Statement parts to help build a statement to select all contacts. + $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + $contact->id, $contact->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201311/ContactService/GetUninvitedContacts.php new file mode 100755 index 000000000..d239da894 --- /dev/null +++ b/examples/Dfp/v201311/ContactService/GetUninvitedContacts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201311'); + + // Statement parts to help build a statement to only select contacts that + // aren't invited yet. + $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; + $STATUS = 'UNINVITED'; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + + $page = new ContactPage(); + + do { + // Get contacts by statement. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); + $page = $contactService->getContactsByStatement(new Statement( + sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $contact) { + printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + $contact->id, $contact->name); + } + } + + $offset += $SUGGESTED_PAGE_LIMIT; + } while ($offset < $page->totalResultSetSize); + + printf("Number of results found: %d\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ContactService/UpdateContacts.php b/examples/Dfp/v201311/ContactService/UpdateContacts.php new file mode 100755 index 000000000..e62030f76 --- /dev/null +++ b/examples/Dfp/v201311/ContactService/UpdateContacts.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the ContactService. + $contactService = $user->GetService('ContactService', 'v201311'); + + // Set the ID of the contact to update. + $contactId = "INSERT_CONTACT_ID_HERE"; + + // Get the contact. + $contact = $contactService->getContact($contactId); + + // Update the address on the contact. + $contact->address = '123 New Street, New York, NY, 10011'; + + // Update the contact on the server. + $contacts = $contactService->updateContacts(array($contact)); + + // Display results. + if (isset($contacts)) { + foreach ($contacts as $updatedContact) { + printf("Contact with ID \"%d\", name \"%s\", and address \"%s\" was " . + "updated.\n", $updatedContact->id, $updatedContact->name, + $updatedContact->address); + } + } else { + printf("No contacts were updated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ContentService/GetAllContentExample.php b/examples/Dfp/v201311/ContentService/GetAllContentExample.php new file mode 100755 index 000000000..e65e07ffe --- /dev/null +++ b/examples/Dfp/v201311/ContentService/GetAllContentExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201311'); + + // Set defaults for page and statement. + $page = new ContentPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all content. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get content by statement. + $page = $contentService->getContentByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201311/ContentService/GetContentByCategoryExample.php new file mode 100755 index 000000000..78da1662f --- /dev/null +++ b/examples/Dfp/v201311/ContentService/GetContentByCategoryExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ContentService. + $contentService = $user->GetService('ContentService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Get content browse custom targeting key ID. + $network = $networkService->getCurrentNetwork(); + $contentBrowseCustomTargetingKeyId = + $network->contentBrowseCustomTargetingKeyId; + + // Create a statement to select the categories matching the name comedy. + $categoryFilterStatement = new Statement( + "WHERE customTargetingKeyId = :contentBrowseCustomTargetingKeyId " + . "and name = :category LIMIT 1"); + $categoryFilterStatement->values = MapUtils::GetMapEntries(array( + 'contentBrowseCustomTargetingKeyId' => + new NumberValue($contentBrowseCustomTargetingKeyId), + 'category' => new TextValue('comedy'))); + + // Get categories matching the filter statement. + $customTargetingValuePage = + $customTargetingService->getCustomTargetingValuesByStatement( + $categoryFilterStatement); + + // Get the custom targeting value ID for the comedy category. + $categoryCustomTargetingValueId = $customTargetingValuePage->results[0]->id; + + // Create a statement to get all active content. + $filterStatement = new Statement("WHERE status = 'ACTIVE' LIMIT 500"); + + // Get content by statement. + $page = $contentService->getContentByStatementAndCustomTargetingValue( + $filterStatement, $categoryCustomTargetingValueId); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $content) { + printf( + "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", + $i, $content->id, $content->name, $content->status); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201311/CreativeService/AssociateCreativeSetToLineItemExample.php new file mode 100755 index 000000000..2b85d29f2 --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/AssociateCreativeSetToLineItemExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201311'); + + // Set the line item ID and creative set ID to associate. + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + $creativeSetId = "INSERT_CREATIVE_SET_ID_HERE"; + + $lica = new LineItemCreativeAssociation(); + $lica->lineItemId = $lineItemId; + $lica->creativeSetId = $creativeSetId; + + // Create the LICA on the server. + $licas = $licaService->createLineItemCreativeAssociations(array($lica)); + $lica = $licas[0]; + + printf("A LICA with line item ID %d and creative set ID %d was created.", + $lica->lineItemId, $lica->creativeSetId); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201311/CreativeService/CreateCreativeFromTemplateExample.php new file mode 100755 index 000000000..7fcbcccfc --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/CreateCreativeFromTemplateExample.php @@ -0,0 +1,129 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Use the image banner with optional third party tracking template. + $creativeTemplateId = 10000680; + + // Create the local custom creative object. + $templateCreative = new TemplateCreative(); + $templateCreative->name = 'Template creative'; + $templateCreative->advertiserId = $advertiserId; + $templateCreative->creativeTemplateId = $creativeTemplateId; + + // Set the creative size. + $templateCreative->size = new Size(300, 250, FALSE); + + // Create the asset variable value. + $assetVariableValue = new AssetCreativeTemplateVariableValue(); + $assetVariableValue->uniqueName = 'Imagefile'; + $assetVariableValue->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + // Filenames must be unique. + $assetVariableValue->fileName = sprintf('image%s.jpg', uniqid()); + $templateCreative->creativeTemplateVariableValues[] = $assetVariableValue; + + // Create the image width variable value. + $imageWidthVariableValue = new LongCreativeTemplateVariableValue(); + $imageWidthVariableValue->uniqueName = 'Imagewidth'; + $imageWidthVariableValue->value = 300; + $templateCreative->creativeTemplateVariableValues[] = + $imageWidthVariableValue; + + // Create the image height variable value. + $imageHeightVariableValue = new LongCreativeTemplateVariableValue(); + $imageHeightVariableValue->uniqueName = 'Imageheight'; + $imageHeightVariableValue->value = 250; + $templateCreative->creativeTemplateVariableValues[] = + $imageHeightVariableValue; + + // Create the URL variable value. + $urlVariableValue = new UrlCreativeTemplateVariableValue(); + $urlVariableValue->uniqueName = 'ClickthroughURL'; + $urlVariableValue->value = 'www.google.com'; + $templateCreative->creativeTemplateVariableValues[] = $urlVariableValue; + + // Create the target window variable value. + $targetWindowVariableValue = new StringCreativeTemplateVariableValue(); + $targetWindowVariableValue->uniqueName = 'Targetwindow'; + $targetWindowVariableValue->value = '_blank'; + $templateCreative->creativeTemplateVariableValues[] = + $targetWindowVariableValue; + + // Create the template creative on the server. + $templateCreative = $creativeService->createCreative($templateCreative); + + // Display results. + if (isset($templateCreative)) { + printf("A template creative with ID '%s', name '%s', and type '%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->CreativeType, + $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201311/CreativeService/CreateCreativesExample.php new file mode 100755 index 000000000..491396c49 --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/CreateCreativesExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create an array to store local image creative objects. + $imageCreatives = array(); + + for ($i = 0; $i < 5; $i++) { + // Create creative size. + $size = new Size(300, 250); + + // Create an image creative. + $imageCreative = new ImageCreative(); + $imageCreative->name = 'Image creative #' . $i; + $imageCreative->advertiserId = $advertiserId; + $imageCreative->destinationUrl = 'http://google.com'; + $imageCreative->size = $size; + + // Create image asset. + $creativeAsset = new CreativeAsset(); + $creativeAsset->fileName = 'image.jpg'; + $creativeAsset->assetByteArray = + MediaUtils::GetBase64Data('http://www.google.com/intl/en/adwords/' + . 'select/images/samples/inline.jpg'); + $creativeAsset->size = $size; + $imageCreative->primaryImageAsset = $creativeAsset; + + $imageCreatives[] = $imageCreative; + } + + // Create the image creatives on the server. + $imageCreatives = $creativeService->createCreatives($imageCreatives); + + // Display results. + if (isset($imageCreatives)) { + foreach ($imageCreatives as $creative) { + // Use instanceof to determine what type of creative was returned. + if ($creative instanceof ImageCreative) { + print 'An image creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and size {' . $creative->size->width + . ', ' . $creative->size->height . "} was created and\n" + . ' can be previewed at: ' . $creative->previewUrl . "\n"; + } else { + print 'A creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was created.\n"; + } + } + } else { + print "No creatives created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201311/CreativeService/CreateCustomCreativeExample.php new file mode 100755 index 000000000..ba8401972 --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/CreateCustomCreativeExample.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set the ID of the advertiser (company) that all creatives will be + // assigned to. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create the local custom creative object. + $customCreative = new CustomCreative(); + $customCreative->name = 'Custom creative'; + $customCreative->advertiserId = $advertiserId; + $customCreative->destinationUrl = 'http://google.com'; + + // Set the custom creative image asset. + $customCreativeAsset = new CustomCreativeAsset(); + $customCreativeAsset->macroName = 'IMAGE_ASSET'; + // Filenames must be unique. + $customCreativeAsset->fileName = sprintf('inline%s.jpg', uniqid()); + $customCreativeAsset->assetByteArray = MediaUtils::GetBase64Data( + 'http://www.google.com/intl/en/adwords/select/images/samples/inline.jpg'); + $customCreative->customCreativeAssets = array($customCreativeAsset); + + // Set the HTML snippet using the custom creative asset macro. + $customCreative->htmlSnippet = '' + . '' + . '
Click above for great deals!'; + + // Set the creative size. + $customCreative->size = new Size(300, 250, FALSE); + + // Create the custom creative on the server. + $customCreative = $creativeService->createCreative($customCreative); + + // Display results. + if (isset($customCreative)) { + printf("A custom creative with ID '%s', name '%s', and size '%sx%s' was " + . "created and can be previewed at: %s\n", $templateCreative->id, + $templateCreative->name, $templateCreative->size->width, + $templateCreative->size->height, $templateCreative->previewUrl); + } else { + print "No creative was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201311/CreativeService/GetAllCreativesExample.php new file mode 100755 index 000000000..8d736c984 --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/GetAllCreativesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set defaults for page and statement. + $page = new CreativePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creatives. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeService/GetCreativeExample.php b/examples/Dfp/v201311/CreativeService/GetCreativeExample.php new file mode 100755 index 000000000..479c4917c --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/GetCreativeExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Set the ID of the creative to get. + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the creative. + $creative = $creativeService->getCreative($creativeId); + + // Display results. + if (isset($creative)) { + print 'Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType . "\" was found.\n"; + } else { + print "No creative found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201311/CreativeService/GetCreativesByStatementExample.php new file mode 100755 index 000000000..56911b7ae --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/GetCreativesByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('creativeType' => new TextValue('ImageCreative'))); + + // Create a statement to only select image creatives. + $filterStatement = + new Statement("WHERE creativeType = :creativeType LIMIT 500", $vars); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creative) { + print $i . ') Creative with ID "' . $creative->id + . '", name "' . $creative->name + . '", and type "' . $creative->CreativeType + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201311/CreativeService/UpdateCreativesExample.php new file mode 100755 index 000000000..bd747366e --- /dev/null +++ b/examples/Dfp/v201311/CreativeService/UpdateCreativesExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201311'); + + // Create a statement to get all image creatives. + $filterStatement = + new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement($filterStatement); + + if (isset($page->results)) { + $creatives = $page->results; + + // Update each local creative object by changing its destination URL. + foreach ($creatives as $creative) { + $creative->destinationUrl = 'http://news.google.com'; + } + + // Update the creatives on the server. + $creatives = $creativeService->updateCreatives($creatives); + + // Display results. + if (isset($creatives)) { + foreach ($creatives as $creative) { + print 'An image creative with ID "' . $creative->id + . '" and destination URL "' . $creative->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No creatives updated.\n"; + } + } else { + print "No creatives found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeSetService/CreateCreativeSetExample.php b/examples/Dfp/v201311/CreativeSetService/CreateCreativeSetExample.php new file mode 100755 index 000000000..3db4ee394 --- /dev/null +++ b/examples/Dfp/v201311/CreativeSetService/CreateCreativeSetExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201311'); + + // Set the ID of the creatives to associate with this set. + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + // Create a local creative set. + $creativeSet = new CreativeSet(); + $creativeSet->name = 'Creative set #' . uniqid(); + $creativeSet->masterCreativeId = $masterCreativeID; + $creativeSet->companionCreativeIds = array(); + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + // Create the creative set on the server. + $creativeSet = $creativeSetService->createCreativeSet($creativeSet); + + // Display results. + if (isset($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, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201311/CreativeSetService/GetAllCreativesSetsExample.php new file mode 100755 index 000000000..430a037db --- /dev/null +++ b/examples/Dfp/v201311/CreativeSetService/GetAllCreativesSetsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201311'); + + // Set default offset. + $offset = 0; + $filterStatement = new Statement(); + + do { + // Create a statement to get all creative sets. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201311/CreativeSetService/GetCreativeSetsByStatementExample.php new file mode 100755 index 000000000..2d2ce2411 --- /dev/null +++ b/examples/Dfp/v201311/CreativeSetService/GetCreativeSetsByStatementExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201311'); + + $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('masterCreativeId' => new NumberValue($masterCreativeID))); + + // Create a statement object to only select creative sets that have the given + // master creative. + $filterStatement = + new Statement("WHERE masterCreativeId = :masterCreativeId LIMIT 500", + $vars); + + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was found.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeSetService/UpdateCreativeSetExample.php b/examples/Dfp/v201311/CreativeSetService/UpdateCreativeSetExample.php new file mode 100755 index 000000000..8bf9b984c --- /dev/null +++ b/examples/Dfp/v201311/CreativeSetService/UpdateCreativeSetExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201311'); + + # Set the ID of the creative set to get. + $creativeSetID = 'INSERT_CREATIVE_SET_ID_HERE'; + $companionCreativeID = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + + # Get creative set. + $creativeSet = $creativeSetService->getCreativeSet($creativeSetID); + + $creativeSet->companionCreativeIds[] = $companionCreativeID; + + # Update the creative set on the server. + $creativeSet = $creativeSetService->updateCreativeSet($creativeSet); + + // Display results. + if (isset($creativeSet)) { + printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was updated.\n", + $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, + join(',', $creativeSet->companionCreativeIds)); + } else { + print "No creative set found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201311/CreativeTemplateService/GetAllCreativeTemplatesExample.php new file mode 100755 index 000000000..f8c040603 --- /dev/null +++ b/examples/Dfp/v201311/CreativeTemplateService/GetAllCreativeTemplatesExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201311'); + + // Set defaults for page and statement. + $page = new CreativeTemplatePage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all creative templates. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplateExample.php b/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplateExample.php new file mode 100755 index 000000000..dbadd82a2 --- /dev/null +++ b/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplateExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201311'); + + // Set the ID of the creative template to get. + $creativeTemplateId = 'INSERT_CREATIVE_TEMPLATE_ID_HERE'; + + // Get the creative template. + $creativeTemplate = + $creativeTemplateService->getCreativeTemplate($creativeTemplateId); + + // Display results. + if (isset($creativeTemplate)) { + printf("Creative template with ID '%s', name '%s', and type '%s' was " + ."found.\n", $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } else { + print "No creative template found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php new file mode 100755 index 000000000..6e26ce94c --- /dev/null +++ b/examples/Dfp/v201311/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php @@ -0,0 +1,84 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = + $user->GetService('CreativeTemplateService', 'v201311'); + + // Create a statement to only select system defined creative templates. + $filterStatement = + new Statement("WHERE type = :type LIMIT 500"); + $filterStatement->values = MapUtils::GetMapEntries( + array('type' => new TextValue('SYSTEM_DEFINED'))); + + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID '%s', name '%s', and type '%s' " + ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201311/CreativeWrapperService/CreateCreativeWrappersExample.php new file mode 100755 index 000000000..4597e636a --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/CreateCreativeWrappersExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; + + // Create creative wrapper objects. + $creativeWrapper = new CreativeWrapper(); + $creativeWrapper->labelId = $labelId; + $creativeWrapper->ordering = 'INNER'; + $creativeWrapper->header = new CreativeWrapperHtmlSnippet; + $creativeWrapper->header->htmlSnippet = 'My creative wrapper header'; + $creativeWrapper->footer = new CreativeWrapperHtmlSnippet; + $creativeWrapper->footer->htmlSnippet = 'My creative wrapper footer'; + + // Create the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService->CreateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%d' applying to label '%d' was" . + " created.\n", $creativeWrapper->id, $creativeWrapper->labelId); + } + } else { + print "No creative wrappers were created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201311/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201311/CreativeWrapperService/DeactivateCreativeWrapperExample.php new file mode 100755 index 000000000..1a1ec94fc --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/DeactivateCreativeWrapperExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Create a query to select the active creative wrappers for the given label. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'), + 'labelId' => new NumberValue($labelId))); + $filterStatement = + new Statement('WHERE status = :status AND labelId = :labelId', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' will be deactivated.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of creative wrappers to be deactivated: %s\n", + $page->totalResultSetSize); + + // Perform action. + $result = $creativeWrapperService->performCreativeWrapperAction( + new DeactivateCreativeWrappers(), $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of creative wrappers deactivated: %s\n", + $result->numChanges); + } else { + printf("No creative wrappers were deactivated.\n"); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201311/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201311/CreativeWrapperService/GetActiveCreativeWrappersExample.php new file mode 100755 index 000000000..dd47b0d28 --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/GetActiveCreativeWrappersExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + // Create a statement to select only active creative wrappers. + $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); + $filterStatement = + new Statement('WHERE status = :status', $vars); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201311/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201311/CreativeWrapperService/GetAllCreativeWrappersExample.php new file mode 100755 index 000000000..ba10eb1f0 --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/GetAllCreativeWrappersExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + // Get creative wrappers by statement. + $page = + $creativeWrapperService->getCreativeWrappersByStatement(new Statement()); + + // Display results. + if (isset($page->results)) { + foreach ($page->results as $creativeWrapper) { + printf("Creative wrapper with ID '%s' applying to label '%s' with" . + " status '%s' was found.\n", $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + printf("Number of results found: %s\n", $page->totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201311/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201311/CreativeWrapperService/UpdateCreativeWrappersExample.php new file mode 100755 index 000000000..99af2fb9d --- /dev/null +++ b/examples/Dfp/v201311/CreativeWrapperService/UpdateCreativeWrappersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetCreativeWrapperService('v201311'); + + $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + + // Get creative wrapper. + $creativeWrapper = + $creativeWrapperService->getCreativeWrapper($creativeWrapperId); + + if (isset($creativeWrapper)) { + $creativeWrapper->ordering = 'OUTER'; + + // Update the creative wrappers on the server. + $creativeWrappers = + $creativeWrapperService-> + updateCreativeWrappers(array($creativeWrapper)); + + // Display results. + if (isset($creativeWrappers)) { + foreach ($creativeWrappers as $creativeWrapper) { + printf("Creative wrapper with ID '%s' and wrapping order '%s' was" . + " updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + } + } else { + printf('No creative wrappers were updated.'); + } + } else { + print "No creative wrappers found to update."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + diff --git a/examples/Dfp/v201311/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201311/CustomFieldService/CreateCustomFieldOptions.php new file mode 100755 index 000000000..f1d865bb6 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/CreateCustomFieldOptions.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201311'); + + // Set the ID of the drop-down custom field to create options for. + $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + + // Create custom field options. + $customFieldOption1 = new CustomFieldOption(); + $customFieldOption1->displayName = 'Approved'; + $customFieldOption1->customFieldId = $customFieldId; + + $customFieldOption2 = new CustomFieldOption(); + $customFieldOption2->displayName = 'Unapproved'; + $customFieldOption2->customFieldId = $customFieldId; + + // Create the custom targeting keys on the server. + $customFieldOptions = $customFieldService->createCustomFieldOptions( + array($customFieldOption1, $customFieldOption2)); + + // Display results. + if (isset($customFieldOptions)) { + foreach ($customFieldOptions as $customFieldOption) { + printf("A custom field option with ID '%s' and name '%s' was created.\n", + $customFieldOption->id, $customFieldOption->displayName); + } + } else { + print "No custom field options were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201311/CustomFieldService/CreateCustomFields.php new file mode 100755 index 000000000..8fe721a38 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/CreateCustomFields.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = + $user->GetService('CustomFieldService', 'v201311'); + + // Create custom fields. + $customField1 = new CustomField(); + $customField1->name = 'Customer comments #' . time(); + $customField1->entityType = 'LINE_ITEM'; + $customField1->dataType = 'STRING'; + $customField1->visibility = 'FULL'; + + $customField2 = new CustomField(); + $customField2->name = 'Internal approval status #' . time(); + $customField2->entityType = 'LINE_ITEM'; + $customField2->dataType = 'DROP_DOWN'; + $customField2->visibility = 'FULL'; + + // Create the custom fields on the server. + $customFields = $customFieldService->createCustomFields( + array($customField1, $customField2)); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + printf("A custom field with ID '%s' and name '%s' was created.\n", + $customField->id, $customField->name); + } + } else { + print "No custom fields were created.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201311/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php new file mode 100755 index 000000000..595ed14ec --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php @@ -0,0 +1,123 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('entityType' => new TextValue("LINE_ITEM"), + 'isActive' => new BooleanValue("TRUE"))); + + // Create statement text to select only active custom fields that apply + // to line items. + $filterStatementText = + "WHERE entityType = :entityType and isActive = :isActive"; + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + $customFieldIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' + . $customField->id . '" and name "' . $customField->name + . "\" will be deactivated.\n"; + $i++; + $customFieldIds[] = $customField->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) + . "\n"; + + if (sizeof($customFieldIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of custom fields deactivated: ' . $result->numChanges + . "\n"; + } else { + print "No custom fields were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201311/CustomFieldService/GetAllCustomFieldsExample.php new file mode 100755 index 000000000..b38c16733 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/GetAllCustomFieldsExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201311'); + + // Set defaults for page and statement. + $page = new CustomFieldPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all custom fields. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $customField) { + print $i . ') Custom field with ID "' . $customField->id + . '" and name "' . $customField->name . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201311/CustomFieldService/SetLineItemCustomFieldValue.php new file mode 100755 index 000000000..981aef259 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/SetLineItemCustomFieldValue.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201311'); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the IDs of the custom fields, custom field option, and line item. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $dropDownCustomFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; + $customFieldOptionId = "INSERT_CUSTOM_FIELD_OPTION_ID_HERE"; + $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Create custom field values. + $customFieldValues = array(); + + $customFieldValue = new CustomFieldValue(); + $customFieldValue->customFieldId = $customFieldId; + $customFieldValue->value = new TextValue("Custom field value"); + $customFieldValues[] = $customFieldValue; + + $dropDownCustomFieldValue = new DropDownCustomFieldValue(); + $dropDownCustomFieldValue->customFieldId = $dropDownCustomFieldId; + $dropDownCustomFieldValue->customFieldOptionId = $customFieldOptionId; + $customFieldValues[] = $dropDownCustomFieldValue; + + // Only add existing custom field values for different custom fields than + // the ones you are setting. + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $oldCustomFieldValue) { + if (($oldCustomFieldValue->customFieldId != $customFieldId) && + ($oldCustomFieldValue->customFieldId != $dropDownCustomFieldId)) { + $customFieldValues[] = $oldCustomFieldValue; + } + } + } + + $lineItem->customFieldValues = $customFieldValues; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems($lineItem); + + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + $customFieldValueStrings = array(); + foreach ($lineItem->customFieldValues as $baseCustomFieldValue) { + if (($baseCustomFieldValue instanceof CustomFieldValue)) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId . "', value: '" + . $baseCustomFieldValue->value->value . "'}"; + } else if ($baseCustomFieldValue instanceof DropDownCustomFieldValue) { + $customFieldValueStrings[] = "{ID: '" + . $baseCustomFieldValue->customFieldId + . "', custom field option ID: '" + . $baseCustomFieldValue->customFieldOptionId . "'}"; + } + } + print "A line item with ID '" . $lineItem->id + . "' was set with custom field values '" + . join(",", $customFieldValueStrings) . "'."; + } + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201311/CustomFieldService/UpdateCustomFieldExample.php new file mode 100755 index 000000000..4bb23f5e5 --- /dev/null +++ b/examples/Dfp/v201311/CustomFieldService/UpdateCustomFieldExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201311'); + + // Set the ID of the custom field to update. + $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + + // Get the custom field. + $customField = $customFieldService->getCustomField($customFieldId); + + if (isset($customField)) { + $customField->description = "Description " . time(); + + $customFields = array(); + $customFields[] = $customField; + + // Update the custom field on the server. + $customFields = $customFieldService->updateCustomFields($customFields); + + // Display results. + if (isset($customFields)) { + foreach ($customFields as $customField) { + print 'Custom field with ID "' + . $customField->id . '", name "' . $customField->name + . '", and description "' . $customField->description + . "\" was updated.\n"; + } + } else { + print "No custom fields were updated.\n"; + } + } else { + print "No custom fields found to update.\n"; + } + +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201311/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..1f2ec5f4b --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Create predefined key. + $genderKey = new CustomTargetingKey(); + $genderKey->displayName = 'gender'; + $genderKey->name = 'g'; + $genderKey->type = 'PREDEFINED'; + + // Create predefined key that may be used for content targeting. + $genreKey = new CustomTargetingKey(); + $genreKey->displayName = 'genre'; + $genreKey->name = 'genre'; + $genreKey->type = 'PREDEFINED'; + + // Create free-form key. + $carModelKey = new CustomTargetingKey(); + $carModelKey->displayName = 'car model'; + $carModelKey->name = 'c'; + $carModelKey->type = 'FREEFORM'; + + // Create the custom targeting keys on the server. + $keys = $customTargetingService->createCustomTargetingKeys( + array($genderKey, $genreKey, $carModelKey)); + + if (isset($keys)) { + foreach ($keys as $key) { + printf("A custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was created.\n", $key->id, $key->name, $key->displayName); + } + } else { + print "No keys were created.\n"; + } + + // Create custom targeting value for the predefined gender key. + $genderMaleValue = new CustomTargetingValue(); + $genderMaleValue->customTargetingKeyId = $keys[0]->id; + $genderMaleValue->displayName = 'male'; + // Name is set to 1 so that the actual name can be hidden from website + // users. + $genderMaleValue->name = '1'; + $genderMaleValue->matchType = 'EXACT'; + + $genderFemaleValue = new CustomTargetingValue(); + $genderFemaleValue->customTargetingKeyId = $keys[0]->id; + $genderFemaleValue->displayName = 'female'; + // Name is set to 2 so that the actual name can be hidden from website + // users. + $genderFemaleValue->name = '2'; + $genderFemaleValue->matchType = 'EXACT'; + + // Create custom targeting value for the predefined genre key. + $genreComedyValue = new CustomTargetingValue(); + $genreComedyValue->customTargetingKeyId = $keys[1]->id; + $genreComedyValue->displayName = 'comedy'; + $genreComedyValue->name = 'comedy'; + $genreComedyValue->matchType = 'EXACT'; + + $genreDramaValue = new CustomTargetingValue(); + $genreDramaValue->customTargetingKeyId = $keys[1]->id; + $genreDramaValue->displayName = 'drama'; + $genreDramaValue->name = 'drama'; + $genreDramaValue->matchType = 'EXACT'; + + // Create custom targeting value for the free-form age key. These are + // values that would be suggested in the UI or can be used when targeting + // with a free-form custom criterion. + $carModelHondaCivicValue = new CustomTargetingValue(); + $carModelHondaCivicValue->customTargetingKeyId = $keys[2]->id; + $carModelHondaCivicValue->displayName = 'honda civic'; + $carModelHondaCivicValue->name = 'honda civic'; + // Setting match type to exact will match exactly 'honda civic'. + $carModelHondaCivicValue->matchType = 'EXACT'; + + // Create the custom targeting values on the server. + $values = $customTargetingService->createCustomTargetingValues(array( + $genderMaleValue, $genderFemaleValue, $genreComedyValue, + $genreDramaValue, $carModelHondaCivicValue)); + + if (isset($values)) { + foreach ($values as $value) { + printf("A custom targeting value with ID '%s', belonging to key " . + "with ID '%s', name '%s', and display name '%s' was created.\n", + $value->id, $value->customTargetingKeyId, $value->name, + $value->displayName); + } + } else { + print "No values were created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingKeysExample.php new file mode 100755 index 000000000..afd7f7b26 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingKeysExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Set the name of the custom targeting key to delete. + $keyName = 'INSERT_CUSTOM_TARGETING_KEY_NAME_HERE'; + + // Create statement text to only select custom targeting key by the given + // name. + $filterStatementText = 'WHERE name = :name'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + + $offset = 0; + $keyIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingKey) { + $keyIds[] = $customTargetingKey->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting keys to be deleted: %d\n", + sizeof($keyIds)); + + if (sizeof($keyIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeleteCustomTargetingKeys(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingKeyAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting keys deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting keys were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingValuesExample.php new file mode 100755 index 000000000..56d5a1234 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/DeleteCustomTargetingValuesExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Set ID of the custom targeting key to delete values from. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create statement text to only select custom values by the given custom + // targeting key ID. + $filterStatementText = 'WHERE customTargetingKeyId = :keyId'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + + $offset = 0; + $valueIds = array(); + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset, $vars); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + foreach ($page->results as $customTargetingValue) { + $valueIds[] = $customTargetingValue->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + printf("Number of custom targeting values to be deleted: %d\n", + sizeof($valueIds)); + + if (sizeof($valueIds) > 0) { + // Create action statement. + $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteCustomTargetingValues(); + + // Perform action. + $result = $customTargetingService->performCustomTargetingValueAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom targeting values deleted: %d\n", + $result->numChanges); + } else { + print "No custom targeting values were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201311/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php new file mode 100755 index 000000000..a9edf1569 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + $keys = array(); + $offset = 0; + + do { + // Create statement to page through all custom targeting keys. + $filterStatement = new Statement('LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = array_merge($keys, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + + $values = array(); + + if (sizeof($keys) > 0) { + $keyIds = array_map(create_function('$key', 'return $key->id;'), $keys); + + // Create statement text to all custom targeting values for all custom + // targeting keys. + $filterStatementText = sprintf('WHERE customTargetingKeyId IN (%s)', + implode(',', $keyIds)); + $offset = 0; + + do { + // Create statement to page through all custom targeting values. + $filterStatement = new Statement($filterStatementText . + ' LIMIT 500 OFFSET ' . $offset); + + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = array_merge($values, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + } + + // Create map of custom targeting key id to custom targeting values. + $keyIdToValueMap = array(); + foreach ($values as $value) { + $keyIdToValueMap[$value->customTargetingKeyId][] = $value; + } + + // Display keys and values. + $keyCount = 0; + foreach ($keys as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $keyCount, $key->id, + $key->name, $key->displayName, $key->type); + if (array_key_exists($key->id, $keyIdToValueMap)) { + $valueCount = 0; + foreach ($keyIdToValueMap[$key->id] as $value) { + printf("\t%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $valueCount, $value->id, + $value->name, $value->displayName); + $valueCount++; + } + } + $keyCount++; + } + + printf("Found %d keys and %d values.\n", sizeof($keys), sizeof($values)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php new file mode 100755 index 000000000..c048c2c99 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Create a statement to only select predefined custom targeting keys. + $filterStatement = new Statement('WHERE type = :type LIMIT 500', + MapUtils::GetMapEntries(array('type' => new TextValue('PREDEFINED')))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting key with ID '%s', name '%s', display " . + "name '%s', and type '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName, $key->type); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php new file mode 100755 index 000000000..8c509a5ac --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $key) { + printf("%d) Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was found.\n", $i, $key->id, $key->name, + $key->displayName); + $i++; + } + } + + printf("Number of results found: %d\n", sizeof($page->results)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingKeysExample.php new file mode 100755 index 000000000..db218b070 --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingKeysExample.php @@ -0,0 +1,100 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Create a statement to get all custom targeting keys. + $filterStatement = new Statement('LIMIT 500'); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $filterStatement); + + if (isset($page->results)) { + $keys = $page->results; + + // Update each local custom targeting key object by changing its display + // name. + foreach ($keys as $key) { + if (empty($key->displayName)) { + $key->displayName = $key->name; + } + $key->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting keys on the server. + $keys = $customTargetingService->updateCustomTargetingKeys($keys); + + // Display results. + if (isset($keys)) { + foreach ($page->results as $key) { + printf("Custom targeting key with ID '%s', name '%s', and display " . + "name '%s' was updated.\n", $key->id, $key->name, + $key->displayName); + } + } else { + print "No custom targeting keys updated.\n"; + } + } else { + print "No custom targeting keys found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingValuesExample.php new file mode 100755 index 000000000..f6d8b51ff --- /dev/null +++ b/examples/Dfp/v201311/CustomTargetingService/UpdateCustomTargetingValuesExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201311'); + + // Set the ID of the custom targeting key to get custom targeting values for. + $valueId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + + // Create a statement to only select custom targeting values for a given key. + $filterStatement = new Statement( + 'WHERE customTargetingKeyId = :keyId LIMIT 500', + MapUtils::GetMapEntries(array('keyId' => new NumberValue($valueId)))); + + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $filterStatement); + + if (isset($page->results)) { + $values = $page->results; + + // Update each local custom targeting value object by changing its display + // name. + foreach ($values as $value) { + if (empty($value->displayName)) { + $value->displayName = $value->name; + } + $value->displayName .= ' (Deprecated)'; + } + + // Update the custom targeting values on the server. + $values = $customTargetingService->updateCustomTargetingValues($values); + + // Display results. + if (isset($values)) { + foreach ($page->results as $value) { + printf("Custom targeting value with ID '%s', name '%s', and " . + "display name '%s' was updated.\n", $value->id, $value->name, + $value->displayName); + } + } else { + print "No custom targeting values updated.\n"; + } + } else { + print "No custom targeting values found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201311/ForecastService/GetForecastByIdExample.php new file mode 100755 index 000000000..e7198b8ab --- /dev/null +++ b/examples/Dfp/v201311/ForecastService/GetForecastByIdExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201311'); + + // Set the line item to get a forecast for. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get forecast for line item. + $forecast = $forecastService->getForecastById($lineItemId); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n", $percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ForecastService/GetForecastExample.php b/examples/Dfp/v201311/ForecastService/GetForecastExample.php new file mode 100755 index 000000000..1974fc459 --- /dev/null +++ b/examples/Dfp/v201311/ForecastService/GetForecastExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201311'); + + // Set the placement ID that the prospective line item will target. + $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Create prospective line item. + $lineItem = new LineItem(); + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); + + // Set targeting for line item. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $lineItem->targeting = $targeting; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the line item's time to be now until the projected end date time. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 week')); + + // Set the line item to use 50% of the impressions. + $lineItem->unitType = 'IMPRESSIONS'; + $lineItem->unitsBought = 50; + + // Set the cost type to match the unit type. + $lineItem->costType = 'CPM'; + + // Get forecast for line item. + $forecast = $forecastService->getForecast($lineItem); + + // Display results. + $matchedUnits = $forecast->matchedUnits; + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + $unitType = strtolower($forecast->unitType); + + printf("%d %s matched.\n", $matchedUnits, $unitType); + printf("%d%% %s available.\n",$percentAvailableUnits, $unitType); + + if (isset($forecast->possibleUnits)) { + $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; + printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + } + + printf("%d contending line items.\n", count($forecast->contendingLineItems)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201311/InventoryService/CreateAdUnitsExample.php new file mode 100755 index 000000000..1c53674df --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/CreateAdUnitsExample.php @@ -0,0 +1,105 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create an array to store local ad unit objects. + $adUnits = array(); + + for ($i = 0; $i < 5; $i++) { + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(300, 250, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + $adUnits[] = $adUnit; + } + + // Create the ad units on the server. + $adUnits = $inventoryService->createAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'An ad unit with ID "' . $adUnit->id + . '" was created under parent with ID "' . $adUnit->parentId + . "\".\n"; + } + } else { + print "No ad units created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201311/InventoryService/CreateMobileAdUnitExample.php new file mode 100755 index 000000000..f64663d27 --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/CreateMobileAdUnitExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + $adUnit = new AdUnit(); + $adUnit->name = uniqid('Mobile_Ad_Unit_'); + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->targetPlatform = 'MOBILE'; + $adUnit->mobilePlatform = 'APPLICATION'; + + // Create ad unit size. + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = new Size(400, 300, FALSE); + $adUnitSize->environmentType = 'BROWSER'; + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($adUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201311/InventoryService/CreateVideoAdUnitExample.php new file mode 100755 index 000000000..956f9b4e7 --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/CreateVideoAdUnitExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the effective root ad unit's ID for all ad units to be created under. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create local ad unit object. + $adUnit = new AdUnit(); + $adUnit->name = 'Video_Ad_Unit'; + $adUnit->parentId = $effectiveRootAdUnitId; + $adUnit->description = 'Ad unit description.'; + $adUnit->targetWindow = 'BLANK'; + $adUnit->explicitlyTargeted = TRUE; + $adUnit->targetPlatform = 'WEB'; + + // Create master ad unit size. + $masterAdUnitSize = new AdUnitSize(); + $masterAdUnitSize->size = new Size(400, 300, FALSE); + $masterAdUnitSize->environmentType = 'VIDEO_PLAYER'; + + // Create companion sizes. + $companionAdUnitSize1 = new AdUnitSize(); + $companionAdUnitSize1->size = new Size(300, 250, FALSE); + $companionAdUnitSize1->environmentType = 'BROWSER'; + + $companionAdUnitSize2 = new AdUnitSize(); + $companionAdUnitSize2->size = new Size(728, 90, FALSE); + $companionAdUnitSize2->environmentType = 'BROWSER'; + + // Add companions to master ad unit size. + $masterAdUnitSize->companions = + array($companionAdUnitSize1, $companionAdUnitSize2); + + // Set the size of possible creatives that can match this ad unit. + $adUnit->adUnitSizes = array($masterAdUnitSize); + + // Create the ad unit on the server. + $adUnit = $inventoryService->createAdUnit($adUnit); + + // Display results. + if (isset($adUnit)) { + printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", + $adUnit->id, $adUnit->parentId); + } else { + print "No ad unit was created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201311/InventoryService/DeactivateAdUnitsExample.php new file mode 100755 index 000000000..bba851767 --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/DeactivateAdUnitsExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create statement text to get all active ad units. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + $adUnitIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" will be deactivated.\n"; + $i++; + $adUnitIds[] = $adUnit->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + + if (sizeof($adUnitIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + } else { + print "No ad units were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/InventoryService/GetAdUnitExample.php b/examples/Dfp/v201311/InventoryService/GetAdUnitExample.php new file mode 100755 index 000000000..0c0c9ee6a --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetAdUnitExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Set the ID of the ad unit to get. + $adUnitId = 'INSERT_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $adUnit = $inventoryService->getAdUnit($adUnitId); + + // Display results. + if (isset($adUnit)) { + print 'Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + } else { + print "No ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201311/InventoryService/GetAdUnitSizesExample.php new file mode 100755 index 000000000..2ab53007d --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetAdUnitSizesExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('targetPlatform' => new TextValue('WEB'))); + + // Create a statement to only select web ad units sizes. + $filterStatement = new Statement("WHERE targetPlatform = :targetPlatform", + $vars); + + // Get all ad unit sizes by statement. + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + + // Display results. + $i = 0; + foreach ($adUnitSizes as $adUnitSize) { + printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + $adUnitSize->fullDisplayString); + $i++; + } + + printf ("Number of ad unit sizes found: %d\n", count($adUnitSizes)); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201311/InventoryService/GetAdUnitsByStatementExample.php new file mode 100755 index 000000000..952094d0d --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetAdUnitsByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the effective root ad unit's ID. + $network = $networkService->getCurrentNetwork(); + $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + + // Create a statement to select the children of the effective root ad unit. + $filterStatement = + new Statement("WHERE parentId = :id LIMIT 500", + MapUtils::GetMapEntries(array( + 'id' => new NumberValue($effectiveRootAdUnitId)))); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201311/InventoryService/GetAllAdUnitsExample.php new file mode 100755 index 000000000..afacd5a8f --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetAllAdUnitsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + print $i . ') Ad unit with ID "' . $adUnit->id + . '", name "' . $adUnit->name + . '", and status "' . $adUnit->status . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201311/InventoryService/GetInventoryTreeExample.php new file mode 100755 index 000000000..20c438b85 --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/GetInventoryTreeExample.php @@ -0,0 +1,206 @@ +GetService('InventoryService', 'v201311'); + + // Create array to hold all ad units. + $adUnits = array(); + + // Set defaults for page and statement. + $page = new AdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = array_merge($adUnits, $page->results); + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + return $adUnits; +} + +/** + * Finds the root ad unit for the user. + * @param DfpUser $user the user to get the root ad unit for + * @return the ad unit representing the root ad unit or NULL if one + * is not found. + * @access private + */ +function FindRootAdUnit(DfpUser $user) { + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create a statement to only select image creatives. + $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + return $page->results[0]; + } else { + return NULL; + } +} + +/** + * Builds and displays an ad unit tree from an array of ad units underneath + * the root ad unit. + * @param AdUnit $root the root ad unit to build the tree under + * @param array $adUnits the array of ad units. + * @access private + */ +function BuildAndDisplayAdUnitTree(AdUnit $root, + array $adUnits) { + $treeMap = array(); + + foreach ($adUnits as $adUnit) { + if (isset($adUnit->parentId)) { + $treeMap[$adUnit->parentId][] = $adUnit; + } + } + + if (isset($root)) { + DisplayInventoryTree($root, $treeMap); + } else { + print "No root unit found.\n"; + } +} + +/** + * Displays the ad unit tree beginning at the root ad unit. + * @param AdUnit $root the root ad unit + * @param array $treeMap the map of id to array of ad units + * @access private + */ +function DisplayInventoryTree(AdUnit $root, array $treeMap) { + DisplayInventoryTreeHelper($root, $treeMap, 0); +} + +/** + * Helper for displaying inventory units. + * @param AdUnit $root the root inventory unit + * @param array $treeMap the map of id to array of inventory units + * @param $depth the depth the tree has reached + * @access private + */ +function DisplayInventoryTreeHelper(AdUnit $root, + array $treeMap, $depth) { + print GenerateTab($depth) . $root->name . ' (' + . $root->id . ")\n"; + + if (isset($treeMap[$root->id])) { + foreach ($treeMap[$root->id] as $child) { + DisplayInventoryTreeHelper($child, + $treeMap, $depth + 1); + } + } +} + +/** + * Generates a string of tabs to represent branching to children. + * @param $depth a depth from 0 to max(depth) + * @return string a string to insert in front of the root unit + * @access private + */ +function GenerateTab($depth) { + $tab = ''; + + if ($depth != 0) { + $tab .= ' '; + } + + for ($i = 1; $i < $depth; $i++) { + $tab .= '| '; + } + + return $tab . '+--'; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogDefaults(); + + $allAdUnits = GetAllAdUnits($user); + + // Find the root ad unit. rootAdUnit can also be set to child unit to + // only build and display a portion of the tree. + // i.e. $adUnit = $inventoryService->getAdUnit("INSERT_AD_UNIT_ID_HERE") + $rootAdUnit = FindRootAdUnit($user); + + if (isset($rootAdUnit)) { + BuildAndDisplayAdUnitTree($rootAdUnit, $allAdUnits); + } else { + print "Could not build tree. No root ad unit found.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + + + diff --git a/examples/Dfp/v201311/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201311/InventoryService/UpdateAdUnitsExample.php new file mode 100755 index 000000000..8aa06d9cd --- /dev/null +++ b/examples/Dfp/v201311/InventoryService/UpdateAdUnitsExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create a statement to get all ad units. + $filterStatement = new Statement("LIMIT 500"); + + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + if (isset($page->results)) { + $adUnits = $page->results; + + // Update each local ad unit object by enabling AdSense. + foreach ($adUnits as $adUnit) { + $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; + } + + // Update the ad units on the server. + $adUnits = $inventoryService->updateAdUnits($adUnits); + + // Display results. + if (isset($adUnits)) { + foreach ($adUnits as $adUnit) { + print 'Ad unit with ID "' . $adUnit->id . '", name "' . $adUnit->name + . '", and AdSense enabled "' + . ($adUnit->inheritedAdSenseSettings->value->adSenseEnabled + ? 'TRUE' : 'FALSE') + . "\" was updated.\n"; + } + } + } else { + print "No ad units updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LabelService/CreateLabelsExample.php b/examples/Dfp/v201311/LabelService/CreateLabelsExample.php new file mode 100755 index 000000000..870c4f722 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/CreateLabelsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Create an array to store local label objects. + $labels = array(); + + for ($i = 0; $i < 5; $i++) { + $label = new Label(); + $label->name = 'Label #' . uniqid(); + $label->types = array('COMPETITIVE_EXCLUSION'); + $labels[] = $label; + } + + // Create the labels on the server. + $labels = $labelService->createLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and types {%s} was created.\n", + $label->id, $label->name, join(',', $label->types)); + } + } else { + print "No labels created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201311/LabelService/DeactivateLabelsExample.php new file mode 100755 index 000000000..67fa5eac2 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/DeactivateLabelsExample.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Create statement text to get all active labels. + $filterStatementText = "WHERE isActive = true"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + $labelIds = array(); + if (isset($page->results)) { + foreach ($page->results as $label) { + printf("A label with ID '%s' and name '%s' will be deactivated.\n", + $label->id, $label->name); + $labelIds[] = $label->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + + if (sizeof($labelIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $labelIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + } else { + print "No labels were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201311/LabelService/GetAllLabelsExample.php new file mode 100755 index 000000000..b3a587ef5 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/GetAllLabelsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Set defaults for page and statement. + $page = new LabelPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all labels. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LabelService/GetLabelExample.php b/examples/Dfp/v201311/LabelService/GetLabelExample.php new file mode 100755 index 000000000..60ea01d78 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/GetLabelExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Set the ID of the label to get. + $labelId = 'INSERT_LABEL_ID_HERE'; + + // Get the label. + $label = $labelService->getLabel($labelId); + + if (isset($label)) { + printf("Label with ID '%s', name '%s', and type {%s} was found.\n", + $label->id, $label->name, join(",", $label->types)); + } else { + print "No label found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201311/LabelService/GetLabelsByStatementExample.php new file mode 100755 index 000000000..b7c94f089 --- /dev/null +++ b/examples/Dfp/v201311/LabelService/GetLabelsByStatementExample.php @@ -0,0 +1,86 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array()); + + // Create a statement to select labels ordered by name. + $filterStatement = + new Statement("ORDER BY name LIMIT 500", $vars); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", + $i, $label->id, $label->name, join(",", $label->types)); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201311/LabelService/UpdateLabelsExample.php new file mode 100755 index 000000000..68d0e537b --- /dev/null +++ b/examples/Dfp/v201311/LabelService/UpdateLabelsExample.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201311'); + + // Create a statement to only select labels that are active. + $filterStatement = new Statement( + "WHERE isActive = true LIMIT 500"); + + // Get labels by statement. + $page = $labelService->getLabelsByStatement($filterStatement); + + if (isset($page->results)) { + $labels = $page->results; + + // Update each local label object's description. + foreach ($labels as $label) { + $label->description = 'Last updated on ' . date('Ymd'); + } + + // Update the labels on the server. + $labels = $labelService->updateLabels($labels); + + // Display results. + if (isset($labels)) { + foreach ($labels as $label) { + printf("A label with ID '%s', name '%s', and description '%s' was " + . "updated.\n", $label->id, $label->name, $label->description); + } + } else { + print "No labels updated.\n"; + } + } else { + print "No labels found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LicaService/CreateLicasExample.php b/examples/Dfp/v201311/LicaService/CreateLicasExample.php new file mode 100755 index 000000000..7a99effa4 --- /dev/null +++ b/examples/Dfp/v201311/LicaService/CreateLicasExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Set the line item ID and creative ID to associate + // them with. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Create local LICA. + $lica = new LineItemCreativeAssociation(); + $lica->creativeId = $creativeId; + $lica->lineItemId = $lineItemId; + + $licas = array($lica); + + // Create the LICAs on the server. + $licas = $licaService->createLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + } + } else { + print "No LICAs created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201311/LicaService/DeactivateLicasExample.php new file mode 100755 index 000000000..40831ed7d --- /dev/null +++ b/examples/Dfp/v201311/LicaService/DeactivateLicasExample.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create statement text to select active LICAs for a given line item. + $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + $creativeIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" will be deactivated.\n"; + $i++; + $creativeIds[] = $lica->creativeId; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) + . "\n"; + + if (sizeof($lica->creativeId) > 0) { + // Create action statement. + $filterStatementText = sprintf( + 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', + implode(',', $creativeIds)); + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeactivateLineItemCreativeAssociations(); + + // Perform action. + $result = $licaService->performLineItemCreativeAssociationAction($action, + $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + } else { + print "No LICAs were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LicaService/GetAllLicasExample.php b/examples/Dfp/v201311/LicaService/GetAllLicasExample.php new file mode 100755 index 000000000..d95d17223 --- /dev/null +++ b/examples/Dfp/v201311/LicaService/GetAllLicasExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Set defaults for page and statement. + $page = new LineItemCreativeAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all LICAs. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, creative set ID %d, and " . + "status %s was found.\n", $i, $lica->lineItemId, + $lica->creativeSetId, $lica->status); + } else { + printf("%d) LICA with line item ID %d, creative ID %d, and status " . + "%s was found.\n", $i, $lica->lineItemId, $lica->creativeId, + $lica->status); + } + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LicaService/GetLicaExample.php b/examples/Dfp/v201311/LicaService/GetLicaExample.php new file mode 100755 index 000000000..577ce5053 --- /dev/null +++ b/examples/Dfp/v201311/LicaService/GetLicaExample.php @@ -0,0 +1,82 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Set the line item and creative ID to use to retrieve the LICA. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $creativeId = 'INSERT_CREATIVE_ID_HERE'; + + // Get the LICA. + $lica = $licaService->getLineItemCreativeAssociation($lineItemId, + $creativeId); + + // Display results. + if (isset($lica)) { + print 'A LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was found.\n"; + } else { + print "No LICA found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201311/LicaService/GetLicasByStatementExample.php new file mode 100755 index 000000000..a771d3a1a --- /dev/null +++ b/examples/Dfp/v201311/LicaService/GetLicasByStatementExample.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Set the line item to get LICAs by. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('lineItemId' => new NumberValue($lineItemId))); + + // Create a statement to only select LICAs for the given lineItem ID. + $filterStatement = + new Statement("WHERE lineItemId = :lineItemId LIMIT 500", $vars); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lica) { + print $i . ') LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and status "' . $lica->status + . "\" was created.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LicaService/UpdateLicasExample.php b/examples/Dfp/v201311/LicaService/UpdateLicasExample.php new file mode 100755 index 000000000..6beb79bd0 --- /dev/null +++ b/examples/Dfp/v201311/LicaService/UpdateLicasExample.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $licaService = + $user->GetService('LineItemCreativeAssociationService', 'v201311'); + + // Create a statement to get all LICAs. + $filterStatement = new Statement("LIMIT 500"); + + // Get LICAs by statement. + $page = $licaService->getLineItemCreativeAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $licas = $page->results; + + // Update each local LICA object by changing its destination URL. + foreach ($licas as $lica) { + $lica->destinationUrl = 'http://news.google.com'; + } + + // Update the LICAs on the server. + $licas = $licaService->updateLineItemCreativeAssociations($licas); + + // Display results. + if (isset($licas)) { + foreach ($licas as $lica) { + print 'LICA with line item ID "' . $lica->lineItemId + . '", creative ID "' . $lica->creativeId + . '", and destination URL "' . $lica->destinationUrl + . "\" was updated.\n"; + } + } else { + print "No LICAs updated.\n"; + } + } else { + print "No LICAs found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201311/LineItemService/ActivateLineItemsExample.php new file mode 100755 index 000000000..f615bd19b --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/ActivateLineItemsExample.php @@ -0,0 +1,132 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('orderId' => new NumberValue($orderId))); + + // Create statement text to select approved line items from a given order. + $filterStatementText = + "WHERE orderId = :orderId AND status = 'NEEDS_CREATIVES'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + $lineItemIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Archived line items cannot be activated. + if (!$lineItem->isArchived) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" will be activated.\n"; + $i++; + $lineItemIds[] = $lineItem->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of line items to be activated: ' . sizeof($lineItemIds) . "\n"; + + if (sizeof($lineItemIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $lineItemIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ActivateLineItems(); + + // Perform action. + $result = + $lineItemService->performLineItemAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of line items activated: ' . $result->numChanges . "\n"; + } else { + print "No line items were activated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201311/LineItemService/AuditLineItemsGeoTargetingExample.php new file mode 100755 index 000000000..da2219805 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/AuditLineItemsGeoTargetingExample.php @@ -0,0 +1,213 @@ +select($selectStatementOffset); + + if (isset($resultSet->rows)) { + foreach($resultSet->rows as $row) { + $untargetableLocationIds[] = $row->values[0]->value; + } + + $resultSetSize = count($resultSet->rows); + } + + $offset += $LIMIT; + } while ($resultSetSize == $LIMIT); + + return $untargetableLocationIds; +} + +/** + * Finds all untargetable locations. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a list of untargetable location IDs + */ +function getAllUntargetableLocations($user) { + // Tables that represent all different location types. + $LOCATION_TABLES = array('Country', 'Region', 'Metro', 'City', 'Postal_Code'); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', + API_VERSION); + $untargetableLocationIds = array(); + + // Find all untargetable locations for each location type. + foreach ($LOCATION_TABLES as $table) { + $untargetableLocationIds = array_merge($untargetableLocationIds, + getAllUntargetableLocationsHelper($pqlService, $table)); + } + + return $untargetableLocationIds; +} + +/** + * Builds a map of geo targets to the line items targeting them. + * + * @param DfpUser $user the user credentials to use for API calls + * @return a map of geo targets to the line items targeting them + */ +function buildGeoTargetToLineItemsMap($user) { + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', API_VERSION); + + // Set defaults for page and statement. + $LIMIT = 500; + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + // Map of geo targets to all line items targeting it. + $geoTargetToLineItemsMap = array(); + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT '. $LIMIT . ' OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // If a line item has geo targeting, store it in the map. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->targeting->geoTargeting->targetedLocations)) { + foreach ($lineItem->targeting->geoTargeting->targetedLocations as + $targetedLocation) { + $lineItemIds = array(); + if (isset($geoTargetToLineItemsMap[$targetedLocation->id])) { + $lineItemIds = $geoTargetToLineItemsMap[$targetedLocation->id]; + } + $lineItemIds[] = $lineItem->id; + $geoTargetToLineItemsMap[$targetedLocation->id] = $lineItemIds; + } + } + } + } + + $offset += $LIMIT; + } while ($offset < $page->totalResultSetSize); + + return $geoTargetToLineItemsMap; +} + +/** + * Finds all the geo targets in the specified map that are deprecated. + * + * @param array $geoTargetToLineItemsMap a map of geo targets to the line items + * targeting them + * @param array $untargetableLocationIds a list of deprecated location IDs + * @return a map of deprecated geo targets to the line items targeting them + */ +function findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds) { + // A map of deprecated geo targets to the line items targeting them. + $lineItemsToUpdate = array(); + + foreach ($geoTargetToLineItemsMap as $geoTargetId => $lineItemIds) { + if (in_array($geoTargetId, $untargetableLocationIds)) { + $lineItemsToUpdate[$geoTargetId] = $lineItemIds; + } + } + + return $lineItemsToUpdate; +} + +try { + // Get DfpUser from credentials in "../auth.ini" + // relative to the DfpUser.php file's directory. + $user = new DfpUser(); + + // Log SOAP XML request and response. + $user->LogAll(); + + // Find all untargetable locations. + $untargetableLocationIds = getAllUntargetableLocations($user); + printf("Found %d untargetable locations.\n", count($untargetableLocationIds)); + + // Build a map of geo targets to the line items targeting them. + $geoTargetToLineItemsMap = buildGeoTargetToLineItemsMap($user); + + // Find all the deprecated geo targets from that map. + $lineItemsToUpdate = findLineItemsToUpdate($geoTargetToLineItemsMap, + $untargetableLocationIds); + + $i = 0; + // Print the line items that need to be updated. + foreach ($lineItemsToUpdate as $geoTargetId => $lineItemIds) { + printf("%d) The following line items are targeting deprecated location %d" + . " and need to be updated: %s\n", $i, $geoTargetId, implode(', ', + $lineItemIds)); + $i++; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201311/LineItemService/CreateLineItemsExample.php new file mode 100755 index 000000000..7a415299e --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/CreateLineItemsExample.php @@ -0,0 +1,186 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create geographical targeting. + $geoTargeting = new GeoTargeting(); + + // Include the US, Quebec (Canada), and postal code B3P (Canada). + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + $regionLocation = new DfpLocation(); + $regionLocation->id = 20123; + + $postalCodeLocation = new PostalCodeLocation(); + $postalCodeLocation->id = 9000093; + + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Exclude Chicago and the New York metro area. + $cityLocation = new DfpLocation(); + $cityLocation->id = 1016367; + + $metroLocation = new DfpLocation(); + $metroLocation->id = 200501; + $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); + + // Exclude users from US federal government domains. + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + + // Target only the weekend in the browser's timezone. + $saturdayDayPart = new DayPart(); + $saturdayDayPart->dayOfWeek = 'SATURDAY'; + $saturdayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $saturdayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + $sundayDayPart = new DayPart(); + $sundayDayPart->dayOfWeek = 'SUNDAY'; + $sundayDayPart->startTime = new TimeOfDay(0, 'ZERO'); + $sundayDayPart->endTime = new TimeOfDay(24, 'ZERO'); + + // Create day-part targeting. + $dayPartTargeting = new DayPartTargeting(); + $dayPartTargeting->timeZone = 'BROWSER'; + $dayPartTargeting->dayParts = array($saturdayDayPart, $sundayDayPart); + + // Target just the Chrome browser. + $browserTechnology = new Technology(); + $browserTechnology->id = 500072; + + // Create technology targeting. + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($browserTechnology); + $technologyTargeting = new TechnologyTargeting(); + $technologyTargeting->browserTargeting = $browserTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->geoTargeting = $geoTargeting; + $targeting->userDomainTargeting = $userDomainTargeting; + $targeting->dayPartTargeting = $dayPartTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create an array to store local line item objects. + $lineItems = array(); + + for ($i = 0; $i < 5; $i++) { + $lineItem = new LineItem(); + $lineItem->name = 'Line item #' . uniqid(); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = 'TRUE'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is + // $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + $lineItems[] = $lineItem; + } + + // Create the line items on the server. + $lineItems = $lineItemService->createLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with with ID "' . $lineItem->id + . '", belonging to order ID "' . $lineItem->orderId + . '", and name "' . $lineItem->name + . "\" was created.\n"; + } + } else { + print "No line items created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201311/LineItemService/CreateMobileLineItemExample.php new file mode 100755 index 000000000..d85257d50 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/CreateMobileLineItemExample.php @@ -0,0 +1,160 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetPlacementIds = array('INSERT_MOBILE_PLACEMENT_ID_HERE'); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; + + // Create technology targeting. + $technologyTargeting = new TechnologyTargeting(); + + // Create device manufacturer targeting. + $deviceManufacturerTargeting = new DeviceManufacturerTargeting(); + $deviceManufacturerTargeting->isTargeted = TRUE; + + // Target the Google device manufacturer (40100). + $deviceManufacturerTechnology = new Technology(); + $deviceManufacturerTechnology->id = 40100; + $deviceManufacturerTargeting->deviceManufacturers = + array($deviceManufacturerTechnology); + $technologyTargeting->deviceManufacturerTargeting = + $deviceManufacturerTargeting; + + // Create mobile device targeting. + $mobileDeviceTargeting = new MobileDeviceTargeting(); + + // Exclude the Nexus One device (604046). + $mobileDeviceTechnology = new Technology(); + $mobileDeviceTechnology->id = 604046; + $mobileDeviceTargeting->targetedMobileDevices = + array($mobileDeviceTechnology); + $technologyTargeting->mobileDeviceTargeting = $mobileDeviceTargeting; + + // Create mobile device submodel targeting. + $mobileDeviceSubmodelTargeting = new MobileDeviceSubmodelTargeting(); + + // Target the iPhone 4 device submodel (640003). + $mobileDeviceSubmodelTechnology = new Technology(); + $mobileDeviceSubmodelTechnology->id = 640003; + $mobileDeviceSubmodelTargeting->targetedMobileDeviceSubmodels = + array($mobileDeviceSubmodelTechnology); + $technologyTargeting->mobileDeviceSubmodelTargeting = + $mobileDeviceSubmodelTargeting; + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->technologyTargeting = $technologyTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = 'Mobile line item'; + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'STANDARD'; + $lineItem->allowOverbook = TRUE; + + // Set the target platform to mobile. + $lineItem->targetPlatform = 'MOBILE'; + + // Set the creative rotation type to even. + $lineItem->creativeRotationType = 'EVEN'; + + // Create the creative placeholder. + $creativePlaceholder = new CreativePlaceholder(); + $creativePlaceholder->size = new Size(300, 250, FALSE); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativePlaceholder); + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per unit to $2. + $lineItem->costType = 'CPM'; + $lineItem->costPerUnit = new Money('USD', 2000000); + + // Set the number of units bought to 500,000 so that the budget is $1,000. + $lineItem->unitsBought = 500000; + $lineItem->unitType = 'IMPRESSIONS'; + + // Create the line item on the server. + $lineItem = $lineItemService->createLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + prinf("A line item with with ID '%s', belonging to order ID '%s', and name " + . "'%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } else { + print "No line item was created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201311/LineItemService/CreateVideoLineItemExample.php new file mode 100755 index 000000000..cf43a146c --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/CreateVideoLineItemExample.php @@ -0,0 +1,168 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the order that all created line items will belong to and the placement + // ID to target. + $orderId = 'INSERT_ORDER_ID_HERE'; + $targetedVideoAdUnitId = 'INSERT_TARGETED_VIDEO_AD_UNIT_ID_HERE'; + + // Set the custom targeting key ID and value ID representing the metadata + // on the content to target. This would typically be a key representing + // a 'genre' and a value representing something like 'comedy'. + $contentCustomTargetingKeyId = 'INSERT_CONTENT_CUSTOM_TARGETING_KEY_ID_HERE'; + $contentCustomTargetingValueId = + 'INSERT_CONTENT_CUSTOM_TARGETING_VALUE_ID_HERE'; + + // Create custom criteria for the content metadata targeting. + $contentCustomCriteria = new CustomCriteria(); + $contentCustomCriteria->keyId = $contentCustomTargetingKeyId; + $contentCustomCriteria->valueIds = array($contentCustomTargetingValueId); + $contentCustomCriteria->operator = 'IS'; + + // Create custom criteria set. + $customCriteriaSet = new CustomCriteriaSet(); + $customCriteriaSet->children = array($contentCustomCriteria); + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + $inventoryTargeting->targetedAdUnits = + array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + + // Create video position targeting. + $videoPosition = new VideoPosition; + $videoPosition->positionType = 'PREROLL'; + $videoPositionTarget = new VideoPositionTarget(); + $videoPositionTarget->videoPosition = $videoPosition; + $videoPositionTargeting = new VideoPositionTargeting(); + $videoPositionTargeting->targetedPositions = array($videoPositionTarget); + + // Create targeting. + $targeting = new Targeting(); + $targeting->customTargeting = $customCriteriaSet; + $targeting->inventoryTargeting = $inventoryTargeting; + $targeting->videoPositionTargeting = $videoPositionTargeting; + + // Create local line item object. + $lineItem = new LineItem(); + $lineItem->name = sprintf("Video line item #%s", uniqid()); + $lineItem->orderId = $orderId; + $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + $lineItem->allowOverbook = TRUE; + + // Set the environment type to video. + $lineItem->environmentType = 'VIDEO_PLAYER'; + + // Set the creative rotation type to optimized. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + + // Create companion creative placeholders. + $companionCreativePlaceholder1 = new CreativePlaceholder(); + $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + + $companionCreativePlaceholder2 = new CreativePlaceholder(); + $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + + // Set companion creative placeholders. + $creativeMasterPlaceholder->companions = + array($companionCreativePlaceholder1, $companionCreativePlaceholder2); + + // Set the size of creatives that can be associated with this line item. + $lineItem->creativePlaceholders = array($creativeMasterPlaceholder); + + // Set delivery of video companions to optional. + $lineItem->companionDeliveryOption = 'OPTIONAL'; + + // Set the length of the line item to run. + $lineItem->startDateTimeType = 'IMMEDIATELY'; + $lineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set the cost per day to $1. + $lineItem->costType = 'CPD'; + $lineItem->costPerUnit = new Money('USD', 1000000); + + // Set the percentage to be 100%. + $lineItem->unitsBought = 100; + + // Create the line item on the server. + $lineItems = $lineItemService->createLineItems($lineItem); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + printf("A line item with with ID '%s', belonging to order ID '%s', and " + . "name '%s' was created.\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); + } + } else { + printf("No line items created."); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201311/LineItemService/GetAllLineItemsExample.php new file mode 100755 index 000000000..2c4a0c6a3 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/GetAllLineItemsExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set defaults for page and statement. + $page = new LineItemPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all line items. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/GetLineItemExample.php b/examples/Dfp/v201311/LineItemService/GetLineItemExample.php new file mode 100755 index 000000000..50ba2b28f --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/GetLineItemExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the ID of the line item to get. + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + + // Get the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + + // Display results. + if (isset($lineItem)) { + print 'Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + } else { + print "No line item found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201311/LineItemService/GetLineItemsByStatementExample.php new file mode 100755 index 000000000..57b522b45 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/GetLineItemsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId))); + + // Create a statement to only select line items that need creatives + // from a given order. + $filterStatement = new Statement("WHERE orderId = :orderId " + . " AND status = 'NEEDS_CREATIVES' LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", and name "' . $lineItem->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201311/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..91a053c99 --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Calculate time from three days ago. + $threeDaysAgo = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('-3 day')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId), + 'threeDaysAgo' => new TextValue($threeDaysAgo))); + + // Create statement object to only select line items belonging to the order + // and have been modified in the last 3 days. + $filterStatement = new Statement("WHERE orderId = :orderId " + . "AND lastModifiedDateTime >= :threeDaysAgo " + . "LIMIT 500", $vars); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + // Format lastModifiedDateTime for printing. + $lastModifiedDateTime = + DateTimeUtils::GetDateTime($lineItem->lastModifiedDateTime); + $lastModifiedDateTimeText = $lastModifiedDateTime + ->format(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT); + + print $i . ') Line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", with name "' . $lineItem->name + . '", and last modified ' . $lastModifiedDateTimeText + . " was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201311/LineItemService/TargetCustomCriteriaExample.php new file mode 100755 index 000000000..25c78c08a --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/TargetCustomCriteriaExample.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds2 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + $customCriteriaIds3 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', + 'INSERT_CUSTOM_TARGETING_VALUE_ID_HERE'); + + // Create custom criteria. + $customCriteria1 = new CustomCriteria(); + $customCriteria1->keyId = $customCriteriaIds1[0]; + $customCriteria1->valueIds = array($customCriteriaIds1[1]); + $customCriteria1->operator = 'IS'; + + $customCriteria2 = new CustomCriteria(); + $customCriteria2->keyId = $customCriteriaIds2[0]; + $customCriteria2->valueIds = array($customCriteriaIds2[1]); + $customCriteria2->operator = 'IS_NOT'; + + $customCriteria3 = new CustomCriteria(); + $customCriteria3->keyId = $customCriteriaIds3[0]; + $customCriteria3->valueIds = array($customCriteriaIds3[1]); + $customCriteria3->operator = 'IS'; + + + // Create the custom criteria set that will resemble: + // + // ($customCriteria1.key == $customCriteria1.value OR + // ($customCriteria2.key != $customCriteria2.value AND + // $customCriteria3.key == $customCriteria3.value)) + $topCustomCriteriaSet = new CustomCriteriaSet(); + $topCustomCriteriaSet->logicalOperator = 'OR'; + + $subCustomCriteriaSet = new CustomCriteriaSet(); + $subCustomCriteriaSet->logicalOperator = 'AND'; + $subCustomCriteriaSet->children = array($customCriteria2, $customCriteria3); + $topCustomCriteriaSet->children = + array($customCriteria1, $subCustomCriteriaSet); + + // Set the custom criteria targeting on the line item. + $lineItem = $lineItemService->getLineItem($lineItemId); + $lineItem->targeting->customTargeting = $topCustomCriteriaSet; + + // Update the line items on the server. + $lineItem = $lineItemService->updateLineItem($lineItem); + + // Display results. + if (isset($lineItem)) { + printf("Line item with ID '%s' updated with custom criteria targeting:\n", + $lineItem->id); + print_r($lineItem->targeting->customTargeting); + } else { + print "No line items updated.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201311/LineItemService/UpdateLineItemsExample.php new file mode 100755 index 000000000..2bc39320e --- /dev/null +++ b/examples/Dfp/v201311/LineItemService/UpdateLineItemsExample.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Create a statement to get line items with even delivery rates. + $filterStatement = + new Statement("WHERE deliveryRateType = 'EVENLY' and orderId = " + . $orderId . ' LIMIT 500'); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + if (isset($page->results)) { + $lineItems = $page->results; + + // Remove archived line items. + array_filter($lineItems, + create_function('$lineItem', 'return !$lineItem->isArchived;')); + + // Update each local line item object by changing its delivery rate. + foreach ($lineItems as $lineItem) { + $lineItem->deliveryRateType = 'AS_FAST_AS_POSSIBLE'; + } + + // Update the line items on the server. + $lineItems = $lineItemService->updateLineItems($lineItems); + + // Display results. + if (isset($lineItems)) { + foreach ($lineItems as $lineItem) { + print 'A line item with ID "' + . $lineItem->id . '", belonging to order ID "' + . $lineItem->orderId . '", name "' . $lineItem->name + . '", and delivery rate "' . $lineItem->deliveryRateType + . "\" was updated.\n"; + } + } else { + print "No line items updated.\n"; + } + } else { + print "No line items found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201311/NetworkService/GetAllNetworksExample.php new file mode 100755 index 000000000..2f1d7b7e5 --- /dev/null +++ b/examples/Dfp/v201311/NetworkService/GetAllNetworksExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get all networks that you have access to with the current login + // credentials. + $networks = $networkService->getAllNetworks(); + + // Display results. + if (isset($networks)) { + $i = 0; + foreach ($networks as $network) { + print $i . ') Network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $i . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201311/NetworkService/GetCurrentNetworkExample.php new file mode 100755 index 000000000..08c5d0a76 --- /dev/null +++ b/examples/Dfp/v201311/NetworkService/GetCurrentNetworkExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the current network. + $network = $networkService->getCurrentNetwork(); + + print 'Current network has network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\".\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201311/NetworkService/MakeTestNetworkExample.php new file mode 100755 index 000000000..1a76a4362 --- /dev/null +++ b/examples/Dfp/v201311/NetworkService/MakeTestNetworkExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Make the test network. + $network = $networkService->makeTestNetwork(); + + print 'Test network with network code "' . $network->networkCode + . '" and display name "' . $network->displayName . "\" created.\n" + . ' You may now sign in at http://www.google.com/dfp/main?networkCode=' + . $network->networkCode . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201311/OrderService/ApproveOrdersExample.php new file mode 100755 index 000000000..46b8a4d33 --- /dev/null +++ b/examples/Dfp/v201311/OrderService/ApproveOrdersExample.php @@ -0,0 +1,128 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // Create a datetime representing today. + $today = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, strtotime('now')); + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('today' => new TextValue($today))); + + // Create statement text to get all draft and pending approval orders that + // haven't ended and aren't archived. + $filterStatementText = "WHERE status IN ('DRAFT', 'PENDING_APPROVAL') " + . "AND endDateTime >= :today " + . "AND isArchived = FALSE "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " + . $offset, $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + $orderIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + // Archived orders cannot be approved. + if (!$order->isArchived) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and status "' . $order->status + . "\" will be approved.\n"; + $i++; + $orderIds[] = $order->id; + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of orders to be approved: ' . sizeof($orderIds) . "\n"; + + if (sizeof($orderIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $orderIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveAndOverbookOrders(); + + // Perform action. + $result = $orderService->performOrderAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of orders approved: ' . $result->numChanges . "\n"; + } else { + print "No orders were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/OrderService/CreateOrdersExample.php b/examples/Dfp/v201311/OrderService/CreateOrdersExample.php new file mode 100755 index 000000000..7eafcd8a6 --- /dev/null +++ b/examples/Dfp/v201311/OrderService/CreateOrdersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetOrderService('v201311'); + + // Set the advertiser (company), salesperson, and trafficker to assign to each + // order. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $salespersonId = 'INSERT_SALESPERSON_ID_HERE'; + $traffickerId = 'INSERT_TRAFFICKER_ID_HERE'; + + // Create an array to store local order objects. + $orders = array(); + + for ($i = 0; $i < 5; $i++) { + $order = new Order(); + $order->name = 'Order #' . $i; + $order->advertiserId = $advertiserId; + $order->salespersonId = $salespersonId; + $order->traffickerId = $traffickerId; + + $orders[] = $order; + } + + // Create the orders on the server. + $orders = $orderService->createOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'An order with with ID "' . $order->id + . '" and name "' . $order->name + . "\" was created.\n"; + } + } else { + print "No orders created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201311/OrderService/GetAllOrdersExample.php new file mode 100755 index 000000000..ef563d1a8 --- /dev/null +++ b/examples/Dfp/v201311/OrderService/GetAllOrdersExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // Set defaults for page and statement. + $page = new OrderPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all orders. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/OrderService/GetOrderExample.php b/examples/Dfp/v201311/OrderService/GetOrderExample.php new file mode 100755 index 000000000..a7966087c --- /dev/null +++ b/examples/Dfp/v201311/OrderService/GetOrderExample.php @@ -0,0 +1,77 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // Set the ID of the order to get. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Get the order. + $order = $orderService->getOrder($orderId); + + // Display results. + if (isset($order)) { + print 'An order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + } else { + print "No order found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201311/OrderService/GetOrdersByStatementExample.php new file mode 100755 index 000000000..cbea6d23d --- /dev/null +++ b/examples/Dfp/v201311/OrderService/GetOrdersByStatementExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // Set the ID of the advertiser (company) to get orders for. + $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('advertiserId' => new NumberValue($advertiserId))); + + // Create a statement to only select orders for a given advertiser. + $filterStatement = + new Statement("WHERE advertiserId = :advertiserId LIMIT 500", $vars); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $order) { + print $i . ') Order with ID "' . $order->id + . '", name "' . $order->name + . '", and advertiser ID "' . $order->advertiserId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201311/OrderService/UpdateOrdersExample.php new file mode 100755 index 000000000..8d547088b --- /dev/null +++ b/examples/Dfp/v201311/OrderService/UpdateOrdersExample.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201311'); + + // Create a statement to get all orders. + $filterStatement = new Statement('LIMIT 500'); + + // Get orders by statement. + $page = $orderService->getOrdersByStatement($filterStatement); + + if (isset($page->results)) { + $orders = $page->results; + + // Remove archived orders. + array_filter($orders, + create_function('$order', 'return !$order->isArchived;')); + + // Update each local order object by changing its notes. + foreach ($orders as $order) { + $order->notes = 'Spoke to advertiser. All is well.'; + } + + // Update the orders on the server. + $orders = $orderService->updateOrders($orders); + + // Display results. + if (isset($orders)) { + foreach ($orders as $order) { + print 'Order with ID "' . $order->id + . '", name "' . $order->name + . '", advertiser ID "' . $order->advertiserId + . '", and notes "' . $order->notes + . "\" was updated.\n"; + } + } else { + print "No orders updated.\n"; + } + } else { + print "No orders found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201311/PlacementService/CreatePlacementsExample.php new file mode 100755 index 000000000..7ec02925f --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/CreatePlacementsExample.php @@ -0,0 +1,137 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create local placement object to store skyscraper ad units. + $skyscraperAdUnitPlacement = new Placement(); + $skyscraperAdUnitPlacement->name = + 'Skyscraper AdUnit Placement #' . time(); + $skyscraperAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 120x600'; + + // Create local placement object to store medium square ad units. + $mediumSquareAdUnitPlacement = new Placement(); + $mediumSquareAdUnitPlacement->name = + 'Medium Square AdUnit Placement #' . time(); + $mediumSquareAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 300x250'; + + // Create local placement object to store banner ad units. + $bannerAdUnitPlacement = new Placement(); + $bannerAdUnitPlacement->name = 'Banner AdUnit Placement #' . time(); + $bannerAdUnitPlacement->description = + 'Contains ad units that can hold creatives of size 468x60'; + + $placementList = array(); + + // Get the first 500 ad units. + $filterStatement = new Statement('LIMIT 500'); + $page = $inventoryService->getAdUnitsByStatement($filterStatement); + + // Separate the ad units by size. + if (isset($page->results)) { + foreach ($page->results as $adUnit) { + if (isset($adUnit->parentId)) { + foreach ((array) $adUnit->adUnitSizes as $adUnitSize) { + $size = $adUnitSize->size; + if ($size->width == 300 && $size->height == 250) { + $mediumSquareAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 120 && $size->height == 600) { + $skyscraperAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } else if ($size->width == 468 && $size->height == 60) { + $bannerAdUnitPlacement->targetedAdUnitIds[] = $adUnit->id; + } + } + } + } + } + + // Only create placements with one or more ad units. + if (count($skyscraperAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $skyscraperAdUnitPlacement; + } + if (count($mediumSquareAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $mediumSquareAdUnitPlacement; + } + if (count($bannerAdUnitPlacement->targetedAdUnitIds)>0) { + $placementList[] = $bannerAdUnitPlacement; + } + + // Create the placements on the server. + $placements = $placementService->createPlacements($placementList); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and containing ad units {' . + implode(', ', (array) $placement->targetedAdUnitIds) + . "} was created.\n"; + } + } else { + print "No placements created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201311/PlacementService/DeactivatePlacementsExample.php new file mode 100755 index 000000000..8b0866cbf --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/DeactivatePlacementsExample.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Create statement text to select active placements. + $filterStatementText = "WHERE status = 'ACTIVE'"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + $placementIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status + . "\" will be deactivated.\n"; + $i++; + $placementIds[] = $placement->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of placements to be deactivated: ' . sizeof($placementIds) + . "\n"; + + if (sizeof($placementIds) > 0) { + // Create action statement. + $filterStatementText = + sprintf('WHERE id IN (%s)', implode(',', $placementIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = + $placementService->performPlacementAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + } else { + print "No placements were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201311/PlacementService/GetAllPlacementsExample.php new file mode 100755 index 000000000..d3658df69 --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/GetAllPlacementsExample.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Set defaults for page and statement. + $page = new PlacementPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all placements. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '" and name "' . $placement->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/PlacementService/GetPlacementExample.php b/examples/Dfp/v201311/PlacementService/GetPlacementExample.php new file mode 100755 index 000000000..58ec4d073 --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/GetPlacementExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Set the ID of the placement to get. + $placementId = 'INSERT_PLACEMENT_ID_HERE'; + + // Get the placement. + $placement = $placementService->getPlacement($placementId); + + // Display results. + if (isset($placement)) { + print 'Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + } else { + print "No placement found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201311/PlacementService/GetPlacementsByStatementExample.php new file mode 100755 index 000000000..974b33924 --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/GetPlacementsByStatementExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('status' => new TextValue('ACTIVE'))); + + // Create a statement to only select active placements. + $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $placement) { + print $i . ') Placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and status "' . $placement->status . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201311/PlacementService/UpdatePlacementsExample.php new file mode 100755 index 000000000..18e4be9b0 --- /dev/null +++ b/examples/Dfp/v201311/PlacementService/UpdatePlacementsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201311'); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201311'); + + // Create a statement to select first 500 placements. + $filterStatement = new Statement("LIMIT 500"); + + // Get placements by statement. + $page = $placementService->getPlacementsByStatement($filterStatement); + + if (isset($page->results)) { + $placements = $page->results; + + // Update each local placement object by adding the root ad unit. + foreach ($placements as $placement) { + $placement->targetingDescription = !empty($placement->description) ? + $placement->description : 'Generic description'; + $placement->targetingAdLocation = 'All images on sports pages.'; + $placement->targetingSiteName = 'http://code.google.com'; + $placement->isAdSenseTargetingEnabled = TRUE; + } + + // Update the placements on the server. + $placements = $placementService->updatePlacements($placements); + + // Display results. + if (isset($placements)) { + foreach ($placements as $placement) { + print 'A placement with ID "' . $placement->id + . '", name "' . $placement->name + . '", and AdSense targeting "' + . ($placement->isAdSenseTargetingEnabled ? 'enabled' : 'disabled') + . "\" was updated.\n"; + } + } else { + print "No placements updated.\n"; + } + } else { + print "No placements found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/PublisherQueryLanguageService/FetchMatchTables.php b/examples/Dfp/v201311/PublisherQueryLanguageService/FetchMatchTables.php new file mode 100755 index 000000000..4e1aa5dd8 --- /dev/null +++ b/examples/Dfp/v201311/PublisherQueryLanguageService/FetchMatchTables.php @@ -0,0 +1,116 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201311'); + + // Statement parts to help build a statement to select all line items. + $lineItemPqlTemplate = 'SELECT Id, Name, Status FROM Line_Item ORDER BY Id ' + . 'ASC LIMIT %d OFFSET %d'; + // Statement parts to help build a statement to select all ad units. + $adUnitPqlTemplate = 'SELECT Id, Name FROM Ad_Unit ORDER BY Id ASC LIMIT ' + . '%d OFFSET %d'; + + $lineItemFilePath = fetchMatchTable($lineItemPqlTemplate, $pqlService, + "Line-Item-Matchtable"); + $adUnitFilePath = fetchMatchTable($adUnitPqlTemplate, $pqlService, + "Ad-Unit-Matchtable"); + + printf("Line items saved to %s\n", $lineItemFilePath); + printf("Ad units saved to %s\n", $adUnitFilePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + +/** + * Fetches a match table from a PQL statement and writes it to a file. + */ +function fetchMatchTable($pqlTemplate, $pqlService, $fileName) { + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + $i = 0; + + do { + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/%s-%s.csv", sys_get_temp_dir(), $fileName, uniqid()); + $fp = fopen($filePath, 'w'); + + // Write the result set to a CSV. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + + return $filePath; +} + diff --git a/examples/Dfp/v201311/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201311/PublisherQueryLanguageService/GetGeoTargets.php new file mode 100755 index 000000000..df2536cb1 --- /dev/null +++ b/examples/Dfp/v201311/PublisherQueryLanguageService/GetGeoTargets.php @@ -0,0 +1,116 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201311'); + + // Set the type of geo target. + $geoTargetType = 'City'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('type' => new TextValue($geoTargetType))); + + // Statement parts to help build a statement to select all targetable cities. + $pqlTemplate = "SELECT Id, Name, CanonicalParentId, ParentIds, CountryCode, " + . "Type, Targetable FROM Geo_Target WHERE Type = :type AND Targetable = " + . "true ORDER BY CountryCode ASC, Name ASC LIMIT %d OFFSET %d "; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + $i = 0; + + do { + // Get all cities. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d geo targets beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/%s-%s.csv", sys_get_temp_dir(), $geoTargetType, + uniqid()); + ob_start(); + $fp = fopen($filePath, 'w'); + + // Write the result set to a CSV. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + ob_end_clean(); + + printf("Geo targets saved to %s\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201311/PublisherQueryLanguageService/GetLineItemsNamedLike.php new file mode 100755 index 000000000..2e05257f1 --- /dev/null +++ b/examples/Dfp/v201311/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -0,0 +1,104 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201311'); + + // Statement parts to help build a statement to select all cities that start + // with "Santa". + $pqlTemplate = "SELECT Id, Name, Status FROM Line_Item WHERE Name LIKE 'line " + . "item%%' ORDER BY Id ASC LIMIT %d OFFSET %d"; + $SUGGESTED_PAGE_LIMIT = 500; + $offset = 0; + $i = 0; + + do { + // Get line items like 'line item%'. + $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, + $SUGGESTED_PAGE_LIMIT, $offset))); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d line items beginning at offset %d were found.\n", $i++, + count($resultSet->rows), $offset); + + $offset += $SUGGESTED_PAGE_LIMIT; + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Line-Items-Named-Like-%s.csv", sys_get_temp_dir(), + uniqid()); + ob_start(); + $fp = fopen($filePath, 'w'); + + // Write the result set to a CSV. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + ob_end_clean(); + + printf("Line items saved to %s\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ReportService/DisplayReportExample.php b/examples/Dfp/v201311/ReportService/DisplayReportExample.php new file mode 100755 index 000000000..3fc1cf386 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/DisplayReportExample.php @@ -0,0 +1,78 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report (e.g., CSV_DUMP) and download without + // compression so we can print it. + $reportDownloadOptions = new ReportDownloadOptions(); + $reportDownloadOptions->exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + $reportDownloadOptions->useGzipCompression = false; + + $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, + $reportDownloadOptions); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + $report = ReportUtils::DownloadReport($downloadUrl); + printf("\n%s\n", $report); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ReportService/DownloadReportExample.php b/examples/Dfp/v201311/ReportService/DownloadReportExample.php new file mode 100755 index 000000000..22a0efa4e --- /dev/null +++ b/examples/Dfp/v201311/ReportService/DownloadReportExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Set the ID of the completed report. + $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; + + // Set the format of the report. Ex: CSV_DUMP + $exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; + + // Set the file name to download the gzipped report to. Ex: report.csv.gz. + $fileName = 'INSERT_FILE_NAME_HERE' . '.gz'; + + $filePath = dirname(__FILE__) . '/' . $fileName; + + $downloadUrl = + $reportService->getReportDownloadURL($reportJobId, $exportFormat); + + printf("Downloading report from URL '%s'.\n", $downloadUrl); + + ReportUtils::DownloadReport($downloadUrl, $filePath); + + printf("Report downloaded to file '%s'.\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201311/ReportService/RunDeliveryReportExample.php new file mode 100755 index 000000000..1d7c8bafe --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunDeliveryReportExample.php @@ -0,0 +1,108 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Set the order id to report on. + $order_id = 'INSERT_ORDER_ID_HERE'; + + // Create bind variables. + $vars = + MapUtils::GetMapEntries(array('orderId' => new NumberValue($order_id))); + + // Create statement text to filter based on an order id. + $filterStatementText = 'WHERE order_id = :orderId'; + + // Create statement object from text. + $filterStatement = new Statement($filterStatementText, $vars); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'AD_SERVER_CTR', 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportQuery->statement = $filterStatement; + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201311/ReportService/RunInventoryReportExample.php new file mode 100755 index 000000000..3823107a9 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunInventoryReportExample.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201311'); + + // Get the root ad unit ID to filter on. + $rootAdUnitId = + $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('ancestorAdUnitId' => + new NumberValue($rootAdUnitId))); + + // Create statement text to filter based on an order id. + $filterStatementText = + 'WHERE AD_UNIT_ANCESTOR_AD_UNIT_ID = :ancestorAdUnitId'; + + // Create statement object from text. + $filterStatement = new Statement($filterStatementText, $vars); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'YESTERDAY'; + $reportQuery->dimensions = array('AD_UNIT_ID', 'AD_UNIT_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS', + 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS', + 'TOTAL_INVENTORY_LEVEL_IMPRESSIONS', + 'TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE'); + $reportQuery->statement = $filterStatement; + $reportQuery->adUnitView = 'HIERARCHICAL'; + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201311/ReportService/RunMergedDeliveryReportExample.php new file mode 100755 index 000000000..c5860b455 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunMergedDeliveryReportExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); + $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', + 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); + $reportQuery->columns = array('MERGED_AD_SERVER_IMPRESSIONS', + 'MERGED_AD_SERVER_CLICKS', 'MERGED_AD_SERVER_CTR', + 'MERGED_AD_SERVER_CPM_AND_CPC_REVENUE', + 'MERGED_AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ReportService/RunReachReportExample.php b/examples/Dfp/v201311/ReportService/RunReachReportExample.php new file mode 100755 index 000000000..e7a90dd61 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunReachReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'REACH_LIFETIME'; + $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); + $reportQuery->columns = array('REACH_FREQUENCY', + 'REACH_AVERAGE_REVENUE', + 'REACH'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201311/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201311/ReportService/RunReportWithCustomFields.php new file mode 100755 index 000000000..9e79a1b69 --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunReportWithCustomFields.php @@ -0,0 +1,133 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201311'); + + // Set the ID of the order to get line items from. + $orderId = 'INSERT_ORDER_ID_HERE'; + + // Set defaults for page and statement. + $page = new LineItemPage(); + $vars = MapUtils::GetMapEntries(array('orderId' => + new NumberValue($orderId))); + $filterStatement = new Statement(NULL, $vars); + $offset = 0; + + // Collect all line item custom field IDs for an order. + $customFieldIds = array(); + do { + // Create a statement to only select line items from a given order. + $filterStatement->query = sprintf('WHERE orderId = :orderId LIMIT 500 ' . + 'OFFSET %d', $offset); + + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement($filterStatement); + + // Get custom field IDs from the line items of an order. + if (isset($page->results)) { + foreach ($page->results as $lineItem) { + if (isset($lineItem->customFieldValues)) { + foreach ($lineItem->customFieldValues as $customFieldValue) { + $customFieldId = $customFieldValue->customFieldId; + if (!in_array($customFieldId, $customFieldIds)) { + $customFieldIds[] = $customFieldId; + } + } + } + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); + $reportQuery->customFieldIds = $customFieldIds; + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); + $reportJob->reportQuery = $reportQuery; + + // Report on a single order. + $filterStatement->query = 'WHERE ORDER_ID = :orderId'; + $reportQuery->statement = $filterStatement; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/ReportService/RunSalesReportExample.php b/examples/Dfp/v201311/ReportService/RunSalesReportExample.php new file mode 100755 index 000000000..03e4a657f --- /dev/null +++ b/examples/Dfp/v201311/ReportService/RunSalesReportExample.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ReportService. + $reportService = $user->GetService('ReportService', 'v201311'); + + // Create report job. + $reportJob = new ReportJob(); + + // Create report query. + $reportQuery = new ReportQuery(); + $reportQuery->dateRangeType = 'LAST_MONTH'; + $reportQuery->dimensions = array('SALESPERSON_ID', 'SALESPERSON_NAME'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', + 'AD_SERVER_CPM_AND_CPC_REVENUE', + 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + $reportJob->reportQuery = $reportQuery; + + // Run report job. + $reportJob = $reportService->runReportJob($reportJob); + + do { + printf("Report with ID '%s' is running.\n", $reportJob->id); + sleep(30); + // Get report job. + $reportJob = $reportService->getReportJob($reportJob->id); + } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); + + if ($reportJob->reportJobStatus == 'FAILED') { + printf("Report job with ID '%s' failed to finish successfully.\n", + $reportJob->id); + } else { + printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201311/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php new file mode 100755 index 000000000..43b4ec646 --- /dev/null +++ b/examples/Dfp/v201311/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201311'); + + // Set the number of requests to 50 or more. + define('NUMBER_OF_REQUESTS', 50); + + // Create statement text to select all suggested ad units + // that have been requested 50 times or more. + $filterStatementText = 'WHERE numRequests >= ' . NUMBER_OF_REQUESTS; + + // Get all suggested ad units. + $allSuggestedAdUnits = ServiceUtils::GetAllObjects($suggestedAdUnitService, + 'getSuggestedAdUnitsByStatement', $filterStatementText); + + $numSuggestedAdUnits = 0; + foreach ($allSuggestedAdUnits as $suggestedAdUnit) { + $numSuggestedAdUnits++; + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "will be approved.\n", $numSuggestedAdUnits, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + + printf("Number of suggested ad units to be approved: %d\n", + $numSuggestedAdUnits); + + if ($numSuggestedAdUnits > 0) { + // Create action statement. + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $filterStatementText); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of suggested ad units approved: %d\n", + $result->numChanges); + } else { + print "No suggested ad units were approved.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201311/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php new file mode 100755 index 000000000..ea0943b74 --- /dev/null +++ b/examples/Dfp/v201311/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201311'); + + // Set defaults for page and statement. + $page = new SuggestedAdUnitPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all suggested ad units. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get creatives by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitExample.php b/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitExample.php new file mode 100755 index 000000000..757cbcd0a --- /dev/null +++ b/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201311'); + + // Set the ID of the ad unit to get. + $suggestedAdUnitId = 'INSERT_SUGGESTED_AD_UNIT_ID_HERE'; + + // Get the ad unit. + $suggestedAdUnit = + $suggestedAdUnitService->getSuggestedAdUnit($suggestedAdUnitId); + + // Display results. + if (isset($suggestedAdUnit)) { + printf("Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } else { + print "No suggested ad unit found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php new file mode 100755 index 000000000..966da06a1 --- /dev/null +++ b/examples/Dfp/v201311/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = + $user->GetService('SuggestedAdUnitService', 'v201311'); + + // Create a statement to only select suggested ad units with more than 50 + // requests. + $filterStatement = + new Statement("WHERE numRequests > :numRequests LIMIT 500", + MapUtils::GetMapEntries(array('numRequests' => new NumberValue(50)))); + + // Get ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " + . "was found.\n", $i, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/TeamService/CreateTeamsExample.php b/examples/Dfp/v201311/TeamService/CreateTeamsExample.php new file mode 100755 index 000000000..f996130ea --- /dev/null +++ b/examples/Dfp/v201311/TeamService/CreateTeamsExample.php @@ -0,0 +1,85 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Create an array to store local team objects. + $teams = array(); + + for ($i = 0; $i < 5; $i++) { + $team = new Team(); + $team->name = 'Team #' . uniqid(); + $team->hasAllCompanies = false; + $team->hasAllInventory = false; + $teams[] = $team; + } + + // Create the teams on the server. + $teams = $teamService->createTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "'. $team->name + . '" was created."' . "\n"; + } + } else { + print "No teams created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201311/TeamService/GetAllTeamsExample.php new file mode 100755 index 000000000..003ce82c5 --- /dev/null +++ b/examples/Dfp/v201311/TeamService/GetAllTeamsExample.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Set defaults for page and statement. + $page = new TeamPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all teams. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/TeamService/GetTeamExample.php b/examples/Dfp/v201311/TeamService/GetTeamExample.php new file mode 100755 index 000000000..660ec685c --- /dev/null +++ b/examples/Dfp/v201311/TeamService/GetTeamExample.php @@ -0,0 +1,75 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Set the ID of the team to get. + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the team. + $team = $teamService->getTeam($teamId); + + // Display results. + if (isset($team)) { + print 'Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + } else { + print "No team found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201311/TeamService/GetTeamsByStatementExample.php new file mode 100755 index 000000000..5f126823a --- /dev/null +++ b/examples/Dfp/v201311/TeamService/GetTeamsByStatementExample.php @@ -0,0 +1,83 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Create a statement to order teams by name. + $filterStatementText = 'ORDER BY name LIMIT 500'; + $filterStatement = new Statement($filterStatementText); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $team) { + print $i . ') Team with ID "' . $team->id + . '" and name "' . $team->name + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201311/TeamService/UpdateTeamsExample.php new file mode 100755 index 000000000..fba96e679 --- /dev/null +++ b/examples/Dfp/v201311/TeamService/UpdateTeamsExample.php @@ -0,0 +1,106 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201311'); + + // Set the ID of the ad unit to add to the teams. + $adUnitID = "INSERT_AD_UNIT_ID_HERE"; + + // Create a statement to select first 5 teams that aren't + // built-in. + $filterStatement = new Statement("WHERE id > 0 LIMIT 5"); + + // Get teams by statement. + $page = $teamService->getTeamsByStatement($filterStatement); + + if (isset($page->results)) { + $teams = $page->results; + + $i = 0; + // Update each local team object by appending the ad unit to it. + foreach ($teams as $team) { + if (!$team->hasAllInventory) { + if (!isset($team->adUnitIds)) { + // Empty team inventory. + $team->adUnitIds = array(); + } + $team->adUnitIds[] = $adUnitID; + $i++; + } + } + + // Reorganize the $teams array. + $teams = array_values($teams); + + // Update the teams on the server. + $teams = $teamService->updateTeams($teams); + + // Display results. + if (isset($teams)) { + foreach ($teams as $team) { + print 'A team with ID "' . $team->id + . '" and name "' . $team->name . "\" was updated.\n"; + } + } else { + print "No teams updated.\n"; + } + } else { + print "No teams found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/CreateUsersExample.php b/examples/Dfp/v201311/UserService/CreateUsersExample.php new file mode 100755 index 000000000..ff73e65a4 --- /dev/null +++ b/examples/Dfp/v201311/UserService/CreateUsersExample.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Set the user's email addresses and names. + $emailAndNames = + array(array('INSERT_EMAIL_ADDRESS_HERE', 'INSERT_NAME_HERE'), + array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', + 'INSERT_ANOTHER_NAME_HERE')); + + // Roles can be obtained by running GetAllRolesExample.php. + $roleId = 'INSERT_ROLE_ID_HERE'; + + // Create an array to store local user objects. + $users = array(); + + for ($i = 0; $i < sizeof($emailAndNames); $i++) { + $newUser = new User(); + $newUser->email = $emailAndNames[$i][0]; + $newUser->name = $emailAndNames[$i][1]; + $newUser->roleId = $roleId; + $newUser->preferredLocale = 'en_US'; + + $users[] = $newUser; + } + + // Create the users on the server. + $users = $userService->createUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $user) { + print 'A user with ID "' . $user->id + . '", email "' . $user->email + . '", and role "' . $user->roleName . "\" was created.\n"; + } + } else { + print "No users created.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/DeactivateUserExample.php b/examples/Dfp/v201311/UserService/DeactivateUserExample.php new file mode 100755 index 000000000..373c1c1cd --- /dev/null +++ b/examples/Dfp/v201311/UserService/DeactivateUserExample.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Set the ID of the user to deactivate. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + + // Create statement text to get user by id. + $filterStatementText = "WHERE id = :id"; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = + new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, + $vars); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + $userIds = array(); + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and status "' . ($usr->isActive ? 'ACTIVE' : 'INACTIVE') + . "\" will be deactivated.\n"; + $i++; + $userIds[] = $usr->id; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + + if (sizeof($userIds) > 0) { + // Create action statement. + $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); + $filterStatement = new Statement($filterStatementText); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of users deactivated: ' . $result->numChanges . "\n"; + } else { + print "No users were deactivated.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/GetAllRolesExample.php b/examples/Dfp/v201311/UserService/GetAllRolesExample.php new file mode 100755 index 000000000..18a7eae42 --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetAllRolesExample.php @@ -0,0 +1,72 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Get all roles. + $roles = $userService->getAllRoles(); + + if (isset($roles)) { + foreach ($roles as $role) { + print 'Role with ID "' . $role->id . '" and name "' . $role->name + . "\" was found.\n"; + } + } + print 'Number of results found: ' . sizeof($roles) . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/GetAllUsersExample.php b/examples/Dfp/v201311/UserService/GetAllUsersExample.php new file mode 100755 index 000000000..7c5b009bc --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetAllUsersExample.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Set defaults for page and statement. + $page = new UserPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all users. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print "Number of results found: " . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/GetCurrentUserExample.php b/examples/Dfp/v201311/UserService/GetCurrentUserExample.php new file mode 100755 index 000000000..1a93f2595 --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetCurrentUserExample.php @@ -0,0 +1,65 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Get the current user. + $usr = $userService->getCurrentUser(); + + printf("User with ID '%s', email '%s', and role '%s' was found.\n", + $usr->id, $usr->email, $usr->roleName); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/GetUserExample.php b/examples/Dfp/v201311/UserService/GetUserExample.php new file mode 100755 index 000000000..a43d12cc7 --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetUserExample.php @@ -0,0 +1,76 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Set the ID of the user to get. + $userId = 'INSERT_USER_ID_HERE'; + + // Get the user. + $usr = $userService->getUser($userId); + + // Display results. + if (isset($usr)) { + print 'User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + } else { + print "No user found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201311/UserService/GetUsersByStatementExample.php new file mode 100755 index 000000000..cef9a61f5 --- /dev/null +++ b/examples/Dfp/v201311/UserService/GetUsersByStatementExample.php @@ -0,0 +1,81 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Create a statement to get all users sorted by name. + $filterStatement = new Statement('ORDER BY name LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $usr) { + print $i . ') User with ID "' . $usr->id + . '", email "' . $usr->email + . '", and role "' . $usr->roleName . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserService/UpdateUsersExample.php b/examples/Dfp/v201311/UserService/UpdateUsersExample.php new file mode 100755 index 000000000..f361df659 --- /dev/null +++ b/examples/Dfp/v201311/UserService/UpdateUsersExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201311'); + + // Create a statement to get all users. + $filterStatement = new Statement('LIMIT 500'); + + // Get users by statement. + $page = $userService->getUsersByStatement($filterStatement); + + if (isset($page->results)) { + $users = $page->results; + + // Update each local user object by changing its name. + foreach ($users as $usr) { + $usr->name .= ' Sr.'; + } + + // Update the users on the server. + $users = $userService->updateUsers($users); + + // Display results. + if (isset($users)) { + foreach ($users as $usr) { + print 'A user with ID "' . $usr->id + . '", name "' . $usr->name + . '", and role "' . $usr->roleName . "\" was updated.\n"; + } + } else { + print "No users updated.\n"; + } + } else { + print "No users found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201311/UserTeamAssociationService/CreateUserTeamAssociationsExample.php new file mode 100755 index 000000000..52dfa0562 --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/CreateUserTeamAssociationsExample.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set the team ID and user IDs to associate together. + $teamId = 'INSERT_TEAM_ID_HERE'; + $userIds = array('INSERT_USER_ID_HERE'); + + // Create an array to store local user team association objects. + $utas = array(); + + // For each user, associate it with the given team. + foreach ($userIds as $userId) { + // Create local user team association. + $uta = new UserTeamAssociation(); + $uta->teamId = $teamId; + $uta->userId = $userId; + $utas[] = $uta; + } + + // Create the user team associations on the server. + $utas = $userTeamAssociationService->createUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'A user team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was created.\n"; + } + } else { + print "No user team associations created."; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201311/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php new file mode 100755 index 000000000..c871ff8ea --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set the user to remove from its teams. + $userId = 'INSERT_USER_ID_HERE'; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create statement text to select user team associations by the user ID. + $filterStatementText = "WHERE userId = :userId "; + + $offset = 0; + + do { + // Create statement to page through results. + $filterStatement = new Statement($filterStatementText + . " LIMIT 500 OFFSET " . $offset, $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . "\" will be deleted.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of user team associations to be deleted: ' . $i . "\n"; + + if ($i > 0) { + // Create action statement. + $filterStatementText = 'WHERE userId = :userId '; + $filterStatement = new Statement($filterStatementText, $vars); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $filterStatement); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + print 'Number of user team associations deleted: ' + . $result->numChanges . "\n"; + } else { + print "No user team associations were deleted.\n"; + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201311/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php new file mode 100755 index 000000000..d41d50de2 --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set defaults for page and statement. + $page = new UserTeamAssociationPage(); + $filterStatement = new Statement(); + $offset = 0; + + do { + // Create a statement to get all user team associations. + $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User Team association between user with ID "' + . $uta->userId . '" and team with ID "' + . $uta->teamId . "\" was found.\n"; + $i++; + } + } + + $offset += 500; + } while ($offset < $page->totalResultSetSize); + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationExample.php b/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationExample.php new file mode 100755 index 000000000..d8c1660e6 --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationExample.php @@ -0,0 +1,79 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set the IDs of the user and team to get the association for. + $userId = 'INSERT_USER_ID_HERE'; + $teamId = 'INSERT_TEAM_ID_HERE'; + + // Get the user team association. + $uta = $userTeamAssociationService->getUserTeamAssociation($teamId, + $userId); + + // Display results. + if (isset($uta)) { + print 'User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + } else { + print "No user team association found for this ID.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php new file mode 100755 index 000000000..91473efbe --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201311'); + + // Get the UserService. + $userService = $user->GetService("UserService", "v201311"); + + // Get the current user. + $currentUserId = $userService->getCurrentUser()->id; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($currentUserId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = + new Statement("WHERE userId = :userId LIMIT 500", $vars); + + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + // Display results. + if (isset($page->results)) { + $i = $page->startIndex; + foreach ($page->results as $uta) { + print $i . ') User team association between user with ID "' . $uta->userId + . '" and team with ID "' . $uta->teamId + . "\" was found.\n"; + $i++; + } + } + + print 'Number of results found: ' . $page->totalResultSetSize . "\n"; +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/examples/Dfp/v201311/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201311/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php new file mode 100755 index 000000000..cfb3b72ef --- /dev/null +++ b/examples/Dfp/v201311/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201311'); + + // Set the user to set to read only access within its teams. + $userId = "INSERT_USER_ID_HERE"; + + // Create bind variables. + $vars = MapUtils::GetMapEntries( + array('userId' => new NumberValue($userId))); + + // Create filter text to select user team associations by the user ID. + $filterStatement = new Statement("WHERE userId = :userId LIMIT 500", $vars); + + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $filterStatement); + + if (isset($page->results)) { + $utas = $page->results; + + // Update each local user team association to read only access. + foreach ($utas as $uta) { + $uta->overriddenTeamAccessType = 'READ_ONLY'; + } + + // Update the user team associations on the server. + $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + + // Display results. + if (isset($utas)) { + foreach ($utas as $uta) { + print 'User team association between user with ID "' + . $uta->userId . '" and team with ID "' . $uta->teamId + . '" was updated to access type "' + . $uta->overriddenTeamAccessType . '".\n'; + } + } else { + print "No user team associations updated.\n"; + } + } else { + print "No user team associations found to update.\n"; + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + print $e->getMessage() . "\n"; +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsConstants.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsConstants.php new file mode 100755 index 000000000..23d8d3a87 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsConstants.php @@ -0,0 +1,55 @@ +NULL if working in + * non-WSDL mode + * @param array $options the SOAP client options + * @param AdsUser $user the user which is responsible for this client + * @param string $serviceName the name of the service which is making this + * call + * @param string $serviceNamespace the namespace of the service + */ + public function __construct($wsdl, array $options, AdsUser $user, + $serviceName, $serviceNamespace) { + parent::__construct($wsdl, $options, $user, $serviceName, + $serviceNamespace); + } + + /** + * Overrides the method __doRequest(). When OAuth2 authentication is used the + * URL parameters added. + * @param string $request the request XML + * @param string $location the URL to request + * @param string $action the SOAP action + * @param string $version the SOAP version + * @param int $one_way if set to 1, this method returns nothing + * @return string the XML SOAP response + */ + function __doRequest($request , $location , $action , $version, + $one_way = 0) { + $oAuth2Info = $this->user->GetOAuth2Info(); + $oAuth2Handler = $this->user->GetOAuth2Handler(); + if (!empty($oAuth2Info)) { + $oAuth2Info = $oAuth2Handler->GetOrRefreshAccessToken($oAuth2Info); + $this->user->SetOAuth2Info($oAuth2Info); + $oauth2Parameters = $oAuth2Handler->FormatCredentialsForUrl($oAuth2Info); + $location .= '?' . $oauth2Parameters; + } + return parent::__doRequest($request, $location, $action, $version); + } + + /** + * Generates the SOAP header for the client. + * @return SoapHeader the instantiated SoapHeader ready to set + * @access protected + */ + protected function GenerateSoapHeader() { + $soapHeaderClassName = 'SoapHeader'; + if ($this->serviceName === 'PromotionService') { + $soapHeaderClassName = 'ExpressSoapHeader'; + } + $headerObject = $this->Create($soapHeaderClassName); + foreach (get_object_vars($headerObject) as $var => $value) { + $headerObject->$var = $this->GetHeaderValue($var); + } + return new SoapHeader($this->serviceNamespace, 'RequestHeader', + $headerObject, FALSE); + } + + /** + * Removes the authentication token from the request before being logged. + * @param string $request the request with sensitive data to remove + * @return string the request with the authentication token removed + * @access protected + */ + protected function RemoveSensitiveInfo($request) { + $result = preg_replace( + '/(.*authToken>)(.*)(<\/.*authToken>.*)/sU', '\1*****\3', $request); + return isset($result) ? $result : $request; + } + + /** + * Gets the effective user the request was made against. + * @return string the effective user the request was made against + */ + public function GetEffectiveUser() { + return $this->GetAdsUser()->GetClientCustomerId(); + } + + /** + * Gets the last set of operators the last call in the form of + * "operator1,operator2". + * @return string the last set of operators + */ + public function GetLastOperators() { + try { + $operatorString = '{'; + $operators = array(); + $operatorElements = + $this->GetLastRequestDom()->getElementsByTagName('operator'); + + foreach ($operatorElements as $operatorElement) { + if (array_key_exists($operatorElement->nodeValue, $operators)) { + $operators[$operatorElement->nodeValue] += 1; + } else { + $operators[$operatorElement->nodeValue] = 1; + } + } + + foreach ($operators as $operator => $numOps) { + $operatorString .= $operator . ': ' . $numOps . ', '; + } + + if ($operatorString != '{') { + $operatorString = substr($operatorString, 0, -2); + } + + return $operatorString . '}'; + } catch (DOMException $e) { + // TODO(api.arogal): Log failures to retrieve headers. + return 'null'; + } + } + + /** + * Gets the last number of operations. + * @return string the last number of operations + */ + public function GetLastOperations() { + try { + $operationsElements = + $this->GetLastResponseDom()->getElementsByTagName('operations'); + foreach ($operationsElements as $operationsElement) { + return $operationsElement->nodeValue; + } + } catch (DOMException $e) { + // TODO(api.arogal): Log failures to retrieve headers. + return 'null'; + } + } + + /** + * Gets the last number of units. + * @return string the last number of units + */ + public function GetLastUnits() { + try { + $unitsElements = + $this->GetLastResponseDom()->getElementsByTagName('units'); + foreach ($unitsElements as $unitsElement) { + return $unitsElement->nodeValue; + } + } catch (DOMException $e) { + // TODO(api.arogal): Log failures to retrieve headers. + return 'null'; + } + } + + /** + * Generates the request info message containing: + *
    + *
  • email
  • + *
  • effectiveUser
  • + *
  • service
  • + *
  • method
  • + *
  • operators
  • + *
  • responseTime
  • + *
  • requestId
  • + *
  • operations
  • + *
  • units
  • + *
  • server
  • + *
  • isFault
  • + *
  • faultMessage
  • + *
+ * @return string the request info message to log + * @access protected + */ + protected function GenerateRequestInfoMessage() { + return 'email=' . $this->GetEmail() . ' effectiveUser=' + . $this->GetEffectiveUser() . ' service=' . $this->GetServiceName() + . ' method=' . $this->GetLastMethodName() . ' operators=' + . $this->GetLastOperators() . ' responseTime=' + . $this->GetLastResponseTime() . ' requestId=' + . $this->GetLastRequestId() . ' operations=' + . $this->GetLastOperations() . ' units=' + . $this->GetLastUnits() . ' server=' . $this->GetServer() + . ' isFault=' . ($this->IsFault() ? 'true' : 'false') + . ' faultMessage=' . $this->GetLastFaultMessage(); + } +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClientFactory.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClientFactory.php new file mode 100755 index 000000000..2f79831e2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClientFactory.php @@ -0,0 +1,73 @@ += 'v201109' && $user->GetHeaderValue('clientEmail') != NULL) { + throw new Exception('The header "clientEmail" is not compatible with ' + . 'versions v201109 and later. Use clientCustomerId instead.'); + } + $headerOverrides = array(); + if (isset($validateOnly) || isset($partialFailure)) { + $headerOverrides['validateOnly'] = $validateOnly; + $headerOverrides['partialFailure'] = $partialFailure; + } + parent::__construct($user, $version, $server, 'adwords', $headerOverrides); + } + + /** + * Initiates a require_once for the service. + * @param string $serviceName the service to instantiate + */ + public function DoRequireOnce($serviceName) { + require_once implode("/", array(dirname(__FILE__), '..', + $this->GetVersion(), $serviceName . '.php')); + } +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php new file mode 100755 index 000000000..8eb763eaa --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php @@ -0,0 +1,492 @@ +The AdWordsUser class can be configured in one of two ways: + *
  1. Using an authenitcation INI file
  2. + *
  3. Using supplied credentials

+ *

If an authentication INI file is provided and successfully loaded, those + * values will be used unless a corresponding parameter overwrites it. + * If the authentication INI file is not provided (e.g. it is NULL) + * the class will attempt to load the default authentication file at the path + * of "../auth.ini" relative to this file's directory. Any corresponding + * parameter, which is not NULL, will, however, overwrite any + * parameter loaded from the default INI.

+ *

Likewise, if a custom settings INI file is not provided, the default + * settings INI file will be loaded from the path of "../settings.ini" + * relative to this file's directory.

+ * @param string $authenticationIniPath the absolute path to the + * authentication INI or relative to the current directory (cwd). If + * NULL, the default authentication INI file will attempt to be + * loaded + * @param string $email the email of the user (required header). Will + * overwrite the email entry loaded from any INI file + * @param string $password the password of the user (required header). Will + * overwrite the password entry loaded from any INI file + * @param string $developerToken the developer token (required header). Will + * overwrite the developer token entry loaded from any INI file + * @param string $applicationToken the application token (required header). + * Will overwrite the application token entry loaded from any INI file + * @param string $userAgent the user agent name (required header). Will + * be prepended with the library name and version. Will overwrite the + * userAgent entry loaded from any INI file + * @param string $clientCustomerId the client customer ID to make the request + * against (optional header). Will overwrite the clientCustomerId entry + * loaded from any INI file + * @param string $settingsIniPath the path to the settings INI file. If + * NULL, the default settings INI file will be loaded + * @param string $authToken the authToken to use for requests + * @param array $oauth2Info the OAuth 2.0 information to use for requests + */ + public function __construct($authenticationIniPath = NULL, $email = NULL, + $password = NULL, $developerToken = NULL, $applicationToken = NULL, + $userAgent = NULL, $clientCustomerId = NULL, $settingsIniPath = NULL, + $authToken = NULL, $oauth2Info = NULL) { + parent::__construct(); + + $buildIniAw = parse_ini_file(dirname(__FILE__) . '/build.ini', + FALSE); + $buildIniCommon = parse_ini_file(dirname(__FILE__) . + '/../../Common/Lib/build.ini', false); + $this->libName = $buildIniAw['LIB_NAME']; + $this->libVersion = $buildIniCommon['LIB_VERSION']; + + $apiProps = ApiPropertiesUtils::ParseApiPropertiesFile(dirname(__FILE__) . + '/api.properties'); + $versions = explode(',', $apiProps['api.versions']); + $this->defaultVersion = $versions[count($versions) - 1]; + $this->defaultServer = $apiProps['api.server']; + + if (isset($authenticationIniPath)) { + $authenticationIni = + parse_ini_file(realpath($authenticationIniPath), TRUE); + } else { + $authenticationIni = + parse_ini_file(dirname(__FILE__) . '/../auth.ini', TRUE); + } + + $email = $this->GetAuthVarValue($email, 'email', $authenticationIni); + $password = $this->GetAuthVarValue($password, 'password', + $authenticationIni); + $developerToken = $this->GetAuthVarValue($developerToken, 'developerToken', + $authenticationIni); + $applicationToken = $this->GetAuthVarValue($applicationToken, + 'applicationToken', $authenticationIni); + $userAgent = $this->GetAuthVarValue($userAgent, + self::USER_AGENT_HEADER_NAME, $authenticationIni); + $clientCustomerId = $this->GetAuthVarValue($clientCustomerId, + 'clientCustomerId', $authenticationIni); + $authToken = $this->GetAuthVarValue($authToken, 'authToken', + $authenticationIni); + $oauth2Info = $this->GetAuthVarValue($oauth2Info, 'OAUTH2', + $authenticationIni); + + $clientId = $this->GetAuthVarValue(NULL, 'clientId', $authenticationIni); + if ($clientId !== NULL) { + throw new ValidationException('clientId', $clientId, + 'The authentication key "clientId" has been changed to' + . ' "clientCustomerId", please use that instead.'); + } + + $this->SetEmail($email); + $this->SetPassword($password); + $this->SetAuthToken($authToken); + $this->SetOAuth2Info($oauth2Info); + $this->SetUserAgent($userAgent); + $this->SetClientLibraryUserAgent($userAgent); + $this->SetClientCustomerId($clientCustomerId); + $this->SetDeveloperToken($developerToken); + $this->SetApplicationToken($applicationToken); + + if (!isset($settingsIniPath)) { + $settingsIniPath = dirname(__FILE__) . '/../settings.ini'; + } + + $this->LoadSettings($settingsIniPath, + $this->defaultVersion, + $this->defaultServer, + getcwd(), dirname(__FILE__)); + } + + /** + * Overrides AdsUser::InitLogs(), adding an additional log for report + * download requests. + */ + protected function InitLogs() { + parent::InitLogs(); + Logger::LogToFile(ReportUtils::$LOG_NAME, + $this->GetLogsDirectory() . "/report_download.log"); + Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$FATAL); + } + + /** + * Overrides AdsUser::LogDefaults(), setting an additional log level for + * report download requests. + */ + public function LogDefaults() { + parent::LogDefaults(); + Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$ERROR); + } + + /** + * Overrides AdsUser::LogErrors(), setting an additional log level for report + * download requests. + */ + public function LogErrors() { + parent::LogErrors(); + Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$ERROR); + } + + /** + * Overrides AdsUser::LogAll(), setting an additional log level for report + * download requests. + */ + public function LogAll() { + parent::LogAll(); + Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$INFO); + } + + /** + * Gets the service by its service name and group. + * @param $serviceName the service name + * @param string $version the version of the service to get. If + * NULL, then the default version will be used + * @param string $server the server to make the request to. If + * NULL, then the default server will be used + * @param SoapClientFactory $serviceFactory the factory to create the client. + * If NULL, then the built-in SOAP client factory will be used + * @param bool $validateOnly if the service should be created in validateOnly + * mode + * @param bool $partialFailure if the service should be created in + * partialFailure mode + * @return SoapClient the instantiated service + */ + public function GetService($serviceName, $version = NULL, $server = NULL, + SoapClientFactory $serviceFactory = NULL, $validateOnly = NULL, + $partialFailure = NULL) { + $this->ValidateUser(); + if (!isset($serviceFactory)) { + if (!isset($version)) { + $version = $this->GetDefaultVersion(); + } + + if (!isset($server)) { + $server = $this->GetDefaultServer(); + } + + $serviceFactory = new AdWordsSoapClientFactory($this, $version, $server, + $validateOnly, $partialFailure); + } + + return parent::GetServiceSoapClient($serviceName, $serviceFactory); + } + + /** + * Loads the classes within a service, so they can be used before the service + * is constructed. + * @param $serviceName the service name + * @param string $version the version of the service to get. If + * NULL, then the default version will be used + */ + public function LoadService($serviceName, $version = NULL) { + if (!isset($version)) { + $version = $this->GetDefaultVersion(); + } + $serviceFactory = new AdWordsSoapClientFactory($this, $version, NULL, NULL, + NULL); + $serviceFactory->DoRequireOnce($serviceName); + } + + /** + * Regenerates the authentication token and sets it for this user. + * @param string $server the server to retrieve the token from + * @return string the newly generated auth token + */ + public function RegenerateAuthToken($server = NULL) { + if (!isset($server)) { + $server = $this->GetAuthServer(); + } + $authTokenClient = new AuthToken($this->email, $this->password, 'adwords', + $this->GetClientLibraryUserAgent(), 'GOOGLE', $server); + $authToken = $authTokenClient->GetAuthToken(); + $this->SetAuthToken($authToken); + return $authToken; + } + + /** + * Gets the authentication token. + * @return string the auth token + */ + public function GetAuthToken() { + $authToken = $this->GetHeaderValue('authToken'); + if (!isset($authToken) && isset($this->email) && isset($this->password)) { + $authToken = $this->RegenerateAuthToken(); + } + return $authToken; + } + + /** + * Sets the authentication token. + * @param string $authToken the auth token to set + */ + public function SetAuthToken($authToken) { + $this->SetHeaderValue('authToken', $authToken); + } + + /** + * Gets the developer token for this user. + * @return string the developer token + */ + public function GetDeveloperToken() { + return $this->GetHeaderValue('developerToken'); + } + + /** + * Sets the developer token for this user. + * @param string $developerToken the developer token + */ + public function SetDeveloperToken($developerToken) { + $this->SetHeaderValue('developerToken', $developerToken); + } + + /** + * Gets the application token that this user. + * @return string the application token + */ + public function GetApplicationToken() { + return $this->GetHeaderValue('applicationToken'); + } + + /** + * Sets the application token for this user. + * @param string $applicationToken the application token + */ + public function SetApplicationToken($applicationToken) { + $this->SetHeaderValue('applicationToken', $applicationToken); + } + + /** + * Gets the client customer ID for this user. + * @return string the client customer ID for this user + */ + public function GetClientCustomerId() { + return $this->GetHeaderValue('clientCustomerId'); + } + + /** + * Sets the client customer ID for this user. + * @param string $clientCustomerId the client customer ID for this user + */ + public function SetClientCustomerId($clientCustomerId) { + $this->SetHeaderValue('clientCustomerId', $clientCustomerId); + } + + /** + * Gets the AdWords Express business ID required for AdWords Express + * PromotionService + */ + public function GetExpressBusinessId() { + return $this->GetHeaderValue('expressBusinessId'); + } + + /** + * Sets the AdWords Express business ID required for AdWords Express + * PromotionService + */ + public function SetExpressBusinessId($businessId) { + $this->SetHeaderValue('expressBusinessId', $businessId); + } + + /** + * Gets the raw user agent for this user. + * @return string The raw user agent. + */ + public function GetUserAgent() { + return $this->userAgent; + } + + /** + * Sets the raw user agent for this user. + * @param string $userAgent The raw user agent. + */ + public function SetUserAgent($userAgent) { + $this->userAgent = $userAgent; + } + + /** + * @see AdsUser::GetUserAgentHeaderName() + */ + public function GetUserAgentHeaderName() { + return self::USER_AGENT_HEADER_NAME; + } + + /** + * @see AdsUser::GetClientLibraryNameAndVersion() + */ + public function GetClientLibraryNameAndVersion() { + return array($this->libName, $this->libVersion); + } + + /** + * Gets the email address of the user login. + * @return string the user login email + */ + public function GetEmail() { + return $this->email; + } + + /** + * Sets the email address of the user login. + * @param string $email the user login email + */ + public function SetEmail($email) { + $this->email = $email; + } + + /** + * Gets the password for this user. + * @return string the password for this user + */ + public function GetPassword() { + return $this->password; + } + + /** + * Sets the password for this user. + * @param string $password the password for this user + */ + public function SetPassword($password) { + $this->password = $password; + } + + /** + * Validates the user and throws a validation error if there are any errors. + * @throws ValidationException if there are any validation errors + */ + public function ValidateUser() { + if ($this->GetOAuth2Info() !== NULL) { + parent::ValidateOAuth2Info(); + } else if ($this->GetAuthToken() === NULL) { + if (!isset($this->email)) { + throw new ValidationException('email', NULL, + 'email is required and cannot be NULL.'); + } + + if (!isset($this->password)) { + throw new ValidationException('password', NULL, + 'password is required and cannot be NULL.'); + } + // Generate an authToken. + $this->RegenerateAuthToken(); + } + + if ($this->GetUserAgent() === NULL + || trim($this->GetUserAgent()) === '' + || strpos($this->GetUserAgent(), self::DEFAULT_USER_AGENT) !== false) { + throw new ValidationException('userAgent', NULL, + sprintf("The property userAgent is required and cannot be " + . "NULL, the empty string, or the default [%s]", + self::DEFAULT_USER_AGENT)); + } + + if ($this->GetDeveloperToken() === NULL) { + throw new ValidationException('developerToken', NULL, + 'developerToken is required and cannot be NULL.'); + } + } + + /** + * Get the default OAuth2 Handler for this user. + * @param NULL|string $className the name of the oauth2Handler class or NULL + * @return mixed the configured OAuth2Handler class + */ + public function GetDefaultOAuth2Handler($className = NULL) { + $className = !empty($className) ? $className : self::OAUTH2_HANDLER_CLASS; + return new $className($this->GetAuthServer(), self::OAUTH2_SCOPE); + } + + /** + * Handles calls to undefined methods. + * @param string $name the name of the method being called + * @param array $arguments the arguments passed to the method + * @return mixed the result of the correct method call, or nothing if there + * is no correct method + */ + public function __call($name, $arguments) { + // Handle calls to legacy Get*Service() methods. + if (preg_match('/^Get(\w+Service)$/i', $name, $matches)) { + $serviceName = $matches[1]; + array_unshift($arguments, $serviceName); + return call_user_func_array(array($this, 'GetService'), $arguments); + } + } +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/api.properties b/src/Google/Api/Ads/AdWords/Lib/api.properties new file mode 100755 index 000000000..f8310ac93 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/api.properties @@ -0,0 +1,102 @@ +;; Library +lib.product=AdWords +lib.package=GoogleApiAdsAdWords +lib.author= + +;; WSDL2PHP +;; Optionally specify a proxy to use when processing the WSDLs in the format +;; tcp://host:port. +wsdl2php.proxy= +;; If enabled, class names (but not service names) will be prefixed with the +;; package name. Ex) GoogleApiAdsAdWords_Campaign +wsdl2php.enablePseudoNamespaces=false +;; Class map to be used if pseudo-namespace support is not enabled, to work +;; around common conflicts, in JSON format. +wsdl2php.conflictClassmap={"DateTime":"AdWordsDateTime", "SoapHeader":"SoapRequestHeader"} +;; Other class fixes. +wsdl2php.classmap={"getResponse":"${service}GetResponse", "get":"${service}Get", "mutate":"${service}Mutate", "mutateResponse":"${service}MutateResponse", "mutateCallToAction":"${service}MutateCallToAction", "search":"${service}Search", "Function":"FeedFunction"} +wsdl2php.skipClassNameCheckTypes=Target,Location + +;; API +api.server=https://adwords.google.com +api.versions=v201306,v201309 + +;; v201306 +api.versions.v201306.services=AdExtensionOverrideService,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,ReportDefinitionService,SharedCriterionService,SharedSetService,TargetingIdeaService,TrafficEstimatorService +api.versions.v201306.services.AdExtensionOverrideService.wsdl=${api.server}/api/adwords/cm/v201306/AdExtensionOverrideService?wsdl +api.versions.v201306.services.AdGroupAdService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupAdService?wsdl +api.versions.v201306.services.AdGroupBidModifierService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupBidModifierService?wsdl +api.versions.v201306.services.AdGroupCriterionService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupCriterionService?wsdl +api.versions.v201306.services.AdGroupFeedService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupFeedService?wsdl +api.versions.v201306.services.AdGroupService.wsdl=${api.server}/api/adwords/cm/v201306/AdGroupService?wsdl +api.versions.v201306.services.AdParamService.wsdl=${api.server}/api/adwords/cm/v201306/AdParamService?wsdl +api.versions.v201306.services.AdwordsUserListService.wsdl=${api.server}/api/adwords/rm/v201306/AdwordsUserListService?wsdl +api.versions.v201306.services.AlertService.wsdl=${api.server}/api/adwords/mcm/v201306/AlertService?wsdl +api.versions.v201306.services.BiddingStrategyService.wsdl=${api.server}/api/adwords/cm/v201306/BiddingStrategyService?wsdl +api.versions.v201306.services.BudgetOrderService.wsdl=${api.server}/api/adwords/billing/v201306/BudgetOrderService?wsdl +api.versions.v201306.services.BudgetService.wsdl=${api.server}/api/adwords/cm/v201306/BudgetService?wsdl +api.versions.v201306.services.CampaignAdExtensionService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignAdExtensionService?wsdl +api.versions.v201306.services.CampaignCriterionService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignCriterionService?wsdl +api.versions.v201306.services.CampaignFeedService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignFeedService?wsdl +api.versions.v201306.services.CampaignService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignService?wsdl +api.versions.v201306.services.CampaignSharedSetService.wsdl=${api.server}/api/adwords/cm/v201306/CampaignSharedSetService?wsdl +api.versions.v201306.services.ConstantDataService.wsdl=${api.server}/api/adwords/cm/v201306/ConstantDataService?wsdl +api.versions.v201306.services.ConversionTrackerService.wsdl=${api.server}/api/adwords/cm/v201306/ConversionTrackerService?wsdl +api.versions.v201306.services.CustomerService.wsdl=${api.server}/api/adwords/mcm/v201306/CustomerService?wsdl +api.versions.v201306.services.CustomerSyncService.wsdl=${api.server}/api/adwords/ch/v201306/CustomerSyncService?wsdl +api.versions.v201306.services.DataService.wsdl=${api.server}/api/adwords/cm/v201306/DataService?wsdl +api.versions.v201306.services.ExperimentService.wsdl=${api.server}/api/adwords/cm/v201306/ExperimentService?wsdl +api.versions.v201306.services.FeedItemService.wsdl=${api.server}/api/adwords/cm/v201306/FeedItemService?wsdl +api.versions.v201306.services.FeedMappingService.wsdl=${api.server}/api/adwords/cm/v201306/FeedMappingService?wsdl +api.versions.v201306.services.FeedService.wsdl=${api.server}/api/adwords/cm/v201306/FeedService?wsdl +api.versions.v201306.services.GeoLocationService.wsdl=${api.server}/api/adwords/cm/v201306/GeoLocationService?wsdl +api.versions.v201306.services.LocationCriterionService.wsdl=${api.server}/api/adwords/cm/v201306/LocationCriterionService?wsdl +api.versions.v201306.services.ManagedCustomerService.wsdl=${api.server}/api/adwords/mcm/v201306/ManagedCustomerService?wsdl +api.versions.v201306.services.MediaService.wsdl=${api.server}/api/adwords/cm/v201306/MediaService?wsdl +api.versions.v201306.services.MutateJobService.wsdl=${api.server}/api/adwords/cm/v201306/MutateJobService?wsdl +api.versions.v201306.services.ReportDefinitionService.wsdl=${api.server}/api/adwords/cm/v201306/ReportDefinitionService?wsdl +api.versions.v201306.services.SharedCriterionService.wsdl=${api.server}/api/adwords/cm/v201306/SharedCriterionService?wsdl +api.versions.v201306.services.SharedSetService.wsdl=${api.server}/api/adwords/cm/v201306/SharedSetService?wsdl +api.versions.v201306.services.TargetingIdeaService.wsdl=${api.server}/api/adwords/o/v201306/TargetingIdeaService?wsdl +api.versions.v201306.services.TrafficEstimatorService.wsdl=${api.server}/api/adwords/o/v201306/TrafficEstimatorService?wsdl + +;; 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.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 +api.versions.v201309.services.AdGroupFeedService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupFeedService?wsdl +api.versions.v201309.services.AdGroupService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupService?wsdl +api.versions.v201309.services.AdParamService.wsdl=${api.server}/api/adwords/cm/v201309/AdParamService?wsdl +api.versions.v201309.services.AdwordsUserListService.wsdl=${api.server}/api/adwords/rm/v201309/AdwordsUserListService?wsdl +api.versions.v201309.services.AlertService.wsdl=${api.server}/api/adwords/mcm/v201309/AlertService?wsdl +api.versions.v201309.services.BiddingStrategyService.wsdl=${api.server}/api/adwords/cm/v201309/BiddingStrategyService?wsdl +api.versions.v201309.services.BudgetOrderService.wsdl=${api.server}/api/adwords/billing/v201309/BudgetOrderService?wsdl +api.versions.v201309.services.BudgetService.wsdl=${api.server}/api/adwords/cm/v201309/BudgetService?wsdl +api.versions.v201309.services.CampaignAdExtensionService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignAdExtensionService?wsdl +api.versions.v201309.services.CampaignCriterionService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignCriterionService?wsdl +api.versions.v201309.services.CampaignFeedService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignFeedService?wsdl +api.versions.v201309.services.CampaignService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignService?wsdl +api.versions.v201309.services.CampaignSharedSetService.wsdl=${api.server}/api/adwords/cm/v201309/CampaignSharedSetService?wsdl +api.versions.v201309.services.ConstantDataService.wsdl=${api.server}/api/adwords/cm/v201309/ConstantDataService?wsdl +api.versions.v201309.services.ConversionTrackerService.wsdl=${api.server}/api/adwords/cm/v201309/ConversionTrackerService?wsdl +api.versions.v201309.services.CustomerService.wsdl=${api.server}/api/adwords/mcm/v201309/CustomerService?wsdl +api.versions.v201309.services.CustomerSyncService.wsdl=${api.server}/api/adwords/ch/v201309/CustomerSyncService?wsdl +api.versions.v201309.services.DataService.wsdl=${api.server}/api/adwords/cm/v201309/DataService?wsdl +api.versions.v201309.services.ExperimentService.wsdl=${api.server}/api/adwords/cm/v201309/ExperimentService?wsdl +api.versions.v201309.services.ExpressBusinessService.wsdl=${api.server}/api/adwords/express/v201309/ExpressBusinessService?wsdl +api.versions.v201309.services.FeedItemService.wsdl=${api.server}/api/adwords/cm/v201309/FeedItemService?wsdl +api.versions.v201309.services.FeedMappingService.wsdl=${api.server}/api/adwords/cm/v201309/FeedMappingService?wsdl +api.versions.v201309.services.FeedService.wsdl=${api.server}/api/adwords/cm/v201309/FeedService?wsdl +api.versions.v201309.services.GeoLocationService.wsdl=${api.server}/api/adwords/cm/v201309/GeoLocationService?wsdl +api.versions.v201309.services.LocationCriterionService.wsdl=${api.server}/api/adwords/cm/v201309/LocationCriterionService?wsdl +api.versions.v201309.services.ManagedCustomerService.wsdl=${api.server}/api/adwords/mcm/v201309/ManagedCustomerService?wsdl +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.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 +api.versions.v201309.services.SharedSetService.wsdl=${api.server}/api/adwords/cm/v201309/SharedSetService?wsdl +api.versions.v201309.services.TargetingIdeaService.wsdl=${api.server}/api/adwords/o/v201309/TargetingIdeaService?wsdl +api.versions.v201309.services.TrafficEstimatorService.wsdl=${api.server}/api/adwords/o/v201309/TrafficEstimatorService?wsdl diff --git a/src/Google/Api/Ads/AdWords/Lib/build.ini b/src/Google/Api/Ads/AdWords/Lib/build.ini new file mode 100755 index 000000000..a16d8ee8f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Lib/build.ini @@ -0,0 +1,2 @@ +LIB_NAME = "AwApi-PHP" + diff --git a/src/Google/Api/Ads/AdWords/Util/ReportUtils.php b/src/Google/Api/Ads/AdWords/Util/ReportUtils.php new file mode 100755 index 000000000..6214dba02 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/Util/ReportUtils.php @@ -0,0 +1,852 @@ +NULL, + * then the default server will be used + * {string} version: the version to make the request against. If + * NULL, then the default version will be used + * @return mixed if path isn't specified the contents of the report, + * otherwise the size in bytes of the downloaded report + */ + public static function DownloadReport($reportDefinition, $path = NULL, + AdWordsUser $user, array $options = NULL) { + $url = self::GetUrl($user, $options); + $headers = self::GetHeaders($user, $url, $options); + $params = self::GetParams($reportDefinition); + return self::DownloadReportFromUrl($url, $headers, $params, $path); + } + + /** + * Downloads a report with AWQL. If the path parameter is specified it will be + * downloaded to the file at that path, otherwise it will be downloaded to + * memory and be returned as a string. + * @param string $reportQuery the query to use for the report + * @param string $path an optional path of the file to download the report to + * @param AdWordsUser $user the user to retrieve report with + * @param string $reportFormat: the report format to request + * @param array $options the option to use when downloading the report: + * {string} server: the server to make the request to. If NULL, + * then the default server will be used + * {string} version: the version to make the request against. If + * NULL, then the default version will be used + * @return mixed if path isn't specified the contents of the report, + * otherwise the size in bytes of the downloaded report + */ + public static function DownloadReportWithAwql($reportQuery, $path = NULL, + AdWordsUser $user, $reportFormat, array $options = NULL) { + $url = self::GetUrl($user, $options); + $headers = self::GetHeaders($user, $url, $options); + $params = self::GetQueryParams($reportQuery, $reportFormat); + return self::DownloadReportFromUrl($url, $headers, $params, $path); + } + + /** + * Downloads a report using the URL provided. + * @param string $url the URL to make the request to + * @param array $headers the headers to use in the request + * @param array $params the parameters to pass in the request + * @param string $path the optional path to download the report to + * @return mixed if path isn't specified the contents of the report, + * otherwise the size in bytes of the downloaded report + */ + private static function DownloadReportFromUrl($url, $headers, $params, + $path = NULL) { + /* + * This method should not be static and instantiation of this class should + * be allowed so we can "inject" CurlUtils, but would break too many things + * that rely on this method being static. + */ + $curlUtils = new CurlUtils(); + $ch = $curlUtils->CreateSession($url); + + $curlUtils->SetOpt($ch, CURLOPT_POST, TRUE); + $curlUtils->SetOpt($ch, CURLINFO_HEADER_OUT, TRUE); + + $flatHeaders = array(); + foreach($headers as $name => $value) { + $flatHeaders[] = sprintf('%s: %s', $name, $value); + } + $curlUtils->SetOpt($ch, CURLOPT_HTTPHEADER, $flatHeaders); + + if (isset($params)) { + $curlUtils->SetOpt($ch, CURLOPT_POSTFIELDS, $params); + } + + if (isset($path)) { + $file = fopen($path, 'w'); + $curlUtils->SetOpt($ch, CURLOPT_RETURNTRANSFER, FALSE); + $curlUtils->SetOpt($ch, CURLOPT_FILE, $file); + } + + $response = $curlUtils->Exec($ch); + $error = $curlUtils->Error($ch); + $code = $curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE); + $downloadSize = $curlUtils->GetInfo($ch, CURLINFO_SIZE_DOWNLOAD); + $request = $curlUtils->GetInfo($ch, CURLINFO_HEADER_OUT); + + $curlUtils->Close($ch); + if (isset($file)) { + fclose($file); + } + + $exception = null; + if ($code != 200) { + // Get the beginning of the response. + if (isset($path)) { + $file = fopen($path, 'r'); + $snippet = fread($file, self::$SNIPPET_LENGTH); + fclose($file); + } else { + $snippet = substr($response, 0, self::$SNIPPET_LENGTH); + } + // Create exception. + $error = self::ParseApiErrorXml($snippet); + if ($error) { + $errorMessage = "Report download failed. Underlying errors are \n"; + foreach ($error->ApiError as $apiError) { + $errorMessage .= sprintf("Type = '%s', Trigger = '%s', FieldPath = " . + "'%s'. ", $apiError->type, $apiError->trigger, + $apiError->fieldPath); + } + $exception = new ReportDownloadException($errorMessage, $code); + } else if (preg_match(self::$ERROR_MESSAGE_REGEX, $snippet, $matches)) { + $exception = new ReportDownloadException($matches[2], $code); + } else if (!empty($error)) { + $exception = new ReportDownloadException($error); + } else if (isset($code)) { + $exception = + new ReportDownloadException('Report download failed.', $code); + } + } + + self::LogRequest($request, $code, $params, $exception); + + if (isset($exception)) { + throw $exception; + } else if (isset($path)) { + return $downloadSize; + } else { + return $response; + } + } + + /** + * Tries to parse the error response xml from the AdWords API server as an + * object. This method is used in parsing all error responses when API + * version >= v201209, and in other versions when apiMode header is mentioned + * in the request headers. + * + * @param String $responseXml the error response xml + * @return Object the parsed error object, or null if the response cannot + * be parsed. + */ + private static function ParseApiErrorXml($responseXml) { + $retval = null; + try { + $doc = XmlUtils::GetDomFromXml($responseXml); + $retval = XmlUtils::ConvertDocumentToObject($doc); + if (!is_array($retval->ApiError)) { + $retval->ApiError = array($retval->ApiError); + } + } catch (Exception $e) { + // There was a parse exception and hence this response cannot be + // interpreted as an xml. + } + return $retval; + } + + /** + * Generates the URL to use for the download request. + * @param AdWordsUser $user the AdWordsUser to make the request for + * @param array $options the options configured for the download + * @return string the download URL + */ + private static function GetUrl($user, array $options = NULL) { + $server = !empty($options['server']) ? $options['server'] : + $user->GetDefaultServer(); + $version = !empty($options['version']) ? $options['version'] : NULL; + if (!isset($version) && $user->GetDefaultVersion() >= 'v201109') { + $version = $user->GetDefaultVersion(); + } + if (isset($server) && strpos($server, 'http') !== 0) { + throw new ReportDownloadException('Invalid server: ' . $server); + } + return sprintf(self::$DOWNLOAD_URL_FORMAT, $server, $version); + } + + /** + * Generates the parameters to use for the download request. + * @param mixed $reportDefinition the report definition, as an ID or object + * @return array the parameters + */ + private static function GetParams($reportDefinition) { + $params = array(); + if (is_numeric($reportDefinition)) { + $params['__rd'] = $reportDefinition; + } else if (is_object($reportDefinition) || is_array($reportDefinition)) { + $document = XmlUtils::ConvertObjectToDocument($reportDefinition, + 'reportDefinition'); + $document->formatOutput = TRUE; + $params['__rdxml'] = XmlUtils::GetXmlFromDom($document); + } else { + throw new ReportDownloadException('Invalid report definition type: ' + . $reportDefinition); + } + return $params; + } + + /** + * Generates the parameters to use for the download request with AWQL. + * @param string $reportQuery the report query, as string + * @param string $reportFormat the format to request report in, as string + * @return array the parameters + */ + private static function GetQueryParams($reportQuery, $reportFormat) { + if (!is_string($reportQuery) or !is_string($reportFormat)) { + throw new ReportDownloadException( + 'Invalid parameter supplied, string is expected' + ); + } + return array('__rdquery' => $reportQuery, '__fmt' => $reportFormat); + } + + /** + * Gets the HTTP headers for the report download request. + * @param AdWordsUser $user the AdWordsUser to get credentials from + * @param string $url the URL the request will be made to + * @param array $options the options for the download + * @return array and array of strings, which are header names and values + */ + private static function GetHeaders($user, $url, array $options = NULL) { + $headers = array(); + $version = !empty($options['version']) ? $options['version'] : + $user->GetDefaultVersion(); + // Authorization. + $authHeader = NULL; + $oAuth2Info = $user->GetOAuth2Info(); + $oAuth2Handler = $user->GetOAuth2Handler(); + if (!empty($oAuth2Info)) { + $oAuth2Info = $oAuth2Handler->GetOrRefreshAccessToken($oAuth2Info); + $user->SetOAuth2Info($oAuth2Info); + $authHeader = $oAuth2Handler->FormatCredentialsForHeader($oAuth2Info); + } else { + $authHeader = sprintf(self::CLIENT_LOGIN_FORMAT, $user->GetAuthToken()); + } + $headers['Authorization'] = $authHeader; + + // Developer token. + $headers['developerToken'] = $user->GetDeveloperToken(); + // Target client. + $email = $user->GetEmail(); + $clientCustomerId = $user->GetClientCustomerId(); + if (isset($clientCustomerId)) { + $headers['clientCustomerId'] = $clientCustomerId; + } else { + if ($version < 'v201109' && isset($email)) { + $headers['clientEmail'] = $email; + } else { + throw new ReportDownloadException('The client customer ID must be ' + . 'specified for report downloads.'); + } + } + // Flags. + if (isset($options['returnMoneyInMicros'])) { + $headers['returnMoneyInMicros'] = + $options['returnMoneyInMicros'] ? 'true' : 'false'; + } + return $headers; + } + + /** + * Logs the report download request. + * @param string $requestHeaders the HTTP request headers + * @param integer $responseCode the HTTP response code + * @param array $params the parameters that were sent, if any + * @param Exception $exception the exception that will be thrown, if any + */ + private static function LogRequest($requestHeaders, $responseCode, + $params = NULL, $exception = NULL) { + $level = isset($exception) ? Logger::$ERROR : Logger::$INFO; + $messageParts = array(); + $messageParts[] = trim($requestHeaders); + $messageParts[] = ''; // Blank line for readability. + $messageParts[] = "Parameters:"; + foreach ($params as $name => $value) { + $messageParts[] = sprintf('%s: %s', $name, $value); + } + $messageParts[] = ''; // Blank line for readability. + $messageParts[] = sprintf('Response Code: %s', $responseCode); + if (isset($exception)) { + $messageParts[] = sprintf('Error Message: %s', $exception->GetMessage()); + } + $messageParts[] = ''; // Blank line for readability. + $message = implode("\n", $messageParts); + Logger::Log(self::$LOG_NAME, $message, $level); + } +} + +/** + * Exception class for an error that occurs while downloading a report. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class ReportDownloadException extends Exception { + /** + * Constructor for ReportDownloadException. + * @param string $error an optional error message + * @param string $httpCode an optional HTTP status code of the response + */ + public function __construct($error = NULL, $httpCode = NULL) { + if (empty($error)) { + $error = 'Report download failed with status code: ' . $httpCode; + } + parent::__construct($error, $httpCode); + } +} + +if (!class_exists("ReportDefinition", FALSE)) { + /** + * Represents a report definition. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ + class ReportDefinition { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * @access public + * @var string + */ + public $reportName; + + /** + * @access public + * @var tnsReportDefinitionReportType + */ + public $reportType; + + /** + * @access public + * @var boolean + */ + public $hasAttachment; + + /** + * @access public + * @var tnsReportDefinitionDateRangeType + */ + public $dateRangeType; + + /** + * @access public + * @var tnsDownloadFormat + */ + public $downloadFormat; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var boolean + */ + public $includeZeroImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition"; + } + + public function __construct($id = NULL, $selector = NULL, $reportName = NULL, $reportType = NULL, $hasAttachment = NULL, $dateRangeType = NULL, $downloadFormat = NULL, $creationTime = NULL, $includeZeroImpressions = NULL) { + $this->id = $id; + $this->selector = $selector; + $this->reportName = $reportName; + $this->reportType = $reportType; + $this->hasAttachment = $hasAttachment; + $this->dateRangeType = $dateRangeType; + $this->downloadFormat = $downloadFormat; + $this->creationTime = $creationTime; + $this->includeZeroImpressions = $includeZeroImpressions; + } + } +} + +if (!class_exists("Selector", FALSE)) { + /** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ + class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } + } +} + +if (!class_exists("Predicate", FALSE)) { + /** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ + class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } + } +} + +if (!class_exists("PredicateOperator", FALSE)) { + /** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ + class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() {} + } +} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() {} +}} + +if (!class_exists("ReportDefinitionReportType", FALSE)) { +/** + * Enums for report types. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class ReportDefinitionReportType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition.ReportType"; + } + + public function __construct() {} +}} + +if (!class_exists("ReportDefinitionDateRangeType", FALSE)) { +/** + * Enums for date range of report. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class ReportDefinitionDateRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition.DateRangeType"; + } + + public function __construct() {} +}} + +if (!class_exists("DownloadFormat", FALSE)) { +/** + * Enum class that describes the supported formats for content downloads. + * The order mimics the order in which download options are presented in the + * legacy report center. + * @package GoogleApiAdsAdWords + * @subpackage Util + */ +class DownloadFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return ""; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DownloadFormat"; + } + + public function __construct() { + if(get_parent_class('DownloadFormat')) parent::__construct(); + } +}} + diff --git a/src/Google/Api/Ads/AdWords/auth.ini b/src/Google/Api/Ads/AdWords/auth.ini new file mode 100755 index 000000000..e071ebdb5 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/auth.ini @@ -0,0 +1,29 @@ +; Detailed descriptions of these properties can be found at: +; https://developers.google.com/adwords/api/docs/headers + +developerToken = "INSERT_DEVELOPER_TOKEN_HERE" +userAgent = "INSERT_COMPANY_NAME_HERE" +; Uncomment to make requests against a client customer account. +; clientCustomerId = "INSERT_CLIENT_CUSTOMER_ID_HERE" + +[OAUTH2] + +; If you do not have a client ID or secret, please create one of type +; "installed application" in the Google API console: +; https://cloud.google.com/console +client_id = "INSERT_OAUTH2_CLIENT_ID_HERE" +client_secret = "INSERT_OAUTH2_CLIENT_SECRET_HERE" + +; If you already have a refresh token, enter it below. Otherwise run +; GetRefreshToken.php. +refresh_token = "INSERT_OAUTH2_REFRESH_TOKEN_HERE" + +; (DEPRECATED) Uncomment the following to use ClientLogin. +; For more information, see: +; https://developers.google.com/accounts/docs/AuthForInstalledApps + +; email = "INSERT_EMAIL_ADDRESS_HERE" +; password = "INSERT_PASSWORD_HERE" +; Uncomment the following to use an existing ClientLogin AuthToken (optional). +; authToken = "INSERT_AUTH_TOKEN_HERE" + diff --git a/src/Google/Api/Ads/AdWords/settings.ini b/src/Google/Api/Ads/AdWords/settings.ini new file mode 100755 index 000000000..b17266217 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/settings.ini @@ -0,0 +1,57 @@ +[LOGGING] +; Log directory is either an absolute path, or relative path from the +; AdWordsUser.php file. +; PATH_RELATIVE = "0" +; LIB_LOG_DIR_PATH = "path/to/logs" + +[SERVER] +DEFAULT_VERSION = "v201309" +DEFAULT_SERVER = "https://adwords.google.com" + +[SOAP] +; Enable/disable gzip compression on SOAP requests and responses. +COMPRESSION = 1 + +; The level of gzip compression to use, from 1 to 9. The higher the level the +; greater the compression and time needed to perform the compression. The +; recommended and default value is 1. +COMPRESSION_LEVEL = 1 + +; The type of WSDL caching to use. The possible values are 0 (none), 1 (disk), +; 2 (memory), or 3 (disk and memory). The default value is 0. +WSDL_CACHE = 0 + +; Other WSDL caching settings can be set in php.ini. See the following page for +; the complete list: http://www.php.net/manual/en/soap.configuration.php + +[PROXY] +; Proxy settings to be used by HTTP (and therefore SOAP) requests. +; HOST = "" +; PORT = "" +; USER = "" +; PASSWORD = "" + +[AUTH] +; The server to use when making ClientLogin or OAuth2 requests. +; This normally doesn't need to be changed from the default value +; "https://accounts.google.com". +; AUTH_SERVER = "" + +; The OAuth2Handler class to use for OAuth2 flow. +; OAUTH2_HANDLER_CLASS = "SimpleOAuth2Handler" + +[SSL] +; Enable/disable peer verification of SSL certificates. If enabled, specify +; either CA_PATH or CA_FILE. +VERIFY_PEER = 0 + +; Enable/disable host verification of SSL certificates. This option requires +; that VERIFY_PEER is enabled. +VERIFY_HOST = 0 + +; The certificate authority directory to search in when performing peer +; validation. For example: /etc/ssl/certs +; CA_PATH = "" + +; The certificate authority file to use when performing peer validation. +; CA_FILE = "" diff --git a/src/Google/Api/Ads/AdWords/v201306/AdExtensionOverrideService.php b/src/Google/Api/Ads/AdWords/v201306/AdExtensionOverrideService.php new file mode 100755 index 000000000..2646702b4 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdExtensionOverrideService.php @@ -0,0 +1,4004 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("LocationOverrideInfo", FALSE)) { +/** + * Represents override info for ad level LocationExtension overrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationOverrideInfo { + /** + * @access public + * @var integer + */ + public $radius; + + /** + * @access public + * @var tnsLocationOverrideInfoRadiusUnits + */ + public $radiusUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo"; + } + + public function __construct($radius = NULL, $radiusUnits = NULL) { + $this->radius = $radius; + $this->radiusUnits = $radiusUnits; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("OverrideInfo", FALSE)) { +/** + * Represents additional override info with which to augment the override + * extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OverrideInfo { + /** + * @access public + * @var LocationOverrideInfo + */ + public $LocationOverrideInfo; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OverrideInfo"; + } + + public function __construct($LocationOverrideInfo = NULL) { + $this->LocationOverrideInfo = $LocationOverrideInfo; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("AdExtensionOverrideSelector", FALSE)) { +/** + * Specifies criteria for selecting a set of AdExtensionOverrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideSelector { + /** + * @access public + * @var integer[] + */ + public $campaignIds; + + /** + * @access public + * @var integer[] + */ + public $adIds; + + /** + * @access public + * @var integer[] + */ + public $adExtensionIds; + + /** + * @access public + * @var tnsAdExtensionOverrideStatus[] + */ + public $statuses; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideSelector"; + } + + public function __construct($campaignIds = NULL, $adIds = NULL, $adExtensionIds = NULL, $statuses = NULL, $paging = NULL) { + $this->campaignIds = $campaignIds; + $this->adIds = $adIds; + $this->adExtensionIds = $adExtensionIds; + $this->statuses = $statuses; + $this->paging = $paging; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

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

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("AdExtensionOverride", FALSE)) { +/** + * Represents an ad level ad extension override. An ad extension override + * specifies the ad extension that must be used if the ad is served with + * any ad extension data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverride { + /** + * @access public + * @var integer + */ + public $adId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var OverrideInfo + */ + public $overrideInfo; + + /** + * @access public + * @var tnsAdExtensionOverrideStatus + */ + public $status; + + /** + * @access public + * @var tnsAdExtensionOverrideApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var AdExtensionOverrideStats + */ + public $stats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride"; + } + + public function __construct($adId = NULL, $adExtension = NULL, $overrideInfo = NULL, $status = NULL, $approvalStatus = NULL, $stats = NULL) { + $this->adId = $adId; + $this->adExtension = $adExtension; + $this->overrideInfo = $overrideInfo; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->stats = $stats; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdExtensionOverrideApprovalStatus", FALSE)) { +/** + * Approval status for the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideStatus", FALSE)) { +/** + * Status of the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideErrorReason", FALSE)) { +/** + * Cannot override an ad that is already overriden with an adextension + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationOverrideInfoRadiusUnits", FALSE)) { +/** + * Radius units + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationOverrideInfoRadiusUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo.RadiusUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideServiceGet", FALSE)) { +/** + * Returns a list of AdExtensionOverrides based on an + * AdExtensionOverrideSelector. + * @param selector The selector specifying the query. + * @return The page containing the AdExtensionOverride which meet the + * criteria specified by the selector. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideServiceGet { + /** + * @access public + * @var AdExtensionOverrideSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdExtensionOverrideServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideServiceGetResponse { + /** + * @access public + * @var AdExtensionOverridePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdExtensionOverrideServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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, REMOVE. + * + * + * + * Applies the list of mutate operations. + * + *

Conditions for adding an ad-level AdExtension override using an AdExtension + * under the Ad's campaign:

+ *
    + *
  1. If the text ad has never been overridden, an AdExtension override may + * be set on the creative using an extension under the campaign, along with + * any override info.
  2. + *
  3. If the text ad has been overriden before, the latitude/longitude of the + * new extension override must be the same as the previous override and + * no override info can be specified (i.e. the override info will inherit from + * the previous override info).
  4. + *
+ * + * @param operations The operations to apply. The same ad extension override + * cannot be specified in more than one operation. + * @return The applied ad extension overrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideServiceMutate { + /** + * @access public + * @var AdExtensionOverrideOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdExtensionOverrideServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideServiceMutateResponse { + /** + * @access public + * @var AdExtensionOverrideReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdExtensionOverrideError", FALSE)) { +/** + * AdExtensionOverride errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideError extends ApiError { + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError"; + } + + 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("AdExtensionOverrideStats", FALSE)) { +/** + * Represents stats specific to AdExtensionOverrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("InAppLinkExtension", FALSE)) { +/** + *

This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

It is also known as Mobile App Extension. + * + *

The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

+ *

Learn more about + * + * phone extensions. + *

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("AdExtensionOverrideOperation", FALSE)) { +/** + * AdExtensionOverride service operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideOperation extends Operation { + /** + * @access public + * @var AdExtensionOverride + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdExtensionOverridePage", FALSE)) { +/** + * Represents a page of {@link AdExtensionOverride}s resulting from the query + * done by {@link AdExtensionOverrideService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverridePage extends Page { + /** + * @access public + * @var AdExtensionOverride[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverridePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdExtensionOverrideReturnValue", FALSE)) { +/** + * A container for return values from AdExtensionOverrideService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideReturnValue extends ListReturnValue { + /** + * @access public + * @var AdExtensionOverride[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdExtensionOverrideService", FALSE)) { +/** + * AdExtensionOverrideService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdExtensionOverrideService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdExtensionOverrideServiceGetResponse", + "get" => "AdExtensionOverrideServiceGet", + "mutate" => "AdExtensionOverrideServiceMutate", + "mutateResponse" => "AdExtensionOverrideServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdExtensionOverrideError" => "AdExtensionOverrideError", + "ApiError" => "ApiError", + "AdExtensionOverrideStats" => "AdExtensionOverrideStats", + "Stats" => "Stats", + "Address" => "Address", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "AdExtension" => "AdExtension", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "LocationOverrideInfo" => "LocationOverrideInfo", + "LongValue" => "LongValue", + "MobileExtension" => "MobileExtension", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "ComparableValue" => "ComparableValue", + "OAuthInfo" => "OAuthInfo", + "OperatorError" => "OperatorError", + "OverrideInfo" => "OverrideInfo", + "Paging" => "Paging", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AdExtensionOverrideSelector" => "AdExtensionOverrideSelector", + "DatabaseError" => "DatabaseError", + "LocationExtension" => "LocationExtension", + "Money" => "Money", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "LocationSyncExtension" => "LocationSyncExtension", + "AdExtensionOverride" => "AdExtensionOverride", + "AdExtensionOverrideOperation" => "AdExtensionOverrideOperation", + "Operation" => "Operation", + "AdExtensionOverridePage" => "AdExtensionOverridePage", + "Page" => "Page", + "AdExtensionOverrideReturnValue" => "AdExtensionOverrideReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdExtensionOverride.ApprovalStatus" => "AdExtensionOverrideApprovalStatus", + "AdExtensionOverride.Status" => "AdExtensionOverrideStatus", + "AdExtensionOverrideError.Reason" => "AdExtensionOverrideErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LocationExtension.Source" => "LocationExtensionSource", + "LocationOverrideInfo.RadiusUnits" => "LocationOverrideInfoRadiusUnits", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "Stats.Network" => "StatsNetwork", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdExtensionOverrideService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdExtensionOverrideService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdExtensionOverrideService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * Returns a list of AdExtensionOverrides based on an + * AdExtensionOverrideSelector. + * @param selector The selector specifying the query. + * @return The page containing the AdExtensionOverride which meet the + * criteria specified by the selector. + */ + public function get($selector) { + $arg = new AdExtensionOverrideServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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, REMOVE. + * + * + * + * Applies the list of mutate operations. + * + *

Conditions for adding an ad-level AdExtension override using an AdExtension + * under the Ad's campaign:

+ *
    + *
  1. If the text ad has never been overridden, an AdExtension override may + * be set on the creative using an extension under the campaign, along with + * any override info.
  2. + *
  3. If the text ad has been overriden before, the latitude/longitude of the + * new extension override must be the same as the previous override and + * no override info can be specified (i.e. the override info will inherit from + * the previous override info).
  4. + *
+ * + * @param operations The operations to apply. The same ad extension override + * cannot be specified in more than one operation. + * @return The applied ad extension overrides. + */ + public function mutate($operations) { + $arg = new AdExtensionOverrideServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupAdService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupAdService.php new file mode 100755 index 000000000..02627e53b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupAdService.php @@ -0,0 +1,6604 @@ +This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Ad { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $displayUrl; + + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $AdType; + + private $_parameterMap = array ( + "Ad.Type" => "AdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Ad"; + } + + public function __construct($id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdGroupAd", FALSE)) { +/** + * Represents an ad in an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAd { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Ad + */ + public $ad; + + /** + * @access public + * @var AdGroupAdExperimentData + */ + public $experimentData; + + /** + * @access public + * @var tnsAdGroupAdStatus + */ + public $status; + + /** + * @access public + * @var tnsAdGroupAdApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var boolean + */ + public $trademarkDisapproved; + + /** + * @access public + * @var AdStats + */ + public $stats; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd"; + } + + public function __construct($adGroupId = NULL, $ad = NULL, $experimentData = NULL, $status = NULL, $approvalStatus = NULL, $trademarkDisapproved = NULL, $stats = NULL, $forwardCompatibilityMap = NULL) { + $this->adGroupId = $adGroupId; + $this->ad = $ad; + $this->experimentData = $experimentData; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->trademarkDisapproved = $trademarkDisapproved; + $this->stats = $stats; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("AdGroupAdExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for an AdGroupAd + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + } +}} + +if (!class_exists("AdUnionId", FALSE)) { +/** + * Represents an id indicating a grouping of Ads under some heuristic. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdUnionId { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdUnionIdType; + + private $_parameterMap = array ( + "AdUnionId.Type" => "AdUnionIdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DeprecatedAd", FALSE)) { +/** + * Represents a deprecated ad. + * + * Deprecated ads can be deleted, but cannot be created. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DeprecatedAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsDeprecatedAdType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd"; + } + + public function __construct($name = NULL, $type = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->type = $type; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("ImageAd", FALSE)) { +/** + * Represents an ImageAd. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageAd extends Ad { + /** + * @access public + * @var Image + */ + public $image; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $adToCopyImageFrom; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageAd"; + } + + public function __construct($image = NULL, $name = NULL, $adToCopyImageFrom = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->image = $image; + $this->name = $name; + $this->adToCopyImageFrom = $adToCopyImageFrom; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + 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("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("MobileAd", FALSE)) { +/** + * Represents a mobile ad. + * + *

+ * A mobile ad can contain a click-to-call phone number, a link to a website, + * or both. You specify which features you want by setting certain fields, as + * shown in the following table. For example, to create a click-to-call mobile + * ad, set the fields in the Click-to-call column. A hyphen indicates + * that you should not set the corresponding field. + *

+ *

+ * For more information, see + * + * Create a mobile ad. + *

+ * + * + * + * + * + * + * + * + *
Click-to-call Website Both
headline
+ * description
+ * mobileCarriers
+ * phoneNumber
+ * countryCode
+ * businessName
+ * -
+ * -
+ * -
+ *
headline
+ * description
+ * mobileCarriers
+ * -
+ * -
+ * -
+ * displayUrl
+ * destinationUrl
+ * markupLanguages
+ *
headline
+ * description
+ * mobileCarriers
+ * phoneNumber
+ * countryCode
+ * businessName
+ * displayUrl
+ * destinationUrl
+ * markupLanguages
+ *
+ * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var string + */ + public $businessName; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAd"; + } + + public function __construct($headline = NULL, $description = NULL, $markupLanguages = NULL, $mobileCarriers = NULL, $businessName = NULL, $countryCode = NULL, $phoneNumber = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description = $description; + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->businessName = $businessName; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("MobileImageAd", FALSE)) { +/** + * Represents a mobile image ad. + * + *

For more information, see + * + * Create a mobile ad.

+ * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileImageAd extends Ad { + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var Image + */ + public $image; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileImageAd"; + } + + public function __construct($markupLanguages = NULL, $mobileCarriers = NULL, $image = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->image = $image; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductAd", FALSE)) { +/** + * Represents a product ad (known as a product + * listing ad in the AdWords user interface). A product ad displays + * product data (managed using the Google Merchant Center) that is + * pulled from the Google base product feed specified in the parent campaign's + * {@linkplain ProductExtension product extension}. + * + *

Product ads are only available to a limited set of advertisers. If you + * are not eligible to use product ads, they will not serve.

+ * + *

Caution: Product ads do not use {@link #url url} or + * {@link #displayUrl displayUrl}; setting these fields on a product ad will + * cause an error.

+ * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductAd extends Ad { + /** + * @access public + * @var string + */ + public $promotionLine; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAd"; + } + + public function __construct($promotionLine = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->promotionLine = $promotionLine; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RichMediaAd", FALSE)) { +/** + * Data associated with a rich media ad. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $impressionBeaconUrl; + + /** + * @access public + * @var integer + */ + public $adDuration; + + /** + * @access public + * @var integer + */ + public $certifiedVendorFormatId; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var tnsRichMediaAdRichMediaAdType + */ + public $richMediaAdType; + + /** + * @access public + * @var tnsRichMediaAdAdAttribute[] + */ + public $adAttributes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd"; + } + + public function __construct($name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TempAdUnionId", FALSE)) { +/** + * Represents the temporary id for an ad union id, which the user can specify. + * The temporary id can be used to group ads together during ad creation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TempAdUnionId extends AdUnionId { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TempAdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + parent::__construct(); + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("TemplateAd", FALSE)) { +/** + * Represents a Display Ad Builder template ad. A template ad is + * composed of a template (specified by its ID) and the data that populates + * the template's fields. For a list of available templates and their required + * fields, see Template Ads. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateAd extends Ad { + /** + * @access public + * @var integer + */ + public $templateId; + + /** + * @access public + * @var AdUnionId + */ + public $adUnionId; + + /** + * @access public + * @var TemplateElement[] + */ + public $templateElements; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateAd"; + } + + public function __construct($templateId = NULL, $adUnionId = NULL, $templateElements = NULL, $dimensions = NULL, $name = NULL, $duration = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->templateId = $templateId; + $this->adUnionId = $adUnionId; + $this->templateElements = $templateElements; + $this->dimensions = $dimensions; + $this->name = $name; + $this->duration = $duration; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TemplateElement", FALSE)) { +/** + * Represents an element in a template. Each template element is composed + * of a list of fields (actual value data). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElement { + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var TemplateElementField[] + */ + public $fields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElement"; + } + + public function __construct($uniqueName = NULL, $fields = NULL) { + $this->uniqueName = $uniqueName; + $this->fields = $fields; + } +}} + +if (!class_exists("TemplateElementField", FALSE)) { +/** + * Represents a field in a template element. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElementField { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsTemplateElementFieldType + */ + public $type; + + /** + * @access public + * @var string + */ + public $fieldText; + + /** + * @access public + * @var Media + */ + public $fieldMedia; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField"; + } + + public function __construct($name = NULL, $type = NULL, $fieldText = NULL, $fieldMedia = NULL) { + $this->name = $name; + $this->type = $type; + $this->fieldText = $fieldText; + $this->fieldMedia = $fieldMedia; + } +}} + +if (!class_exists("TextAd", FALSE)) { +/** + * Represents a TextAd. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TextAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAd"; + } + + public function __construct($headline = NULL, $description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ThirdPartyRedirectAd", FALSE)) { +/** + * Data associated with rich media extension attributes. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ThirdPartyRedirectAd extends RichMediaAd { + /** + * @access public + * @var boolean + */ + public $isCookieTargeted; + + /** + * @access public + * @var boolean + */ + public $isUserInterestTargeted; + + /** + * @access public + * @var boolean + */ + public $isTagged; + + /** + * @access public + * @var tnsVideoType[] + */ + public $videoTypes; + + /** + * @access public + * @var tnsThirdPartyRedirectAdExpandingDirection[] + */ + public $expandingDirections; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd"; + } + + public function __construct($isCookieTargeted = NULL, $isUserInterestTargeted = NULL, $isTagged = NULL, $videoTypes = NULL, $expandingDirections = NULL, $name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->isCookieTargeted = $isCookieTargeted; + $this->isUserInterestTargeted = $isUserInterestTargeted; + $this->isTagged = $isTagged; + $this->videoTypes = $videoTypes; + $this->expandingDirections = $expandingDirections; + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("DynamicSearchAd", FALSE)) { +/** + * Represents a dynamic search ad. This ad will have its headline and + * destination URL auto-generated at serving time according to domain name + * specific information provided by {@link DomainInfoExtension} linked at the + * campaign level. + * + *

Auto-generated fields: headline and destination URL (may contain an optional + * tracking URL)

+ * + *

Required fields: description1, description2, displayUrl

+ * + *

The URL field must contain at least one of the following placeholder tags + * (URL parameters): {unescapedlpurl}, {escapedlpurl}, {lpurlpath}. If no URL is + * specified, {unescapedlpurl} will be used as default.

+ * + *

{unescapedlpurl} can only be used at the beginning of the URL field. It + * will be replaced with the full landing page URL of the displayed ad. Extra query + * parameters can be added to the end, e.g. "{unescapedlpurl}?lang=en".

+ * + *

{escapedlpurl} will be replaced with the URL-encoded version of the full + * landing page URL. This makes it suitable for use as a query parameter + * value (e.g. "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but + * not at the beginning of the url field.

+ * + *

{lpurlpath} will be replaced with the path and query part of the landing + * page URL and can be added to a different URL, e.g. + * "http://www.mygoodbusiness.com/tracking/{lpurlpath}".

+ * + *

There are also special rules that come into play depending on whether the + * destination URL uses local click tracking or third-party click tracking.

+ * + *

For more information, see the article Using dynamic tracking URLs. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DynamicSearchAd extends Ad { + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DynamicSearchAd"; + } + + public function __construct($description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdApprovalStatus", FALSE)) { +/** + * Represents the possible approval statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdStatus", FALSE)) { +/** + * The current status of an Ad. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeprecatedAdType", FALSE)) { +/** + * Video ad. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DeprecatedAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MarkupLanguageType", FALSE)) { +/** + * Markup languages to use for mobile ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MarkupLanguageType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MarkupLanguageType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdAdAttribute", FALSE)) { +/** + * A set of attributes that describe the rich media ad capabilities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAdAdAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.AdAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdRichMediaAdType", FALSE)) { +/** + * Different types of rich media ad that are available to customers. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAdRichMediaAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.RichMediaAdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateElementFieldType", FALSE)) { +/** + * Possible field types of template element fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElementFieldType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyRedirectAdExpandingDirection", FALSE)) { +/** + * Allowed expanding directions for ads that are expandable. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ThirdPartyRedirectAdExpandingDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd.ExpandingDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoType", FALSE)) { +/** + * VideoType enum values that are permitted for video filterable + * creative attribute IDs. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class VideoType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds. + * + * @param serviceSelector The selector specifying the {@link AdGroupAd}s to return. + * @return The page containing the AdGroupAds that meet the criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupAdServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdServiceGetResponse { + /** + * @access public + * @var AdGroupAdPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupAdServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations (ie. add, set, remove): + *

Add - Creates a new {@linkplain AdGroupAd ad group ad}. The + * {@code adGroupId} must + * reference an existing ad group. The child {@code Ad} must be sufficiently + * specified by constructing a concrete ad type (such as {@code TextAd}) + * and setting its fields accordingly.

+ *

Set - Updates an ad group ad. Except for {@code status}, + * ad group ad fields are not mutable. Status updates are + * straightforward - the status of the ad group ad is updated as + * specified. If any other field has changed, it will be ignored. If + * you want to change any of the fields other than status, you must + * make a new ad and then delete the old one.

+ *

Remove - Removes the link between the specified AdGroup and + * Ad.

+ * @param operations The operations to apply. + * @return A list of AdGroupAds where each entry in the list is the result of + * applying the operation in the input list with the same index. For an + * add/set operation, the return AdGroupAd will be what is saved to the db. + * In the case of the remove operation, the return AdGroupAd will simply be + * an AdGroupAd containing an Ad with the id set to the Ad being deleted from + * the AdGroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdServiceMutate { + /** + * @access public + * @var AdGroupAdOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupAdServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdServiceMutateResponse { + /** + * @access public + * @var AdGroupAdReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds based on the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of AdGroupAds. + * @throws ApiException if problems occur while parsing the query or fetching AdGroupAds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var AdGroupAdPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdError", FALSE)) { +/** + * Base error class for Ad Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdError extends ApiError { + /** + * @access public + * @var tnsAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError"; + } + + 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("AdExtensionOverrideStats", FALSE)) { +/** + * Represents stats specific to AdExtensionOverrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdGroupAdCountLimitExceeded", FALSE)) { +/** + * Indicates too many ads were added/enabled under the specified adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdCountLimitExceeded extends EntityCountLimitExceeded { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdError", FALSE)) { +/** + * Error information for AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdError extends ApiError { + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError"; + } + + 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("AdGroupAdOperation", FALSE)) { +/** + * AdGroupAd service operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdOperation extends Operation { + /** + * @access public + * @var AdGroupAd + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupAdPage", FALSE)) { +/** + * Represents a page of {@link AdGroupAd}s resulting from the query done by + * {@link AdGroupAdService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdPage extends Page { + /** + * @access public + * @var AdGroupAd[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupAdReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupAd[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdStats", FALSE)) { +/** + * Represents stats specific to Ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdStats extends Stats { + /** + * @access public + * @var double + */ + public $percentServed; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdStats"; + } + + public function __construct($percentServed = NULL, $startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->percentServed = $percentServed; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupAdService", FALSE)) { +/** + * AdGroupAdService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupAdService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupAdServiceGetResponse", + "get" => "AdGroupAdServiceGet", + "mutate" => "AdGroupAdServiceMutate", + "mutateResponse" => "AdGroupAdServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Ad" => "Ad", + "AdError" => "AdError", + "ApiError" => "ApiError", + "AdExtensionOverrideStats" => "AdExtensionOverrideStats", + "Stats" => "Stats", + "AdGroupAd" => "AdGroupAd", + "AdGroupAdCountLimitExceeded" => "AdGroupAdCountLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdGroupAdError" => "AdGroupAdError", + "AdGroupAdExperimentData" => "AdGroupAdExperimentData", + "AdGroupAdOperation" => "AdGroupAdOperation", + "Operation" => "Operation", + "AdGroupAdPage" => "AdGroupAdPage", + "Page" => "Page", + "AdGroupAdReturnValue" => "AdGroupAdReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdStats" => "AdStats", + "AdUnionId" => "AdUnionId", + "AdxError" => "AdxError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Audio" => "Audio", + "Media" => "Media", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DeprecatedAd" => "DeprecatedAd", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "ExemptionRequest" => "ExemptionRequest", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "IdError" => "IdError", + "Image" => "Image", + "ImageAd" => "ImageAd", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "MobileAd" => "MobileAd", + "MobileImageAd" => "MobileImageAd", + "Money" => "Money", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "PolicyViolationError" => "PolicyViolationError", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "ProductAd" => "ProductAd", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "RichMediaAd" => "RichMediaAd", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TempAdUnionId" => "TempAdUnionId", + "TemplateAd" => "TemplateAd", + "TemplateElement" => "TemplateElement", + "TemplateElementField" => "TemplateElementField", + "TextAd" => "TextAd", + "ThirdPartyRedirectAd" => "ThirdPartyRedirectAd", + "Video" => "Video", + "DynamicSearchAd" => "DynamicSearchAd", + "AdError.Reason" => "AdErrorReason", + "AdGroupAd.ApprovalStatus" => "AdGroupAdApprovalStatus", + "AdGroupAd.Status" => "AdGroupAdStatus", + "AdGroupAdError.Reason" => "AdGroupAdErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DeprecatedAd.Type" => "DeprecatedAdType", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MarkupLanguageType" => "MarkupLanguageType", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RichMediaAd.AdAttribute" => "RichMediaAdAdAttribute", + "RichMediaAd.RichMediaAdType" => "RichMediaAdRichMediaAdType", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TemplateElementField.Type" => "TemplateElementFieldType", + "ThirdPartyRedirectAd.ExpandingDirection" => "ThirdPartyRedirectAdExpandingDirection", + "VideoType" => "VideoType", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupAdService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupAdService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupAdService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds. + * + * @param serviceSelector The selector specifying the {@link AdGroupAd}s to return. + * @return The page containing the AdGroupAds that meet the criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new AdGroupAdServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations (ie. add, set, remove): + *

Add - Creates a new {@linkplain AdGroupAd ad group ad}. The + * {@code adGroupId} must + * reference an existing ad group. The child {@code Ad} must be sufficiently + * specified by constructing a concrete ad type (such as {@code TextAd}) + * and setting its fields accordingly.

+ *

Set - Updates an ad group ad. Except for {@code status}, + * ad group ad fields are not mutable. Status updates are + * straightforward - the status of the ad group ad is updated as + * specified. If any other field has changed, it will be ignored. If + * you want to change any of the fields other than status, you must + * make a new ad and then delete the old one.

+ *

Remove - Removes the link between the specified AdGroup and + * Ad.

+ * @param operations The operations to apply. + * @return A list of AdGroupAds where each entry in the list is the result of + * applying the operation in the input list with the same index. For an + * add/set operation, the return AdGroupAd will be what is saved to the db. + * In the case of the remove operation, the return AdGroupAd will simply be + * an AdGroupAd containing an Ad with the id set to the Ad being deleted from + * the AdGroup. + */ + public function mutate($operations) { + $arg = new AdGroupAdServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds based on the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of AdGroupAds. + * @throws ApiException if problems occur while parsing the query or fetching AdGroupAds. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupBidModifierService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupBidModifierService.php new file mode 100755 index 000000000..5fa301483 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupBidModifierService.php @@ -0,0 +1,2895 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdGroupBidModifier", FALSE)) { +/** + * Represents an adgroup level bid modifier override for campaign level criterion + * bid modifier values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifier { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var tnsBidModifierSource + */ + public $bidModifierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifier"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $criterion = NULL, $bidModifier = NULL, $bidModifierSource = NULL) { + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->bidModifierSource = $bidModifierSource; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidModifierSource", FALSE)) { +/** + * Enumerates possible sources for bid modifier. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidModifierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidModifierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupBidModifierServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets ad group level criterion bid modifiers. + * + * @param selector The selector specifying the {@link AdGroupBidModifier}s to return. + * @return A list of ad group bid modifiers. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdGroupBidModifierServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierServiceGetResponse { + /** + * @access public + * @var AdGroupBidModifierPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupBidModifierServiceMutate", FALSE)) { +/** + * 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, REMOVE, SET. + * + * + * + * Adds, removes or updates ad group bid modifier overrides. + * + * @param operations The operations to apply. + * @return The added ad group bid modifier overrides. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierServiceMutate { + /** + * @access public + * @var AdGroupBidModifierOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupBidModifierServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierServiceMutateResponse { + /** + * @access public + * @var AdGroupBidModifierReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AdGroupBidModifierOperation", FALSE)) { +/** + * Operation used to create or mutate a AdGroupBidModifier. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierOperation extends Operation { + /** + * @access public + * @var AdGroupBidModifier + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupBidModifierPage", FALSE)) { +/** + * Contains a subset of adgroup bid modifiers resulting from a call to + * {@link AdGroupBidModifierService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierPage extends Page { + /** + * @access public + * @var AdGroupBidModifier[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidModifierReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupBidModifierService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupBidModifier[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdGroupBidModifierService", FALSE)) { +/** + * AdGroupBidModifierService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupBidModifierService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupBidModifierServiceGetResponse", + "get" => "AdGroupBidModifierServiceGet", + "mutate" => "AdGroupBidModifierServiceMutate", + "mutateResponse" => "AdGroupBidModifierServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CriterionError" => "CriterionError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotWhitelistedError" => "NotWhitelistedError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Platform" => "Platform", + "Criterion" => "Criterion", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AdGroupBidModifier" => "AdGroupBidModifier", + "AdGroupBidModifierOperation" => "AdGroupBidModifierOperation", + "Operation" => "Operation", + "AdGroupBidModifierPage" => "AdGroupBidModifierPage", + "Page" => "Page", + "AdGroupBidModifierReturnValue" => "AdGroupBidModifierReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BidModifierSource" => "BidModifierSource", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupBidModifierService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupBidModifierService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupBidModifierService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets ad group level criterion bid modifiers. + * + * @param selector The selector specifying the {@link AdGroupBidModifier}s to return. + * @return A list of ad group bid modifiers. + * @throws ApiException when there is at least one error with the request. + */ + public function get($selector) { + $arg = new AdGroupBidModifierServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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, REMOVE, SET. + * + * + * + * Adds, removes or updates ad group bid modifier overrides. + * + * @param operations The operations to apply. + * @return The added ad group bid modifier overrides. + * @throws ApiException when there is at least one error with the request. + */ + public function mutate($operations) { + $arg = new AdGroupBidModifierServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupCriterionService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupCriterionService.php new file mode 100755 index 000000000..86628a8d8 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupCriterionService.php @@ -0,0 +1,7398 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QualityInfo", FALSE)) { +/** + * Container for criterion quality information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QualityInfo { + /** + * @access public + * @var boolean + */ + public $isKeywordAdRelevanceAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageQualityAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageLatencyAcceptable; + + /** + * @access public + * @var integer + */ + public $qualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QualityInfo"; + } + + public function __construct($isKeywordAdRelevanceAcceptable = NULL, $isLandingPageQualityAcceptable = NULL, $isLandingPageLatencyAcceptable = NULL, $qualityScore = NULL) { + $this->isKeywordAdRelevanceAcceptable = $isKeywordAdRelevanceAcceptable; + $this->isLandingPageQualityAcceptable = $isLandingPageQualityAcceptable; + $this->isLandingPageLatencyAcceptable = $isLandingPageLatencyAcceptable; + $this->qualityScore = $qualityScore; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +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}.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * Bid multiplier used to modify the bid of a criterion while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var string + */ + public $AdGroupCriterionExperimentBidMultiplierType; + + private $_parameterMap = array ( + "AdGroupCriterionExperimentBidMultiplier.Type" => "AdGroupCriterionExperimentBidMultiplierType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($AdGroupCriterionExperimentBidMultiplierType = NULL) { + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("BiddableAdGroupCriterionExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this {@link BiddableAdGroupCriterion}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddableAdGroupCriterionExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupCriterionExperimentBidMultiplier + */ + public $experimentBidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterionExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultiplier = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultiplier = $experimentBidMultiplier; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
    + *
  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
  • + *
+ * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * Flexible bidding is a beta feature. For more information on flexible bidding, + * visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdGroupCriterion", FALSE)) { +/** + * Represents a criterion in an ad group, used with AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterion { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsCriterionUse + */ + public $criterionUse; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $AdGroupCriterionType; + + private $_parameterMap = array ( + "AdGroupCriterion.Type" => "AdGroupCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApprovalStatus", FALSE)) { +/** + * Approval status for the criterion. + * Note: there are more states involved but we only expose two to users. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUse", FALSE)) { +/** + * The way a criterion is used - biddable or negative. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUse { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUse"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MultiplierSource", FALSE)) { +/** + * Denotes whether the bid multiplier is derived from the adgroup + * or the criterion + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MultiplierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MultiplierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SystemServingStatus", FALSE)) { +/** + * Reported by system to reflect the criterion's serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SystemServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SystemServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserStatus", FALSE)) { +/** + * Specified by user to pause or unpause a criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets adgroup criteria. + * + * @param serviceSelector filters the adgroup criteria to be returned. + * @return a page (subset) view of the criteria selected + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionServiceGetResponse { + /** + * @access public + * @var AdGroupCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, removes or updates adgroup criteria. + * + * @param operations operations to do + * during checks on keywords to be added. + * @return added and updated adgroup criteria (without optional parts) + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionServiceMutate { + /** + * @access public + * @var AdGroupCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionServiceMutateResponse { + /** + * @access public + * @var AdGroupCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of AdGroupCriterion that match the query. + * + * @param query The SQL-like AWQL query string + * @returns A list of AdGroupCriterion + * @throws ApiException when the query is invalid or there are errors processing the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var AdGroupCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + 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("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

{@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

+ * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NegativeAdGroupCriterion", FALSE)) { +/** + * A negative criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NegativeAdGroupCriterion extends AdGroupCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeAdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCPCAdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * AdGroupCriterion level bid multiplier used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPCAdGroupCriterionExperimentBidMultiplier extends AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var tnsMultiplierSource + */ + public $multiplierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($maxCpcMultiplier = NULL, $multiplierSource = NULL, $AdGroupCriterionExperimentBidMultiplierType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->multiplierSource = $multiplierSource; + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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("BiddableAdGroupCriterion", FALSE)) { +/** + * A biddable (positive) criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddableAdGroupCriterion extends AdGroupCriterion { + /** + * @access public + * @var tnsUserStatus + */ + public $userStatus; + + /** + * @access public + * @var tnsSystemServingStatus + */ + public $systemServingStatus; + + /** + * @access public + * @var tnsApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BiddableAdGroupCriterionExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Bid + */ + public $firstPageCpc; + + /** + * @access public + * @var Bid + */ + public $topOfPageCpc; + + /** + * @access public + * @var QualityInfo + */ + public $qualityInfo; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterion"; + } + + public function __construct($userStatus = NULL, $systemServingStatus = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $destinationUrl = NULL, $experimentData = NULL, $firstPageCpc = NULL, $topOfPageCpc = NULL, $qualityInfo = NULL, $stats = NULL, $biddingStrategyConfiguration = NULL, $bidModifier = NULL, $adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->userStatus = $userStatus; + $this->systemServingStatus = $systemServingStatus; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->destinationUrl = $destinationUrl; + $this->experimentData = $experimentData; + $this->firstPageCpc = $firstPageCpc; + $this->topOfPageCpc = $topOfPageCpc; + $this->qualityInfo = $qualityInfo; + $this->stats = $stats; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->bidModifier = $bidModifier; + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("AdGroupCriterionOperation", FALSE)) { +/** + * Operation (add, remove and set) on adgroup criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionOperation extends Operation { + /** + * @access public + * @var AdGroupCriterion + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupCriterionPage", FALSE)) { +/** + * Contains a subset of adgroup criteria resulting from a + * {@link AdGroupCriterionService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionPage extends Page { + /** + * @access public + * @var AdGroupCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupCriterionReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupCriterion[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupCriterionService", FALSE)) { +/** + * AdGroupCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupCriterionServiceGetResponse", + "get" => "AdGroupCriterionServiceGet", + "mutate" => "AdGroupCriterionServiceMutate", + "mutateResponse" => "AdGroupCriterionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupCriterionError" => "AdGroupCriterionError", + "ApiError" => "ApiError", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdxError" => "AdxError", + "AgeRange" => "AgeRange", + "Criterion" => "Criterion", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "CriterionError" => "CriterionError", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "Gender" => "Gender", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NegativeAdGroupCriterion" => "NegativeAdGroupCriterion", + "AdGroupCriterion" => "AdGroupCriterion", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Placement" => "Placement", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "ProductConditionOperand" => "ProductConditionOperand", + "QualityInfo" => "QualityInfo", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "ExemptionRequest" => "ExemptionRequest", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "ProductCondition" => "ProductCondition", + "Stats" => "Stats", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "ManualCPCAdGroupCriterionExperimentBidMultiplier" => "ManualCPCAdGroupCriterionExperimentBidMultiplier", + "AdGroupCriterionExperimentBidMultiplier" => "AdGroupCriterionExperimentBidMultiplier", + "Product" => "Product", + "Selector" => "Selector", + "BiddableAdGroupCriterionExperimentData" => "BiddableAdGroupCriterionExperimentData", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "BiddableAdGroupCriterion" => "BiddableAdGroupCriterion", + "AdGroupCriterionOperation" => "AdGroupCriterionOperation", + "Operation" => "Operation", + "AdGroupCriterionPage" => "AdGroupCriterionPage", + "Page" => "Page", + "AdGroupCriterionReturnValue" => "AdGroupCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "ApprovalStatus" => "ApprovalStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "CriterionUse" => "CriterionUse", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "MultiplierSource" => "MultiplierSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "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", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SystemServingStatus" => "SystemServingStatus", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "UserStatus" => "UserStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupCriterionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets adgroup criteria. + * + * @param serviceSelector filters the adgroup criteria to be returned. + * @return a page (subset) view of the criteria selected + * @throws ApiException when there is at least one error with the request + */ + public function get($serviceSelector) { + $arg = new AdGroupCriterionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, removes or updates adgroup criteria. + * + * @param operations operations to do + * during checks on keywords to be added. + * @return added and updated adgroup criteria (without optional parts) + * @throws ApiException when there is at least one error with the request + */ + public function mutate($operations) { + $arg = new AdGroupCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of AdGroupCriterion that match the query. + * + * @param query The SQL-like AWQL query string + * @returns A list of AdGroupCriterion + * @throws ApiException when the query is invalid or there are errors processing the request. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupFeedService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupFeedService.php new file mode 100755 index 000000000..e21333322 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupFeedService.php @@ -0,0 +1,3623 @@ +feedId = $feedId; + $this->adGroupId = $adGroupId; + $this->matchingFunction = $matchingFunction; + $this->placeholderTypes = $placeholderTypes; + $this->status = $status; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedFunction", FALSE)) { +/** + * Represents a function where its operator is applied to its argument operands + * resulting in a return value. It has the form + * (Operand... Operator Operand...). The type of the return value depends on + * the operator being applied and the type of the operands. + * + *

Operands per function is limited to 20.

+ * + *

Here is a code example:

+ * + *

+ * 
+ * // For example "feed_attribute == 30" can be represented as:
+ * FeedId feedId = (FeedId of Feed associated with feed_attribute)
+ * FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
+ * Function function = new Function();
+ * function.setLhsOperand(
+ * Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
+ * function.setOperator(Operator.IN);
+ * function.setRhsOperand(
+ * Arrays.asList((Operand) new ConstantOperand(30L)));
+ * 
+ * // Another example matching on multiple values:
+ * "feed_item_id IN (10, 20, 30)" can be represented as:
+ * 
+ * Function function = new Function();
+ * function.setLhsOperand(
+ * Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
+ * function.setOperator(Operator.IN);
+ * function.setRhsOperand(Arrays.asList(
+ * (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
+ * 
+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedFunction { + /** + * @access public + * @var tnsFunctionOperator + */ + public $operator; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $lhsOperand; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $rhsOperand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function"; + } + + public function __construct($operator = NULL, $lhsOperand = NULL, $rhsOperand = NULL) { + $this->operator = $operator; + $this->lhsOperand = $lhsOperand; + $this->rhsOperand = $rhsOperand; + } +}} + +if (!class_exists("FunctionError", FALSE)) { +/** + * Errors that indicate issues with the function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionError extends ApiError { + /** + * @access public + * @var tnsFunctionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("FunctionArgumentOperand", FALSE)) { +/** + * An operand that can be used in a function expression. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionArgumentOperand { + /** + * @access public + * @var string + */ + public $FunctionArgumentOperandType; + + private $_parameterMap = array ( + "FunctionArgumentOperand.Type" => "FunctionArgumentOperandType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionArgumentOperand"; + } + + public function __construct($FunctionArgumentOperandType = NULL) { + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RequestContextOperand", FALSE)) { +/** + * An operand in a function referring to a value in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestContextOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsRequestContextOperandContextType + */ + public $contextType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand"; + } + + public function __construct($contextType = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->contextType = $contextType; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("AdGroupFeedStatus", FALSE)) { +/** + * Status of the AdGroupFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupFeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConstantOperandConstantType", FALSE)) { +/** + * The types of constant operands. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConstantOperandConstantType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand.ConstantType"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionOperator", FALSE)) { +/** + * Operators that can be used in functions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestContextOperandContextType", FALSE)) { +/** + * Campaign Id in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestContextOperandContextType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand.ContextType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupFeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupFeeds that meet the selector criteria. + * + * @param selector Determines which AdGroupFeeds to return. If empty all + * adgroup feeds are returned. + * @return The list of AdgroupFeeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdGroupFeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedServiceGetResponse { + /** + * @access public + * @var AdGroupFeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupFeedServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Adds, updates or removes AdGroupFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedServiceMutate { + /** + * @access public + * @var AdGroupFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedServiceMutateResponse { + /** + * @access public + * @var AdGroupFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupFeedError", FALSE)) { +/** + * Represents an error for the AdGroupFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedError extends ApiError { + /** + * @access public + * @var tnsAdGroupFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedError"; + } + + 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("AdGroupFeedOperation", FALSE)) { +/** + * Operation used to create or mutate an AdGroupFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedOperation extends Operation { + /** + * @access public + * @var AdGroupFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupFeedReturnValue", FALSE)) { +/** + * The result of a call to AdGroupFeedService#mutate. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupFeed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ConstantOperand", FALSE)) { +/** + * A constant operand in a matching function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConstantOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsConstantOperandConstantType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $longValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand"; + } + + public function __construct($type = NULL, $longValue = NULL, $booleanValue = NULL, $doubleValue = NULL, $stringValue = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->type = $type; + $this->longValue = $longValue; + $this->booleanValue = $booleanValue; + $this->doubleValue = $doubleValue; + $this->stringValue = $stringValue; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FeedAttributeOperand", FALSE)) { +/** + * Represents a feed attribute reference to use in a function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedAttributeOperand extends FunctionArgumentOperand { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttributeOperand"; + } + + public function __construct($feedId = NULL, $feedAttributeId = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->feedId = $feedId; + $this->feedAttributeId = $feedAttributeId; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FunctionOperand", FALSE)) { +/** + * A function operand in a matching function. + * Used to represent nested functions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionOperand extends FunctionArgumentOperand { + /** + * @access public + * @var Function + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionOperand"; + } + + public function __construct($value = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->value = $value; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupFeedPage", FALSE)) { +/** + * The result of a call to AdGroupFeedService#get. Contains a list of + * associations between ad groups and feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupFeedPage extends NullStatsPage { + /** + * @access public + * @var AdGroupFeed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupFeedService", FALSE)) { +/** + * AdGroupFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupFeedServiceGetResponse", + "get" => "AdGroupFeedServiceGet", + "mutate" => "AdGroupFeedServiceMutate", + "mutateResponse" => "AdGroupFeedServiceMutateResponse", + "mutateCallToAction" => "AdGroupFeedServiceMutateCallToAction", + "search" => "AdGroupFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupFeed" => "AdGroupFeed", + "AdGroupFeedError" => "AdGroupFeedError", + "ApiError" => "ApiError", + "AdGroupFeedOperation" => "AdGroupFeedOperation", + "Operation" => "Operation", + "AdGroupFeedPage" => "AdGroupFeedPage", + "NullStatsPage" => "NullStatsPage", + "AdGroupFeedReturnValue" => "AdGroupFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ConstantOperand" => "ConstantOperand", + "FunctionArgumentOperand" => "FunctionArgumentOperand", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttributeOperand" => "FeedAttributeOperand", + "FunctionError" => "FunctionError", + "FunctionOperand" => "FunctionOperand", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestContextOperand" => "RequestContextOperand", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AdGroupFeed.Status" => "AdGroupFeedStatus", + "AdGroupFeedError.Reason" => "AdGroupFeedErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "ConstantOperand.ConstantType" => "ConstantOperandConstantType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Function.Operator" => "FunctionOperator", + "FunctionError.Reason" => "FunctionErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestContextOperand.ContextType" => "RequestContextOperandContextType", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupFeedService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupFeeds that meet the selector criteria. + * + * @param selector Determines which AdGroupFeeds to return. If empty all + * adgroup feeds are returned. + * @return The list of AdgroupFeeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new AdGroupFeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Adds, updates or removes AdGroupFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new AdGroupFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdGroupService.php b/src/Google/Api/Ads/AdWords/v201306/AdGroupService.php new file mode 100755 index 000000000..0c0f6820b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdGroupService.php @@ -0,0 +1,5973 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TargetingSettingDetail", FALSE)) { +/** + * Specifies if criteria of this type group should be used to restrict + * targeting, or if ads can serve anywhere and criteria are only used in + * determining the bid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingSettingDetail { + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $criterionTypeGroup; + + /** + * @access public + * @var boolean + */ + public $targetAll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSettingDetail"; + } + + public function __construct($criterionTypeGroup = NULL, $targetAll = NULL) { + $this->criterionTypeGroup = $criterionTypeGroup; + $this->targetAll = $targetAll; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdGroupExperimentBidMultipliers", FALSE)) { +/** + * Bid multiplier used to modify the bid of an adgroup while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupExperimentBidMultipliers { + /** + * @access public + * @var string + */ + public $AdGroupExperimentBidMultipliersType; + + private $_parameterMap = array ( + "AdGroupExperimentBidMultipliers.Type" => "AdGroupExperimentBidMultipliersType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentBidMultipliers"; + } + + public function __construct($AdGroupExperimentBidMultipliersType = NULL) { + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this adgroup. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupExperimentBidMultipliers + */ + public $experimentBidMultipliers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultipliers = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultipliers = $experimentBidMultipliers; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
    + *
  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
  • + *
+ * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * Flexible bidding is a beta feature. For more information on flexible bidding, + * visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("AdGroup", FALSE)) { +/** + * Represents an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroup { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsAdGroupStatus + */ + public $status; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var AdGroupExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $contentBidCriterionTypeGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup"; + } + + public function __construct($id = NULL, $campaignId = NULL, $campaignName = NULL, $name = NULL, $status = NULL, $settings = NULL, $experimentData = NULL, $stats = NULL, $forwardCompatibilityMap = NULL, $biddingStrategyConfiguration = NULL, $contentBidCriterionTypeGroup = NULL) { + $this->id = $id; + $this->campaignId = $campaignId; + $this->campaignName = $campaignName; + $this->name = $name; + $this->status = $status; + $this->settings = $settings; + $this->experimentData = $experimentData; + $this->stats = $stats; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->contentBidCriterionTypeGroup = $contentBidCriterionTypeGroup; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupServiceErrorReason", FALSE)) { +/** + * The reasons for the adgroup service error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupStatus", FALSE)) { +/** + * Status of this ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionTypeGroup", FALSE)) { +/** + * The list of groupings of criteria types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionTypeGroup { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionTypeGroup"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of all the ad groups specified by the selector + * from the target customer's account. + * + * @param serviceSelector The selector specifying the {@link AdGroup}s to return. + * @return List of adgroups identified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceGetResponse { + /** + * @access public + * @var AdGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, updates, or deletes ad groups. + *

Note: {@link AdGroupOperation} does not support the + * {@code REMOVE} operator. To delete an ad group, set its + * {@link AdGroup#status status} to {@code DELETED}.

+ * + * @param operations List of unique operations. The same ad group cannot be + * specified in more than one operation. + * @return The updated adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceMutate { + /** + * @access public + * @var AdGroupOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceMutateResponse { + /** + * @access public + * @var AdGroupReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of ad groups that match the query. + * + * @param query The SQL-like AWQL query string + * @return A list of adgroups + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var AdGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupServiceError", FALSE)) { +/** + * Represents possible error codes in AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceError extends ApiError { + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError"; + } + + public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->adGroupId = $adGroupId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

{@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

+ * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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("QuotaError", FALSE)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TargetingSetting", FALSE)) { +/** + * Setting for targeting related features. + * This is applicable at Campaign and AdGroup level. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingSetting extends Setting { + /** + * @access public + * @var TargetingSettingDetail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSetting"; + } + + public function __construct($details = NULL, $SettingType = NULL) { + parent::__construct(); + $this->details = $details; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCPCAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPCAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var BidMultiplier + */ + public $maxContentCpcMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpcMultiplier = NULL, $maxContentCpcMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->maxContentCpcMultiplier = $maxContentCpcMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCPMAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPM bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPMAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpmMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPMAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpmMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpmMultiplier = $maxCpmMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupOperation", FALSE)) { +/** + * AdGroup operations for adding/updating/removing adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupOperation extends Operation { + /** + * @access public + * @var AdGroup + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupPage", FALSE)) { +/** + * Contains a subset of adgroup resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.adgroup.AdGroupService#get} call + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupPage extends Page { + /** + * @access public + * @var AdGroup[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroup[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupService", FALSE)) { +/** + * AdGroupService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdGroupService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupServiceGetResponse", + "get" => "AdGroupServiceGet", + "mutate" => "AdGroupServiceMutate", + "mutateResponse" => "AdGroupServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupServiceError" => "AdGroupServiceError", + "ApiError" => "ApiError", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetingSettingDetail" => "TargetingSettingDetail", + "TargetingSetting" => "TargetingSetting", + "Setting" => "Setting", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "Stats" => "Stats", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "ManualCPCAdGroupExperimentBidMultipliers" => "ManualCPCAdGroupExperimentBidMultipliers", + "AdGroupExperimentBidMultipliers" => "AdGroupExperimentBidMultipliers", + "ManualCPMAdGroupExperimentBidMultipliers" => "ManualCPMAdGroupExperimentBidMultipliers", + "Selector" => "Selector", + "AdGroupExperimentData" => "AdGroupExperimentData", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "AdGroup" => "AdGroup", + "AdGroupOperation" => "AdGroupOperation", + "Operation" => "Operation", + "AdGroupPage" => "AdGroupPage", + "Page" => "Page", + "AdGroupReturnValue" => "AdGroupReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdGroupServiceError.Reason" => "AdGroupServiceErrorReason", + "AdGroup.Status" => "AdGroupStatus", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "CriterionTypeGroup" => "CriterionTypeGroup", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdGroupService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of all the ad groups specified by the selector + * from the target customer's account. + * + * @param serviceSelector The selector specifying the {@link AdGroup}s to return. + * @return List of adgroups identified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new AdGroupServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, updates, or deletes ad groups. + *

Note: {@link AdGroupOperation} does not support the + * {@code REMOVE} operator. To delete an ad group, set its + * {@link AdGroup#status status} to {@code DELETED}.

+ * + * @param operations List of unique operations. The same ad group cannot be + * specified in more than one operation. + * @return The updated adgroups. + */ + public function mutate($operations) { + $arg = new AdGroupServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of ad groups that match the query. + * + * @param query The SQL-like AWQL query string + * @return A list of adgroups + * @throws ApiException + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdParamService.php b/src/Google/Api/Ads/AdWords/v201306/AdParamService.php new file mode 100755 index 000000000..0ef00937f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdParamService.php @@ -0,0 +1,2975 @@ +AdParam objects + * (one for each value of {@link #paramIndex}) per ad group + * Keyword + * criterion. + *

When setting or removing an AdParam, it is uniquely + * identified by the combination of these three fields:

+ *
    + *
  • adGroupId
  • + *
  • criterionId
  • + *
  • paramIndex
  • + *
+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParam { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * @access public + * @var string + */ + public $insertionText; + + /** + * @access public + * @var integer + */ + public $paramIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParam"; + } + + public function __construct($adGroupId = NULL, $criterionId = NULL, $insertionText = NULL, $paramIndex = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionId = $criterionId; + $this->insertionText = $insertionText; + $this->paramIndex = $paramIndex; + } +}} + +if (!class_exists("AdParamPage", FALSE)) { +/** + * Represents a page of AdParams returned by the {@link AdParamService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamPage { + /** + * @access public + * @var AdParam[] + */ + public $entries; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL) { + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdParamErrorReason", FALSE)) { +/** + * The same ad param cannot be specified in multiple operations + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdParamServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the ad parameters that match the criteria specified in the + * selector. + * + * @param serviceSelector Specifies which ad parameters to return. + * @return A list of ad parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdParamServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamServiceGetResponse { + /** + * @access public + * @var AdParamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdParamServiceMutate", FALSE)) { +/** + * 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: SET, REMOVE. + * + * + * + * Sets and removes ad parameters. + *

Note: {@code ADD} is not supported. Use {@code SET} + * for new ad parameters.

+ * + *
    + *
  • {@code SET}: Creates or updates an ad parameter, setting the new + * parameterized value for the given ad group / keyword pair. + *
  • {@code REMOVE}: Removes an ad parameter. The default-value + * specified in the ad text will be used.
  • + *
+ * + * @param operations The operations to perform. + * @return A list of ad parameters, where each entry in the list is the + * result of applying the operation in the input list with the same index. + * For a {@code SET} operation, the returned ad parameter will contain the + * updated values. For a {@code REMOVE} operation, the returned ad parameter + * will simply be the ad parameter that was removed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamServiceMutate { + /** + * @access public + * @var AdParamOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdParamServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamServiceMutateResponse { + /** + * @access public + * @var AdParam[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdParamError", FALSE)) { +/** + * Errors for AdParamService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamError extends ApiError { + /** + * @access public + * @var tnsAdParamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamError"; + } + + 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("AdParamOperation", FALSE)) { +/** + * Represents an operation on an {@link AdParam}. The supported operators + * are {@code SET} and {@code REMOVE}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamOperation extends Operation { + /** + * @access public + * @var AdParam + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AdParamPolicyError", FALSE)) { +/** + * Policy violation for an AdParam. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdParamPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdParamService", FALSE)) { +/** + * AdParamService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdParamService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdParamServiceGetResponse", + "get" => "AdParamServiceGet", + "mutate" => "AdParamServiceMutate", + "mutateResponse" => "AdParamServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdParam" => "AdParam", + "AdParamError" => "AdParamError", + "ApiError" => "ApiError", + "AdParamOperation" => "AdParamOperation", + "Operation" => "Operation", + "AdParamPage" => "AdParamPage", + "AdParamPolicyError" => "AdParamPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AdParamError.Reason" => "AdParamErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/AdParamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdParamService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdParamService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the ad parameters that match the criteria specified in the + * selector. + * + * @param serviceSelector Specifies which ad parameters to return. + * @return A list of ad parameters. + */ + public function get($serviceSelector) { + $arg = new AdParamServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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: SET, REMOVE. + * + * + * + * Sets and removes ad parameters. + *

Note: {@code ADD} is not supported. Use {@code SET} + * for new ad parameters.

+ * + *
    + *
  • {@code SET}: Creates or updates an ad parameter, setting the new + * parameterized value for the given ad group / keyword pair. + *
  • {@code REMOVE}: Removes an ad parameter. The default-value + * specified in the ad text will be used.
  • + *
+ * + * @param operations The operations to perform. + * @return A list of ad parameters, where each entry in the list is the + * result of applying the operation in the input list with the same index. + * For a {@code SET} operation, the returned ad parameter will contain the + * updated values. For a {@code REMOVE} operation, the returned ad parameter + * will simply be the ad parameter that was removed. + */ + public function mutate($operations) { + $arg = new AdParamServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AdwordsUserListService.php b/src/Google/Api/Ads/AdWords/v201306/AdwordsUserListService.php new file mode 100755 index 000000000..0b8789848 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AdwordsUserListService.php @@ -0,0 +1,3650 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

+ * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("UserListConversionType", FALSE)) { +/** + * Represents a conversion type used for building remarketing user lists. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListConversionType { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsUserListConversionTypeCategory + */ + public $category; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListConversionType"; + } + + public function __construct($id = NULL, $name = NULL, $category = NULL) { + $this->id = $id; + $this->name = $name; + $this->category = $category; + } +}} + +if (!class_exists("LogicalUserListOperand", FALSE)) { +/** + * An interface for a logical user list operand. A logical user list is a + * combination of logical rules. Each rule is defined as a logical operator and + * a list of operands. Those operands can be of type UserList or UserInterest. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LogicalUserListOperand { + /** + * @access public + * @var UserInterest + */ + public $UserInterest; + + /** + * @access public + * @var UserList + */ + public $UserList; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LogicalUserListOperand"; + } + + public function __construct($UserInterest = NULL, $UserList = NULL) { + $this->UserInterest = $UserInterest; + $this->UserList = $UserList; + } +}} + +if (!class_exists("UserInterest", FALSE)) { +/** + * Represents a particular interest based vertical to be targeted. + * User interest may be used for defining logical user lists. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserInterest { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSizeRange + */ + public $sizeRange; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserInterest"; + } + + public function __construct($id = NULL, $name = NULL, $sizeRange = NULL) { + $this->id = $id; + $this->name = $name; + $this->sizeRange = $sizeRange; + } +}} + +if (!class_exists("UserList", FALSE)) { +/** + * Represents a UserList object that is sent over the wire. + * This is a list of users an account may target. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserList { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var boolean + */ + public $isReadOnly; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsUserListMembershipStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $integrationCode; + + /** + * @access public + * @var tnsAccessReason + */ + public $accessReason; + + /** + * @access public + * @var tnsAccountUserListStatus + */ + public $accountUserListStatus; + + /** + * @access public + * @var integer + */ + public $membershipLifeSpan; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var tnsSizeRange + */ + public $sizeRange; + + /** + * @access public + * @var string + */ + public $UserListType; + + private $_parameterMap = array ( + "UserList.Type" => "UserListType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserList"; + } + + public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $UserListType = NULL) { + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("UserListError", FALSE)) { +/** + * Represents possible error codes in UserListService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListError extends ApiError { + /** + * @access public + * @var tnsUserListErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListError"; + } + + 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("UserListLogicalRule", FALSE)) { +/** + * A user list logical rule. A rule has a logical operator (and/or/not) and a + * list of operands that can be user lists or user interests. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListLogicalRule { + /** + * @access public + * @var tnsUserListLogicalRuleOperator + */ + public $operator; + + /** + * @access public + * @var LogicalUserListOperand[] + */ + public $ruleOperands; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListLogicalRule"; + } + + public function __construct($operator = NULL, $ruleOperands = NULL) { + $this->operator = $operator; + $this->ruleOperands = $ruleOperands; + } +}} + +if (!class_exists("UserListOperation", FALSE)) { +/** + * UserList operations for adding/updating UserList entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListOperation extends Operation { + /** + * @access public + * @var UserList + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("UserListPage", FALSE)) { +/** + * Contains a list of user lists resulting from the filtering and paging of the + * {@link UserListService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListPage extends Page { + /** + * @access public + * @var UserList[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("UserListReturnValue", FALSE)) { +/** + * A container for return values from the UserListService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListReturnValue extends ListReturnValue { + /** + * @access public + * @var UserList[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AccessReason", FALSE)) { +/** + * AccessReason in the AccountUserListStatus table. This indicates the way the userlist is + * related to a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AccessReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AccessReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AccountUserListStatus", FALSE)) { +/** + * Status in the AccountUserListStatus table. This indicates if the user list share or + * the licensing of the userlist is still active. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AccountUserListStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AccountUserListStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListConversionTypeCategory", FALSE)) { +/** + * User can create only BOOMERANG_EVENT conversion types. For all other types + * UserListService service will return OTHER. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListConversionTypeCategory { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListConversionType.Category"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeRange", FALSE)) { +/** + * Size range in terms of number of users of a UserList/UserInterest. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeRange { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeRange"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListErrorReason", FALSE)) { +/** + * Creating and updating external remarketing user lists is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListLogicalRuleOperator", FALSE)) { +/** + * And - all of the operands. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListLogicalRuleOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListLogicalRule.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. This status indicates whether a user list + * can accumulate more users and may be targeted to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListMembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdwordsUserListServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of user lists that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link UserList}s to return. + * @return a list of UserList entities which meet the selector criteria. + * @throws ApiException if problems occurred while fetching UserList information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdwordsUserListServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdwordsUserListServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdwordsUserListServiceGetResponse { + /** + * @access public + * @var UserListPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdwordsUserListServiceMutate", FALSE)) { +/** + * The minimum size of this collection is 1. The maximum size of this collection is 10000. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies a list of mutate operations (i.e. add, set): + * + * Add - creates a set of user lists + * Set - updates a set of user lists + * + * @param operations the operations to apply + * @return a list of UserList objects + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdwordsUserListServiceMutate { + /** + * @access public + * @var UserListOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdwordsUserListServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdwordsUserListServiceMutateResponse { + /** + * @access public + * @var UserListReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExternalRemarketingUserList", FALSE)) { +/** + * User lists created in the DoubleClick platform that are mapped + * from DoubleClick to AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExternalRemarketingUserList extends UserList { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExternalRemarketingUserList"; + } + + public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $UserListType = NULL) { + parent::__construct(); + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("LogicalUserList", FALSE)) { +/** + * Represents a user list that is a custom combination of user lists and user + * interests. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LogicalUserList extends UserList { + /** + * @access public + * @var UserListLogicalRule[] + */ + public $rules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LogicalUserList"; + } + + public function __construct($rules = NULL, $id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $UserListType = NULL) { + parent::__construct(); + $this->rules = $rules; + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("BasicUserList", FALSE)) { +/** + * User list targeting as a collection of conversion types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BasicUserList extends UserList { + /** + * @access public + * @var UserListConversionType[] + */ + public $conversionTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BasicUserList"; + } + + public function __construct($conversionTypes = NULL, $id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $UserListType = NULL) { + parent::__construct(); + $this->conversionTypes = $conversionTypes; + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("AdwordsUserListService", FALSE)) { +/** + * AdwordsUserListService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdwordsUserListService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdwordsUserListServiceGetResponse", + "get" => "AdwordsUserListServiceGet", + "mutate" => "AdwordsUserListServiceMutate", + "mutateResponse" => "AdwordsUserListServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "ListReturnValue" => "ListReturnValue", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "ExternalRemarketingUserList" => "ExternalRemarketingUserList", + "UserList" => "UserList", + "CollectionSizeError" => "CollectionSizeError", + "UserListConversionType" => "UserListConversionType", + "LogicalUserList" => "LogicalUserList", + "LogicalUserListOperand" => "LogicalUserListOperand", + "BasicUserList" => "BasicUserList", + "UserInterest" => "UserInterest", + "UserListError" => "UserListError", + "UserListLogicalRule" => "UserListLogicalRule", + "UserListOperation" => "UserListOperation", + "UserListPage" => "UserListPage", + "UserListReturnValue" => "UserListReturnValue", + "AccessReason" => "AccessReason", + "AccountUserListStatus" => "AccountUserListStatus", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "UserListConversionType.Category" => "UserListConversionTypeCategory", + "SizeRange" => "SizeRange", + "UserListError.Reason" => "UserListErrorReason", + "UserListLogicalRule.Operator" => "UserListLogicalRuleOperator", + "UserListMembershipStatus" => "UserListMembershipStatus", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/rm/v201306/AdwordsUserListService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdwordsUserListService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdwordsUserListService', 'https://adwords.google.com/api/adwords/rm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of user lists that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link UserList}s to return. + * @return a list of UserList entities which meet the selector criteria. + * @throws ApiException if problems occurred while fetching UserList information. + */ + public function get($serviceSelector) { + $arg = new AdwordsUserListServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * The minimum size of this collection is 1. The maximum size of this collection is 10000. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies a list of mutate operations (i.e. add, set): + * + * Add - creates a set of user lists + * Set - updates a set of user lists + * + * @param operations the operations to apply + * @return a list of UserList objects + */ + public function mutate($operations) { + $arg = new AdwordsUserListServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/AlertService.php b/src/Google/Api/Ads/AdWords/v201306/AlertService.php new file mode 100755 index 000000000..c17add591 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/AlertService.php @@ -0,0 +1,2457 @@ +startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

+ * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertError", FALSE)) { +/** + * Errors that can occur when using {@link AlertService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertError extends ApiError { + /** + * @access public + * @var tnsAlertErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertError"; + } + + 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("AlertQuery", FALSE)) { +/** + * Querying criteria for getting alerts. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertQuery { + /** + * @access public + * @var tnsClientSpec + */ + public $clientSpec; + + /** + * @access public + * @var tnsFilterSpec + */ + public $filterSpec; + + /** + * @access public + * @var tnsAlertType[] + */ + public $types; + + /** + * @access public + * @var tnsAlertSeverity[] + */ + public $severities; + + /** + * @access public + * @var tnsTriggerTimeSpec + */ + public $triggerTimeSpec; + + /** + * @access public + * @var string + */ + public $triggerTime; + + /** + * @access public + * @var integer[] + */ + public $clientCustomerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertQuery"; + } + + public function __construct($clientSpec = NULL, $filterSpec = NULL, $types = NULL, $severities = NULL, $triggerTimeSpec = NULL, $triggerTime = NULL, $clientCustomerIds = NULL) { + $this->clientSpec = $clientSpec; + $this->filterSpec = $filterSpec; + $this->types = $types; + $this->severities = $severities; + $this->triggerTimeSpec = $triggerTimeSpec; + $this->triggerTime = $triggerTime; + $this->clientCustomerIds = $clientCustomerIds; + } +}} + +if (!class_exists("Detail", FALSE)) { +/** + * Detail refers to a single event or condition that triggered its owning {@link Alert}. + * Multiple details can cause the same {@code Alert} to occur. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Detail { + /** + * @access public + * @var string + */ + public $triggerTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Detail"; + } + + public function __construct($triggerTime = NULL) { + $this->triggerTime = $triggerTime; + } +}} + +if (!class_exists("Alert", FALSE)) { +/** + * Alert for a single client. Triggering events are grouped by {@link AlertType} into the same alert + * with multiple {@link Details}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Alert { + /** + * @access public + * @var tnsAlertSeverity + */ + public $alertSeverity; + + /** + * @access public + * @var tnsAlertType + */ + public $alertType; + + /** + * @access public + * @var integer + */ + public $clientCustomerId; + + /** + * @access public + * @var Detail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Alert"; + } + + public function __construct($alertSeverity = NULL, $alertType = NULL, $clientCustomerId = NULL, $details = NULL) { + $this->alertSeverity = $alertSeverity; + $this->alertType = $alertType; + $this->clientCustomerId = $clientCustomerId; + $this->details = $details; + } +}} + +if (!class_exists("AlertSelector", FALSE)) { +/** + * Selector for querying for alerts. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertSelector { + /** + * @access public + * @var AlertQuery + */ + public $query; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertSelector"; + } + + public function __construct($query = NULL, $paging = NULL) { + $this->query = $query; + $this->paging = $paging; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AlertErrorReason", FALSE)) { +/** + * The possible reasons for an {@link AlertError} to occur. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertSeverity", FALSE)) { +/** + * Severity of an alert, represented as a "color". + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertSeverity { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertSeverity"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertType", FALSE)) { +/** + * Type of an alert. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientSpec", FALSE)) { +/** + * Specification of which managed accounts a client manager is interested in. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("FilterSpec", FALSE)) { +/** + * Describes how a result set of alerts should be filtered based on the triggering account's + * ability to manage clients. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FilterSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FilterSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("TriggerTimeSpec", FALSE)) { +/** + * Specification of what trigger time alerts should match. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TriggerTimeSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TriggerTimeSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets the list of alerts matching the specified clients and time period. + * + * @param selector selects the alerts for which to search. + * @return a page of alerts. + * @throws ApiException if an error occurs + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertServiceGet { + /** + * @access public + * @var AlertSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AlertServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertServiceGetResponse { + /** + * @access public + * @var AlertPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AlertPage", FALSE)) { +/** + * Contains a subset of {@link Alert}s resulting from the filtering and paging, + * returned by {@link AlertService#get(AlertSelector)}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AlertPage extends NoStatsPage { + /** + * @access public + * @var Alert[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AlertService", FALSE)) { +/** + * AlertService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AlertService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AlertServiceGetResponse", + "get" => "AlertServiceGet", + "mutate" => "AlertServiceMutate", + "mutateResponse" => "AlertServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotWhitelistedError" => "NotWhitelistedError", + "Paging" => "Paging", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "AlertError" => "AlertError", + "AlertQuery" => "AlertQuery", + "Detail" => "Detail", + "Alert" => "Alert", + "AlertPage" => "AlertPage", + "NoStatsPage" => "NoStatsPage", + "AlertSelector" => "AlertSelector", + "AlertError.Reason" => "AlertErrorReason", + "AlertSeverity" => "AlertSeverity", + "AlertType" => "AlertType", + "ClientSpec" => "ClientSpec", + "FilterSpec" => "FilterSpec", + "TriggerTimeSpec" => "TriggerTimeSpec", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201306/AlertService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AlertService::$classmap; + parent::__construct($wsdl, $options, $user, 'AlertService', 'https://adwords.google.com/api/adwords/mcm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets the list of alerts matching the specified clients and time period. + * + * @param selector selects the alerts for which to search. + * @return a page of alerts. + * @throws ApiException if an error occurs + */ + public function get($selector) { + $arg = new AlertServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/BiddingStrategyService.php b/src/Google/Api/Ads/AdWords/v201306/BiddingStrategyService.php new file mode 100755 index 000000000..6660af331 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/BiddingStrategyService.php @@ -0,0 +1,4113 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("SharedBiddingStrategy", FALSE)) { +/** + * Bidding strategies store shared bidding configuration data and are account-level objects. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedBiddingStrategy { + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSharedBiddingStrategyBiddingStrategyStatus + */ + public $status; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedBiddingStrategy"; + } + + public function __construct($biddingScheme = NULL, $id = NULL, $name = NULL, $status = NULL, $type = NULL) { + $this->biddingScheme = $biddingScheme; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->type = $type; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedBiddingStrategyBiddingStrategyStatus", FALSE)) { +/** + * Status of the bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedBiddingStrategyBiddingStrategyStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedBiddingStrategy.BiddingStrategyStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyErrorReason", FALSE)) { +/** + * Each bidding strategy must have a unique name. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bidding strategies that match the selector. + * + * @return list of bidding strategies specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("BiddingStrategyServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyServiceGetResponse { + /** + * @access public + * @var BiddingStrategyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BiddingStrategyServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations the operations to apply + * @return the modified list of BiddingStrategy + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyServiceMutate { + /** + * @access public + * @var BiddingStrategyOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BiddingStrategyServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyServiceMutateResponse { + /** + * @access public + * @var BiddingStrategyReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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("BiddingStrategyError", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyError extends ApiError { + /** + * @access public + * @var tnsBiddingStrategyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

{@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

+ * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyOperation", FALSE)) { +/** + * Operations for adding/updating bidding strategies. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyOperation extends Operation { + /** + * @access public + * @var SharedBiddingStrategy + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BiddingStrategyPage", FALSE)) { +/** + * Contains a list of bidding strategies resulting from the filtering and paging + * of {@link BiddingStrategy#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyPage extends Page { + /** + * @access public + * @var SharedBiddingStrategy[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BiddingStrategyReturnValue", FALSE)) { +/** + * A container for return values from the {@link BiddingStrategyService#mutate} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedBiddingStrategy[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BiddingStrategyService", FALSE)) { +/** + * BiddingStrategyService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class BiddingStrategyService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BiddingStrategyServiceGetResponse", + "get" => "BiddingStrategyServiceGet", + "mutate" => "BiddingStrategyServiceMutate", + "mutateResponse" => "BiddingStrategyServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingErrors" => "BiddingErrors", + "BiddingStrategyError" => "BiddingStrategyError", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "Selector" => "Selector", + "SharedBiddingStrategy" => "SharedBiddingStrategy", + "BiddingStrategyOperation" => "BiddingStrategyOperation", + "Operation" => "Operation", + "BiddingStrategyPage" => "BiddingStrategyPage", + "Page" => "Page", + "BiddingStrategyReturnValue" => "BiddingStrategyReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "SharedBiddingStrategy.BiddingStrategyStatus" => "SharedBiddingStrategyBiddingStrategyStatus", + "BiddingStrategyError.Reason" => "BiddingStrategyErrorReason", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "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", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/BiddingStrategyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BiddingStrategyService::$classmap; + parent::__construct($wsdl, $options, $user, 'BiddingStrategyService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bidding strategies that match the selector. + * + * @return list of bidding strategies specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($selector) { + $arg = new BiddingStrategyServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations the operations to apply + * @return the modified list of BiddingStrategy + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BiddingStrategyServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/BudgetOrderService.php b/src/Google/Api/Ads/AdWords/v201306/BudgetOrderService.php new file mode 100755 index 000000000..69cefe2e2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/BudgetOrderService.php @@ -0,0 +1,4362 @@ +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingAccount", FALSE)) { +/** + * Represents an BillingAccount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BillingAccount { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $primaryBillingId; + + /** + * @access public + * @var string + */ + public $secondaryBillingId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingAccount"; + } + + public function __construct($id = NULL, $name = NULL, $currencyCode = NULL, $primaryBillingId = NULL, $secondaryBillingId = NULL) { + $this->id = $id; + $this->name = $name; + $this->currencyCode = $currencyCode; + $this->primaryBillingId = $primaryBillingId; + $this->secondaryBillingId = $secondaryBillingId; + } +}} + +if (!class_exists("BudgetOrderError", FALSE)) { +/** + * Error information for BudgetOrderService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderError extends ApiError { + /** + * @access public + * @var tnsBudgetOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderError"; + } + + 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("CustomerOrderLineError", FALSE)) { +/** + * Error information returned for CustomerOrderLineService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerOrderLineError extends ApiError { + /** + * @access public + * @var tnsCustomerOrderLineErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerOrderLineError"; + } + + 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("BudgetOrderRequest", FALSE)) { +/** + * Holds fields that provide information on the last set of values that were passed in through + * the parent BudgetOrder for mutate.add and mutate.set. + * This element only applies if manager account is whitelisted for new billing backend. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderRequest { + /** + * @access public + * @var tnsBudgetOrderRequestStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $date; + + /** + * @access public + * @var string + */ + public $billingAccountName; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $budgetOrderName; + + /** + * @access public + * @var Money + */ + public $spendingLimit; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderRequest"; + } + + public function __construct($status = NULL, $date = NULL, $billingAccountName = NULL, $poNumber = NULL, $budgetOrderName = NULL, $spendingLimit = NULL, $startDateTime = NULL, $endDateTime = NULL) { + $this->status = $status; + $this->date = $date; + $this->billingAccountName = $billingAccountName; + $this->poNumber = $poNumber; + $this->budgetOrderName = $budgetOrderName; + $this->spendingLimit = $spendingLimit; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + } +}} + +if (!class_exists("BudgetOrder", FALSE)) { +/** + * A {@link BudgetOrder} links an account wide budget with a {@link BillingAccount}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrder { + /** + * @access public + * @var string + */ + public $billingAccountId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $billingAccountName; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $budgetOrderName; + + /** + * @access public + * @var string + */ + public $primaryBillingId; + + /** + * @access public + * @var string + */ + public $secondaryBillingId; + + /** + * @access public + * @var Money + */ + public $spendingLimit; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * @access public + * @var BudgetOrderRequest + */ + public $lastRequest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrder"; + } + + public function __construct($billingAccountId = NULL, $id = NULL, $billingAccountName = NULL, $poNumber = NULL, $budgetOrderName = NULL, $primaryBillingId = NULL, $secondaryBillingId = NULL, $spendingLimit = NULL, $startDateTime = NULL, $endDateTime = NULL, $lastRequest = NULL) { + $this->billingAccountId = $billingAccountId; + $this->id = $id; + $this->billingAccountName = $billingAccountName; + $this->poNumber = $poNumber; + $this->budgetOrderName = $budgetOrderName; + $this->primaryBillingId = $primaryBillingId; + $this->secondaryBillingId = $secondaryBillingId; + $this->spendingLimit = $spendingLimit; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastRequest = $lastRequest; + } +}} + +if (!class_exists("BudgetOrderOperation", FALSE)) { +/** + * Operation for {@link BudgetOrder}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderOperation extends Operation { + /** + * @access public + * @var BudgetOrder + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BudgetOrderPage", FALSE)) { +/** + * A page of {@link BudgetOrder}s from {@link BudgetOrderService#get} + * method. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderPage extends Page { + /** + * @access public + * @var BudgetOrder[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BudgetOrderReturnValue", FALSE)) { +/** + * A container for return values from the {@link BudgetOrderService#mutate} + * method. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderReturnValue extends ListReturnValue { + /** + * @access public + * @var BudgetOrder[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("BudgetOrderErrorReason", FALSE)) { +/** + * Customer is not whitelisted for new billing. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetOrderRequestStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderRequestStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderRequest.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerOrderLineErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during a CustomerOrderLine mutate + * operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerOrderLineErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerOrderLineError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetOrderServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets a list of {@link BudgetOrder}s using the generic selector. + * @param serviceSelector specifies which BudgetOrder to return. + * @return A {@link BudgetOrderPage} of BudgetOrders of the client customer. + * All BudgetOrder fields are returned. Stats are not yet supported. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("BudgetOrderServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderServiceGetResponse { + /** + * @access public + * @var BudgetOrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBillingAccounts", FALSE)) { +/** + * Returns all the open/active BillingAccounts associated with the current + * manager. + * @return A list of {@link BillingAccount}s. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getBillingAccounts { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getBillingAccountsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getBillingAccountsResponse { + /** + * @access public + * @var BillingAccount[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BudgetOrderServiceMutate", FALSE)) { +/** + * 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. + * + * + * + * Mutates BudgetOrders, supported operations are: + *

ADD: Adds a {@link BudgetOrder} to the billing account + * specified by the billing account ID.

+ *

SET: Sets the start/end date and amount of the + * {@link BudgetOrder}.

+ *

REMOVE: Cancels the {@link BudgetOrder} (status change).

+ *

Warning: The BudgetOrderService + * is limited to one operation per mutate request. Any attempt to make more + * than one operation will result in an ApiException.

+ * @param operations A list of operations, however currently we only + * support one operation per mutate call. + * @return BudgetOrders affected by the mutate operation. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderServiceMutate { + /** + * @access public + * @var BudgetOrderOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BudgetOrderServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOrderServiceMutateResponse { + /** + * @access public + * @var BudgetOrderReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BudgetOrderService", FALSE)) { +/** + * BudgetOrderService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class BudgetOrderService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BudgetOrderServiceGetResponse", + "get" => "BudgetOrderServiceGet", + "mutate" => "BudgetOrderServiceMutate", + "mutateResponse" => "BudgetOrderServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "ListReturnValue" => "ListReturnValue", + "LongValue" => "LongValue", + "Money" => "Money", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Operation" => "Operation", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Page" => "Page", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "BillingAccount" => "BillingAccount", + "BudgetOrderError" => "BudgetOrderError", + "CustomerOrderLineError" => "CustomerOrderLineError", + "BudgetOrderRequest" => "BudgetOrderRequest", + "BudgetOrder" => "BudgetOrder", + "BudgetOrderOperation" => "BudgetOrderOperation", + "BudgetOrderPage" => "BudgetOrderPage", + "BudgetOrderReturnValue" => "BudgetOrderReturnValue", + "BudgetOrderError.Reason" => "BudgetOrderErrorReason", + "BudgetOrderRequest.Status" => "BudgetOrderRequestStatus", + "CustomerOrderLineError.Reason" => "CustomerOrderLineErrorReason", + "getBillingAccounts" => "getBillingAccounts", + "getBillingAccountsResponse" => "getBillingAccountsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/billing/v201306/BudgetOrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BudgetOrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'BudgetOrderService', 'https://adwords.google.com/api/adwords/billing/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets a list of {@link BudgetOrder}s using the generic selector. + * @param serviceSelector specifies which BudgetOrder to return. + * @return A {@link BudgetOrderPage} of BudgetOrders of the client customer. + * All BudgetOrder fields are returned. Stats are not yet supported. + * @throws ApiException + */ + public function get($serviceSelector) { + $arg = new BudgetOrderServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * Returns all the open/active BillingAccounts associated with the current + * manager. + * @return A list of {@link BillingAccount}s. + * @throws ApiException + */ + public function getBillingAccounts() { + $arg = new getBillingAccounts(); + $result = $this->__soapCall("getBillingAccounts", array($arg)); + return $result->rval; + } + + + /** + * 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. + * + * + * + * Mutates BudgetOrders, supported operations are: + *

ADD: Adds a {@link BudgetOrder} to the billing account + * specified by the billing account ID.

+ *

SET: Sets the start/end date and amount of the + * {@link BudgetOrder}.

+ *

REMOVE: Cancels the {@link BudgetOrder} (status change).

+ *

Warning: The BudgetOrderService + * is limited to one operation per mutate request. Any attempt to make more + * than one operation will result in an ApiException.

+ * @param operations A list of operations, however currently we only + * support one operation per mutate call. + * @return BudgetOrders affected by the mutate operation. + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BudgetOrderServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/BudgetService.php b/src/Google/Api/Ads/AdWords/v201306/BudgetService.php new file mode 100755 index 000000000..83c28b44f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/BudgetService.php @@ -0,0 +1,3468 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of budgets that match the selector. + * + * @return List of budgets specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("BudgetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetServiceGetResponse { + /** + * @access public + * @var BudgetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BudgetServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations The operations to apply. + * @return The modified list of Budgets, returned in the same order as operations. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetServiceMutate { + /** + * @access public + * @var BudgetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BudgetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetServiceMutateResponse { + /** + * @access public + * @var BudgetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOperation", FALSE)) { +/** + * Operations for adding/updating Budget entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOperation extends Operation { + /** + * @access public + * @var Budget + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BudgetPage", FALSE)) { +/** + * Contains a list of budgets resulting from the filtering and paging of + * {@link BudgetService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetPage extends Page { + /** + * @access public + * @var Budget[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BudgetReturnValue", FALSE)) { +/** + * A container for return values from the {@link BudgetService#mutate} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetReturnValue extends ListReturnValue { + /** + * @access public + * @var Budget[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BudgetService", FALSE)) { +/** + * BudgetService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class BudgetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BudgetServiceGetResponse", + "get" => "BudgetServiceGet", + "mutate" => "BudgetServiceMutate", + "mutateResponse" => "BudgetServiceMutateResponse", + "mutateCallToAction" => "BudgetServiceMutateCallToAction", + "search" => "BudgetServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Budget" => "Budget", + "BudgetOperation" => "BudgetOperation", + "Operation" => "Operation", + "BudgetPage" => "BudgetPage", + "Page" => "Page", + "BudgetReturnValue" => "BudgetReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "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", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/BudgetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BudgetService::$classmap; + parent::__construct($wsdl, $options, $user, 'BudgetService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of budgets that match the selector. + * + * @return List of budgets specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($selector) { + $arg = new BudgetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations The operations to apply. + * @return The modified list of Budgets, returned in the same order as operations. + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BudgetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignAdExtensionService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignAdExtensionService.php new file mode 100755 index 000000000..7be9fc169 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignAdExtensionService.php @@ -0,0 +1,4706 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("CampaignAdExtension", FALSE)) { +/** + * Represents a campaign level ad extension. A campaign ad extension specifies + * a campaign and an ad extension which can extend any ad under that campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtension { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var tnsCampaignAdExtensionStatus + */ + public $status; + + /** + * @access public + * @var tnsCampaignAdExtensionApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var CampaignAdExtensionStats + */ + public $stats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension"; + } + + public function __construct($campaignId = NULL, $adExtension = NULL, $status = NULL, $approvalStatus = NULL, $stats = NULL) { + $this->campaignId = $campaignId; + $this->adExtension = $adExtension; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->stats = $stats; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdExtensionErrorReason", FALSE)) { +/** + * Account has been deleted + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionApprovalStatus", FALSE)) { +/** + * Approval status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionStatus", FALSE)) { +/** + * Status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionErrorReason", FALSE)) { +/** + * Cannot operate on an adextensions under the wrong campaign + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link CampaignAdExtension}s. + * + * @param serviceSelector The selector specifying the {@link CampaignAdExtension}s to return. + * @return The page containing the {@link CampaignAdExtension}s which meet the + * criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignAdExtensionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionServiceGetResponse { + /** + * @access public + * @var CampaignAdExtensionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignAdExtensionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations The operations to apply. The same {@link CampaignAdExtension} + * cannot be specified in more than one operation. + * @return The changed {@link CampaignAdExtension}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionServiceMutate { + /** + * @access public + * @var CampaignAdExtensionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignAdExtensionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionServiceMutateResponse { + /** + * @access public + * @var CampaignAdExtensionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdExtensionError", FALSE)) { +/** + * AdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionError extends ApiError { + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError"; + } + + 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("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("CampaignAdExtensionError", FALSE)) { +/** + * CampaignAdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionError extends ApiError { + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError"; + } + + 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("CampaignAdExtensionStats", FALSE)) { +/** + * Represents stats specific to CampaignAdExtensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("InAppLinkExtension", FALSE)) { +/** + *

This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

It is also known as Mobile App Extension. + * + *

The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

+ *

Learn more about + * + * phone extensions. + *

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("CampaignAdExtensionOperation", FALSE)) { +/** + * CampaignAdExtension service operation. Note: The {@code SET} operator + * is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionOperation extends Operation { + /** + * @access public + * @var CampaignAdExtension + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignAdExtensionPage", FALSE)) { +/** + * Represents a page of {@link CampaignAdExtension}s resulting from the query + * done by {@link CampaignAdExtensionService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionPage extends Page { + /** + * @access public + * @var CampaignAdExtension[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignAdExtensionReturnValue", FALSE)) { +/** + * A container for return values from the CampaignAdExtensionService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignAdExtension[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CampaignAdExtensionService", FALSE)) { +/** + * CampaignAdExtensionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignAdExtensionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignAdExtensionServiceGetResponse", + "get" => "CampaignAdExtensionServiceGet", + "mutate" => "CampaignAdExtensionServiceMutate", + "mutateResponse" => "CampaignAdExtensionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdExtensionError" => "AdExtensionError", + "ApiError" => "ApiError", + "Address" => "Address", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignAdExtensionError" => "CampaignAdExtensionError", + "CampaignAdExtensionStats" => "CampaignAdExtensionStats", + "Stats" => "Stats", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "AdExtension" => "AdExtension", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "MobileExtension" => "MobileExtension", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "ComparableValue" => "ComparableValue", + "OAuthInfo" => "OAuthInfo", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "LocationExtension" => "LocationExtension", + "Money" => "Money", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "LocationSyncExtension" => "LocationSyncExtension", + "Selector" => "Selector", + "CampaignAdExtension" => "CampaignAdExtension", + "CampaignAdExtensionOperation" => "CampaignAdExtensionOperation", + "Operation" => "Operation", + "CampaignAdExtensionPage" => "CampaignAdExtensionPage", + "Page" => "Page", + "CampaignAdExtensionReturnValue" => "CampaignAdExtensionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdExtensionError.Reason" => "AdExtensionErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignAdExtension.ApprovalStatus" => "CampaignAdExtensionApprovalStatus", + "CampaignAdExtension.Status" => "CampaignAdExtensionStatus", + "CampaignAdExtensionError.Reason" => "CampaignAdExtensionErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LocationExtension.Source" => "LocationExtensionSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignAdExtensionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignAdExtensionService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignAdExtensionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link CampaignAdExtension}s. + * + * @param serviceSelector The selector specifying the {@link CampaignAdExtension}s to return. + * @return The page containing the {@link CampaignAdExtension}s which meet the + * criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new CampaignAdExtensionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations The operations to apply. The same {@link CampaignAdExtension} + * cannot be specified in more than one operation. + * @return The changed {@link CampaignAdExtension}s. + */ + public function mutate($operations) { + $arg = new CampaignAdExtensionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignCriterionService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignCriterionService.php new file mode 100755 index 000000000..cdb26197a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignCriterionService.php @@ -0,0 +1,5630 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("CampaignCriterion", FALSE)) { +/** + * Represents a campaign level criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterion { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $CampaignCriterionType; + + private $_parameterMap = array ( + "CampaignCriterion.Type" => "CampaignCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("CampaignCriterionError", FALSE)) { +/** + * Base error class for Campaign Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionError extends ApiError { + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NegativeCampaignCriterion", FALSE)) { +/** + * A negative campaign criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NegativeCampaignCriterion extends CampaignCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentLabelType", FALSE)) { +/** + * Content label type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ContentLabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets campaign criteria. + * + * @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. + * @return A list of campaign criteria. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionServiceGetResponse { + /** + * @access public + * @var CampaignCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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, REMOVE, SET. + * + * + * + * Adds, removes or updates campaign criteria. + * + * @param operations The operations to apply. + * @return The added campaign criteria (without any optional parts). + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionServiceMutate { + /** + * @access public + * @var CampaignCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionServiceMutateResponse { + /** + * @access public + * @var CampaignCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaign criteria that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaign criteria. + * @throws ApiException if problems occur while parsing the query or fetching campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var CampaignCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdSchedule", FALSE)) { +/** + * Represents an AdSchedule Criterion. + * AdSchedule is specified as day and time of the week criteria to target + * the Ads. + *

Note: An AdSchedule may not have more than six intervals + * in a day.

+ * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSchedule extends Criterion { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignCriterionLimitExceeded", FALSE)) { +/** + * Error to indicate that too many negative criteria added to some campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsCampaignCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterionOperation", FALSE)) { +/** + * Generic operation (add, remove and set) for campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionOperation extends Operation { + /** + * @access public + * @var CampaignCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignCriterionPage", FALSE)) { +/** + * Contains a subset of campaign criteria resulting from a call to + * {@link CampaignCriterionService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionPage extends Page { + /** + * @access public + * @var CampaignCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignCriterionReturnValue", FALSE)) { +/** + * A container for return values from the CampaignCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignCriterion[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ContentLabel", FALSE)) { +/** + * Content Label for category exclusion. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ContentLabel extends Criterion { + /** + * @access public + * @var tnsContentLabelType + */ + public $contentLabelType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabel"; + } + + public function __construct($contentLabelType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->contentLabelType = $contentLabelType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CampaignCriterionService", FALSE)) { +/** + * CampaignCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignCriterionServiceGetResponse", + "get" => "CampaignCriterionServiceGet", + "mutate" => "CampaignCriterionServiceMutate", + "mutateResponse" => "CampaignCriterionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdSchedule" => "AdSchedule", + "Criterion" => "Criterion", + "Address" => "Address", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AgeRange" => "AgeRange", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignCriterion" => "CampaignCriterion", + "CampaignCriterionError" => "CampaignCriterionError", + "CampaignCriterionLimitExceeded" => "CampaignCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "CampaignCriterionOperation" => "CampaignCriterionOperation", + "Operation" => "Operation", + "CampaignCriterionPage" => "CampaignCriterionPage", + "Page" => "Page", + "CampaignCriterionReturnValue" => "CampaignCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "ContentLabel" => "ContentLabel", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "Gender" => "Gender", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "NegativeCampaignCriterion" => "NegativeCampaignCriterion", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Placement" => "Placement", + "Platform" => "Platform", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignCriterionError.Reason" => "CampaignCriterionErrorReason", + "CampaignCriterionLimitExceeded.CriteriaLimitType" => "CampaignCriterionLimitExceededCriteriaLimitType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ContentLabelType" => "ContentLabelType", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DayOfWeek" => "DayOfWeek", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "MinuteOfHour" => "MinuteOfHour", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignCriterionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets campaign criteria. + * + * @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. + * @return A list of campaign criteria. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new CampaignCriterionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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, REMOVE, SET. + * + * + * + * Adds, removes or updates campaign criteria. + * + * @param operations The operations to apply. + * @return The added campaign criteria (without any optional parts). + * @throws ApiException when there is at least one error with the request. + */ + public function mutate($operations) { + $arg = new CampaignCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaign criteria that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaign criteria. + * @throws ApiException if problems occur while parsing the query or fetching campaign criteria. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignFeedService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignFeedService.php new file mode 100755 index 000000000..4d1fbbb89 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignFeedService.php @@ -0,0 +1,3555 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignFeed", FALSE)) { +/** + * CampaignFeeds are used to link a feed to a campaign using a matching function, + * making the feed's feed items available in the campaign's ads for substitution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeed { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var Function + */ + public $matchingFunction; + + /** + * @access public + * @var integer[] + */ + public $placeholderTypes; + + /** + * @access public + * @var tnsCampaignFeedStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeed"; + } + + public function __construct($feedId = NULL, $campaignId = NULL, $matchingFunction = NULL, $placeholderTypes = NULL, $status = NULL) { + $this->feedId = $feedId; + $this->campaignId = $campaignId; + $this->matchingFunction = $matchingFunction; + $this->placeholderTypes = $placeholderTypes; + $this->status = $status; + } +}} + +if (!class_exists("CampaignFeedError", FALSE)) { +/** + * Represents an error for the CampaignFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedError extends ApiError { + /** + * @access public + * @var tnsCampaignFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedFunction", FALSE)) { +/** + * Represents a function where its operator is applied to its argument operands + * resulting in a return value. It has the form + * (Operand... Operator Operand...). The type of the return value depends on + * the operator being applied and the type of the operands. + * + *

Operands per function is limited to 20.

+ * + *

Here is a code example:

+ * + *

+ * 
+ * // For example "feed_attribute == 30" can be represented as:
+ * FeedId feedId = (FeedId of Feed associated with feed_attribute)
+ * FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
+ * Function function = new Function();
+ * function.setLhsOperand(
+ * Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
+ * function.setOperator(Operator.IN);
+ * function.setRhsOperand(
+ * Arrays.asList((Operand) new ConstantOperand(30L)));
+ * 
+ * // Another example matching on multiple values:
+ * "feed_item_id IN (10, 20, 30)" can be represented as:
+ * 
+ * Function function = new Function();
+ * function.setLhsOperand(
+ * Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
+ * function.setOperator(Operator.IN);
+ * function.setRhsOperand(Arrays.asList(
+ * (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
+ * 
+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedFunction { + /** + * @access public + * @var tnsFunctionOperator + */ + public $operator; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $lhsOperand; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $rhsOperand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function"; + } + + public function __construct($operator = NULL, $lhsOperand = NULL, $rhsOperand = NULL) { + $this->operator = $operator; + $this->lhsOperand = $lhsOperand; + $this->rhsOperand = $rhsOperand; + } +}} + +if (!class_exists("FunctionError", FALSE)) { +/** + * Errors that indicate issues with the function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionError extends ApiError { + /** + * @access public + * @var tnsFunctionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("FunctionArgumentOperand", FALSE)) { +/** + * An operand that can be used in a function expression. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionArgumentOperand { + /** + * @access public + * @var string + */ + public $FunctionArgumentOperandType; + + private $_parameterMap = array ( + "FunctionArgumentOperand.Type" => "FunctionArgumentOperandType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionArgumentOperand"; + } + + public function __construct($FunctionArgumentOperandType = NULL) { + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RequestContextOperand", FALSE)) { +/** + * An operand in a function referring to a value in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestContextOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsRequestContextOperandContextType + */ + public $contextType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand"; + } + + public function __construct($contextType = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->contextType = $contextType; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedStatus", FALSE)) { +/** + * Status of the CampaignFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConstantOperandConstantType", FALSE)) { +/** + * The types of constant operands. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConstantOperandConstantType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand.ConstantType"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionOperator", FALSE)) { +/** + * Operators that can be used in functions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestContextOperandContextType", FALSE)) { +/** + * Campaign Id in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestContextOperandContextType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand.ContextType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignFeeds that meet the selector criteria. + * + * @param selector Determines which CampaignFeeds to return. If empty all + * Campaign feeds are returned. + * @return The list of CampaignFeeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CampaignFeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedServiceGetResponse { + /** + * @access public + * @var CampaignFeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignFeedServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Adds, sets or removes CampaignFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedServiceMutate { + /** + * @access public + * @var CampaignFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedServiceMutateResponse { + /** + * @access public + * @var CampaignFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignFeedOperation", FALSE)) { +/** + * Operation used to create or mutate a CampaignFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedOperation extends Operation { + /** + * @access public + * @var CampaignFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignFeedReturnValue", FALSE)) { +/** + * The result of a call to {@link CampaignFeedService#mutate}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignFeed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ConstantOperand", FALSE)) { +/** + * A constant operand in a matching function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConstantOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsConstantOperandConstantType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $longValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand"; + } + + public function __construct($type = NULL, $longValue = NULL, $booleanValue = NULL, $doubleValue = NULL, $stringValue = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->type = $type; + $this->longValue = $longValue; + $this->booleanValue = $booleanValue; + $this->doubleValue = $doubleValue; + $this->stringValue = $stringValue; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FeedAttributeOperand", FALSE)) { +/** + * Represents a feed attribute reference to use in a function. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedAttributeOperand extends FunctionArgumentOperand { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttributeOperand"; + } + + public function __construct($feedId = NULL, $feedAttributeId = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->feedId = $feedId; + $this->feedAttributeId = $feedAttributeId; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FunctionOperand", FALSE)) { +/** + * A function operand in a matching function. + * Used to represent nested functions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FunctionOperand extends FunctionArgumentOperand { + /** + * @access public + * @var Function + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionOperand"; + } + + public function __construct($value = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->value = $value; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignFeedPage", FALSE)) { +/** + * The result of a call to {@link CampaignFeedService#get}. Contains a list of + * associations between campaign and feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignFeedPage extends NullStatsPage { + /** + * @access public + * @var CampaignFeed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignFeedService", FALSE)) { +/** + * CampaignFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignFeedServiceGetResponse", + "get" => "CampaignFeedServiceGet", + "mutate" => "CampaignFeedServiceMutate", + "mutateResponse" => "CampaignFeedServiceMutateResponse", + "mutateCallToAction" => "CampaignFeedServiceMutateCallToAction", + "search" => "CampaignFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "CampaignFeed" => "CampaignFeed", + "CampaignFeedError" => "CampaignFeedError", + "CampaignFeedOperation" => "CampaignFeedOperation", + "Operation" => "Operation", + "CampaignFeedPage" => "CampaignFeedPage", + "NullStatsPage" => "NullStatsPage", + "CampaignFeedReturnValue" => "CampaignFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ConstantOperand" => "ConstantOperand", + "FunctionArgumentOperand" => "FunctionArgumentOperand", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttributeOperand" => "FeedAttributeOperand", + "FunctionError" => "FunctionError", + "FunctionOperand" => "FunctionOperand", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestContextOperand" => "RequestContextOperand", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "CampaignFeed.Status" => "CampaignFeedStatus", + "CampaignFeedError.Reason" => "CampaignFeedErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "ConstantOperand.ConstantType" => "ConstantOperandConstantType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Function.Operator" => "FunctionOperator", + "FunctionError.Reason" => "FunctionErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestContextOperand.ContextType" => "RequestContextOperandContextType", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignFeedService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignFeeds that meet the selector criteria. + * + * @param selector Determines which CampaignFeeds to return. If empty all + * Campaign feeds are returned. + * @return The list of CampaignFeeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new CampaignFeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Adds, sets or removes CampaignFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new CampaignFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignService.php new file mode 100755 index 000000000..7f4a4f41e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignService.php @@ -0,0 +1,6504 @@ +eligible = $eligible; + $this->rejectionReasons = $rejectionReasons; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FrequencyCap", FALSE)) { +/** + * A frequency cap is the maximum number of times an ad (or some set of ads) can + * be shown to a user over a particular time period. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * @access public + * @var tnsLevel + */ + public $level; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($impressions = NULL, $timeUnit = NULL, $level = NULL) { + $this->impressions = $impressions; + $this->timeUnit = $timeUnit; + $this->level = $level; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
    + *
  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
  • + *
+ * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * Flexible bidding is a beta feature. For more information on flexible bidding, + * visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("Campaign", FALSE)) { +/** + * Data representing an AdWords campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Campaign { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCampaignStatus + */ + public $status; + + /** + * @access public + * @var tnsServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var Budget + */ + public $budget; + + /** + * @access public + * @var ConversionOptimizerEligibility + */ + public $conversionOptimizerEligibility; + + /** + * @access public + * @var CampaignStats + */ + public $campaignStats; + + /** + * @access public + * @var tnsAdServingOptimizationStatus + */ + public $adServingOptimizationStatus; + + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var boolean + */ + public $enhanced; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Campaign"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $startDate = NULL, $endDate = NULL, $budget = NULL, $conversionOptimizerEligibility = NULL, $campaignStats = NULL, $adServingOptimizationStatus = NULL, $frequencyCap = NULL, $settings = NULL, $networkSetting = NULL, $biddingStrategyConfiguration = NULL, $forwardCompatibilityMap = NULL, $enhanced = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->budget = $budget; + $this->conversionOptimizerEligibility = $conversionOptimizerEligibility; + $this->campaignStats = $campaignStats; + $this->adServingOptimizationStatus = $adServingOptimizationStatus; + $this->frequencyCap = $frequencyCap; + $this->settings = $settings; + $this->networkSetting = $networkSetting; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->enhanced = $enhanced; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdServingOptimizationStatus", FALSE)) { +/** + * Ad serving status of campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdServingOptimizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdServingOptimizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingTransitionErrorReason", FALSE)) { +/** + * Reason for bidding transition error. + * It is used by capability service as denial reasons, for bidding transition + * capability. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingTransitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignStatus", FALSE)) { +/** + * Campaign status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerEligibilityRejectionReason", FALSE)) { +/** + * Campaign is not active + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerEligibilityRejectionReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility.RejectionReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingNegativeGeoTargetType", FALSE)) { +/** + * The various signals a negative location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSettingNegativeGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.NegativeGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingPositiveGeoTargetType", FALSE)) { +/** + * The various signals a positive location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSettingPositiveGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.PositiveGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Level", FALSE)) { +/** + * The level on which the cap is to be applied. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Level { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServingStatus", FALSE)) { +/** + * Campaign serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Unit of time the cap is defined at. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link Campaign}s to return. + * @return A list of campaigns. + * @throws ApiException if problems occurred while fetching campaign information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignServiceGetResponse { + /** + * @access public + * @var CampaignPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, updates, or deletes campaigns. + *

Note: {@link CampaignOperation} does not support the + * REMOVE operator. To delete a campaign, set its + * {@link Campaign#status status} to DELETED.

+ * @param operations A list of unique operations. + * The same campaign cannot be specified in more than one operation. + * @return The list of updated campaigns, returned in the same order as the + * operations array. + * @throws ApiException if problems occurred while updating campaign information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignServiceMutate { + /** + * @access public + * @var CampaignOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignServiceMutateResponse { + /** + * @access public + * @var CampaignReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaigns. + * @throws ApiException if problems occur while parsing the query or fetching campaign + * information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class queryResponse { + /** + * @access public + * @var CampaignPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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("BiddingTransitionError", FALSE)) { +/** + * Bidding transition errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingTransitionError extends ApiError { + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError"; + } + + 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("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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("CampaignError", FALSE)) { +/** + * Base error class for Campaign Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignError extends ApiError { + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError"; + } + + 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("CampaignStats", FALSE)) { +/** + * Represents stats specific to Campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

{@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

+ * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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("GeoTargetTypeSetting", FALSE)) { +/** + * Represents a collection of settings related to ads geotargeting. + * + *

AdWords ads can be geotargeted using Location of Presence (LOP), + * Area of Interest (AOI), or both. LOP is the physical location + * of the user performing the search; AOI is the geographical region + * in which the searcher is interested. For example, if a user in + * New York City performs a search "hotels california", their LOP + * is New York City and their AOI is California. + * + *

Additionally, ads can be positively or negatively geotargeted. + * An ad that is positively geotargeted to New York City only appears + * to users whose location is related (via AOI or LOP) to New York City. An ad + * that is negatively geotargeted to New York City appears for all + * users except those whose location is related to New York City. Ads can + * only be negatively geotargeted if a positive geotargeting is also supplied, and + * the negatively geotargeted region must be contained within the positive + * region. + * + *

Geotargeting settings allow ads to be targeted in the following way: + *

    + *
  • Positively geotargeted using solely AOI, solely LOP, or either. + *
  • Negatively geotargeted using solely LOP, or both. + *
+ * + *

This setting applies only to ads shown on the search network, and does + * not affect ads shown on the Google Display Network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSetting extends Setting { + /** + * @access public + * @var tnsGeoTargetTypeSettingPositiveGeoTargetType + */ + public $positiveGeoTargetType; + + /** + * @access public + * @var tnsGeoTargetTypeSettingNegativeGeoTargetType + */ + public $negativeGeoTargetType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting"; + } + + public function __construct($positiveGeoTargetType = NULL, $negativeGeoTargetType = NULL, $SettingType = NULL) { + parent::__construct(); + $this->positiveGeoTargetType = $positiveGeoTargetType; + $this->negativeGeoTargetType = $negativeGeoTargetType; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("KeywordMatchSetting", FALSE)) { +/** + * Improved exact and phrase match option includes misspellings, plurals, + * and other close variants of your keywords. + * + * Default value set to {@code true} to include close variants. For more + * information, see the article + * + * What are keyword matching options?. + * + * This setting is required when creating new campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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("QuotaError", FALSE)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RealTimeBiddingSetting", FALSE)) { +/** + * Settings for Real-Time Bidding, a feature only available for campaigns + * targeting the Ad Exchange network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RealTimeBiddingSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RealTimeBiddingSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + 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("TrackingSetting", FALSE)) { +/** + * Campaign level settings for tracking information. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrackingSetting extends Setting { + /** + * @access public + * @var string + */ + public $trackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingSetting"; + } + + public function __construct($trackingUrl = NULL, $SettingType = NULL) { + parent::__construct(); + $this->trackingUrl = $trackingUrl; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("CampaignOperation", FALSE)) { +/** + * An operation on an AdWords campaign. + *

Note: The REMOVE operator is not + * supported. To remove a campaign, set its {@link Campaign#status status} + * to DELETED.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignOperation extends Operation { + /** + * @access public + * @var Campaign + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignPage", FALSE)) { +/** + * Contains a subset of campaign resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.campaign.CampaignService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignPage extends Page { + /** + * @access public + * @var Campaign[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignReturnValue", FALSE)) { +/** + * A container for return values from the CampaignService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignReturnValue extends ListReturnValue { + /** + * @access public + * @var Campaign[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CampaignService", FALSE)) { +/** + * CampaignService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignServiceGetResponse", + "get" => "CampaignServiceGet", + "mutate" => "CampaignServiceMutate", + "mutateResponse" => "CampaignServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "BiddingTransitionError" => "BiddingTransitionError", + "BudgetError" => "BudgetError", + "CampaignError" => "CampaignError", + "CampaignStats" => "CampaignStats", + "Stats" => "Stats", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "ConversionOptimizerEligibility" => "ConversionOptimizerEligibility", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "FrequencyCap" => "FrequencyCap", + "GeoTargetTypeSetting" => "GeoTargetTypeSetting", + "Setting" => "Setting", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "KeywordMatchSetting" => "KeywordMatchSetting", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NetworkSetting" => "NetworkSetting", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RealTimeBiddingSetting" => "RealTimeBiddingSetting", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetError" => "TargetError", + "TrackingSetting" => "TrackingSetting", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Budget" => "Budget", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "Selector" => "Selector", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "Campaign" => "Campaign", + "CampaignOperation" => "CampaignOperation", + "Operation" => "Operation", + "CampaignPage" => "CampaignPage", + "Page" => "Page", + "CampaignReturnValue" => "CampaignReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdServingOptimizationStatus" => "AdServingOptimizationStatus", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "BiddingTransitionError.Reason" => "BiddingTransitionErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "CampaignError.Reason" => "CampaignErrorReason", + "CampaignStatus" => "CampaignStatus", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "ConversionOptimizerEligibility.RejectionReason" => "ConversionOptimizerEligibilityRejectionReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "GeoTargetTypeSetting.NegativeGeoTargetType" => "GeoTargetTypeSettingNegativeGeoTargetType", + "GeoTargetTypeSetting.PositiveGeoTargetType" => "GeoTargetTypeSettingPositiveGeoTargetType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "Level" => "Level", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "ServingStatus" => "ServingStatus", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "TimeUnit" => "TimeUnit", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link Campaign}s to return. + * @return A list of campaigns. + * @throws ApiException if problems occurred while fetching campaign information. + */ + public function get($serviceSelector) { + $arg = new CampaignServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, updates, or deletes campaigns. + *

Note: {@link CampaignOperation} does not support the + * REMOVE operator. To delete a campaign, set its + * {@link Campaign#status status} to DELETED.

+ * @param operations A list of unique operations. + * The same campaign cannot be specified in more than one operation. + * @return The list of updated campaigns, returned in the same order as the + * operations array. + * @throws ApiException if problems occurred while updating campaign information. + */ + public function mutate($operations) { + $arg = new CampaignServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaigns. + * @throws ApiException if problems occur while parsing the query or fetching campaign + * information. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CampaignSharedSetService.php b/src/Google/Api/Ads/AdWords/v201306/CampaignSharedSetService.php new file mode 100755 index 000000000..c25203bf1 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CampaignSharedSetService.php @@ -0,0 +1,3434 @@ +This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null} when it is contained within {@link Operator}s : ADD, REMOVE. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSet { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $sharedSetName; + + /** + * @access public + * @var tnsSharedSetType + */ + public $sharedSetType; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var tnsCampaignSharedSetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSet"; + } + + public function __construct($sharedSetId = NULL, $campaignId = NULL, $sharedSetName = NULL, $sharedSetType = NULL, $campaignName = NULL, $status = NULL) { + $this->sharedSetId = $sharedSetId; + $this->campaignId = $campaignId; + $this->sharedSetName = $sharedSetName; + $this->sharedSetType = $sharedSetType; + $this->campaignName = $campaignName; + $this->status = $status; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSet.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignSharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of CampaignSharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CampaignSharedSetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetServiceGetResponse { + /** + * @access public + * @var CampaignSharedSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignSharedSetServiceMutate", FALSE)) { +/** + * 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, REMOVE. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified list of CampaignSharedSet associations + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetServiceMutate { + /** + * @access public + * @var CampaignSharedSetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignSharedSetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetServiceMutateResponse { + /** + * @access public + * @var CampaignSharedSetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("CampaignSharedSetError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetError extends ApiError { + /** + * @access public + * @var tnsCampaignSharedSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetError"; + } + + 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("CampaignSharedSetOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetOperation extends Operation { + /** + * @access public + * @var CampaignSharedSet + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignSharedSetReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignSharedSet[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PagingError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignSharedSetPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignSharedSetPage extends NullStatsPage { + /** + * @access public + * @var CampaignSharedSet[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignSharedSetService", FALSE)) { +/** + * CampaignSharedSetService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CampaignSharedSetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignSharedSetServiceGetResponse", + "get" => "CampaignSharedSetServiceGet", + "mutate" => "CampaignSharedSetServiceMutate", + "mutateResponse" => "CampaignSharedSetServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignSharedSet" => "CampaignSharedSet", + "CampaignSharedSetError" => "CampaignSharedSetError", + "CampaignSharedSetOperation" => "CampaignSharedSetOperation", + "Operation" => "Operation", + "CampaignSharedSetPage" => "CampaignSharedSetPage", + "NullStatsPage" => "NullStatsPage", + "CampaignSharedSetReturnValue" => "CampaignSharedSetReturnValue", + "ListReturnValue" => "ListReturnValue", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignSharedSet.Status" => "CampaignSharedSetStatus", + "CampaignSharedSetError.Reason" => "CampaignSharedSetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "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", + "SharedSetType" => "SharedSetType", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/CampaignSharedSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignSharedSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignSharedSetService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignSharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of CampaignSharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + */ + public function get($selector) { + $arg = new CampaignSharedSetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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, REMOVE. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified list of CampaignSharedSet associations + * @throws ApiException + */ + public function mutate($operations) { + $arg = new CampaignSharedSetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ConstantDataService.php b/src/Google/Api/Ads/AdWords/v201306/ConstantDataService.php new file mode 100755 index 000000000..bd7bd3ff5 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ConstantDataService.php @@ -0,0 +1,3934 @@ +operand = $operand; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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}.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAgeRangeCriterion", FALSE)) { +/** + * Returns a list of all age range criteria. + * + * @return A list of age ranges. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getAgeRangeCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAgeRangeCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getAgeRangeCriterionResponse { + /** + * @access public + * @var AgeRange[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCarrierCriterion", FALSE)) { +/** + * Returns a list of all carrier criteria. + * + * @return A list of carriers. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getCarrierCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCarrierCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getCarrierCriterionResponse { + /** + * @access public + * @var Carrier[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getGenderCriterion", FALSE)) { +/** + * Returns a list of all gender criteria. + * + * @return A list of genders. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getGenderCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getGenderCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getGenderCriterionResponse { + /** + * @access public + * @var Gender[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLanguageCriterion", FALSE)) { +/** + * Returns a list of all language criteria. + * + * @return A list of languages. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getLanguageCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getLanguageCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getLanguageCriterionResponse { + /** + * @access public + * @var Language[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getMobileDeviceCriterion", FALSE)) { +/** + * Returns a list of all mobile devices. + * + * @return A list of mobile devices. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getMobileDeviceCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getMobileDeviceCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getMobileDeviceCriterionResponse { + /** + * @access public + * @var MobileDevice[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOperatingSystemVersionCriterion", FALSE)) { +/** + * Returns a list of all operating system version criteria. + * + * @return A list of operating system versions. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getOperatingSystemVersionCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getOperatingSystemVersionCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getOperatingSystemVersionCriterionResponse { + /** + * @access public + * @var OperatingSystemVersion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserInterestCriterion", FALSE)) { +/** + * Returns a list of user interests. + * + * @return A list of user interests. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getUserInterestCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getUserInterestCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getUserInterestCriterionResponse { + /** + * @access public + * @var CriterionUserInterest[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getVerticalCriterion", FALSE)) { +/** + * Returns a list of content verticals. + * + * @return A list of verticals. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getVerticalCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getVerticalCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getVerticalCriterionResponse { + /** + * @access public + * @var Vertical[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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("ConstantDataService", FALSE)) { +/** + * ConstantDataService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ConstantDataService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ConstantDataServiceGetResponse", + "get" => "ConstantDataServiceGet", + "mutate" => "ConstantDataServiceMutate", + "mutateResponse" => "ConstantDataServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AgeRange" => "AgeRange", + "Criterion" => "Criterion", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "Gender" => "Gender", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatingSystemVersion" => "OperatingSystemVersion", + "Placement" => "Placement", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "ProductCondition" => "ProductCondition", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Product" => "Product", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "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", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "getAgeRangeCriterion" => "getAgeRangeCriterion", + "getAgeRangeCriterionResponse" => "getAgeRangeCriterionResponse", + "getCarrierCriterion" => "getCarrierCriterion", + "getCarrierCriterionResponse" => "getCarrierCriterionResponse", + "getGenderCriterion" => "getGenderCriterion", + "getGenderCriterionResponse" => "getGenderCriterionResponse", + "getLanguageCriterion" => "getLanguageCriterion", + "getLanguageCriterionResponse" => "getLanguageCriterionResponse", + "getMobileDeviceCriterion" => "getMobileDeviceCriterion", + "getMobileDeviceCriterionResponse" => "getMobileDeviceCriterionResponse", + "getOperatingSystemVersionCriterion" => "getOperatingSystemVersionCriterion", + "getOperatingSystemVersionCriterionResponse" => "getOperatingSystemVersionCriterionResponse", + "getUserInterestCriterion" => "getUserInterestCriterion", + "getUserInterestCriterionResponse" => "getUserInterestCriterionResponse", + "getVerticalCriterion" => "getVerticalCriterion", + "getVerticalCriterionResponse" => "getVerticalCriterionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/ConstantDataService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ConstantDataService::$classmap; + parent::__construct($wsdl, $options, $user, 'ConstantDataService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * Returns a list of all age range criteria. + * + * @return A list of age ranges. + * @throws ApiException when there is at least one error with the request. + */ + public function getAgeRangeCriterion() { + $arg = new getAgeRangeCriterion(); + $result = $this->__soapCall("getAgeRangeCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all carrier criteria. + * + * @return A list of carriers. + * @throws ApiException when there is at least one error with the request. + */ + public function getCarrierCriterion() { + $arg = new getCarrierCriterion(); + $result = $this->__soapCall("getCarrierCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all gender criteria. + * + * @return A list of genders. + * @throws ApiException when there is at least one error with the request. + */ + public function getGenderCriterion() { + $arg = new getGenderCriterion(); + $result = $this->__soapCall("getGenderCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all language criteria. + * + * @return A list of languages. + * @throws ApiException when there is at least one error with the request. + */ + public function getLanguageCriterion() { + $arg = new getLanguageCriterion(); + $result = $this->__soapCall("getLanguageCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all mobile devices. + * + * @return A list of mobile devices. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + */ + public function getMobileDeviceCriterion() { + $arg = new getMobileDeviceCriterion(); + $result = $this->__soapCall("getMobileDeviceCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all operating system version criteria. + * + * @return A list of operating system versions. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + */ + public function getOperatingSystemVersionCriterion() { + $arg = new getOperatingSystemVersionCriterion(); + $result = $this->__soapCall("getOperatingSystemVersionCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of user interests. + * + * @return A list of user interests. + * @throws ApiException when there is at least one error with the request. + */ + public function getUserInterestCriterion() { + $arg = new getUserInterestCriterion(); + $result = $this->__soapCall("getUserInterestCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of content verticals. + * + * @return A list of verticals. + * @throws ApiException when there is at least one error with the request. + */ + public function getVerticalCriterion() { + $arg = new getVerticalCriterion(); + $result = $this->__soapCall("getVerticalCriterion", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ConversionTrackerService.php b/src/Google/Api/Ads/AdWords/v201306/ConversionTrackerService.php new file mode 100755 index 000000000..85bfe497e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ConversionTrackerService.php @@ -0,0 +1,3572 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionTrackerStats", FALSE)) { +/** + * Usage stats about a single {@link ConversionTracker}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerStats { + /** + * @access public + * @var integer + */ + public $numConversionEvents; + + /** + * @access public + * @var Money + */ + public $conversionValue; + + /** + * @access public + * @var string + */ + public $mostRecentConversionDate; + + /** + * @access public + * @var integer + */ + public $numConvertedClicks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerStats"; + } + + public function __construct($numConversionEvents = NULL, $conversionValue = NULL, $mostRecentConversionDate = NULL, $numConvertedClicks = NULL) { + $this->numConversionEvents = $numConversionEvents; + $this->conversionValue = $conversionValue; + $this->mostRecentConversionDate = $mostRecentConversionDate; + $this->numConvertedClicks = $numConvertedClicks; + } +}} + +if (!class_exists("ConversionTracker", FALSE)) { +/** + * An abstract Conversion base class. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTracker { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsConversionTrackerStatus + */ + public $status; + + /** + * @access public + * @var tnsConversionTrackerCategory + */ + public $category; + + /** + * @access public + * @var ConversionTrackerStats + */ + public $stats; + + /** + * @access public + * @var integer + */ + public $viewthroughLookbackWindow; + + /** + * @access public + * @var boolean + */ + public $isProductAdsChargeable; + + /** + * @access public + * @var integer + */ + public $productAdsChargeableConversionWindow; + + /** + * @access public + * @var string + */ + public $ConversionTrackerType; + + private $_parameterMap = array ( + "ConversionTracker.Type" => "ConversionTrackerType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ConversionTrackerType = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdWordsConversionTrackerMarkupLanguage", FALSE)) { +/** + * Controls the markup language in which the snippet will be written. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdWordsConversionTrackerMarkupLanguage { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.MarkupLanguage"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdWordsConversionTrackerTextFormat", FALSE)) { +/** + * Text format to display on the conversion page. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdWordsConversionTrackerTextFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.TextFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdWordsConversionTrackerTrackingCodeType", FALSE)) { +/** + * Type of snippet code to generate. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdWordsConversionTrackerTrackingCodeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.TrackingCodeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AppConversionAppConversionType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AppConversionAppConversionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion.AppConversionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AppConversionAppPlatform", FALSE)) { +/** + * App platform for the AppConversionTracker. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AppConversionAppPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion.AppPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerCategory", FALSE)) { +/** + * The category of conversion tracker that is being tracked. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerCategory { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker.Category"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerStatus", FALSE)) { +/** + * Status of the conversion tracker. The user cannot ADD or SET the + * status to {@code HIDDEN}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackingErrorReason", FALSE)) { +/** + * Enumerates all the possible reasons for a ConversionTypeError. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of the conversion trackers that match the selector. The + * actual objects contained in the page's list of entries will be specific + * subclasses of the abstract {@link ConversionTracker} class. + * + * @param serviceSelector The selector specifying the + * {@link ConversionTracker}s to return. + * @return List of conversion trackers specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ConversionTrackerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerServiceGetResponse { + /** + * @access public + * @var ConversionTrackerPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ConversionTrackerServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Applies the list of mutate operations such as adding or updating conversion trackers. + *

Note: {@link ConversionTrackerOperation} does not support the + * REMOVE operator.

+ * + * @param operations A list of mutate operations to perform. + * @return The list of the conversion trackers as they appear after mutation, + * in the same order as they appeared in the list of operations. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while updating the data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerServiceMutate { + /** + * @access public + * @var ConversionTrackerOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ConversionTrackerServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerServiceMutateResponse { + /** + * @access public + * @var ConversionTrackerReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdWordsConversionTracker", FALSE)) { +/** + * A conversion tracker created through AdWords Conversion Tracking. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdWordsConversionTracker extends ConversionTracker { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var tnsAdWordsConversionTrackerMarkupLanguage + */ + public $markupLanguage; + + /** + * @access public + * @var tnsAdWordsConversionTrackerTextFormat + */ + public $textFormat; + + /** + * @access public + * @var string + */ + public $conversionPageLanguage; + + /** + * @access public + * @var string + */ + public $backgroundColor; + + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * @access public + * @var tnsAdWordsConversionTrackerTrackingCodeType + */ + public $trackingCodeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker"; + } + + public function __construct($snippet = NULL, $markupLanguage = NULL, $textFormat = NULL, $conversionPageLanguage = NULL, $backgroundColor = NULL, $userRevenueValue = NULL, $trackingCodeType = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->markupLanguage = $markupLanguage; + $this->textFormat = $textFormat; + $this->conversionPageLanguage = $conversionPageLanguage; + $this->backgroundColor = $backgroundColor; + $this->userRevenueValue = $userRevenueValue; + $this->trackingCodeType = $trackingCodeType; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("AppConversion", FALSE)) { +/** + * A ConversionTracker for mobile apps. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AppConversion extends ConversionTracker { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var tnsAppConversionAppPlatform + */ + public $appPlatform; + + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var tnsAppConversionAppConversionType + */ + public $appConversionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion"; + } + + public function __construct($appId = NULL, $appPlatform = NULL, $userRevenueValue = NULL, $snippet = NULL, $appConversionType = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->appPlatform = $appPlatform; + $this->userRevenueValue = $userRevenueValue; + $this->snippet = $snippet; + $this->appConversionType = $appConversionType; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionTrackingError", FALSE)) { +/** + * An error that can occur during calls to the ConversionTypeService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackingError extends ApiError { + /** + * @access public + * @var tnsConversionTrackingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackingError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("ConversionTrackerOperation", FALSE)) { +/** + * Operations for conversion tracker. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerOperation extends Operation { + /** + * @access public + * @var ConversionTracker + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ConversionTrackerReturnValue", FALSE)) { +/** + * A container for return values from the ConversionTrackerService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerReturnValue extends ListReturnValue { + /** + * @access public + * @var ConversionTracker[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionTrackerPage", FALSE)) { +/** + * Contains a subset of {@link ConversionTracker}s resulting from the filtering + * and paging of the {@link ConversionTrackerService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionTrackerPage extends NoStatsPage { + /** + * @access public + * @var ConversionTracker[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ConversionTrackerService", FALSE)) { +/** + * ConversionTrackerService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ConversionTrackerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ConversionTrackerServiceGetResponse", + "get" => "ConversionTrackerServiceGet", + "mutate" => "ConversionTrackerServiceMutate", + "mutateResponse" => "ConversionTrackerServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdWordsConversionTracker" => "AdWordsConversionTracker", + "ConversionTracker" => "ConversionTracker", + "AppConversion" => "AppConversion", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ConversionTrackingError" => "ConversionTrackingError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "ConversionTrackerStats" => "ConversionTrackerStats", + "ConversionTrackerOperation" => "ConversionTrackerOperation", + "Operation" => "Operation", + "ConversionTrackerReturnValue" => "ConversionTrackerReturnValue", + "ListReturnValue" => "ListReturnValue", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ConversionTrackerPage" => "ConversionTrackerPage", + "NoStatsPage" => "NoStatsPage", + "Page" => "Page", + "Selector" => "Selector", + "AdWordsConversionTracker.MarkupLanguage" => "AdWordsConversionTrackerMarkupLanguage", + "AdWordsConversionTracker.TextFormat" => "AdWordsConversionTrackerTextFormat", + "AdWordsConversionTracker.TrackingCodeType" => "AdWordsConversionTrackerTrackingCodeType", + "AppConversion.AppConversionType" => "AppConversionAppConversionType", + "AppConversion.AppPlatform" => "AppConversionAppPlatform", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionTracker.Category" => "ConversionTrackerCategory", + "ConversionTracker.Status" => "ConversionTrackerStatus", + "ConversionTrackingError.Reason" => "ConversionTrackingErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/ConversionTrackerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ConversionTrackerService::$classmap; + parent::__construct($wsdl, $options, $user, 'ConversionTrackerService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of the conversion trackers that match the selector. The + * actual objects contained in the page's list of entries will be specific + * subclasses of the abstract {@link ConversionTracker} class. + * + * @param serviceSelector The selector specifying the + * {@link ConversionTracker}s to return. + * @return List of conversion trackers specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($serviceSelector) { + $arg = new ConversionTrackerServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Applies the list of mutate operations such as adding or updating conversion trackers. + *

Note: {@link ConversionTrackerOperation} does not support the + * REMOVE operator.

+ * + * @param operations A list of mutate operations to perform. + * @return The list of the conversion trackers as they appear after mutation, + * in the same order as they appeared in the list of operations. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while updating the data. + */ + public function mutate($operations) { + $arg = new ConversionTrackerServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CustomerService.php b/src/Google/Api/Ads/AdWords/v201306/CustomerService.php new file mode 100755 index 000000000..03a497d90 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CustomerService.php @@ -0,0 +1,2119 @@ +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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

+ * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Customer", FALSE)) { +/** + * Represents a customer for the CustomerService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Customer { + /** + * @access public + * @var integer + */ + public $customerId; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $dateTimeZone; + + /** + * @access public + * @var string + */ + public $descriptiveName; + + /** + * @access public + * @var boolean + */ + public $canManageClients; + + /** + * @access public + * @var boolean + */ + public $testAccount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Customer"; + } + + public function __construct($customerId = NULL, $currencyCode = NULL, $dateTimeZone = NULL, $descriptiveName = NULL, $canManageClients = NULL, $testAccount = NULL) { + $this->customerId = $customerId; + $this->currencyCode = $currencyCode; + $this->dateTimeZone = $dateTimeZone; + $this->descriptiveName = $descriptiveName; + $this->canManageClients = $canManageClients; + $this->testAccount = $testAccount; + } +}} + +if (!class_exists("CustomerServiceGet", FALSE)) { +/** + * Returns details of the authorized customer. + * + * @return customer associated with the caller + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerServiceGet { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerServiceGetResponse { + /** + * @access public + * @var Customer + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CustomerService", FALSE)) { +/** + * CustomerService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CustomerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CustomerServiceGetResponse", + "get" => "CustomerServiceGet", + "mutate" => "CustomerServiceMutate", + "mutateResponse" => "CustomerServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "Customer" => "Customer", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201306/CustomerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomerService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomerService', 'https://adwords.google.com/api/adwords/mcm/v201306'); + } + + /** + * Returns details of the authorized customer. + * + * @return customer associated with the caller + */ + public function get() { + $arg = new CustomerServiceGet(); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/CustomerSyncService.php b/src/Google/Api/Ads/AdWords/v201306/CustomerSyncService.php new file mode 100755 index 000000000..d420c0f8f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/CustomerSyncService.php @@ -0,0 +1,2340 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupChangeData", FALSE)) { +/** + * Holds information about a changed adgroup + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupChangeData { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $adGroupChangeStatus; + + /** + * @access public + * @var integer[] + */ + public $changedAds; + + /** + * @access public + * @var integer[] + */ + public $changedCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedCriteria; + + /** + * @access public + * @var integer[] + */ + public $changedFeeds; + + /** + * @access public + * @var integer[] + */ + public $deletedFeeds; + + /** + * @access public + * @var integer[] + */ + public $changedAdGroupBidModifierCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedAdGroupBidModifierCriteria; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupChangeData"; + } + + public function __construct($adGroupId = NULL, $adGroupChangeStatus = NULL, $changedAds = NULL, $changedCriteria = NULL, $deletedCriteria = NULL, $changedFeeds = NULL, $deletedFeeds = NULL, $changedAdGroupBidModifierCriteria = NULL, $deletedAdGroupBidModifierCriteria = NULL) { + $this->adGroupId = $adGroupId; + $this->adGroupChangeStatus = $adGroupChangeStatus; + $this->changedAds = $changedAds; + $this->changedCriteria = $changedCriteria; + $this->deletedCriteria = $deletedCriteria; + $this->changedFeeds = $changedFeeds; + $this->deletedFeeds = $deletedFeeds; + $this->changedAdGroupBidModifierCriteria = $changedAdGroupBidModifierCriteria; + $this->deletedAdGroupBidModifierCriteria = $deletedAdGroupBidModifierCriteria; + } +}} + +if (!class_exists("CampaignChangeData", FALSE)) { +/** + * Holds information about a changed campaign and any ad groups under + * that have changed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignChangeData { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $campaignChangeStatus; + + /** + * @access public + * @var AdGroupChangeData[] + */ + public $changedAdGroups; + + /** + * @access public + * @var integer[] + */ + public $addedCampaignCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedCampaignCriteria; + + /** + * @access public + * @var integer[] + */ + public $addedAdExtensions; + + /** + * @access public + * @var integer[] + */ + public $deletedAdExtensions; + + /** + * @access public + * @var integer[] + */ + public $changedFeeds; + + /** + * @access public + * @var integer[] + */ + public $deletedFeeds; + + /** + * @access public + * @var boolean + */ + public $campaignTargetingChanged; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignChangeData"; + } + + public function __construct($campaignId = NULL, $campaignChangeStatus = NULL, $changedAdGroups = NULL, $addedCampaignCriteria = NULL, $deletedCampaignCriteria = NULL, $addedAdExtensions = NULL, $deletedAdExtensions = NULL, $changedFeeds = NULL, $deletedFeeds = NULL, $campaignTargetingChanged = NULL) { + $this->campaignId = $campaignId; + $this->campaignChangeStatus = $campaignChangeStatus; + $this->changedAdGroups = $changedAdGroups; + $this->addedCampaignCriteria = $addedCampaignCriteria; + $this->deletedCampaignCriteria = $deletedCampaignCriteria; + $this->addedAdExtensions = $addedAdExtensions; + $this->deletedAdExtensions = $deletedAdExtensions; + $this->changedFeeds = $changedFeeds; + $this->deletedFeeds = $deletedFeeds; + $this->campaignTargetingChanged = $campaignTargetingChanged; + } +}} + +if (!class_exists("CustomerSyncError", FALSE)) { +/** + * Represents CustomerSyncService specific errors + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncError extends ApiError { + /** + * @access public + * @var tnsCustomerSyncErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncError"; + } + + public function __construct($reason = NULL, $campaignId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->campaignId = $campaignId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedChangeData", FALSE)) { +/** + * Holds information about a changed feed and any feeds items within the feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedChangeData { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $feedChangeStatus; + + /** + * @access public + * @var integer[] + */ + public $changedFeedItems; + + /** + * @access public + * @var integer[] + */ + public $deletedFeedItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedChangeData"; + } + + public function __construct($feedId = NULL, $feedChangeStatus = NULL, $changedFeedItems = NULL, $deletedFeedItems = NULL) { + $this->feedId = $feedId; + $this->feedChangeStatus = $feedChangeStatus; + $this->changedFeedItems = $changedFeedItems; + $this->deletedFeedItems = $deletedFeedItems; + } +}} + +if (!class_exists("CustomerChangeData", FALSE)) { +/** + * Holds information about changes to a customer + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerChangeData { + /** + * @access public + * @var CampaignChangeData[] + */ + public $changedCampaigns; + + /** + * @access public + * @var FeedChangeData[] + */ + public $changedFeeds; + + /** + * @access public + * @var string + */ + public $lastChangeTimestamp; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerChangeData"; + } + + public function __construct($changedCampaigns = NULL, $changedFeeds = NULL, $lastChangeTimestamp = NULL) { + $this->changedCampaigns = $changedCampaigns; + $this->changedFeeds = $changedFeeds; + $this->lastChangeTimestamp = $lastChangeTimestamp; + } +}} + +if (!class_exists("CustomerSyncSelector", FALSE)) { +/** + * A filter for selecting change history data for a customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncSelector { + /** + * @access public + * @var DateTimeRange + */ + public $dateTimeRange; + + /** + * @access public + * @var integer[] + */ + public $campaignIds; + + /** + * @access public + * @var integer[] + */ + public $feedIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncSelector"; + } + + public function __construct($dateTimeRange = NULL, $campaignIds = NULL, $feedIds = NULL) { + $this->dateTimeRange = $dateTimeRange; + $this->campaignIds = $campaignIds; + $this->feedIds = $feedIds; + } +}} + +if (!class_exists("ChangeStatus", FALSE)) { +/** + * An enum used to classify the types of changes that have been made to + * an adgroup/campaign during a specified date range. This only refers + * to the field of the entity itself, and not its children. + * + * For example, if an AdGroup name changed, this status would be FIELDS_CHANGED, + * but if only bids on keywords belonging an AdGroup were changed this + * status would be FIELDS_UNCHANGED. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ChangeStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ChangeStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerSyncErrorReason", FALSE)) { +/** + * The request attempted to access a campaign that either does not + * exist or belongs to a different account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerSyncServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns information about changed entities inside a customer's account. + * + * @param selector Specifies the filter for selecting changehistory events for a customer. + * @return A Customer->Campaign->AdGroup hierarchy containing information about the objects + * changed at each level. All Campaigns that are requested in the selector will be returned, + * regardless of whether or not they have changed, but unchanged AdGroups will be ignored. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncServiceGet { + /** + * @access public + * @var CustomerSyncSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CustomerSyncServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CustomerSyncServiceGetResponse { + /** + * @access public + * @var CustomerChangeData + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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 this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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 this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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 this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CustomerSyncService", FALSE)) { +/** + * CustomerSyncService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CustomerSyncService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CustomerSyncServiceGetResponse", + "get" => "CustomerSyncServiceGet", + "mutate" => "CustomerSyncServiceMutate", + "mutateResponse" => "CustomerSyncServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateTimeRange" => "DateTimeRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "AdGroupChangeData" => "AdGroupChangeData", + "CampaignChangeData" => "CampaignChangeData", + "CustomerSyncError" => "CustomerSyncError", + "FeedChangeData" => "FeedChangeData", + "CustomerChangeData" => "CustomerChangeData", + "CustomerSyncSelector" => "CustomerSyncSelector", + "ChangeStatus" => "ChangeStatus", + "CustomerSyncError.Reason" => "CustomerSyncErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/ch/v201306/CustomerSyncService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomerSyncService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomerSyncService', 'https://adwords.google.com/api/adwords/ch/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns information about changed entities inside a customer's account. + * + * @param selector Specifies the filter for selecting changehistory events for a customer. + * @return A Customer->Campaign->AdGroup hierarchy containing information about the objects + * changed at each level. All Campaigns that are requested in the selector will be returned, + * regardless of whether or not they have changed, but unchanged AdGroups will be ignored. + */ + public function get($selector) { + $arg = new CustomerSyncServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/DataService.php b/src/Google/Api/Ads/AdWords/v201306/DataService.php new file mode 100755 index 000000000..978995b0e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/DataService.php @@ -0,0 +1,3273 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscapeLandscapePoint", FALSE)) { +/** + * A set of estimates for a criterion's performance for a specific bid + * amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscapeLandscapePoint { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var Money + */ + public $marginalCpc; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var integer + */ + public $promotedImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape.LandscapePoint"; + } + + public function __construct($bid = NULL, $clicks = NULL, $cost = NULL, $marginalCpc = NULL, $impressions = NULL, $promotedImpressions = NULL) { + $this->bid = $bid; + $this->clicks = $clicks; + $this->cost = $cost; + $this->marginalCpc = $marginalCpc; + $this->impressions = $impressions; + $this->promotedImpressions = $promotedImpressions; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("DataEntry", FALSE)) { +/** + * The base class of all return types of the table service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DataEntry { + /** + * @access public + * @var string + */ + public $DataEntryType; + + private $_parameterMap = array ( + "DataEntry.Type" => "DataEntryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataEntry"; + } + + public function __construct($DataEntryType = NULL) { + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidLandscapeType", FALSE)) { +/** + * Used to specify the type of {@code AdGroupLandscape} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscapeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DataErrorReason", FALSE)) { +/** + * Reasons for error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DataErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAdGroupBidLandscape", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the ad groups specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getAdGroupBidLandscape { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("getAdGroupBidLandscapeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getAdGroupBidLandscapeResponse { + /** + * @access public + * @var AdGroupBidLandscapePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCriterionBidLandscape", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the criteria specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getCriterionBidLandscape { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("getCriterionBidLandscapeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getCriterionBidLandscapeResponse { + /** + * @access public + * @var CriterionBidLandscapePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DataError", FALSE)) { +/** + * Represents errors thrown by the get operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DataError extends ApiError { + /** + * @access public + * @var tnsDataErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscape", FALSE)) { +/** + * Represents data about a bid landscape for an ad group or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscape extends DataEntry { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var BidLandscapeLandscapePoint[] + */ + public $landscapePoints; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidLandscape", FALSE)) { +/** + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscape extends BidLandscape { + /** + * @access public + * @var tnsAdGroupBidLandscapeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $landscapeCurrent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape"; + } + + public function __construct($type = NULL, $landscapeCurrent = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->type = $type; + $this->landscapeCurrent = $landscapeCurrent; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionBidLandscape", FALSE)) { +/** + * The bid landscape for a criterion. A bid landscape estimates how a + * a criterion will perform based on different bid amounts. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionBidLandscape extends BidLandscape { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscape"; + } + + public function __construct($criterionId = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupBidLandscapePage", FALSE)) { +/** + * Contains a subset of {@link AdGroupBidLandscape} objects resulting from the + * filtering and paging of + * {@link com.google.ads.api.services.campaignmgmt.data.DataService#getAdGroupBidLandscape} + * call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscapePage extends NoStatsPage { + /** + * @access public + * @var AdGroupBidLandscape[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscapePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CriterionBidLandscapePage", FALSE)) { +/** + * Contains a subset of {@link CriterionBidLandscapePage} objects resulting from the + * filtering and paging of + * {@link com.google.ads.api.services.campaignmgmt.data.DataService#getCriterionBidLandscape} + * call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionBidLandscapePage extends NoStatsPage { + /** + * @access public + * @var CriterionBidLandscape[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscapePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("DataService", FALSE)) { +/** + * DataService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class DataService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "DataServiceGetResponse", + "get" => "DataServiceGet", + "mutate" => "DataServiceMutate", + "mutateResponse" => "DataServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupBidLandscape" => "AdGroupBidLandscape", + "BidLandscape" => "BidLandscape", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CriterionBidLandscape" => "CriterionBidLandscape", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DataError" => "DataError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BidLandscape.LandscapePoint" => "BidLandscapeLandscapePoint", + "Selector" => "Selector", + "DataEntry" => "DataEntry", + "AdGroupBidLandscapePage" => "AdGroupBidLandscapePage", + "NoStatsPage" => "NoStatsPage", + "CriterionBidLandscapePage" => "CriterionBidLandscapePage", + "Page" => "Page", + "AdGroupBidLandscape.Type" => "AdGroupBidLandscapeType", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "DataError.Reason" => "DataErrorReason", + "getAdGroupBidLandscape" => "getAdGroupBidLandscape", + "getAdGroupBidLandscapeResponse" => "getAdGroupBidLandscapeResponse", + "getCriterionBidLandscape" => "getCriterionBidLandscape", + "getCriterionBidLandscapeResponse" => "getCriterionBidLandscapeResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/DataService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = DataService::$classmap; + parent::__construct($wsdl, $options, $user, 'DataService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the ad groups specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + */ + public function getAdGroupBidLandscape($serviceSelector) { + $arg = new getAdGroupBidLandscape($serviceSelector); + $result = $this->__soapCall("getAdGroupBidLandscape", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the criteria specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + */ + public function getCriterionBidLandscape($serviceSelector) { + $arg = new getCriterionBidLandscape($serviceSelector); + $result = $this->__soapCall("getCriterionBidLandscape", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ExperimentService.php b/src/Google/Api/Ads/AdWords/v201306/ExperimentService.php new file mode 100755 index 000000000..dab7eb231 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ExperimentService.php @@ -0,0 +1,3485 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("ExperimentSummaryStats", FALSE)) { +/** + * Contains how many changes were made associated with an experiment at + * the adgroup, critieria and creative levels + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentSummaryStats { + /** + * @access public + * @var integer + */ + public $adGroupsCount; + + /** + * @access public + * @var integer + */ + public $adGroupCriteriaCount; + + /** + * @access public + * @var integer + */ + public $adGroupAdsCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentSummaryStats"; + } + + public function __construct($adGroupsCount = NULL, $adGroupCriteriaCount = NULL, $adGroupAdsCount = NULL) { + $this->adGroupsCount = $adGroupsCount; + $this->adGroupCriteriaCount = $adGroupCriteriaCount; + $this->adGroupAdsCount = $adGroupAdsCount; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Experiment", FALSE)) { +/** + * Class representing a experiment for the ExperimentService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Experiment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $controlId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsExperimentStatus + */ + public $status; + + /** + * @access public + * @var tnsExperimentServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var integer + */ + public $queryPercentage; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var ExperimentSummaryStats + */ + public $experimentSummaryStats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Experiment"; + } + + public function __construct($id = NULL, $controlId = NULL, $campaignId = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $queryPercentage = NULL, $startDateTime = NULL, $endDateTime = NULL, $lastModifiedDateTime = NULL, $experimentSummaryStats = NULL) { + $this->id = $id; + $this->controlId = $controlId; + $this->campaignId = $campaignId; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->queryPercentage = $queryPercentage; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->experimentSummaryStats = $experimentSummaryStats; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServiceErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServingStatus", FALSE)) { +/** + * Experiment is currently active and receiving traffic + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentStatus", FALSE)) { +/** + * Experiment status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of experiments specified by the experiment selector from + * the customer's account. + * @param serviceSelector The selector specifying the {@link Experiment}s to return. + * If selector is empty, all experiments are returned. + * @return List of experiments meeting all the criteria of each selector. + * @throws ApiException if problems occurred while fetching experiment information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ExperimentServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceGetResponse { + /** + * @access public + * @var ExperimentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ExperimentServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Mutates (add, update or remove) experiments. + * Note: To REMOVE use SET and mark status to DELETED. + * @param operations A list of unique operations. + * The same experiment cannot be specified in more than one operation. + * @return The updated experiments. The list of experiments is returned in + * the same order in which it came in as input. + * @throws ApiException if problems occurred while updating experiment information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceMutate { + /** + * @access public + * @var ExperimentOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ExperimentServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceMutateResponse { + /** + * @access public + * @var ExperimentReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExperimentServiceError", FALSE)) { +/** + * Base error class for Experiment Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentServiceError extends ApiError { + /** + * @access public + * @var tnsExperimentServiceErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServiceError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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("QuotaError", FALSE)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ExperimentOperation", FALSE)) { +/** + * Operation for adding, updating or removing operations. For removing, + * use SET and mark status as DELETED. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentOperation extends Operation { + /** + * @access public + * @var Experiment + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ExperimentReturnValue", FALSE)) { +/** + * A container for return values from the ExperimentService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentReturnValue extends ListReturnValue { + /** + * @access public + * @var Experiment[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExperimentPage", FALSE)) { +/** + * Contains a subset of experiment resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.campaign.ExperimentService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentPage extends Page { + /** + * @access public + * @var Experiment[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ExperimentService", FALSE)) { +/** + * ExperimentService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ExperimentService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ExperimentServiceGetResponse", + "get" => "ExperimentServiceGet", + "mutate" => "ExperimentServiceMutate", + "mutateResponse" => "ExperimentServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "ExperimentServiceError" => "ExperimentServiceError", + "ExperimentSummaryStats" => "ExperimentSummaryStats", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "Experiment" => "Experiment", + "ExperimentOperation" => "ExperimentOperation", + "Operation" => "Operation", + "ExperimentReturnValue" => "ExperimentReturnValue", + "ListReturnValue" => "ListReturnValue", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ExperimentPage" => "ExperimentPage", + "Page" => "Page", + "Selector" => "Selector", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentServiceError.Reason" => "ExperimentServiceErrorReason", + "ExperimentServingStatus" => "ExperimentServingStatus", + "ExperimentStatus" => "ExperimentStatus", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "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", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/ExperimentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ExperimentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ExperimentService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of experiments specified by the experiment selector from + * the customer's account. + * @param serviceSelector The selector specifying the {@link Experiment}s to return. + * If selector is empty, all experiments are returned. + * @return List of experiments meeting all the criteria of each selector. + * @throws ApiException if problems occurred while fetching experiment information. + */ + public function get($serviceSelector) { + $arg = new ExperimentServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Mutates (add, update or remove) experiments. + * Note: To REMOVE use SET and mark status to DELETED. + * @param operations A list of unique operations. + * The same experiment cannot be specified in more than one operation. + * @return The updated experiments. The list of experiments is returned in + * the same order in which it came in as input. + * @throws ApiException if problems occurred while updating experiment information. + */ + public function mutate($operations) { + $arg = new ExperimentServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/FeedItemService.php b/src/Google/Api/Ads/AdWords/v201306/FeedItemService.php new file mode 100755 index 000000000..e4953d3dc --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/FeedItemService.php @@ -0,0 +1,3585 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedItemAttributeError", FALSE)) { +/** + * Contains validation error details for a set of feed attributes. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemAttributeError { + /** + * @access public + * @var integer[] + */ + public $feedAttributeIds; + + /** + * @access public + * @var integer + */ + public $validationErrorCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeError"; + } + + public function __construct($feedAttributeIds = NULL, $validationErrorCode = NULL) { + $this->feedAttributeIds = $feedAttributeIds; + $this->validationErrorCode = $validationErrorCode; + } +}} + +if (!class_exists("FeedItemAttributeValue", FALSE)) { +/** + * Represents a feed item's value for a particular feed attribute. A feed item's value is + * composed of a collection of these attribute values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemAttributeValue { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $integerValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeValue"; + } + + public function __construct($feedAttributeId = NULL, $integerValue = NULL, $doubleValue = NULL, $booleanValue = NULL, $stringValue = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->integerValue = $integerValue; + $this->doubleValue = $doubleValue; + $this->booleanValue = $booleanValue; + $this->stringValue = $stringValue; + } +}} + +if (!class_exists("FeedItemDevicePreference", FALSE)) { +/** + * Represents a FeedItem device preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemDevicePreference { + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemDevicePreference"; + } + + public function __construct($devicePreference = NULL) { + $this->devicePreference = $devicePreference; + } +}} + +if (!class_exists("FeedItemSchedule", FALSE)) { +/** + * Represents a FeedItem schedule, which specifies a time interval on a given day + * when the feed item may serve. The FeedItemSchedule times are in the account's time zone. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemSchedule { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + } +}} + +if (!class_exists("FeedItemScheduling", FALSE)) { +/** + * Represents a collection of FeedItem schedules specifying all time intervals for which + * the feed item may serve. Any time range not covered by the specified FeedItemSchedules will + * prevent the feed item from serving during those times. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemScheduling { + /** + * @access public + * @var FeedItemSchedule[] + */ + public $feedItemSchedules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemScheduling"; + } + + public function __construct($feedItemSchedules = NULL) { + $this->feedItemSchedules = $feedItemSchedules; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("FeedItemValidationDetail", FALSE)) { +/** + * Contains offline-validation and approval results for a given FeedItem and FeedMapping. Each + * validation detail indicates any issues found on the feed item when used in the context + * of the feed mapping. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetail { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var tnsFeedItemValidationDetailValidationStatus + */ + public $validationStatus; + + /** + * @access public + * @var FeedItemAttributeError[] + */ + public $validationErrors; + + /** + * @access public + * @var tnsFeedItemValidationDetailApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail"; + } + + public function __construct($feedMappingId = NULL, $validationStatus = NULL, $validationErrors = NULL, $approvalStatus = NULL) { + $this->feedMappingId = $feedMappingId; + $this->validationStatus = $validationStatus; + $this->validationErrors = $validationErrors; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedItem", FALSE)) { +/** + * Represents an item in a feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItem { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedItemId; + + /** + * @access public + * @var tnsFeedItemStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $startTime; + + /** + * @access public + * @var string + */ + public $endTime; + + /** + * @access public + * @var FeedItemAttributeValue[] + */ + public $attributeValues; + + /** + * @access public + * @var FeedItemValidationDetail[] + */ + public $validationDetails; + + /** + * @access public + * @var FeedItemDevicePreference + */ + public $devicePreference; + + /** + * @access public + * @var FeedItemScheduling + */ + public $scheduling; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem"; + } + + public function __construct($feedId = NULL, $feedItemId = NULL, $status = NULL, $startTime = NULL, $endTime = NULL, $attributeValues = NULL, $validationDetails = NULL, $devicePreference = NULL, $scheduling = NULL) { + $this->feedId = $feedId; + $this->feedItemId = $feedItemId; + $this->status = $status; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->attributeValues = $attributeValues; + $this->validationDetails = $validationDetails; + $this->devicePreference = $devicePreference; + $this->scheduling = $scheduling; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemStatus", FALSE)) { +/** + * Feed item is active + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemErrorReason", FALSE)) { +/** + * The reasons for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailApprovalStatus", FALSE)) { +/** + * Feed item approval status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetailApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailValidationStatus", FALSE)) { +/** + * Feed item validation status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetailValidationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ValidationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedItems that meet the selector criteria. + * + * @param selector Determines which FeedItems to return. If empty all + * FeedItems are returned. + * @return The list of FeedItems. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedItemServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemServiceGetResponse { + /** + * @access public + * @var FeedItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedItemServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set FeedItems. + * + * @param operations The operations to apply. + * @return The resulting FeedItems. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemServiceMutate { + /** + * @access public + * @var FeedItemOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedItemServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemServiceMutateResponse { + /** + * @access public + * @var FeedItemReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedItemError", FALSE)) { +/** + * FeedItemService related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemError extends ApiError { + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedItemOperation", FALSE)) { +/** + * FeedItem service mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemOperation extends Operation { + /** + * @access public + * @var FeedItem + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedItemReturnValue", FALSE)) { +/** + * A container for return values from FeedItemService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemReturnValue extends ListReturnValue { + /** + * @access public + * @var FeedItem[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedItemPage", FALSE)) { +/** + * Contains a subset of feed items resulting from a {@link FeedItemService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemPage extends NullStatsPage { + /** + * @access public + * @var FeedItem[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedItemService", FALSE)) { +/** + * FeedItemService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class FeedItemService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedItemServiceGetResponse", + "get" => "FeedItemServiceGet", + "mutate" => "FeedItemServiceMutate", + "mutateResponse" => "FeedItemServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedItemAttributeError" => "FeedItemAttributeError", + "FeedItemAttributeValue" => "FeedItemAttributeValue", + "FeedItemDevicePreference" => "FeedItemDevicePreference", + "FeedItemError" => "FeedItemError", + "FeedItemSchedule" => "FeedItemSchedule", + "FeedItemScheduling" => "FeedItemScheduling", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "FeedItemValidationDetail" => "FeedItemValidationDetail", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "FeedItem" => "FeedItem", + "FeedItemOperation" => "FeedItemOperation", + "Operation" => "Operation", + "FeedItemPage" => "FeedItemPage", + "NullStatsPage" => "NullStatsPage", + "FeedItemReturnValue" => "FeedItemReturnValue", + "ListReturnValue" => "ListReturnValue", + "Page" => "Page", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DayOfWeek" => "DayOfWeek", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "FeedItem.Status" => "FeedItemStatus", + "FeedItemError.Reason" => "FeedItemErrorReason", + "FeedItemValidationDetail.ApprovalStatus" => "FeedItemValidationDetailApprovalStatus", + "FeedItemValidationDetail.ValidationStatus" => "FeedItemValidationDetailValidationStatus", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MinuteOfHour" => "MinuteOfHour", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/FeedItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedItemService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedItems that meet the selector criteria. + * + * @param selector Determines which FeedItems to return. If empty all + * FeedItems are returned. + * @return The list of FeedItems. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedItemServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set FeedItems. + * + * @param operations The operations to apply. + * @return The resulting FeedItems. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedItemServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/FeedMappingService.php b/src/Google/Api/Ads/AdWords/v201306/FeedMappingService.php new file mode 100755 index 000000000..e7e75b2a0 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/FeedMappingService.php @@ -0,0 +1,2961 @@ +For a list of feed placeholders, see + * + * https://developers.google.com/adwords/api/docs/appendix/placeholders + *

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AttributeFieldMapping { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $fieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AttributeFieldMapping"; + } + + public function __construct($feedAttributeId = NULL, $fieldId = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->fieldId = $fieldId; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedMapping", FALSE)) { +/** + * A FeedMapping represents a mapping between feed attributes in a specific feed + * and placeholder fields for a specific placeholder type. This will tell the + * ads serving system which parts of the feed item should be used when + * populating a placeholder. Without this mapping the placeholder cannot be + * populated and the extension can not be displayed. + * + *

For a list of feed placeholders, see + * + * https://developers.google.com/adwords/api/docs/appendix/placeholders + *

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMapping { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $placeholderType; + + /** + * @access public + * @var tnsFeedMappingStatus + */ + public $status; + + /** + * @access public + * @var AttributeFieldMapping[] + */ + public $attributeFieldMappings; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMapping"; + } + + public function __construct($feedMappingId = NULL, $feedId = NULL, $placeholderType = NULL, $status = NULL, $attributeFieldMappings = NULL) { + $this->feedMappingId = $feedMappingId; + $this->feedId = $feedId; + $this->placeholderType = $placeholderType; + $this->status = $status; + $this->attributeFieldMappings = $attributeFieldMappings; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingStatus", FALSE)) { +/** + * This mapping is used in feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMapping.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingErrorReason", FALSE)) { +/** + * The given placeholder field does not exist. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedMappings that meet the selector criteria. + * + * @param selector Determines which FeedMappings to return. If empty all + * FeedMappings are returned. + * @return The list of FeedMappings. + * @throws ApiException indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedMappingServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingServiceGetResponse { + /** + * @access public + * @var FeedMappingPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedMappingServiceMutate", FALSE)) { +/** + * 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, REMOVE. + * + * + * + * Add and remove FeedMappings. + * + * @param operations The operations to apply. + * @return The resulting FeedMappings. + * @throws ApiException indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingServiceMutate { + /** + * @access public + * @var FeedMappingOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedMappingServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingServiceMutateResponse { + /** + * @access public + * @var FeedMappingReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedMappingError", FALSE)) { +/** + * Errors caused by invalid usage of FeedMappingService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingError extends ApiError { + /** + * @access public + * @var tnsFeedMappingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingError"; + } + + 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("FeedMappingOperation", FALSE)) { +/** + * Operation used to create a FeedMapping. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingOperation extends Operation { + /** + * @access public + * @var FeedMapping + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedMappingReturnValue", FALSE)) { +/** + * The result of a call to {@link FeedMappingService#mutate}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingReturnValue extends ListReturnValue { + /** + * @access public + * @var FeedMapping[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedMappingPage", FALSE)) { +/** + * The result of a call to {@link FeedMappingService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedMappingPage extends NullStatsPage { + /** + * @access public + * @var FeedMapping[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedMappingService", FALSE)) { +/** + * FeedMappingService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class FeedMappingService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedMappingServiceGetResponse", + "get" => "FeedMappingServiceGet", + "mutate" => "FeedMappingServiceMutate", + "mutateResponse" => "FeedMappingServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AttributeFieldMapping" => "AttributeFieldMapping", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "FeedMapping" => "FeedMapping", + "FeedMappingError" => "FeedMappingError", + "FeedMappingOperation" => "FeedMappingOperation", + "Operation" => "Operation", + "FeedMappingPage" => "FeedMappingPage", + "NullStatsPage" => "NullStatsPage", + "FeedMappingReturnValue" => "FeedMappingReturnValue", + "ListReturnValue" => "ListReturnValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "FeedMapping.Status" => "FeedMappingStatus", + "FeedMappingError.Reason" => "FeedMappingErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/FeedMappingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedMappingService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedMappingService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedMappings that meet the selector criteria. + * + * @param selector Determines which FeedMappings to return. If empty all + * FeedMappings are returned. + * @return The list of FeedMappings. + * @throws ApiException indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedMappingServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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, REMOVE. + * + * + * + * Add and remove FeedMappings. + * + * @param operations The operations to apply. + * @return The resulting FeedMappings. + * @throws ApiException indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedMappingServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/FeedService.php b/src/Google/Api/Ads/AdWords/v201306/FeedService.php new file mode 100755 index 000000000..d84c99e52 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/FeedService.php @@ -0,0 +1,3187 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedAttribute", FALSE)) { +/** + * FeedAttributes define the types of data expected to be present in a Feed. A single FeedAttribute + * specifies the expected type of the FeedItemAttributes with the same FeedAttributeId. Optionally, + * a FeedAttribute can be marked as being part of a FeedItem's unique key. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedAttribute { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsFeedAttributeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isPartOfKey; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttribute"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $isPartOfKey = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->isPartOfKey = $isPartOfKey; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Feed", FALSE)) { +/** + * A Feed identifies a source of data and its schema. The data for the Feed can either be + * user-entered via the FeedItemService or system-generated, in which case the data is provided + * automatically. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Feed { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var FeedAttribute[] + */ + public $attributes; + + /** + * @access public + * @var tnsFeedStatus + */ + public $status; + + /** + * @access public + * @var tnsFeedOrigin + */ + public $origin; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed"; + } + + public function __construct($id = NULL, $name = NULL, $attributes = NULL, $status = NULL, $origin = NULL) { + $this->id = $id; + $this->name = $name; + $this->attributes = $attributes; + $this->status = $status; + $this->origin = $origin; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedOrigin", FALSE)) { +/** + * The creator of the {@link Feed}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedOrigin { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed.Origin"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedStatus", FALSE)) { +/** + * Status of the Feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedAttributeType", FALSE)) { +/** + * Possible data types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedAttributeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttribute.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of Feeds that meet the selector criteria. + * + * @param selector Determines which Feeds to return. If empty all + * Feeds are returned. + * @return The list of Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedServiceGetResponse { + /** + * @access public + * @var FeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set Feeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedServiceMutate { + /** + * @access public + * @var FeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedServiceMutateResponse { + /** + * @access public + * @var FeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedError", FALSE)) { +/** + * An error caused by an invalid Feed in a FeedService request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedError extends ApiError { + /** + * @access public + * @var tnsFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedOperation", FALSE)) { +/** + * Operation used to create or mutate a Feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedOperation extends Operation { + /** + * @access public + * @var Feed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedReturnValue", FALSE)) { +/** + * The result of a call to FeedService#mutate. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedReturnValue extends ListReturnValue { + /** + * @access public + * @var Feed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics, + * but still require a specific type paramter for {@link StatsEntry} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedPage", FALSE)) { +/** + * The result of a call to FeedService#get. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedPage extends NullStatsPage { + /** + * @access public + * @var Feed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedService", FALSE)) { +/** + * FeedService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class FeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedServiceGetResponse", + "get" => "FeedServiceGet", + "mutate" => "FeedServiceMutate", + "mutateResponse" => "FeedServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttribute" => "FeedAttribute", + "FeedError" => "FeedError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Feed" => "Feed", + "FeedOperation" => "FeedOperation", + "Operation" => "Operation", + "FeedPage" => "FeedPage", + "NullStatsPage" => "NullStatsPage", + "FeedReturnValue" => "FeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "Page" => "Page", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Feed.Origin" => "FeedOrigin", + "Feed.Status" => "FeedStatus", + "FeedAttribute.Type" => "FeedAttributeType", + "FeedError.Reason" => "FeedErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/FeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of Feeds that meet the selector criteria. + * + * @param selector Determines which Feeds to return. If empty all + * Feeds are returned. + * @return The list of Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set Feeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/GeoLocationService.php b/src/Google/Api/Ads/AdWords/v201306/GeoLocationService.php new file mode 100755 index 000000000..2cd4434fa --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/GeoLocationService.php @@ -0,0 +1,2165 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("GeoLocationSelector", FALSE)) { +/** + * A selector used to fetch geographic coordinates for given addresses. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationSelector { + /** + * @access public + * @var Address[] + */ + public $addresses; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationSelector"; + } + + public function __construct($addresses = NULL) { + $this->addresses = $addresses; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("GeoLocation", FALSE)) { +/** + * Class representing a location with its geographic coordinates. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocation { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $GeoLocationType; + + private $_parameterMap = array ( + "GeoLocation.Type" => "GeoLocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocation"; + } + + public function __construct($geoPoint = NULL, $address = NULL, $encodedLocation = NULL, $GeoLocationType = NULL) { + $this->geoPoint = $geoPoint; + $this->address = $address; + $this->encodedLocation = $encodedLocation; + $this->GeoLocationType = $GeoLocationType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoLocationErrorReason", FALSE)) { +/** + * The reasons for the geolocation errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoLocationServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the geographic location information for the address specified. + * + * @param selector specifies the addresses. + * @return list of {@link GeoLocation} objects. Returns {@link InvalidGeoLocation} object if + * the address cannot be geocoded. + * @throws ApiException if problems occurred while retrieving the location information + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationServiceGet { + /** + * @access public + * @var GeoLocationSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("GeoLocationServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationServiceGetResponse { + /** + * @access public + * @var GeoLocation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("GeoLocationError", FALSE)) { +/** + * Errors for {@link GeoLocationService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoLocationError extends ApiError { + /** + * @access public + * @var tnsGeoLocationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidGeoLocation", FALSE)) { +/** + * Invalid GeoLocation object. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InvalidGeoLocation extends GeoLocation { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidGeoLocation"; + } + + public function __construct($geoPoint = NULL, $address = NULL, $encodedLocation = NULL, $GeoLocationType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->address = $address; + $this->encodedLocation = $encodedLocation; + $this->GeoLocationType = $GeoLocationType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("GeoLocationService", FALSE)) { +/** + * GeoLocationService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class GeoLocationService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "GeoLocationServiceGetResponse", + "get" => "GeoLocationServiceGet", + "mutate" => "GeoLocationServiceMutate", + "mutateResponse" => "GeoLocationServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Address" => "Address", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "GeoLocationError" => "GeoLocationError", + "GeoLocationSelector" => "GeoLocationSelector", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "InvalidGeoLocation" => "InvalidGeoLocation", + "GeoLocation" => "GeoLocation", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "GeoLocationError.Reason" => "GeoLocationErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/GeoLocationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = GeoLocationService::$classmap; + parent::__construct($wsdl, $options, $user, 'GeoLocationService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the geographic location information for the address specified. + * + * @param selector specifies the addresses. + * @return list of {@link GeoLocation} objects. Returns {@link InvalidGeoLocation} object if + * the address cannot be geocoded. + * @throws ApiException if problems occurred while retrieving the location information + */ + public function get($selector) { + $arg = new GeoLocationServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/LocationCriterionService.php b/src/Google/Api/Ads/AdWords/v201306/LocationCriterionService.php new file mode 100755 index 000000000..c294a569a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/LocationCriterionService.php @@ -0,0 +1,3551 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Location", FALSE)) { +/** + * Represents Location criterion. + *

A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("LocationCriterion", FALSE)) { +/** + * Represents data that encapsulates a location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterion { + /** + * @access public + * @var Location + */ + public $location; + + /** + * @access public + * @var string + */ + public $canonicalName; + + /** + * @access public + * @var integer + */ + public $reach; + + /** + * @access public + * @var string + */ + public $locale; + + /** + * @access public + * @var string + */ + public $searchTerm; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterion"; + } + + public function __construct($location = NULL, $canonicalName = NULL, $reach = NULL, $locale = NULL, $searchTerm = NULL, $countryCode = NULL) { + $this->location = $location; + $this->canonicalName = $canonicalName; + $this->reach = $reach; + $this->locale = $locale; + $this->searchTerm = $searchTerm; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("LocationCriterionServiceError", FALSE)) { +/** + * Represents errors thrown by the {@link LocationCriterionService#get} operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterionServiceError extends ApiError { + /** + * @access public + * @var tnsLocationCriterionServiceErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterionServiceError"; + } + + 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("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationCriterionServiceErrorReason", FALSE)) { +/** + * Reasons for error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterionServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterionServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link LocationCriterion}'s that match the specified selector. + * + * @param selector filters the LocationCriterion to be returned. + * @return A list of location criterion. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("LocationCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationCriterionServiceGetResponse { + /** + * @access public + * @var LocationCriterion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationCriterionService", FALSE)) { +/** + * LocationCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class LocationCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "LocationCriterionServiceGetResponse", + "get" => "LocationCriterionServiceGet", + "mutate" => "LocationCriterionServiceMutate", + "mutateResponse" => "LocationCriterionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "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", + "Location" => "Location", + "LocationCriterion" => "LocationCriterion", + "LocationCriterionServiceError" => "LocationCriterionServiceError", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "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", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "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", + "LocationCriterionServiceError.Reason" => "LocationCriterionServiceErrorReason", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "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", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/LocationCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LocationCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'LocationCriterionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link LocationCriterion}'s that match the specified selector. + * + * @param selector filters the LocationCriterion to be returned. + * @return A list of location criterion. + * @throws ApiException when there is at least one error with the request. + */ + public function get($selector) { + $arg = new LocationCriterionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ManagedCustomerService.php b/src/Google/Api/Ads/AdWords/v201306/ManagedCustomerService.php new file mode 100755 index 000000000..cda8be5f3 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ManagedCustomerService.php @@ -0,0 +1,3775 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

+ * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceError", FALSE)) { +/** + * Error for {@link ManagedCustomerService} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceError extends ApiError { + /** + * @access public + * @var tnsManagedCustomerServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer[] + */ + public $customerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerServiceError"; + } + + public function __construct($reason = NULL, $customerIds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->customerIds = $customerIds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PendingInvitationSelector", FALSE)) { +/** + * Selector for getPendingInvitations method. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PendingInvitationSelector { + /** + * @access public + * @var integer[] + */ + public $managerCustomerIds; + + /** + * @access public + * @var integer[] + */ + public $clientCustomerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PendingInvitationSelector"; + } + + public function __construct($managerCustomerIds = NULL, $clientCustomerIds = NULL) { + $this->managerCustomerIds = $managerCustomerIds; + $this->clientCustomerIds = $clientCustomerIds; + } +}} + +if (!class_exists("ManagedCustomerLink", FALSE)) { +/** + * Represents an AdWords manager-client link. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerLink { + /** + * @access public + * @var integer + */ + public $managerCustomerId; + + /** + * @access public + * @var integer + */ + public $clientCustomerId; + + /** + * @access public + * @var tnsLinkStatus + */ + public $linkStatus; + + /** + * @access public + * @var string + */ + public $pendingDescriptiveName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerLink"; + } + + public function __construct($managerCustomerId = NULL, $clientCustomerId = NULL, $linkStatus = NULL, $pendingDescriptiveName = NULL) { + $this->managerCustomerId = $managerCustomerId; + $this->clientCustomerId = $clientCustomerId; + $this->linkStatus = $linkStatus; + $this->pendingDescriptiveName = $pendingDescriptiveName; + } +}} + +if (!class_exists("LinkOperation", FALSE)) { +/** + * Operation for modifying ManagedCustomer links. See {@link ManagedCustomerService#mutateLink}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LinkOperation extends Operation { + /** + * @access public + * @var ManagedCustomerLink + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LinkOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("MoveOperation", FALSE)) { +/** + * Operation for moving ManagedCustomer links. See {@link ManagedCustomerService#mutateManager}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MoveOperation extends Operation { + /** + * @access public + * @var ManagedCustomerLink + */ + public $operand; + + /** + * @access public + * @var integer + */ + public $oldManagerCustomerId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MoveOperation"; + } + + public function __construct($operand = NULL, $oldManagerCustomerId = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->oldManagerCustomerId = $oldManagerCustomerId; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("MutateLinkResults", FALSE)) { +/** + * Results of a {@link ManagedCustomerService#mutateLink} call which changes + * manager/client links. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateLinkResults { + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MutateLinkResults"; + } + + public function __construct($links = NULL) { + $this->links = $links; + } +}} + +if (!class_exists("MutateManagerResults", FALSE)) { +/** + * Results of a {@link ManagedCustomerService#mutateManager} call, which moves client customers to + * new managers. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateManagerResults { + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MutateManagerResults"; + } + + public function __construct($links = NULL) { + $this->links = $links; + } +}} + +if (!class_exists("ManagedCustomer", FALSE)) { +/** + * Data object that represents a managed customer. Member of {@link ManagedCustomerPage}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomer { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $login; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var integer + */ + public $customerId; + + /** + * @access public + * @var boolean + */ + public $canManageClients; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $dateTimeZone; + + /** + * @access public + * @var boolean + */ + public $testAccount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomer"; + } + + public function __construct($name = NULL, $login = NULL, $companyName = NULL, $customerId = NULL, $canManageClients = NULL, $currencyCode = NULL, $dateTimeZone = NULL, $testAccount = NULL) { + $this->name = $name; + $this->login = $login; + $this->companyName = $companyName; + $this->customerId = $customerId; + $this->canManageClients = $canManageClients; + $this->currencyCode = $currencyCode; + $this->dateTimeZone = $dateTimeZone; + $this->testAccount = $testAccount; + } +}} + +if (!class_exists("ManagedCustomerOperation", FALSE)) { +/** + * An operation on a managed customer. + *

Note: only ADD operator is supported.

+ * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerOperation extends Operation { + /** + * @access public + * @var ManagedCustomer + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ManagedCustomerPage", FALSE)) { +/** + * Return result of {@link ManagedCustomerService} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerPage extends Page { + /** + * @access public + * @var ManagedCustomer[] + */ + public $entries; + + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerPage"; + } + + public function __construct($entries = NULL, $links = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->links = $links; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ManagedCustomerReturnValue", FALSE)) { +/** + * A container for return values from the ManagedCustomerService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerReturnValue { + /** + * @access public + * @var ManagedCustomer[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerReturnValue"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("PendingInvitation", FALSE)) { +/** + * Pending invitation result for the getPendingInvitations method. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PendingInvitation { + /** + * @access public + * @var ManagedCustomer + */ + public $manager; + + /** + * @access public + * @var ManagedCustomer + */ + public $client; + + /** + * @access public + * @var string + */ + public $creationDate; + + /** + * @access public + * @var string + */ + public $expirationDate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PendingInvitation"; + } + + public function __construct($manager = NULL, $client = NULL, $creationDate = NULL, $expirationDate = NULL) { + $this->manager = $manager; + $this->client = $client; + $this->creationDate = $creationDate; + $this->expirationDate = $expirationDate; + } +}} + +if (!class_exists("LinkStatus", FALSE)) { +/** + * These status values match the values in the ServicedAccounts.Status column. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LinkStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LinkStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceErrorReason", FALSE)) { +/** + * Unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of customers that meet the selector criteria. + * + * @param selector The selector specifying the {@link ManagedCustomer}s to return. + * @return List of customers identified by the selector. + * @throws ApiException When there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ManagedCustomerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceGetResponse { + /** + * @access public + * @var ManagedCustomerPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPendingInvitations", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the pending invitations for the customer IDs in the selector. + * @param selector the manager customer ids (inviters) or the client customer ids (invitees) + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getPendingInvitations { + /** + * @access public + * @var PendingInvitationSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getPendingInvitationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getPendingInvitationsResponse { + /** + * @access public + * @var PendingInvitation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ManagedCustomerServiceMutate", FALSE)) { +/** + * 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: SET, ADD. + * + * + * + * Adds managed customers. + * + *

Note: {@link ManagedCustomerOperation} only supports + * {@code ADD} operator.

+ * + * @param operations List of unique operations. + * @return The list of updated managed customers, returned in the same order as the + * operations array. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceMutate { + /** + * @access public + * @var ManagedCustomerOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ManagedCustomerServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManagedCustomerServiceMutateResponse { + /** + * @access public + * @var ManagedCustomerReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("mutateLink", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Modifies the ManagedCustomer forest. These actions are possible (categorized by + * Operator + Link Status): + * + *
    + *
  • ADD + PENDING: manager extends invitations + *
  • SET + CANCELLED: manager rescinds invitations + *
  • SET + INACTIVE: manager/client terminates links + *
  • SET + ACTIVE: client accepts invitations + *
  • SET + REFUSED: client declines invitations + *
+ * + * @param operations the list of operations + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class mutateLink { + /** + * @access public + * @var LinkOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("mutateLinkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class mutateLinkResponse { + /** + * @access public + * @var MutateLinkResults + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("mutateManager", FALSE)) { +/** + * 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: SET. + * + * + * + * Moves client customers to new managers (moving links). Only the following action is possible: + * + *
    + *
  • SET + ACTIVE: manager moves client customers to new managers within the same MCC + * hierarchy + *
+ * + * @param operations List of unique operations. + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class mutateManager { + /** + * @access public + * @var MoveOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("mutateManagerResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class mutateManagerResponse { + /** + * @access public + * @var MutateManagerResults + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ManagedCustomerService", FALSE)) { +/** + * ManagedCustomerService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ManagedCustomerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ManagedCustomerServiceGetResponse", + "get" => "ManagedCustomerServiceGet", + "mutate" => "ManagedCustomerServiceMutate", + "mutateResponse" => "ManagedCustomerServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "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", + "ManagedCustomerServiceError" => "ManagedCustomerServiceError", + "PendingInvitationSelector" => "PendingInvitationSelector", + "ManagedCustomerLink" => "ManagedCustomerLink", + "LinkOperation" => "LinkOperation", + "MoveOperation" => "MoveOperation", + "MutateLinkResults" => "MutateLinkResults", + "MutateManagerResults" => "MutateManagerResults", + "ManagedCustomer" => "ManagedCustomer", + "ManagedCustomerOperation" => "ManagedCustomerOperation", + "ManagedCustomerPage" => "ManagedCustomerPage", + "ManagedCustomerReturnValue" => "ManagedCustomerReturnValue", + "PendingInvitation" => "PendingInvitation", + "LinkStatus" => "LinkStatus", + "ManagedCustomerServiceError.Reason" => "ManagedCustomerServiceErrorReason", + "getPendingInvitations" => "getPendingInvitations", + "getPendingInvitationsResponse" => "getPendingInvitationsResponse", + "mutateLink" => "mutateLink", + "mutateLinkResponse" => "mutateLinkResponse", + "mutateManager" => "mutateManager", + "mutateManagerResponse" => "mutateManagerResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201306/ManagedCustomerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ManagedCustomerService::$classmap; + parent::__construct($wsdl, $options, $user, 'ManagedCustomerService', 'https://adwords.google.com/api/adwords/mcm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of customers that meet the selector criteria. + * + * @param selector The selector specifying the {@link ManagedCustomer}s to return. + * @return List of customers identified by the selector. + * @throws ApiException When there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new ManagedCustomerServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the pending invitations for the customer IDs in the selector. + * @param selector the manager customer ids (inviters) or the client customer ids (invitees) + * @throws ApiException when there is at least one error with the request + */ + public function getPendingInvitations($selector) { + $arg = new getPendingInvitations($selector); + $result = $this->__soapCall("getPendingInvitations", array($arg)); + return $result->rval; + } + + + /** + * 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: SET, ADD. + * + * + * + * Adds managed customers. + * + *

Note: {@link ManagedCustomerOperation} only supports + * {@code ADD} operator.

+ * + * @param operations List of unique operations. + * @return The list of updated managed customers, returned in the same order as the + * operations array. + */ + public function mutate($operations) { + $arg = new ManagedCustomerServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Modifies the ManagedCustomer forest. These actions are possible (categorized by + * Operator + Link Status): + * + *
    + *
  • ADD + PENDING: manager extends invitations + *
  • SET + CANCELLED: manager rescinds invitations + *
  • SET + INACTIVE: manager/client terminates links + *
  • SET + ACTIVE: client accepts invitations + *
  • SET + REFUSED: client declines invitations + *
+ * + * @param operations the list of operations + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + */ + public function mutateLink($operations) { + $arg = new mutateLink($operations); + $result = $this->__soapCall("mutateLink", array($arg)); + return $result->rval; + } + + + /** + * 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: SET. + * + * + * + * Moves client customers to new managers (moving links). Only the following action is possible: + * + *
    + *
  • SET + ACTIVE: manager moves client customers to new managers within the same MCC + * hierarchy + *
+ * + * @param operations List of unique operations. + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + */ + public function mutateManager($operations) { + $arg = new mutateManager($operations); + $result = $this->__soapCall("mutateManager", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/MediaService.php b/src/Google/Api/Ads/AdWords/v201306/MediaService.php new file mode 100755 index 000000000..04a788fdc --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/MediaService.php @@ -0,0 +1,3201 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaPage", FALSE)) { +/** + * Page of media returned by the {@link MediaService} which includes + * the media. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaPage { + /** + * @access public + * @var Media[] + */ + public $entries; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL) { + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AudioErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AudioErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudioError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoErrorReason", FALSE)) { +/** + * Invalid video. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class VideoErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of media that meet the criteria specified by the selector. + *

Note: {@code MediaService} will not return any + * {@link ImageAd} image files.

+ * + * @param serviceSelector Selects which media objects to return. + * @return A list of {@code Media} objects. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("MediaServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaServiceGetResponse { + /** + * @access public + * @var MediaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("upload", FALSE)) { +/** + * Uploads new media. Currently, you can only upload {@link Image} files. + * + * @param media A list of {@code Media} objects, each containing the data to + * be uploaded. + * @return A list of uploaded media in the same order as the argument list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class upload { + /** + * @access public + * @var Media[] + */ + public $media; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($media = NULL) { + $this->media = $media; + } +}} + +if (!class_exists("uploadResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class uploadResponse { + /** + * @access public + * @var Media[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("AudioError", FALSE)) { +/** + * Error class for errors associated with parsing audio data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AudioError extends ApiError { + /** + * @access public + * @var tnsAudioErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudioError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("VideoError", FALSE)) { +/** + * Error class for errors associated with parsing video data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class VideoError extends ApiError { + /** + * @access public + * @var tnsVideoErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("MediaService", FALSE)) { +/** + * MediaService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class MediaService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "MediaServiceGetResponse", + "get" => "MediaServiceGet", + "mutate" => "MediaServiceMutate", + "mutateResponse" => "MediaServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Audio" => "Audio", + "Media" => "Media", + "AudioError" => "AudioError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "Image" => "Image", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "NewEntityCreationError" => "NewEntityCreationError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "Video" => "Video", + "VideoError" => "VideoError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "MediaPage" => "MediaPage", + "Selector" => "Selector", + "AudioError.Reason" => "AudioErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "VideoError.Reason" => "VideoErrorReason", + "upload" => "upload", + "uploadResponse" => "uploadResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/MediaService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = MediaService::$classmap; + parent::__construct($wsdl, $options, $user, 'MediaService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of media that meet the criteria specified by the selector. + *

Note: {@code MediaService} will not return any + * {@link ImageAd} image files.

+ * + * @param serviceSelector Selects which media objects to return. + * @return A list of {@code Media} objects. + */ + public function get($serviceSelector) { + $arg = new MediaServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * Uploads new media. Currently, you can only upload {@link Image} files. + * + * @param media A list of {@code Media} objects, each containing the data to + * be uploaded. + * @return A list of uploaded media in the same order as the argument list. + */ + public function upload($media) { + $arg = new upload($media); + $result = $this->__soapCall("upload", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/MutateJobService.php b/src/Google/Api/Ads/AdWords/v201306/MutateJobService.php new file mode 100755 index 000000000..1ae26d1cf --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/MutateJobService.php @@ -0,0 +1,17061 @@ +This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Ad { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $displayUrl; + + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $AdType; + + private $_parameterMap = array ( + "Ad.Type" => "AdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Ad"; + } + + public function __construct($id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("AdExtensionOverride", FALSE)) { +/** + * Represents an ad level ad extension override. An ad extension override + * specifies the ad extension that must be used if the ad is served with + * any ad extension data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverride { + /** + * @access public + * @var integer + */ + public $adId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var OverrideInfo + */ + public $overrideInfo; + + /** + * @access public + * @var tnsAdExtensionOverrideStatus + */ + public $status; + + /** + * @access public + * @var tnsAdExtensionOverrideApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var AdExtensionOverrideStats + */ + public $stats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride"; + } + + public function __construct($adId = NULL, $adExtension = NULL, $overrideInfo = NULL, $status = NULL, $approvalStatus = NULL, $stats = NULL) { + $this->adId = $adId; + $this->adExtension = $adExtension; + $this->overrideInfo = $overrideInfo; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->stats = $stats; + } +}} + +if (!class_exists("AdGroup", FALSE)) { +/** + * Represents an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroup { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsAdGroupStatus + */ + public $status; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var AdGroupExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $contentBidCriterionTypeGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup"; + } + + public function __construct($id = NULL, $campaignId = NULL, $campaignName = NULL, $name = NULL, $status = NULL, $settings = NULL, $experimentData = NULL, $stats = NULL, $forwardCompatibilityMap = NULL, $biddingStrategyConfiguration = NULL, $contentBidCriterionTypeGroup = NULL) { + $this->id = $id; + $this->campaignId = $campaignId; + $this->campaignName = $campaignName; + $this->name = $name; + $this->status = $status; + $this->settings = $settings; + $this->experimentData = $experimentData; + $this->stats = $stats; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->contentBidCriterionTypeGroup = $contentBidCriterionTypeGroup; + } +}} + +if (!class_exists("AdGroupAd", FALSE)) { +/** + * Represents an ad in an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAd { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Ad + */ + public $ad; + + /** + * @access public + * @var AdGroupAdExperimentData + */ + public $experimentData; + + /** + * @access public + * @var tnsAdGroupAdStatus + */ + public $status; + + /** + * @access public + * @var tnsAdGroupAdApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var boolean + */ + public $trademarkDisapproved; + + /** + * @access public + * @var AdStats + */ + public $stats; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd"; + } + + public function __construct($adGroupId = NULL, $ad = NULL, $experimentData = NULL, $status = NULL, $approvalStatus = NULL, $trademarkDisapproved = NULL, $stats = NULL, $forwardCompatibilityMap = NULL) { + $this->adGroupId = $adGroupId; + $this->ad = $ad; + $this->experimentData = $experimentData; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->trademarkDisapproved = $trademarkDisapproved; + $this->stats = $stats; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("AdGroupAdExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for an AdGroupAd + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + } +}} + +if (!class_exists("AdGroupBidModifier", FALSE)) { +/** + * Represents an adgroup level bid modifier override for campaign level criterion + * bid modifier values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifier { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var tnsBidModifierSource + */ + public $bidModifierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifier"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $criterion = NULL, $bidModifier = NULL, $bidModifierSource = NULL) { + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->bidModifierSource = $bidModifierSource; + } +}} + +if (!class_exists("AdGroupCriterion", FALSE)) { +/** + * Represents a criterion in an ad group, used with AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterion { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsCriterionUse + */ + public $criterionUse; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $AdGroupCriterionType; + + private $_parameterMap = array ( + "AdGroupCriterion.Type" => "AdGroupCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("AdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * Bid multiplier used to modify the bid of a criterion while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var string + */ + public $AdGroupCriterionExperimentBidMultiplierType; + + private $_parameterMap = array ( + "AdGroupCriterionExperimentBidMultiplier.Type" => "AdGroupCriterionExperimentBidMultiplierType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($AdGroupCriterionExperimentBidMultiplierType = NULL) { + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("AdGroupExperimentBidMultipliers", FALSE)) { +/** + * Bid multiplier used to modify the bid of an adgroup while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupExperimentBidMultipliers { + /** + * @access public + * @var string + */ + public $AdGroupExperimentBidMultipliersType; + + private $_parameterMap = array ( + "AdGroupExperimentBidMultipliers.Type" => "AdGroupExperimentBidMultipliersType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentBidMultipliers"; + } + + public function __construct($AdGroupExperimentBidMultipliersType = NULL) { + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this adgroup. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupExperimentBidMultipliers + */ + public $experimentBidMultipliers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultipliers = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultipliers = $experimentBidMultipliers; + } +}} + +if (!class_exists("AdUnionId", FALSE)) { +/** + * Represents an id indicating a grouping of Ads under some heuristic. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdUnionId { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdUnionIdType; + + private $_parameterMap = array ( + "AdUnionId.Type" => "AdUnionIdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("Address", FALSE)) { +/** + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Address { + /** + * @access public + * @var string + */ + public $streetAddress; + + /** + * @access public + * @var string + */ + public $streetAddress2; + + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $provinceCode; + + /** + * @access public + * @var string + */ + public $provinceName; + + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Address"; + } + + public function __construct($streetAddress = NULL, $streetAddress2 = NULL, $cityName = NULL, $provinceCode = NULL, $provinceName = NULL, $postalCode = NULL, $countryCode = NULL) { + $this->streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiErrorReason", FALSE)) { +/** + * Interface that has a reason return an associated service error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiErrorReason { + /** + * @access public + * @var tnsAdErrorReason + */ + public $AdErrorReason; + + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $AdExtensionErrorReason; + + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $AdExtensionOverrideErrorReason; + + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $AdGroupAdErrorReason; + + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $AdGroupCriterionErrorReason; + + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $AdGroupServiceErrorReason; + + /** + * @access public + * @var tnsAdxErrorReason + */ + public $AdxErrorReason; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $AuthenticationErrorReason; + + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $AuthorizationErrorReason; + + /** + * @access public + * @var tnsBetaErrorReason + */ + public $BetaErrorReason; + + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $BiddingErrorReason; + + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $BiddingErrorsReason; + + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $BiddingTransitionErrorReason; + + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $BudgetErrorReason; + + /** + * @access public + * @var tnsBulkMutateJobErrorReason + */ + public $BulkMutateJobErrorReason; + + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $CampaignAdExtensionErrorReason; + + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $CampaignCriterionErrorReason; + + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $CampaignErrorReason; + + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $ClientTermsErrorReason; + + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $CriterionErrorReason; + + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $DatabaseErrorReason; + + /** + * @access public + * @var tnsDateErrorReason + */ + public $DateErrorReason; + + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $DistinctErrorReason; + + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $EntityAccessDeniedReason; + + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $EntityCountLimitExceededReason; + + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $EntityNotFoundReason; + + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $FeedItemErrorReason; + + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $ForwardCompatibilityErrorReason; + + /** + * @access public + * @var tnsIdErrorReason + */ + public $IdErrorReason; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $ImageErrorReason; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $InternalApiErrorReason; + + /** + * @access public + * @var tnsJobErrorReason + */ + public $JobErrorReason; + + /** + * @access public + * @var tnsMediaErrorReason + */ + public $MediaErrorReason; + + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $NewEntityCreationErrorReason; + + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $NotEmptyErrorReason; + + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $NotWhitelistedErrorReason; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $NullErrorReason; + + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $OperationAccessDeniedReason; + + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $OperatorErrorReason; + + /** + * @access public + * @var tnsPagingErrorReason + */ + public $PagingErrorReason; + + /** + * @access public + * @var tnsPolicyViolationErrorReason + */ + public $PolicyViolationErrorReason; + + /** + * @access public + * @var tnsQueryErrorReason + */ + public $QueryErrorReason; + + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $QuotaCheckErrorReason; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $QuotaErrorReason; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $RangeErrorReason; + + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $RateExceededErrorReason; + + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $ReadOnlyErrorReason; + + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $RegionCodeErrorReason; + + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $RejectedErrorReason; + + /** + * @access public + * @var tnsRequestErrorReason + */ + public $RequestErrorReason; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $RequiredErrorReason; + + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $SelectorErrorReason; + + /** + * @access public + * @var tnsSettingErrorReason + */ + public $SettingErrorReason; + + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $SizeLimitErrorReason; + + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $StatsQueryErrorReason; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $StringLengthErrorReason; + + /** + * @access public + * @var tnsTargetErrorReason + */ + public $TargetErrorReason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiErrorReason"; + } + + public function __construct($AdErrorReason = NULL, $AdExtensionErrorReason = NULL, $AdExtensionOverrideErrorReason = NULL, $AdGroupAdErrorReason = NULL, $AdGroupCriterionErrorReason = NULL, $AdGroupServiceErrorReason = NULL, $AdxErrorReason = NULL, $AuthenticationErrorReason = NULL, $AuthorizationErrorReason = NULL, $BetaErrorReason = NULL, $BiddingErrorReason = NULL, $BiddingErrorsReason = NULL, $BiddingTransitionErrorReason = NULL, $BudgetErrorReason = NULL, $BulkMutateJobErrorReason = NULL, $CampaignAdExtensionErrorReason = NULL, $CampaignCriterionErrorReason = NULL, $CampaignErrorReason = NULL, $ClientTermsErrorReason = NULL, $CriterionErrorReason = NULL, $DatabaseErrorReason = NULL, $DateErrorReason = NULL, $DistinctErrorReason = NULL, $EntityAccessDeniedReason = NULL, $EntityCountLimitExceededReason = NULL, $EntityNotFoundReason = NULL, $FeedItemErrorReason = NULL, $ForwardCompatibilityErrorReason = NULL, $IdErrorReason = NULL, $ImageErrorReason = NULL, $InternalApiErrorReason = NULL, $JobErrorReason = NULL, $MediaErrorReason = NULL, $NewEntityCreationErrorReason = NULL, $NotEmptyErrorReason = NULL, $NotWhitelistedErrorReason = NULL, $NullErrorReason = NULL, $OperationAccessDeniedReason = NULL, $OperatorErrorReason = NULL, $PagingErrorReason = NULL, $PolicyViolationErrorReason = NULL, $QueryErrorReason = NULL, $QuotaCheckErrorReason = NULL, $QuotaErrorReason = NULL, $RangeErrorReason = NULL, $RateExceededErrorReason = NULL, $ReadOnlyErrorReason = NULL, $RegionCodeErrorReason = NULL, $RejectedErrorReason = NULL, $RequestErrorReason = NULL, $RequiredErrorReason = NULL, $SelectorErrorReason = NULL, $SettingErrorReason = NULL, $SizeLimitErrorReason = NULL, $StatsQueryErrorReason = NULL, $StringLengthErrorReason = NULL, $TargetErrorReason = NULL) { + $this->AdErrorReason = $AdErrorReason; + $this->AdExtensionErrorReason = $AdExtensionErrorReason; + $this->AdExtensionOverrideErrorReason = $AdExtensionOverrideErrorReason; + $this->AdGroupAdErrorReason = $AdGroupAdErrorReason; + $this->AdGroupCriterionErrorReason = $AdGroupCriterionErrorReason; + $this->AdGroupServiceErrorReason = $AdGroupServiceErrorReason; + $this->AdxErrorReason = $AdxErrorReason; + $this->AuthenticationErrorReason = $AuthenticationErrorReason; + $this->AuthorizationErrorReason = $AuthorizationErrorReason; + $this->BetaErrorReason = $BetaErrorReason; + $this->BiddingErrorReason = $BiddingErrorReason; + $this->BiddingErrorsReason = $BiddingErrorsReason; + $this->BiddingTransitionErrorReason = $BiddingTransitionErrorReason; + $this->BudgetErrorReason = $BudgetErrorReason; + $this->BulkMutateJobErrorReason = $BulkMutateJobErrorReason; + $this->CampaignAdExtensionErrorReason = $CampaignAdExtensionErrorReason; + $this->CampaignCriterionErrorReason = $CampaignCriterionErrorReason; + $this->CampaignErrorReason = $CampaignErrorReason; + $this->ClientTermsErrorReason = $ClientTermsErrorReason; + $this->CriterionErrorReason = $CriterionErrorReason; + $this->DatabaseErrorReason = $DatabaseErrorReason; + $this->DateErrorReason = $DateErrorReason; + $this->DistinctErrorReason = $DistinctErrorReason; + $this->EntityAccessDeniedReason = $EntityAccessDeniedReason; + $this->EntityCountLimitExceededReason = $EntityCountLimitExceededReason; + $this->EntityNotFoundReason = $EntityNotFoundReason; + $this->FeedItemErrorReason = $FeedItemErrorReason; + $this->ForwardCompatibilityErrorReason = $ForwardCompatibilityErrorReason; + $this->IdErrorReason = $IdErrorReason; + $this->ImageErrorReason = $ImageErrorReason; + $this->InternalApiErrorReason = $InternalApiErrorReason; + $this->JobErrorReason = $JobErrorReason; + $this->MediaErrorReason = $MediaErrorReason; + $this->NewEntityCreationErrorReason = $NewEntityCreationErrorReason; + $this->NotEmptyErrorReason = $NotEmptyErrorReason; + $this->NotWhitelistedErrorReason = $NotWhitelistedErrorReason; + $this->NullErrorReason = $NullErrorReason; + $this->OperationAccessDeniedReason = $OperationAccessDeniedReason; + $this->OperatorErrorReason = $OperatorErrorReason; + $this->PagingErrorReason = $PagingErrorReason; + $this->PolicyViolationErrorReason = $PolicyViolationErrorReason; + $this->QueryErrorReason = $QueryErrorReason; + $this->QuotaCheckErrorReason = $QuotaCheckErrorReason; + $this->QuotaErrorReason = $QuotaErrorReason; + $this->RangeErrorReason = $RangeErrorReason; + $this->RateExceededErrorReason = $RateExceededErrorReason; + $this->ReadOnlyErrorReason = $ReadOnlyErrorReason; + $this->RegionCodeErrorReason = $RegionCodeErrorReason; + $this->RejectedErrorReason = $RejectedErrorReason; + $this->RequestErrorReason = $RequestErrorReason; + $this->RequiredErrorReason = $RequiredErrorReason; + $this->SelectorErrorReason = $SelectorErrorReason; + $this->SettingErrorReason = $SettingErrorReason; + $this->SizeLimitErrorReason = $SizeLimitErrorReason; + $this->StatsQueryErrorReason = $StatsQueryErrorReason; + $this->StringLengthErrorReason = $StringLengthErrorReason; + $this->TargetErrorReason = $TargetErrorReason; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("BiddableAdGroupCriterion", FALSE)) { +/** + * A biddable (positive) criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddableAdGroupCriterion extends AdGroupCriterion { + /** + * @access public + * @var tnsUserStatus + */ + public $userStatus; + + /** + * @access public + * @var tnsSystemServingStatus + */ + public $systemServingStatus; + + /** + * @access public + * @var tnsApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BiddableAdGroupCriterionExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Bid + */ + public $firstPageCpc; + + /** + * @access public + * @var Bid + */ + public $topOfPageCpc; + + /** + * @access public + * @var QualityInfo + */ + public $qualityInfo; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterion"; + } + + public function __construct($userStatus = NULL, $systemServingStatus = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $destinationUrl = NULL, $experimentData = NULL, $firstPageCpc = NULL, $topOfPageCpc = NULL, $qualityInfo = NULL, $stats = NULL, $biddingStrategyConfiguration = NULL, $bidModifier = NULL, $adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->userStatus = $userStatus; + $this->systemServingStatus = $systemServingStatus; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->destinationUrl = $destinationUrl; + $this->experimentData = $experimentData; + $this->firstPageCpc = $firstPageCpc; + $this->topOfPageCpc = $topOfPageCpc; + $this->qualityInfo = $qualityInfo; + $this->stats = $stats; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->bidModifier = $bidModifier; + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("BiddableAdGroupCriterionExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this {@link BiddableAdGroupCriterion}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddableAdGroupCriterionExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupCriterionExperimentBidMultiplier + */ + public $experimentBidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterionExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultiplier = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultiplier = $experimentBidMultiplier; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
    + *
  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • + *
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
  • + *
+ * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * Flexible bidding is a beta feature. For more information on flexible bidding, + * visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("BiddingTransitionError", FALSE)) { +/** + * Bidding transition errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingTransitionError extends ApiError { + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError"; + } + + 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("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("BillingSummary", FALSE)) { +/** + * Represents the billing summary of the job that provides the overall cost of + * the job's operations, i.e., for the work done by the job. This + * therefore excludes the cost of operating on the job itself - setting up the + * job, polling for its status, retrieving the result, etc. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BillingSummary { + /** + * @access public + * @var integer + */ + public $numOperations; + + /** + * @access public + * @var integer + */ + public $numUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSummary"; + } + + public function __construct($numOperations = NULL, $numUnits = NULL) { + $this->numOperations = $numOperations; + $this->numUnits = $numUnits; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BulkMutateJobError", FALSE)) { +/** + * Bulk mutate job handling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobError extends ApiError { + /** + * @access public + * @var tnsBulkMutateJobErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobError"; + } + + 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("BulkMutateJobPolicy", FALSE)) { +/** + * A basic job policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobPolicy { + /** + * @access public + * @var integer[] + */ + public $prerequisiteJobIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobPolicy"; + } + + public function __construct($prerequisiteJobIds = NULL) { + $this->prerequisiteJobIds = $prerequisiteJobIds; + } +}} + +if (!class_exists("BulkMutateRequest", FALSE)) { +/** + * A request part of a {@link BulkMutateJob}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateRequest { + /** + * @access public + * @var integer + */ + public $partIndex; + + /** + * @access public + * @var OperationStream[] + */ + public $operationStreams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateRequest"; + } + + public function __construct($partIndex = NULL, $operationStreams = NULL) { + $this->partIndex = $partIndex; + $this->operationStreams = $operationStreams; + } +}} + +if (!class_exists("BulkMutateResult", FALSE)) { +/** + * Represents a result part of a {@link BulkMutateJob}. + * + *

Once one or more mutate operations have been processed, the bulk mutate + * job will eventually be completed. This means that the job will have a result + * corresponding to each operation. The types of results for an operation are: + *

    + *
  • {@link ReturnValueResult}: the corresponding operation was successfully + * processed and this result contains the return value of that operation; + *
  • + *
  • {@link FailureResult} or {@link BatchFailureResult}: the corresponding + * operation was in a batch that failed with errors. Please inspect these + * errors to determine if the operation itself was faulty and if so what + * errors need to be fixed before you submit this operation as part of a + * future job.
  • + *
  • {@link LostResult}: the corresponding operation was processed - it was + * either successful and had a return value, or it was a part of a failed + * batch. Unfortunately, despite our best efforts, we were unable to + * durably save the result. You may have to retrieve the related state of + * your account to determine if this operation actually succeeded.
  • + *
  • {@link UnprocessedResult}: the corresponding operation was not processed + * because the job was aborted Note: The job's status will be + * {@code COMPLETED}, signifying that although it may have some operations + * that were processed, it cannot be resumed.
  • + * + *

    The results of a job are structured so that the each operation can be + * easily matched to its corresponding result. So for every + * {@link BulkMutateRequest} in a job, there is a corresponding + * {@code BulkMutateResult}; For every {@link OperationStream} in a request + * part, there is a corresponding {@link OperationStreamResult}; And, for + * every {@link Operation} in an operation stream, there is an + * {@link OperationResult}.

    + * + *

    Within an operation stream, the operations are processed in atomic + * batches. So even one faulty operation may cause its neighboring non-faulty + * operations to fail just because they happened to be processed in the same + * batch. It is important to keep this batch failure reporting scheme in mind + * when handling operation failures.

    + * + *

    There will be a single {@link ApiException} returned for each failing + * batch of operations, and it will have a similar structure and + * interpretation to the exceptions returned by the synchronous AdWords API + * services. This exception is returned in a {@link FailureResult} that + * corresponds to the first operation of the failing batch.

    + * + *

    The exception may contain multiple errors, and each error may have + * {@code OGNL path}s that identify the faulty operation(s) by index (or + * position within the batch). The first operation in the batch has an + * implicit index of 0. The subsequent operations in the batch have a + * corresponding {@link BatchFailureResult} which explicitly specifies the + * index of the operation within the batch.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateResult { + /** + * @access public + * @var integer + */ + public $partIndex; + + /** + * @access public + * @var OperationStreamResult[] + */ + public $operationStreamResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateResult"; + } + + public function __construct($partIndex = NULL, $operationStreamResults = NULL) { + $this->partIndex = $partIndex; + $this->operationStreamResults = $operationStreamResults; + } +}} + +if (!class_exists("Campaign", FALSE)) { +/** + * Data representing an AdWords campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Campaign { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCampaignStatus + */ + public $status; + + /** + * @access public + * @var tnsServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var Budget + */ + public $budget; + + /** + * @access public + * @var ConversionOptimizerEligibility + */ + public $conversionOptimizerEligibility; + + /** + * @access public + * @var CampaignStats + */ + public $campaignStats; + + /** + * @access public + * @var tnsAdServingOptimizationStatus + */ + public $adServingOptimizationStatus; + + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var boolean + */ + public $enhanced; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Campaign"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $startDate = NULL, $endDate = NULL, $budget = NULL, $conversionOptimizerEligibility = NULL, $campaignStats = NULL, $adServingOptimizationStatus = NULL, $frequencyCap = NULL, $settings = NULL, $networkSetting = NULL, $biddingStrategyConfiguration = NULL, $forwardCompatibilityMap = NULL, $enhanced = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->budget = $budget; + $this->conversionOptimizerEligibility = $conversionOptimizerEligibility; + $this->campaignStats = $campaignStats; + $this->adServingOptimizationStatus = $adServingOptimizationStatus; + $this->frequencyCap = $frequencyCap; + $this->settings = $settings; + $this->networkSetting = $networkSetting; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->enhanced = $enhanced; + } +}} + +if (!class_exists("CampaignAdExtension", FALSE)) { +/** + * Represents a campaign level ad extension. A campaign ad extension specifies + * a campaign and an ad extension which can extend any ad under that campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtension { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var tnsCampaignAdExtensionStatus + */ + public $status; + + /** + * @access public + * @var tnsCampaignAdExtensionApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var CampaignAdExtensionStats + */ + public $stats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension"; + } + + public function __construct($campaignId = NULL, $adExtension = NULL, $status = NULL, $approvalStatus = NULL, $stats = NULL) { + $this->campaignId = $campaignId; + $this->adExtension = $adExtension; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->stats = $stats; + } +}} + +if (!class_exists("CampaignAdExtensionError", FALSE)) { +/** + * CampaignAdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionError extends ApiError { + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError"; + } + + 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("CampaignCriterion", FALSE)) { +/** + * Represents a campaign level criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterion { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $CampaignCriterionType; + + private $_parameterMap = array ( + "CampaignCriterion.Type" => "CampaignCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("CampaignCriterionError", FALSE)) { +/** + * Base error class for Campaign Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionError extends ApiError { + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError"; + } + + 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("CampaignError", FALSE)) { +/** + * Base error class for Campaign Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignError extends ApiError { + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ConversionOptimizerEligibility", FALSE)) { +/** + * Eligibility data for Campaign to transition to Conversion Optimizer + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerEligibility { + /** + * @access public + * @var boolean + */ + public $eligible; + + /** + * @access public + * @var tnsConversionOptimizerEligibilityRejectionReason[] + */ + public $rejectionReasons; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility"; + } + + public function __construct($eligible = NULL, $rejectionReasons = NULL) { + $this->eligible = $eligible; + $this->rejectionReasons = $rejectionReasons; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DeprecatedAd", FALSE)) { +/** + * Represents a deprecated ad. + * + * Deprecated ads can be deleted, but cannot be created. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DeprecatedAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsDeprecatedAdType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd"; + } + + public function __construct($name = NULL, $type = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->type = $type; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityId", FALSE)) { +/** + * A qualified long-valued identity that can identify different types of + * AdWords entities such as campaigns and ad-groups. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityId { + /** + * @access public + * @var tnsEntityIdType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityId"; + } + + public function __construct($type = NULL, $value = NULL) { + $this->type = $type; + $this->value = $value; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("FeedItem", FALSE)) { +/** + * Represents an item in a feed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItem { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedItemId; + + /** + * @access public + * @var tnsFeedItemStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $startTime; + + /** + * @access public + * @var string + */ + public $endTime; + + /** + * @access public + * @var FeedItemAttributeValue[] + */ + public $attributeValues; + + /** + * @access public + * @var FeedItemValidationDetail[] + */ + public $validationDetails; + + /** + * @access public + * @var FeedItemDevicePreference + */ + public $devicePreference; + + /** + * @access public + * @var FeedItemScheduling + */ + public $scheduling; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem"; + } + + public function __construct($feedId = NULL, $feedItemId = NULL, $status = NULL, $startTime = NULL, $endTime = NULL, $attributeValues = NULL, $validationDetails = NULL, $devicePreference = NULL, $scheduling = NULL) { + $this->feedId = $feedId; + $this->feedItemId = $feedItemId; + $this->status = $status; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->attributeValues = $attributeValues; + $this->validationDetails = $validationDetails; + $this->devicePreference = $devicePreference; + $this->scheduling = $scheduling; + } +}} + +if (!class_exists("FeedItemAttributeError", FALSE)) { +/** + * Contains validation error details for a set of feed attributes. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemAttributeError { + /** + * @access public + * @var integer[] + */ + public $feedAttributeIds; + + /** + * @access public + * @var integer + */ + public $validationErrorCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeError"; + } + + public function __construct($feedAttributeIds = NULL, $validationErrorCode = NULL) { + $this->feedAttributeIds = $feedAttributeIds; + $this->validationErrorCode = $validationErrorCode; + } +}} + +if (!class_exists("FeedItemAttributeValue", FALSE)) { +/** + * Represents a feed item's value for a particular feed attribute. A feed item's value is + * composed of a collection of these attribute values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemAttributeValue { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $integerValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeValue"; + } + + public function __construct($feedAttributeId = NULL, $integerValue = NULL, $doubleValue = NULL, $booleanValue = NULL, $stringValue = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->integerValue = $integerValue; + $this->doubleValue = $doubleValue; + $this->booleanValue = $booleanValue; + $this->stringValue = $stringValue; + } +}} + +if (!class_exists("FeedItemDevicePreference", FALSE)) { +/** + * Represents a FeedItem device preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemDevicePreference { + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemDevicePreference"; + } + + public function __construct($devicePreference = NULL) { + $this->devicePreference = $devicePreference; + } +}} + +if (!class_exists("FeedItemError", FALSE)) { +/** + * FeedItemService related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemError extends ApiError { + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError"; + } + + 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("FeedItemSchedule", FALSE)) { +/** + * Represents a FeedItem schedule, which specifies a time interval on a given day + * when the feed item may serve. The FeedItemSchedule times are in the account's time zone. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemSchedule { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + } +}} + +if (!class_exists("FeedItemScheduling", FALSE)) { +/** + * Represents a collection of FeedItem schedules specifying all time intervals for which + * the feed item may serve. Any time range not covered by the specified FeedItemSchedules will + * prevent the feed item from serving during those times. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemScheduling { + /** + * @access public + * @var FeedItemSchedule[] + */ + public $feedItemSchedules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemScheduling"; + } + + public function __construct($feedItemSchedules = NULL) { + $this->feedItemSchedules = $feedItemSchedules; + } +}} + +if (!class_exists("FeedItemValidationDetail", FALSE)) { +/** + * Contains offline-validation and approval results for a given FeedItem and FeedMapping. Each + * validation detail indicates any issues found on the feed item when used in the context + * of the feed mapping. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetail { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var tnsFeedItemValidationDetailValidationStatus + */ + public $validationStatus; + + /** + * @access public + * @var FeedItemAttributeError[] + */ + public $validationErrors; + + /** + * @access public + * @var tnsFeedItemValidationDetailApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail"; + } + + public function __construct($feedMappingId = NULL, $validationStatus = NULL, $validationErrors = NULL, $approvalStatus = NULL) { + $this->feedMappingId = $feedMappingId; + $this->validationStatus = $validationStatus; + $this->validationErrors = $validationErrors; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * A frequency cap is the maximum number of times an ad (or some set of ads) can + * be shown to a user over a particular time period. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * @access public + * @var tnsLevel + */ + public $level; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($impressions = NULL, $timeUnit = NULL, $level = NULL) { + $this->impressions = $impressions; + $this->timeUnit = $timeUnit; + $this->level = $level; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("ImageAd", FALSE)) { +/** + * Represents an ImageAd. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageAd extends Ad { + /** + * @access public + * @var Image + */ + public $image; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $adToCopyImageFrom; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageAd"; + } + + public function __construct($image = NULL, $name = NULL, $adToCopyImageFrom = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->image = $image; + $this->name = $name; + $this->adToCopyImageFrom = $adToCopyImageFrom; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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("InAppLinkExtension", FALSE)) { +/** + *

    This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

    It is also known as Mobile App Extension. + * + *

    The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Job", FALSE)) { +/** + * Represents an asynchronous macro unit of work. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Job { + /** + * @access public + * @var ApiErrorReason + */ + public $failureReason; + + /** + * @access public + * @var JobStats + */ + public $stats; + + /** + * @access public + * @var BillingSummary + */ + public $billingSummary; + + /** + * @access public + * @var string + */ + public $JobType; + + private $_parameterMap = array ( + "Job.Type" => "JobType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Job"; + } + + public function __construct($failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("JobError", FALSE)) { +/** + * Job handling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobError extends ApiError { + /** + * @access public + * @var tnsJobErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobError"; + } + + 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("JobEvent", FALSE)) { +/** + * An event defined by a status change of a job. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobEvent { + /** + * @access public + * @var string + */ + public $dateTime; + + /** + * @access public + * @var string + */ + public $JobEventType; + + private $_parameterMap = array ( + "JobEvent.Type" => "JobEventType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobEvent"; + } + + public function __construct($dateTime = NULL, $JobEventType = NULL) { + $this->dateTime = $dateTime; + $this->JobEventType = $JobEventType; + } +}} + +if (!class_exists("JobResult", FALSE)) { +/** + * Represents the result data of a job. This contains both the results of + * successfully processed operations as well as errors returned by failed + * operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobResult { + /** + * @access public + * @var BulkMutateResult + */ + public $BulkMutateResult; + + /** + * @access public + * @var SimpleMutateResult + */ + public $SimpleMutateResult; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobResult"; + } + + public function __construct($BulkMutateResult = NULL, $SimpleMutateResult = NULL) { + $this->BulkMutateResult = $BulkMutateResult; + $this->SimpleMutateResult = $SimpleMutateResult; + } +}} + +if (!class_exists("JobSelector", FALSE)) { +/** + * For selecting jobs whose information will be returned from a get method call + * of a job service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobSelector { + /** + * @access public + * @var boolean + */ + public $includeHistory; + + /** + * @access public + * @var boolean + */ + public $includeStats; + + /** + * @access public + * @var string + */ + public $JobSelectorType; + + private $_parameterMap = array ( + "JobSelector.Type" => "JobSelectorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobSelector"; + } + + public function __construct($includeHistory = NULL, $includeStats = NULL, $JobSelectorType = NULL) { + $this->includeHistory = $includeHistory; + $this->includeStats = $includeStats; + $this->JobSelectorType = $JobSelectorType; + } +}} + +if (!class_exists("JobStats", FALSE)) { +/** + * Job-handling statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobStats { + /** + * @access public + * @var integer + */ + public $progressPercent; + + /** + * @access public + * @var integer + */ + public $pendingTimeMillis; + + /** + * @access public + * @var integer + */ + public $processingTimeMillis; + + /** + * @access public + * @var string + */ + public $JobStatsType; + + private $_parameterMap = array ( + "JobStats.Type" => "JobStatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobStats"; + } + + public function __construct($progressPercent = NULL, $pendingTimeMillis = NULL, $processingTimeMillis = NULL, $JobStatsType = NULL) { + $this->progressPercent = $progressPercent; + $this->pendingTimeMillis = $pendingTimeMillis; + $this->processingTimeMillis = $processingTimeMillis; + $this->JobStatsType = $JobStatsType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("LocationOverrideInfo", FALSE)) { +/** + * Represents override info for ad level LocationExtension overrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationOverrideInfo { + /** + * @access public + * @var integer + */ + public $radius; + + /** + * @access public + * @var tnsLocationOverrideInfoRadiusUnits + */ + public $radiusUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo"; + } + + public function __construct($radius = NULL, $radiusUnits = NULL) { + $this->radius = $radius; + $this->radiusUnits = $radiusUnits; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("ManualCPCAdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * AdGroupCriterion level bid multiplier used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPCAdGroupCriterionExperimentBidMultiplier extends AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var tnsMultiplierSource + */ + public $multiplierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($maxCpcMultiplier = NULL, $multiplierSource = NULL, $AdGroupCriterionExperimentBidMultiplierType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->multiplierSource = $multiplierSource; + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("ManualCPCAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPCAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var BidMultiplier + */ + public $maxContentCpcMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpcMultiplier = NULL, $maxContentCpcMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->maxContentCpcMultiplier = $maxContentCpcMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCPMAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPM bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCPMAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpmMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPMAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpmMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpmMultiplier = $maxCpmMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + 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("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("MobileAd", FALSE)) { +/** + * Represents a mobile ad. + * + *

    + * A mobile ad can contain a click-to-call phone number, a link to a website, + * or both. You specify which features you want by setting certain fields, as + * shown in the following table. For example, to create a click-to-call mobile + * ad, set the fields in the Click-to-call column. A hyphen indicates + * that you should not set the corresponding field. + *

    + *

    + * For more information, see + * + * Create a mobile ad. + *

    + * + * + * + * + * + * + * + * + *
    Click-to-call Website Both
    headline
    + * description
    + * mobileCarriers
    + * phoneNumber
    + * countryCode
    + * businessName
    + * -
    + * -
    + * -
    + *
    headline
    + * description
    + * mobileCarriers
    + * -
    + * -
    + * -
    + * displayUrl
    + * destinationUrl
    + * markupLanguages
    + *
    headline
    + * description
    + * mobileCarriers
    + * phoneNumber
    + * countryCode
    + * businessName
    + * displayUrl
    + * destinationUrl
    + * markupLanguages
    + *
    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var string + */ + public $businessName; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAd"; + } + + public function __construct($headline = NULL, $description = NULL, $markupLanguages = NULL, $mobileCarriers = NULL, $businessName = NULL, $countryCode = NULL, $phoneNumber = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description = $description; + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->businessName = $businessName; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

    This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

    + *

    Learn more about + * + * phone extensions. + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("MobileImageAd", FALSE)) { +/** + * Represents a mobile image ad. + * + *

    For more information, see + * + * Create a mobile ad.

    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileImageAd extends Ad { + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var Image + */ + public $image; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileImageAd"; + } + + public function __construct($markupLanguages = NULL, $mobileCarriers = NULL, $image = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->image = $image; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NegativeAdGroupCriterion", FALSE)) { +/** + * A negative criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NegativeAdGroupCriterion extends AdGroupCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeAdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("NegativeCampaignCriterion", FALSE)) { +/** + * A negative campaign criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NegativeCampaignCriterion extends CampaignCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("Operand", FALSE)) { +/** + * A marker interface for entities that can be operated upon in mutate + * operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operand { + /** + * @access public + * @var AdExtensionOverride + */ + public $AdExtensionOverride; + + /** + * @access public + * @var AdGroupAd + */ + public $AdGroupAd; + + /** + * @access public + * @var AdGroupBidModifier + */ + public $AdGroupBidModifier; + + /** + * @access public + * @var AdGroupCriterion + */ + public $AdGroupCriterion; + + /** + * @access public + * @var AdGroup + */ + public $AdGroup; + + /** + * @access public + * @var Ad + */ + public $Ad; + + /** + * @access public + * @var Budget + */ + public $Budget; + + /** + * @access public + * @var CampaignAdExtension + */ + public $CampaignAdExtension; + + /** + * @access public + * @var CampaignCriterion + */ + public $CampaignCriterion; + + /** + * @access public + * @var Campaign + */ + public $Campaign; + + /** + * @access public + * @var FeedItem + */ + public $FeedItem; + + /** + * @access public + * @var Job + */ + public $Job; + + /** + * @access public + * @var Media + */ + public $Media; + + /** + * @access public + * @var PlaceHolder + */ + public $PlaceHolder; + + /** + * @access public + * @var TargetList + */ + public $TargetList; + + /** + * @access public + * @var Target + */ + public $Target; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operand"; + } + + public function __construct($AdExtensionOverride = NULL, $AdGroupAd = NULL, $AdGroupBidModifier = NULL, $AdGroupCriterion = NULL, $AdGroup = NULL, $Ad = NULL, $Budget = NULL, $CampaignAdExtension = NULL, $CampaignCriterion = NULL, $Campaign = NULL, $FeedItem = NULL, $Job = NULL, $Media = NULL, $PlaceHolder = NULL, $TargetList = NULL, $Target = NULL) { + $this->AdExtensionOverride = $AdExtensionOverride; + $this->AdGroupAd = $AdGroupAd; + $this->AdGroupBidModifier = $AdGroupBidModifier; + $this->AdGroupCriterion = $AdGroupCriterion; + $this->AdGroup = $AdGroup; + $this->Ad = $Ad; + $this->Budget = $Budget; + $this->CampaignAdExtension = $CampaignAdExtension; + $this->CampaignCriterion = $CampaignCriterion; + $this->Campaign = $Campaign; + $this->FeedItem = $FeedItem; + $this->Job = $Job; + $this->Media = $Media; + $this->PlaceHolder = $PlaceHolder; + $this->TargetList = $TargetList; + $this->Target = $Target; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperationResult", FALSE)) { +/** + * Represents the result of an individual mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationResult { + /** + * @access public + * @var string + */ + public $OperationResultType; + + private $_parameterMap = array ( + "OperationResult.Type" => "OperationResultType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationResult"; + } + + public function __construct($OperationResultType = NULL) { + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("OperationStream", FALSE)) { +/** + * A stream of AdWords API mutate operations that must be performed serially. + * Further, this operation stream must be processed serially with all other + * operation streams in a bulk mutate job that specify the same scoping + * entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationStream { + /** + * @access public + * @var EntityId + */ + public $scopingEntityId; + + /** + * @access public + * @var Operation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationStream"; + } + + public function __construct($scopingEntityId = NULL, $operations = NULL) { + $this->scopingEntityId = $scopingEntityId; + $this->operations = $operations; + } +}} + +if (!class_exists("OperationStreamResult", FALSE)) { +/** + * The result of processing an {@link OperationStream}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationStreamResult { + /** + * @access public + * @var OperationResult[] + */ + public $operationResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationStreamResult"; + } + + public function __construct($operationResults = NULL) { + $this->operationResults = $operationResults; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("OverrideInfo", FALSE)) { +/** + * Represents additional override info with which to augment the override + * extension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OverrideInfo { + /** + * @access public + * @var LocationOverrideInfo + */ + public $LocationOverrideInfo; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OverrideInfo"; + } + + public function __construct($LocationOverrideInfo = NULL) { + $this->LocationOverrideInfo = $LocationOverrideInfo; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PlaceHolder", FALSE)) { +/** + * A place holder for a result which is not available. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PlaceHolder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlaceHolder"; + } + + public function __construct() { + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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("ProductAd", FALSE)) { +/** + * Represents a product ad (known as a product + * listing ad in the AdWords user interface). A product ad displays + * product data (managed using the Google Merchant Center) that is + * pulled from the Google base product feed specified in the parent campaign's + * {@linkplain ProductExtension product extension}. + * + *

    Product ads are only available to a limited set of advertisers. If you + * are not eligible to use product ads, they will not serve.

    + * + *

    Caution: Product ads do not use {@link #url url} or + * {@link #displayUrl displayUrl}; setting these fields on a product ad will + * cause an error.

    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductAd extends Ad { + /** + * @access public + * @var string + */ + public $promotionLine; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAd"; + } + + public function __construct($promotionLine = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->promotionLine = $promotionLine; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

    A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QualityInfo", FALSE)) { +/** + * Container for criterion quality information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QualityInfo { + /** + * @access public + * @var boolean + */ + public $isKeywordAdRelevanceAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageQualityAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageLatencyAcceptable; + + /** + * @access public + * @var integer + */ + public $qualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QualityInfo"; + } + + public function __construct($isKeywordAdRelevanceAcceptable = NULL, $isLandingPageQualityAcceptable = NULL, $isLandingPageLatencyAcceptable = NULL, $qualityScore = NULL) { + $this->isKeywordAdRelevanceAcceptable = $isKeywordAdRelevanceAcceptable; + $this->isLandingPageQualityAcceptable = $isLandingPageQualityAcceptable; + $this->isLandingPageLatencyAcceptable = $isLandingPageLatencyAcceptable; + $this->qualityScore = $qualityScore; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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("QuotaError", FALSE)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ReturnValueResult", FALSE)) { +/** + * Represents a success result of processing a mutate operation that returned + * a value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReturnValueResult extends OperationResult { + /** + * @access public + * @var Operand + */ + public $returnValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReturnValueResult"; + } + + public function __construct($returnValue = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->returnValue = $returnValue; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("RichMediaAd", FALSE)) { +/** + * Data associated with a rich media ad. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $impressionBeaconUrl; + + /** + * @access public + * @var integer + */ + public $adDuration; + + /** + * @access public + * @var integer + */ + public $certifiedVendorFormatId; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var tnsRichMediaAdRichMediaAdType + */ + public $richMediaAdType; + + /** + * @access public + * @var tnsRichMediaAdAdAttribute[] + */ + public $adAttributes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd"; + } + + public function __construct($name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + 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("SimpleMutateJob", FALSE)) { +/** + * A mutation job, which was submitted using + * {@link MutateJobService#mutate}, and will execute asynchronously + * sometime after submission. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SimpleMutateJob extends Job { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * @access public + * @var JobEvent[] + */ + public $history; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SimpleMutateJob"; + } + + public function __construct($id = NULL, $status = NULL, $history = NULL, $failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + parent::__construct(); + $this->id = $id; + $this->status = $status; + $this->history = $history; + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("SimpleMutateResult", FALSE)) { +/** + * The results of a simple mutation job. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SimpleMutateResult { + /** + * @access public + * @var Operand[] + */ + public $results; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SimpleMutateResult"; + } + + public function __construct($results = NULL, $errors = NULL) { + $this->results = $results; + $this->errors = $errors; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Stats", FALSE)) { +/** + * Statistics about an ad or criterion within an ad group or campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var tnsStatsNetwork + */ + public $network; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var Money + */ + public $averageCpm; + + /** + * @access public + * @var double + */ + public $ctr; + + /** + * @access public + * @var integer + */ + public $conversions; + + /** + * @access public + * @var integer + */ + public $viewThroughConversions; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var string + */ + public $StatsType; + + private $_parameterMap = array ( + "Stats.Type" => "StatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Target", FALSE)) { +/** + * Target abstract class. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Target { + /** + * @access public + * @var string + */ + public $TargetType; + + private $_parameterMap = array ( + "Target.Type" => "TargetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Target"; + } + + public function __construct($TargetType = NULL) { + $this->TargetType = $TargetType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + 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("TargetList", FALSE)) { +/** + * Targets list abstract class (a list of a given type of targets along with their campaign ID). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetList { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $TargetListType; + + private $_parameterMap = array ( + "TargetList.Type" => "TargetListType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetList"; + } + + public function __construct($campaignId = NULL, $TargetListType = NULL) { + $this->campaignId = $campaignId; + $this->TargetListType = $TargetListType; + } +}} + +if (!class_exists("TargetingSettingDetail", FALSE)) { +/** + * Specifies if criteria of this type group should be used to restrict + * targeting, or if ads can serve anywhere and criteria are only used in + * determining the bid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingSettingDetail { + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $criterionTypeGroup; + + /** + * @access public + * @var boolean + */ + public $targetAll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSettingDetail"; + } + + public function __construct($criterionTypeGroup = NULL, $targetAll = NULL) { + $this->criterionTypeGroup = $criterionTypeGroup; + $this->targetAll = $targetAll; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetingSetting", FALSE)) { +/** + * Setting for targeting related features. + * This is applicable at Campaign and AdGroup level. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingSetting extends Setting { + /** + * @access public + * @var TargetingSettingDetail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSetting"; + } + + public function __construct($details = NULL, $SettingType = NULL) { + parent::__construct(); + $this->details = $details; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("TempAdUnionId", FALSE)) { +/** + * Represents the temporary id for an ad union id, which the user can specify. + * The temporary id can be used to group ads together during ad creation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TempAdUnionId extends AdUnionId { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TempAdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + parent::__construct(); + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("TemplateAd", FALSE)) { +/** + * Represents a Display Ad Builder template ad. A template ad is + * composed of a template (specified by its ID) and the data that populates + * the template's fields. For a list of available templates and their required + * fields, see Template Ads. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateAd extends Ad { + /** + * @access public + * @var integer + */ + public $templateId; + + /** + * @access public + * @var AdUnionId + */ + public $adUnionId; + + /** + * @access public + * @var TemplateElement[] + */ + public $templateElements; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateAd"; + } + + public function __construct($templateId = NULL, $adUnionId = NULL, $templateElements = NULL, $dimensions = NULL, $name = NULL, $duration = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->templateId = $templateId; + $this->adUnionId = $adUnionId; + $this->templateElements = $templateElements; + $this->dimensions = $dimensions; + $this->name = $name; + $this->duration = $duration; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TemplateElement", FALSE)) { +/** + * Represents an element in a template. Each template element is composed + * of a list of fields (actual value data). + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElement { + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var TemplateElementField[] + */ + public $fields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElement"; + } + + public function __construct($uniqueName = NULL, $fields = NULL) { + $this->uniqueName = $uniqueName; + $this->fields = $fields; + } +}} + +if (!class_exists("TemplateElementField", FALSE)) { +/** + * Represents a field in a template element. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElementField { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsTemplateElementFieldType + */ + public $type; + + /** + * @access public + * @var string + */ + public $fieldText; + + /** + * @access public + * @var Media + */ + public $fieldMedia; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField"; + } + + public function __construct($name = NULL, $type = NULL, $fieldText = NULL, $fieldMedia = NULL) { + $this->name = $name; + $this->type = $type; + $this->fieldText = $fieldText; + $this->fieldMedia = $fieldMedia; + } +}} + +if (!class_exists("TextAd", FALSE)) { +/** + * Represents a TextAd. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TextAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAd"; + } + + public function __construct($headline = NULL, $description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ThirdPartyRedirectAd", FALSE)) { +/** + * Data associated with rich media extension attributes. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ThirdPartyRedirectAd extends RichMediaAd { + /** + * @access public + * @var boolean + */ + public $isCookieTargeted; + + /** + * @access public + * @var boolean + */ + public $isUserInterestTargeted; + + /** + * @access public + * @var boolean + */ + public $isTagged; + + /** + * @access public + * @var tnsVideoType[] + */ + public $videoTypes; + + /** + * @access public + * @var tnsThirdPartyRedirectAdExpandingDirection[] + */ + public $expandingDirections; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd"; + } + + public function __construct($isCookieTargeted = NULL, $isUserInterestTargeted = NULL, $isTagged = NULL, $videoTypes = NULL, $expandingDirections = NULL, $name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->isCookieTargeted = $isCookieTargeted; + $this->isUserInterestTargeted = $isUserInterestTargeted; + $this->isTagged = $isTagged; + $this->videoTypes = $videoTypes; + $this->expandingDirections = $expandingDirections; + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TrackingSetting", FALSE)) { +/** + * Campaign level settings for tracking information. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrackingSetting extends Setting { + /** + * @access public + * @var string + */ + public $trackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingSetting"; + } + + public function __construct($trackingUrl = NULL, $SettingType = NULL) { + parent::__construct(); + $this->trackingUrl = $trackingUrl; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("UnprocessedResult", FALSE)) { +/** + * Indicates that the mutate operation was not processed. This could result + * if the job was aborted by the back-end workflow because the developer's API + * quota was exceeded or if the job encountered some severe workflow system + * failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UnprocessedResult extends OperationResult { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnprocessedResult"; + } + + public function __construct($OperationResultType = NULL) { + parent::__construct(); + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DynamicSearchAd", FALSE)) { +/** + * Represents a dynamic search ad. This ad will have its headline and + * destination URL auto-generated at serving time according to domain name + * specific information provided by {@link DomainInfoExtension} linked at the + * campaign level. + * + *

    Auto-generated fields: headline and destination URL (may contain an optional + * tracking URL)

    + * + *

    Required fields: description1, description2, displayUrl

    + * + *

    The URL field must contain at least one of the following placeholder tags + * (URL parameters): {unescapedlpurl}, {escapedlpurl}, {lpurlpath}. If no URL is + * specified, {unescapedlpurl} will be used as default.

    + * + *

    {unescapedlpurl} can only be used at the beginning of the URL field. It + * will be replaced with the full landing page URL of the displayed ad. Extra query + * parameters can be added to the end, e.g. "{unescapedlpurl}?lang=en".

    + * + *

    {escapedlpurl} will be replaced with the URL-encoded version of the full + * landing page URL. This makes it suitable for use as a query parameter + * value (e.g. "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but + * not at the beginning of the url field.

    + * + *

    {lpurlpath} will be replaced with the path and query part of the landing + * page URL and can be added to a different URL, e.g. + * "http://www.mygoodbusiness.com/tracking/{lpurlpath}".

    + * + *

    There are also special rules that come into play depending on whether the + * destination URL uses local click tracking or third-party click tracking.

    + * + *

    For more information, see the article Using dynamic tracking URLs. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DynamicSearchAd extends Ad { + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DynamicSearchAd"; + } + + public function __construct($description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $disapprovalReasons = NULL, $AdType = NULL) { + parent::__construct(); + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->disapprovalReasons = $disapprovalReasons; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionErrorReason", FALSE)) { +/** + * Account has been deleted + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideApprovalStatus", FALSE)) { +/** + * Approval status for the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideStatus", FALSE)) { +/** + * Status of the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideErrorReason", FALSE)) { +/** + * Cannot override an ad that is already overriden with an adextension + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdApprovalStatus", FALSE)) { +/** + * Represents the possible approval statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdStatus", FALSE)) { +/** + * The current status of an Ad. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupServiceErrorReason", FALSE)) { +/** + * The reasons for the adgroup service error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupStatus", FALSE)) { +/** + * Status of this ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdServingOptimizationStatus", FALSE)) { +/** + * Ad serving status of campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdServingOptimizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdServingOptimizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApprovalStatus", FALSE)) { +/** + * Approval status for the criterion. + * Note: there are more states involved but we only expose two to users. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BasicJobStatus", FALSE)) { +/** + * A basic set of job statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BasicJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BasicJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidModifierSource", FALSE)) { +/** + * Enumerates possible sources for bid modifier. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidModifierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidModifierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy is available for enhanced campaign only. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingTransitionErrorReason", FALSE)) { +/** + * Reason for bidding transition error. + * It is used by capability service as denial reasons, for bidding transition + * capability. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingTransitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BulkMutateJobErrorReason", FALSE)) { +/** + * The reasons for the bulk mutate job handling error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionApprovalStatus", FALSE)) { +/** + * Approval status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionStatus", FALSE)) { +/** + * Status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionErrorReason", FALSE)) { +/** + * Cannot operate on an adextensions under the wrong campaign + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignStatus", FALSE)) { +/** + * Campaign status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentLabelType", FALSE)) { +/** + * Content label type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ContentLabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerEligibilityRejectionReason", FALSE)) { +/** + * Campaign is not active + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ConversionOptimizerEligibilityRejectionReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility.RejectionReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionTypeGroup", FALSE)) { +/** + * The list of groupings of criteria types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionTypeGroup { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionTypeGroup"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUse", FALSE)) { +/** + * The way a criterion is used - biddable or negative. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUse { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUse"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeprecatedAdType", FALSE)) { +/** + * Video ad. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DeprecatedAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityIdType", FALSE)) { +/** + * Type of entity identity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityIdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityId.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemStatus", FALSE)) { +/** + * Feed item is active + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemErrorReason", FALSE)) { +/** + * The reasons for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailApprovalStatus", FALSE)) { +/** + * Feed item approval status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetailApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailValidationStatus", FALSE)) { +/** + * Feed item validation status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemValidationDetailValidationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ValidationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingNegativeGeoTargetType", FALSE)) { +/** + * The various signals a negative location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSettingNegativeGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.NegativeGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingPositiveGeoTargetType", FALSE)) { +/** + * The various signals a positive location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSettingPositiveGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.PositiveGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("JobErrorReason", FALSE)) { +/** + * The reasons for the job handling error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class JobErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Level", FALSE)) { +/** + * The level on which the cap is to be applied. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Level { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationOverrideInfoRadiusUnits", FALSE)) { +/** + * Radius units + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationOverrideInfoRadiusUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo.RadiusUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("MarkupLanguageType", FALSE)) { +/** + * Markup languages to use for mobile ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MarkupLanguageType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MarkupLanguageType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MultiplierSource", FALSE)) { +/** + * Denotes whether the bid multiplier is derived from the adgroup + * or the criterion + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MultiplierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MultiplierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PolicyViolationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdAdAttribute", FALSE)) { +/** + * A set of attributes that describe the rich media ad capabilities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAdAdAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.AdAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdRichMediaAdType", FALSE)) { +/** + * Different types of rich media ad that are available to customers. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RichMediaAdRichMediaAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.RichMediaAdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServingStatus", FALSE)) { +/** + * Campaign serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsNetwork", FALSE)) { +/** + * Ad network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats.Network"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SystemServingStatus", FALSE)) { +/** + * Reported by system to reflect the criterion's serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SystemServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SystemServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateElementFieldType", FALSE)) { +/** + * Possible field types of template element fields. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TemplateElementFieldType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyRedirectAdExpandingDirection", FALSE)) { +/** + * Allowed expanding directions for ads that are expandable. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ThirdPartyRedirectAdExpandingDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd.ExpandingDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Unit of time the cap is defined at. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserStatus", FALSE)) { +/** + * Specified by user to pause or unpause a criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class UserStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoType", FALSE)) { +/** + * VideoType enum values that are permitted for video filterable + * creative attribute IDs. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class VideoType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoType"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("MutateJobServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Query the status of existing jobs, both simple and bulk API. + *

    Use a {@link JobSelector} to query and return a list which may + * contain both {@link BulkMutateJob} and/or {@link SimpleMutateJob}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateJobServiceGet { + /** + * @access public + * @var JobSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("MutateJobServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateJobServiceGetResponse { + /** + * @access public + * @var Job[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getResult", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Query mutation results, of a {@code COMPLETED} job. + *

    Use a {@link JobSelector} to query and return either a + * {@link BulkMutateResult} or a {@link SimpleMutateResult}. Submit only one job ID + * at a time.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getResult { + /** + * @access public + * @var JobSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getResultResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getResultResponse { + /** + * @access public + * @var JobResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("MutateJobServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Simplified way of submitting a mutation job. The provided list of + * operations, if valid, will create a new job with a unique id, which will + * be returned. This id can later be used in invocations of + * {@link #get} and {@link #getResult}. Policy can optionally be specified. + * + *

    When this method returns with success, the job will be in + * {@code PROCESSING} or {@code PENDING} state and no further action is + * needed for the job to get executed.

    + * + *

    You should not use the returned {@link BulkMutateJobId} with bulk API + * {@link BulkMutateJobService#mutate} method.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateJobServiceMutate { + /** + * @access public + * @var Operation[] + */ + public $operations; + + /** + * @access public + * @var BulkMutateJobPolicy + */ + public $policy; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL, $policy = NULL) { + $this->operations = $operations; + $this->policy = $policy; + } +}} + +if (!class_exists("MutateJobServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MutateJobServiceMutateResponse { + /** + * @access public + * @var SimpleMutateJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdError", FALSE)) { +/** + * Base error class for Ad Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdError extends ApiError { + /** + * @access public + * @var tnsAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError"; + } + + 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("AdExtensionError", FALSE)) { +/** + * AdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionError extends ApiError { + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError"; + } + + 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("AdExtensionOverrideError", FALSE)) { +/** + * AdExtensionOverride errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideError extends ApiError { + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError"; + } + + 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("AdExtensionOverrideOperation", FALSE)) { +/** + * AdExtensionOverride service operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideOperation extends Operation { + /** + * @access public + * @var AdExtensionOverride + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdExtensionOverrideStats", FALSE)) { +/** + * Represents stats specific to AdExtensionOverrides. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdExtensionOverrideStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdGroupAdCountLimitExceeded", FALSE)) { +/** + * Indicates too many ads were added/enabled under the specified adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdCountLimitExceeded extends EntityCountLimitExceeded { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdError", FALSE)) { +/** + * Error information for AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdError extends ApiError { + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError"; + } + + 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("AdGroupAdOperation", FALSE)) { +/** + * AdGroupAd service operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupAdOperation extends Operation { + /** + * @access public + * @var AdGroupAd + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupBidModifierOperation", FALSE)) { +/** + * Operation used to create or mutate a AdGroupBidModifier. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidModifierOperation extends Operation { + /** + * @access public + * @var AdGroupBidModifier + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + 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("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupCriterionOperation", FALSE)) { +/** + * Operation (add, remove and set) on adgroup criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionOperation extends Operation { + /** + * @access public + * @var AdGroupCriterion + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupOperation", FALSE)) { +/** + * AdGroup operations for adding/updating/removing adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupOperation extends Operation { + /** + * @access public + * @var AdGroup + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupServiceError", FALSE)) { +/** + * Represents possible error codes in AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupServiceError extends ApiError { + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError"; + } + + public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->adGroupId = $adGroupId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdSchedule", FALSE)) { +/** + * Represents an AdSchedule Criterion. + * AdSchedule is specified as day and time of the week criteria to target + * the Ads. + *

    Note: An AdSchedule may not have more than six intervals + * in a day.

    + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSchedule extends Criterion { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdScheduleTarget", FALSE)) { +/** + * Immutable structure to hold an ad schedule target. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdScheduleTarget extends Target { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * @access public + * @var double + */ + public $bidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdScheduleTarget"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $bidMultiplier = NULL, $TargetType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->bidMultiplier = $bidMultiplier; + $this->TargetType = $TargetType; + } +}} + +if (!class_exists("AdScheduleTargetList", FALSE)) { +/** + * List of ad schedule targets. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdScheduleTargetList extends TargetList { + /** + * @access public + * @var AdScheduleTarget[] + */ + public $targets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdScheduleTargetList"; + } + + public function __construct($targets = NULL, $campaignId = NULL, $TargetListType = NULL) { + parent::__construct(); + $this->targets = $targets; + $this->campaignId = $campaignId; + $this->TargetListType = $TargetListType; + } +}} + +if (!class_exists("AdStats", FALSE)) { +/** + * Represents stats specific to Ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdStats extends Stats { + /** + * @access public + * @var double + */ + public $percentServed; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdStats"; + } + + public function __construct($percentServed = NULL, $startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->percentServed = $percentServed; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("BatchFailureResult", FALSE)) { +/** + * Represents a failure result for a mutate operation that was applied in a + * transactional batch. It does not imply that the corresponding operation + * for this result itself caused the failure. To determine that, please see + * the {@link FailureResult} provided for the first operation of the batch. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BatchFailureResult extends OperationResult { + /** + * @access public + * @var integer + */ + public $operationIndexInBatch; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BatchFailureResult"; + } + + public function __construct($operationIndexInBatch = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->operationIndexInBatch = $operationIndexInBatch; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("BudgetOperation", FALSE)) { +/** + * Operations for adding/updating Budget entities. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetOperation extends Operation { + /** + * @access public + * @var Budget + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BulkMutateJob", FALSE)) { +/** + * A {@code BulkMutateJob} is essentially a mixed collection of mutate + * operations from the following AdWords API campaign management services: + *

      + *
    • {@link CampaignService}
    • + *
    • {@link CampaignTargetService}
    • + *
    • {@link CampaignCriterionService}
    • + *
    • {@link AdGroupService}
    • + *
    • {@link AdGroupAdService}
    • + *
    • {@link AdGroupCriterionService}
    • + *
    + * + *

    The mutate operations in a job's request are constructed in exactly the + * same way as they are for synchronous calls to these services.

    + * + *

    The mutate operations are grouped by their scoping entity in the + * AdWords customer tree. Currently, mutate operations can be grouped either + * by the customer or by their parent campaign. However, they cannot be + * grouped both ways - some by customer and others by campaigns - in the same + * job.

    + * + *

    Note: A job may have no more than 500,000 mutate + * operations in total, and no more than 10 different scoping campaigns.

    + * + *

    The mutate operations must be packaged into containers called + * {@code Operation Streams}, each tagged with the ID of the scoping entity of + * its operations.

    + * + *

    To facilitate the building of very large bulk mutate jobs, the operation + * streams of a job can be submitted using multiple request parts. A job is + * queued for processing as soon as it can be determined that all of its + * request parts have been received.

    + * + *

    Note: A job may have no more than 100 request parts. + * Each part may have no more than 25 operation streams and no more than 10,000 + * operations in total.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJob extends Job { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var BulkMutateJobPolicy + */ + public $policy; + + /** + * @access public + * @var BulkMutateRequest + */ + public $request; + + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * @access public + * @var BulkMutateJobEvent[] + */ + public $history; + + /** + * @access public + * @var BulkMutateResult + */ + public $result; + + /** + * @access public + * @var integer + */ + public $numRequestParts; + + /** + * @access public + * @var integer + */ + public $numRequestPartsReceived; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJob"; + } + + public function __construct($id = NULL, $policy = NULL, $request = NULL, $status = NULL, $history = NULL, $result = NULL, $numRequestParts = NULL, $numRequestPartsReceived = NULL, $failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + parent::__construct(); + $this->id = $id; + $this->policy = $policy; + $this->request = $request; + $this->status = $status; + $this->history = $history; + $this->result = $result; + $this->numRequestParts = $numRequestParts; + $this->numRequestPartsReceived = $numRequestPartsReceived; + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("BulkMutateJobEvent", FALSE)) { +/** + * An event defined by a status change of a bulk mutate job. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobEvent extends JobEvent { + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobEvent"; + } + + public function __construct($status = NULL, $dateTime = NULL, $JobEventType = NULL) { + parent::__construct(); + $this->status = $status; + $this->dateTime = $dateTime; + $this->JobEventType = $JobEventType; + } +}} + +if (!class_exists("BulkMutateJobSelector", FALSE)) { +/** + * Specifies additional criteria for selecting bulk mutate jobs. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobSelector extends JobSelector { + /** + * @access public + * @var integer[] + */ + public $jobIds; + + /** + * @access public + * @var integer + */ + public $resultPartIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobSelector"; + } + + public function __construct($jobIds = NULL, $resultPartIndex = NULL, $includeHistory = NULL, $includeStats = NULL, $JobSelectorType = NULL) { + parent::__construct(); + $this->jobIds = $jobIds; + $this->resultPartIndex = $resultPartIndex; + $this->includeHistory = $includeHistory; + $this->includeStats = $includeStats; + $this->JobSelectorType = $JobSelectorType; + } +}} + +if (!class_exists("BulkMutateJobStats", FALSE)) { +/** + * Bulk mutate job-handling statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BulkMutateJobStats extends JobStats { + /** + * @access public + * @var integer + */ + public $numOperations; + + /** + * @access public + * @var integer + */ + public $numFailedOperations; + + /** + * @access public + * @var integer + */ + public $numUnprocessedOperations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobStats"; + } + + public function __construct($numOperations = NULL, $numFailedOperations = NULL, $numUnprocessedOperations = NULL, $progressPercent = NULL, $pendingTimeMillis = NULL, $processingTimeMillis = NULL, $JobStatsType = NULL) { + parent::__construct(); + $this->numOperations = $numOperations; + $this->numFailedOperations = $numFailedOperations; + $this->numUnprocessedOperations = $numUnprocessedOperations; + $this->progressPercent = $progressPercent; + $this->pendingTimeMillis = $pendingTimeMillis; + $this->processingTimeMillis = $processingTimeMillis; + $this->JobStatsType = $JobStatsType; + } +}} + +if (!class_exists("CampaignAdExtensionOperation", FALSE)) { +/** + * CampaignAdExtension service operation. Note: The {@code SET} operator + * is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionOperation extends Operation { + /** + * @access public + * @var CampaignAdExtension + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignAdExtensionStats", FALSE)) { +/** + * Represents stats specific to CampaignAdExtensions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignAdExtensionStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("CampaignCriterionLimitExceeded", FALSE)) { +/** + * Error to indicate that too many negative criteria added to some campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsCampaignCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterionOperation", FALSE)) { +/** + * Generic operation (add, remove and set) for campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignCriterionOperation extends Operation { + /** + * @access public + * @var CampaignCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignOperation", FALSE)) { +/** + * An operation on an AdWords campaign. + *

    Note: The REMOVE operator is not + * supported. To remove a campaign, set its {@link Campaign#status status} + * to DELETED.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignOperation extends Operation { + /** + * @access public + * @var Campaign + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignStats", FALSE)) { +/** + * Represents stats specific to Campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignStats extends Stats { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStats"; + } + + public function __construct($startDate = NULL, $endDate = NULL, $network = NULL, $clicks = NULL, $impressions = NULL, $cost = NULL, $averagePosition = NULL, $averageCpc = NULL, $averageCpm = NULL, $ctr = NULL, $conversions = NULL, $viewThroughConversions = NULL, $totalBudget = NULL, $StatsType = NULL) { + parent::__construct(); + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->network = $network; + $this->clicks = $clicks; + $this->impressions = $impressions; + $this->cost = $cost; + $this->averagePosition = $averagePosition; + $this->averageCpc = $averageCpc; + $this->averageCpm = $averageCpm; + $this->ctr = $ctr; + $this->conversions = $conversions; + $this->viewThroughConversions = $viewThroughConversions; + $this->totalBudget = $totalBudget; + $this->StatsType = $StatsType; + } +}} + +if (!class_exists("CampaignTargetOperation", FALSE)) { +/** + * Sets a list of targets on a specified campaign. + *

    Note: Only the SET operator is supported.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignTargetOperation extends Operation { + /** + * @access public + * @var TargetList + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignTargetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ContentLabel", FALSE)) { +/** + * Content Label for category exclusion. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ContentLabel extends Criterion { + /** + * @access public + * @var tnsContentLabelType + */ + public $contentLabelType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabel"; + } + + public function __construct($contentLabelType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->contentLabelType = $contentLabelType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("FailureResult", FALSE)) { +/** + * Represents a failure result for an individual mutate operation. + * + *

    Currently, operations are applied in transactional batches, so the + * corresponding operation for this result may not itself be faulty.

    + * + *

    The errors in the exception may contain {@code OGNL path}s that identify + * the faulty operations in the batch. Please see the subsequent + * {@link BatchFailureResult}s to determine the remaining operations that were + * also applied in the batch and their positions within the batch.

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FailureResult extends OperationResult { + /** + * @access public + * @var ApiException + */ + public $cause; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FailureResult"; + } + + public function __construct($cause = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->cause = $cause; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("FeedItemOperation", FALSE)) { +/** + * FeedItem service mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FeedItemOperation extends Operation { + /** + * @access public + * @var FeedItem + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("GeoTargetTypeSetting", FALSE)) { +/** + * Represents a collection of settings related to ads geotargeting. + * + *

    AdWords ads can be geotargeted using Location of Presence (LOP), + * Area of Interest (AOI), or both. LOP is the physical location + * of the user performing the search; AOI is the geographical region + * in which the searcher is interested. For example, if a user in + * New York City performs a search "hotels california", their LOP + * is New York City and their AOI is California. + * + *

    Additionally, ads can be positively or negatively geotargeted. + * An ad that is positively geotargeted to New York City only appears + * to users whose location is related (via AOI or LOP) to New York City. An ad + * that is negatively geotargeted to New York City appears for all + * users except those whose location is related to New York City. Ads can + * only be negatively geotargeted if a positive geotargeting is also supplied, and + * the negatively geotargeted region must be contained within the positive + * region. + * + *

    Geotargeting settings allow ads to be targeted in the following way: + *

      + *
    • Positively geotargeted using solely AOI, solely LOP, or either. + *
    • Negatively geotargeted using solely LOP, or both. + *
    + * + *

    This setting applies only to ads shown on the search network, and does + * not affect ads shown on the Google Display Network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class GeoTargetTypeSetting extends Setting { + /** + * @access public + * @var tnsGeoTargetTypeSettingPositiveGeoTargetType + */ + public $positiveGeoTargetType; + + /** + * @access public + * @var tnsGeoTargetTypeSettingNegativeGeoTargetType + */ + public $negativeGeoTargetType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting"; + } + + public function __construct($positiveGeoTargetType = NULL, $negativeGeoTargetType = NULL, $SettingType = NULL) { + parent::__construct(); + $this->positiveGeoTargetType = $positiveGeoTargetType; + $this->negativeGeoTargetType = $negativeGeoTargetType; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("KeywordMatchSetting", FALSE)) { +/** + * Improved exact and phrase match option includes misspellings, plurals, + * and other close variants of your keywords. + * + * Default value set to {@code true} to include close variants. For more + * information, see the article + * + * What are keyword matching options?. + * + * This setting is required when creating new campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LostResult", FALSE)) { +/** + * Represents the result of processing an individual mutate operation that + * however failed to get durably saved despite the service's best efforts. + * + *

    The operation is considered to have completed processing because it + * either was successfully performed or failed with validation errors, and + * cannot be retried without the risk of doing duplicate work. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LostResult extends OperationResult { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LostResult"; + } + + public function __construct($OperationResultType = NULL) { + parent::__construct(); + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("RealTimeBiddingSetting", FALSE)) { +/** + * Settings for Real-Time Bidding, a feature only available for campaigns + * targeting the Ad Exchange network. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RealTimeBiddingSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RealTimeBiddingSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("MutateJobService", FALSE)) { +/** + * MutateJobService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class MutateJobService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "MutateJobServiceGetResponse", + "get" => "MutateJobServiceGet", + "mutate" => "MutateJobServiceMutate", + "mutateResponse" => "MutateJobServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Ad" => "Ad", + "AdError" => "AdError", + "ApiError" => "ApiError", + "AdExtension" => "AdExtension", + "AdExtensionError" => "AdExtensionError", + "AdExtensionOverride" => "AdExtensionOverride", + "AdExtensionOverrideError" => "AdExtensionOverrideError", + "AdExtensionOverrideOperation" => "AdExtensionOverrideOperation", + "Operation" => "Operation", + "AdExtensionOverrideStats" => "AdExtensionOverrideStats", + "Stats" => "Stats", + "AdGroup" => "AdGroup", + "AdGroupAd" => "AdGroupAd", + "AdGroupAdCountLimitExceeded" => "AdGroupAdCountLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdGroupAdError" => "AdGroupAdError", + "AdGroupAdExperimentData" => "AdGroupAdExperimentData", + "AdGroupAdOperation" => "AdGroupAdOperation", + "AdGroupBidModifier" => "AdGroupBidModifier", + "AdGroupBidModifierOperation" => "AdGroupBidModifierOperation", + "AdGroupCriterion" => "AdGroupCriterion", + "AdGroupCriterionError" => "AdGroupCriterionError", + "AdGroupCriterionExperimentBidMultiplier" => "AdGroupCriterionExperimentBidMultiplier", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "AdGroupCriterionOperation" => "AdGroupCriterionOperation", + "AdGroupExperimentBidMultipliers" => "AdGroupExperimentBidMultipliers", + "AdGroupExperimentData" => "AdGroupExperimentData", + "AdGroupOperation" => "AdGroupOperation", + "AdGroupServiceError" => "AdGroupServiceError", + "AdSchedule" => "AdSchedule", + "Criterion" => "Criterion", + "AdScheduleTarget" => "AdScheduleTarget", + "Target" => "Target", + "AdScheduleTargetList" => "AdScheduleTargetList", + "TargetList" => "TargetList", + "AdStats" => "AdStats", + "AdUnionId" => "AdUnionId", + "Address" => "Address", + "AdxError" => "AdxError", + "AgeRange" => "AgeRange", + "ApiErrorReason" => "ApiErrorReason", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Audio" => "Audio", + "Media" => "Media", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BatchFailureResult" => "BatchFailureResult", + "OperationResult" => "OperationResult", + "BetaError" => "BetaError", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BiddableAdGroupCriterion" => "BiddableAdGroupCriterion", + "BiddableAdGroupCriterionExperimentData" => "BiddableAdGroupCriterionExperimentData", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "BiddingScheme" => "BiddingScheme", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "BiddingTransitionError" => "BiddingTransitionError", + "Bids" => "Bids", + "BillingSummary" => "BillingSummary", + "Budget" => "Budget", + "BudgetError" => "BudgetError", + "BudgetOperation" => "BudgetOperation", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "BulkMutateJob" => "BulkMutateJob", + "Job" => "Job", + "BulkMutateJobError" => "BulkMutateJobError", + "BulkMutateJobEvent" => "BulkMutateJobEvent", + "JobEvent" => "JobEvent", + "BulkMutateJobPolicy" => "BulkMutateJobPolicy", + "BulkMutateJobSelector" => "BulkMutateJobSelector", + "JobSelector" => "JobSelector", + "BulkMutateJobStats" => "BulkMutateJobStats", + "JobStats" => "JobStats", + "BulkMutateRequest" => "BulkMutateRequest", + "BulkMutateResult" => "BulkMutateResult", + "Campaign" => "Campaign", + "CampaignAdExtension" => "CampaignAdExtension", + "CampaignAdExtensionError" => "CampaignAdExtensionError", + "CampaignAdExtensionOperation" => "CampaignAdExtensionOperation", + "CampaignAdExtensionStats" => "CampaignAdExtensionStats", + "CampaignCriterion" => "CampaignCriterion", + "CampaignCriterionError" => "CampaignCriterionError", + "CampaignCriterionLimitExceeded" => "CampaignCriterionLimitExceeded", + "CampaignCriterionOperation" => "CampaignCriterionOperation", + "CampaignError" => "CampaignError", + "CampaignOperation" => "CampaignOperation", + "CampaignStats" => "CampaignStats", + "CampaignTargetOperation" => "CampaignTargetOperation", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "ContentLabel" => "ContentLabel", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "ConversionOptimizerEligibility" => "ConversionOptimizerEligibility", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DeprecatedAd" => "DeprecatedAd", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityId" => "EntityId", + "EntityNotFound" => "EntityNotFound", + "ExemptionRequest" => "ExemptionRequest", + "FailureResult" => "FailureResult", + "FeedItem" => "FeedItem", + "FeedItemAttributeError" => "FeedItemAttributeError", + "FeedItemAttributeValue" => "FeedItemAttributeValue", + "FeedItemDevicePreference" => "FeedItemDevicePreference", + "FeedItemError" => "FeedItemError", + "FeedItemOperation" => "FeedItemOperation", + "FeedItemSchedule" => "FeedItemSchedule", + "FeedItemScheduling" => "FeedItemScheduling", + "FeedItemValidationDetail" => "FeedItemValidationDetail", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "FrequencyCap" => "FrequencyCap", + "Gender" => "Gender", + "GeoPoint" => "GeoPoint", + "GeoTargetTypeSetting" => "GeoTargetTypeSetting", + "Setting" => "Setting", + "IdError" => "IdError", + "Image" => "Image", + "ImageAd" => "ImageAd", + "ImageError" => "ImageError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "JobError" => "JobError", + "JobResult" => "JobResult", + "Keyword" => "Keyword", + "KeywordMatchSetting" => "KeywordMatchSetting", + "Language" => "Language", + "Location" => "Location", + "LocationExtension" => "LocationExtension", + "LocationOverrideInfo" => "LocationOverrideInfo", + "LocationSyncExtension" => "LocationSyncExtension", + "LongValue" => "LongValue", + "LostResult" => "LostResult", + "ManualCPCAdGroupCriterionExperimentBidMultiplier" => "ManualCPCAdGroupCriterionExperimentBidMultiplier", + "ManualCPCAdGroupExperimentBidMultipliers" => "ManualCPCAdGroupExperimentBidMultipliers", + "ManualCPMAdGroupExperimentBidMultipliers" => "ManualCPMAdGroupExperimentBidMultipliers", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "MobileAd" => "MobileAd", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "MobileExtension" => "MobileExtension", + "MobileImageAd" => "MobileImageAd", + "Money" => "Money", + "NegativeAdGroupCriterion" => "NegativeAdGroupCriterion", + "NegativeCampaignCriterion" => "NegativeCampaignCriterion", + "NetworkSetting" => "NetworkSetting", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OAuthInfo" => "OAuthInfo", + "Operand" => "Operand", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperationAccessDenied" => "OperationAccessDenied", + "OperationStream" => "OperationStream", + "OperationStreamResult" => "OperationStreamResult", + "OperatorError" => "OperatorError", + "OverrideInfo" => "OverrideInfo", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "PagingError" => "PagingError", + "PercentCpaBid" => "PercentCpaBid", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "PlaceHolder" => "PlaceHolder", + "Placement" => "Placement", + "Platform" => "Platform", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Product" => "Product", + "ProductAd" => "ProductAd", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QualityInfo" => "QualityInfo", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RealTimeBiddingSetting" => "RealTimeBiddingSetting", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "ReturnValueResult" => "ReturnValueResult", + "RichMediaAd" => "RichMediaAd", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SimpleMutateJob" => "SimpleMutateJob", + "SimpleMutateResult" => "SimpleMutateResult", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetError" => "TargetError", + "TargetingSettingDetail" => "TargetingSettingDetail", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "TargetingSetting" => "TargetingSetting", + "TempAdUnionId" => "TempAdUnionId", + "TemplateAd" => "TemplateAd", + "TemplateElement" => "TemplateElement", + "TemplateElementField" => "TemplateElementField", + "TextAd" => "TextAd", + "ThirdPartyRedirectAd" => "ThirdPartyRedirectAd", + "TrackingSetting" => "TrackingSetting", + "UnprocessedResult" => "UnprocessedResult", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Video" => "Video", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "DynamicSearchAd" => "DynamicSearchAd", + "AdError.Reason" => "AdErrorReason", + "AdExtensionError.Reason" => "AdExtensionErrorReason", + "AdExtensionOverride.ApprovalStatus" => "AdExtensionOverrideApprovalStatus", + "AdExtensionOverride.Status" => "AdExtensionOverrideStatus", + "AdExtensionOverrideError.Reason" => "AdExtensionOverrideErrorReason", + "AdGroupAd.ApprovalStatus" => "AdGroupAdApprovalStatus", + "AdGroupAd.Status" => "AdGroupAdStatus", + "AdGroupAdError.Reason" => "AdGroupAdErrorReason", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdGroupServiceError.Reason" => "AdGroupServiceErrorReason", + "AdGroup.Status" => "AdGroupStatus", + "AdServingOptimizationStatus" => "AdServingOptimizationStatus", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "ApprovalStatus" => "ApprovalStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BasicJobStatus" => "BasicJobStatus", + "BetaError.Reason" => "BetaErrorReason", + "BidModifierSource" => "BidModifierSource", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "BiddingTransitionError.Reason" => "BiddingTransitionErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "BulkMutateJobError.Reason" => "BulkMutateJobErrorReason", + "CampaignAdExtension.ApprovalStatus" => "CampaignAdExtensionApprovalStatus", + "CampaignAdExtension.Status" => "CampaignAdExtensionStatus", + "CampaignAdExtensionError.Reason" => "CampaignAdExtensionErrorReason", + "CampaignCriterionError.Reason" => "CampaignCriterionErrorReason", + "CampaignCriterionLimitExceeded.CriteriaLimitType" => "CampaignCriterionLimitExceededCriteriaLimitType", + "CampaignError.Reason" => "CampaignErrorReason", + "CampaignStatus" => "CampaignStatus", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ContentLabelType" => "ContentLabelType", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "ConversionOptimizerEligibility.RejectionReason" => "ConversionOptimizerEligibilityRejectionReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "CriterionTypeGroup" => "CriterionTypeGroup", + "CriterionUse" => "CriterionUse", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DayOfWeek" => "DayOfWeek", + "DeprecatedAd.Type" => "DeprecatedAdType", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityId.Type" => "EntityIdType", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "FeedItem.Status" => "FeedItemStatus", + "FeedItemError.Reason" => "FeedItemErrorReason", + "FeedItemValidationDetail.ApprovalStatus" => "FeedItemValidationDetailApprovalStatus", + "FeedItemValidationDetail.ValidationStatus" => "FeedItemValidationDetailValidationStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "Gender.GenderType" => "GenderGenderType", + "GeoTargetTypeSetting.NegativeGeoTargetType" => "GeoTargetTypeSettingNegativeGeoTargetType", + "GeoTargetTypeSetting.PositiveGeoTargetType" => "GeoTargetTypeSettingPositiveGeoTargetType", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "JobError.Reason" => "JobErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "Level" => "Level", + "LocationExtension.Source" => "LocationExtensionSource", + "LocationOverrideInfo.RadiusUnits" => "LocationOverrideInfoRadiusUnits", + "LocationTargetingStatus" => "LocationTargetingStatus", + "MarkupLanguageType" => "MarkupLanguageType", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "MinuteOfHour" => "MinuteOfHour", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "MultiplierSource" => "MultiplierSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "PagingError.Reason" => "PagingErrorReason", + "PolicyViolationError.Reason" => "PolicyViolationErrorReason", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RichMediaAd.AdAttribute" => "RichMediaAdAdAttribute", + "RichMediaAd.RichMediaAdType" => "RichMediaAdRichMediaAdType", + "SelectorError.Reason" => "SelectorErrorReason", + "ServingStatus" => "ServingStatus", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "Stats.Network" => "StatsNetwork", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SystemServingStatus" => "SystemServingStatus", + "TargetError.Reason" => "TargetErrorReason", + "TemplateElementField.Type" => "TemplateElementFieldType", + "ThirdPartyRedirectAd.ExpandingDirection" => "ThirdPartyRedirectAdExpandingDirection", + "TimeUnit" => "TimeUnit", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "UserStatus" => "UserStatus", + "VideoType" => "VideoType", + "WebpageConditionOperand" => "WebpageConditionOperand", + "getResult" => "getResult", + "getResultResponse" => "getResultResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/MutateJobService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = MutateJobService::$classmap; + parent::__construct($wsdl, $options, $user, 'MutateJobService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Query the status of existing jobs, both simple and bulk API. + *

    Use a {@link JobSelector} to query and return a list which may + * contain both {@link BulkMutateJob} and/or {@link SimpleMutateJob}.

    + */ + public function get($selector) { + $arg = new MutateJobServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Query mutation results, of a {@code COMPLETED} job. + *

    Use a {@link JobSelector} to query and return either a + * {@link BulkMutateResult} or a {@link SimpleMutateResult}. Submit only one job ID + * at a time.

    + */ + public function getResult($selector) { + $arg = new getResult($selector); + $result = $this->__soapCall("getResult", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Simplified way of submitting a mutation job. The provided list of + * operations, if valid, will create a new job with a unique id, which will + * be returned. This id can later be used in invocations of + * {@link #get} and {@link #getResult}. Policy can optionally be specified. + * + *

    When this method returns with success, the job will be in + * {@code PROCESSING} or {@code PENDING} state and no further action is + * needed for the job to get executed.

    + * + *

    You should not use the returned {@link BulkMutateJobId} with bulk API + * {@link BulkMutateJobService#mutate} method.

    + */ + public function mutate($operations, $policy) { + $arg = new MutateJobServiceMutate($operations, $policy); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/ReportDefinitionService.php b/src/Google/Api/Ads/AdWords/v201306/ReportDefinitionService.php new file mode 100755 index 000000000..e2da92cc9 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/ReportDefinitionService.php @@ -0,0 +1,2345 @@ +enumValue = $enumValue; + $this->enumDisplayValue = $enumDisplayValue; + } +}} + +if (!class_exists("ReportDefinitionField", FALSE)) { +/** + * Represents the fields that can be used to create a ReportDefinition. + * This class allows the user to query the list of fields applicable to a + * given report type. Consumers of reports will be able use the retrieved + * fields through the {@link ReportDefinitionService#getReportFields} + * api and run the corresponding reports. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReportDefinitionField { + /** + * @access public + * @var string + */ + public $fieldName; + + /** + * @access public + * @var string + */ + public $displayFieldName; + + /** + * @access public + * @var string + */ + public $xmlAttributeName; + + /** + * @access public + * @var string + */ + public $fieldType; + + /** + * @access public + * @var string[] + */ + public $enumValues; + + /** + * @access public + * @var boolean + */ + public $canSelect; + + /** + * @access public + * @var boolean + */ + public $canFilter; + + /** + * @access public + * @var boolean + */ + public $isEnumType; + + /** + * @access public + * @var boolean + */ + public $isBeta; + + /** + * @access public + * @var EnumValuePair[] + */ + public $enumValuePairs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionField"; + } + + public function __construct($fieldName = NULL, $displayFieldName = NULL, $xmlAttributeName = NULL, $fieldType = NULL, $enumValues = NULL, $canSelect = NULL, $canFilter = NULL, $isEnumType = NULL, $isBeta = NULL, $enumValuePairs = NULL) { + $this->fieldName = $fieldName; + $this->displayFieldName = $displayFieldName; + $this->xmlAttributeName = $xmlAttributeName; + $this->fieldType = $fieldType; + $this->enumValues = $enumValues; + $this->canSelect = $canSelect; + $this->canFilter = $canFilter; + $this->isEnumType = $isEnumType; + $this->isBeta = $isBeta; + $this->enumValuePairs = $enumValuePairs; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportDefinitionReportType", FALSE)) { +/** + * Enums for report types. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReportDefinitionReportType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition.ReportType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportDefinitionErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * a {@link ReportDefinitionService#mutate(java.util.List)} operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReportDefinitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportFields", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the available report fields for a given report type. + * + * @param reportType The type of report. + * @return The list of available report fields. Each + * {@link ReportDefinitionField} encapsulates the field name, the + * field data type, and the enum values (if the field's type is + * {@code enum}). + * @throws ApiException if a problem occurred while fetching the + * ReportDefinitionField information. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getReportFields { + /** + * @access public + * @var tnsReportDefinitionReportType + */ + public $reportType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportType = NULL) { + $this->reportType = $reportType; + } +}} + +if (!class_exists("getReportFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getReportFieldsResponse { + /** + * @access public + * @var ReportDefinitionField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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("ReportDefinitionError", FALSE)) { +/** + * Encapsulates the errors that can be thrown during {@link ReportDefinition} + * mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReportDefinitionError extends ApiError { + /** + * @access public + * @var tnsReportDefinitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ReportDefinitionService", FALSE)) { +/** + * ReportDefinitionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ReportDefinitionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ReportDefinitionServiceGetResponse", + "get" => "ReportDefinitionServiceGet", + "mutate" => "ReportDefinitionServiceMutate", + "mutateResponse" => "ReportDefinitionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "EnumValuePair" => "EnumValuePair", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "ReportDefinitionError" => "ReportDefinitionError", + "ReportDefinitionField" => "ReportDefinitionField", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "ReportDefinition.ReportType" => "ReportDefinitionReportType", + "ReportDefinitionError.Reason" => "ReportDefinitionErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getReportFields" => "getReportFields", + "getReportFieldsResponse" => "getReportFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/ReportDefinitionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportDefinitionService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportDefinitionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the available report fields for a given report type. + * + * @param reportType The type of report. + * @return The list of available report fields. Each + * {@link ReportDefinitionField} encapsulates the field name, the + * field data type, and the enum values (if the field's type is + * {@code enum}). + * @throws ApiException if a problem occurred while fetching the + * ReportDefinitionField information. + */ + public function getReportFields($reportType) { + $arg = new getReportFields($reportType); + $result = $this->__soapCall("getReportFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/SharedCriterionService.php b/src/Google/Api/Ads/AdWords/v201306/SharedCriterionService.php new file mode 100755 index 000000000..21f6ab2dd --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/SharedCriterionService.php @@ -0,0 +1,3842 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * This field can be selected using the value "Operand". + * This field is required and should not be {@code null}. + * This string must not be empty. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Indicates that this instance is a subtype of CriterionParameter. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * This field can be selected using the value "Argument". + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("SharedCriterion", FALSE)) { +/** + * This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterion { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var boolean + */ + public $negative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterion"; + } + + public function __construct($sharedSetId = NULL, $criterion = NULL, $negative = NULL) { + $this->sharedSetId = $sharedSetId; + $this->criterion = $criterion; + $this->negative = $negative; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedCriterionErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * @param selector filters the criteria returned + * @return + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("SharedCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionServiceGetResponse { + /** + * @access public + * @var SharedCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("SharedCriterionServiceMutate", FALSE)) { +/** + * 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, REMOVE. + * + * + * + * Adds, removes criteria in a shared set. + * @param operations + * @return + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionServiceMutate { + /** + * @access public + * @var SharedCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("SharedCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionServiceMutateResponse { + /** + * @access public + * @var SharedCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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)) { +/** + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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)) { +/** + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("Placement", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SharedCriterionError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionError extends ApiError { + /** + * @access public + * @var tnsSharedCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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("WebpageParameter", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The length of this string should be between 1 and 2048, inclusive. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("Webpage", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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("SharedCriterionOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionOperation extends Operation { + /** + * @access public + * @var SharedCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SharedCriterionPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionPage extends Page { + /** + * @access public + * @var SharedCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("SharedCriterionReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedCriterion[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("SharedCriterionService", FALSE)) { +/** + * SharedCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class SharedCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "SharedCriterionServiceGetResponse", + "get" => "SharedCriterionServiceGet", + "mutate" => "SharedCriterionServiceMutate", + "mutateResponse" => "SharedCriterionServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CriterionError" => "CriterionError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Criterion" => "Criterion", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SharedCriterionError" => "SharedCriterionError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "ProductCondition" => "ProductCondition", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Product" => "Product", + "Selector" => "Selector", + "SharedCriterion" => "SharedCriterion", + "SharedCriterionOperation" => "SharedCriterionOperation", + "Operation" => "Operation", + "SharedCriterionPage" => "SharedCriterionPage", + "Page" => "Page", + "SharedCriterionReturnValue" => "SharedCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SharedCriterionError.Reason" => "SharedCriterionErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/SharedCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SharedCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'SharedCriterionService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * @param selector filters the criteria returned + * @return + * @throws ApiException + */ + public function get($selector) { + $arg = new SharedCriterionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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, REMOVE. + * + * + * + * Adds, removes criteria in a shared set. + * @param operations + * @return + * @throws ApiException + */ + public function mutate($operations) { + $arg = new SharedCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/SharedSetService.php b/src/Google/Api/Ads/AdWords/v201306/SharedSetService.php new file mode 100755 index 000000000..35d301e1f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/SharedSetService.php @@ -0,0 +1,3296 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SharedSet", FALSE)) { +/** + * This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null} when it is contained within {@link Operator}s : SET, REMOVE. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSet { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSharedSetType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $memberCount; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var tnsSharedSetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSet"; + } + + public function __construct($sharedSetId = NULL, $name = NULL, $type = NULL, $memberCount = NULL, $referenceCount = NULL, $status = NULL) { + $this->sharedSetId = $sharedSetId; + $this->name = $name; + $this->type = $type; + $this->memberCount = $memberCount; + $this->referenceCount = $referenceCount; + $this->status = $status; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSet.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of SharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of SharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("SharedSetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetServiceGetResponse { + /** + * @access public + * @var SharedSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("SharedSetServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified CriterionList entities + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetServiceMutate { + /** + * @access public + * @var SharedSetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("SharedSetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetServiceMutateResponse { + /** + * @access public + * @var SharedSetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PagingError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SharedSetError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetError extends ApiError { + /** + * @access public + * @var tnsSharedSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetError"; + } + + 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("SharedSetOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetOperation extends Operation { + /** + * @access public + * @var SharedSet + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SharedSetReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedSet[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("SharedSetPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SharedSetPage extends NullStatsPage { + /** + * @access public + * @var SharedSet[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("SharedSetService", FALSE)) { +/** + * SharedSetService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class SharedSetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "SharedSetServiceGetResponse", + "get" => "SharedSetServiceGet", + "mutate" => "SharedSetServiceMutate", + "mutateResponse" => "SharedSetServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SharedSet" => "SharedSet", + "SharedSetError" => "SharedSetError", + "SharedSetOperation" => "SharedSetOperation", + "Operation" => "Operation", + "SharedSetPage" => "SharedSetPage", + "NullStatsPage" => "NullStatsPage", + "SharedSetReturnValue" => "SharedSetReturnValue", + "ListReturnValue" => "ListReturnValue", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "Page" => "Page", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SharedSet.Status" => "SharedSetStatus", + "SharedSetError.Reason" => "SharedSetErrorReason", + "SharedSetType" => "SharedSetType", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201306/SharedSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SharedSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'SharedSetService', 'https://adwords.google.com/api/adwords/cm/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of SharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of SharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + */ + public function get($selector) { + $arg = new SharedSetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified CriterionList entities + * @throws ApiException + */ + public function mutate($operations) { + $arg = new SharedSetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/TargetingIdeaService.php b/src/Google/Api/Ads/AdWords/v201306/TargetingIdeaService.php new file mode 100755 index 000000000..848fb541a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/TargetingIdeaService.php @@ -0,0 +1,8266 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BidLandscapeLandscapePoint", FALSE)) { +/** + * A set of estimates for a criterion's performance for a specific bid + * amount. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscapeLandscapePoint { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var Money + */ + public $marginalCpc; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var integer + */ + public $promotedImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape.LandscapePoint"; + } + + public function __construct($bid = NULL, $clicks = NULL, $cost = NULL, $marginalCpc = NULL, $impressions = NULL, $promotedImpressions = NULL) { + $this->bid = $bid; + $this->clicks = $clicks; + $this->cost = $cost; + $this->marginalCpc = $marginalCpc; + $this->impressions = $impressions; + $this->promotedImpressions = $promotedImpressions; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $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. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DataEntry", FALSE)) { +/** + * The base class of all return types of the table service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DataEntry { + /** + * @access public + * @var string + */ + public $DataEntryType; + + private $_parameterMap = array ( + "DataEntry.Type" => "DataEntryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataEntry"; + } + + public function __construct($DataEntryType = NULL) { + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

    + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdGroupBidLandscapeType", FALSE)) { +/** + * Used to specify the type of {@code AdGroupLandscape} + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscapeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdFormatSpec", FALSE)) { +/** + * A placement response object which provides information about one of the ad formats + * supported by a placement. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdFormatSpec { + /** + * @access public + * @var tnsSiteConstantsAdFormat + */ + public $format; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdFormatSpec"; + } + + public function __construct($format = NULL) { + $this->format = $format; + } +}} + +if (!class_exists("AdSpec", FALSE)) { +/** + * Interface for ad specifications to implement. See individual spec + * documentation for more details on how to use each type, and + * {@link AdSpecListSearchParameter} to understand what these specs are for. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSpec { + /** + * @access public + * @var DisplayAdSpec + */ + public $DisplayAdSpec; + + /** + * @access public + * @var InStreamAdSpec + */ + public $InStreamAdSpec; + + /** + * @access public + * @var TextAdSpec + */ + public $TextAdSpec; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpec"; + } + + public function __construct($DisplayAdSpec = NULL, $InStreamAdSpec = NULL, $TextAdSpec = NULL) { + $this->DisplayAdSpec = $DisplayAdSpec; + $this->InStreamAdSpec = $InStreamAdSpec; + $this->TextAdSpec = $TextAdSpec; + } +}} + +if (!class_exists("Attribute", FALSE)) { +/** + * {@link Attribute}s encompass the core information about a particular + * {@link com.google.ads.api.services.targetingideas.TargetingIdea}. Some + * attributes are for {@code KEYWORD} {@link IdeaType}s, some are for + * {@code PLACEMENT} {@link IdeaType}s, and some are for both. Ultimately, an + * {@link Attribute} instance simply wraps an actual value of interest. For + * example, {@link KeywordAttribute} wraps the keyword itself, while a + * {@link BooleanAttribute} simply wraps a boolean describing some information + * about the keyword idea. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Attribute { + /** + * @access public + * @var string + */ + public $AttributeType; + + private $_parameterMap = array ( + "Attribute.Type" => "AttributeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Attribute"; + } + + public function __construct($AttributeType = NULL) { + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("BidLandscapeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link BidLandscape} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscapeAttribute extends Attribute { + /** + * @access public + * @var BidLandscape + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscapeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("BooleanAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a boolean value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BooleanAttribute extends Attribute { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("CriterionAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Criterion} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionAttribute extends Attribute { + /** + * @access public + * @var Criterion + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + 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("DisplayAdSpec", FALSE)) { +/** + * Placement request/response object which provides details about display + * ad types, options, and other available configuration variables. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DisplayAdSpec { + /** + * @access public + * @var DisplayType[] + */ + public $displayTypes; + + /** + * @access public + * @var tnsDisplayAdSpecActivationOption[] + */ + public $activationOptions; + + /** + * @access public + * @var DisplayAdSpecAdSizeSpec[] + */ + public $adSizeSpecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec"; + } + + public function __construct($displayTypes = NULL, $activationOptions = NULL, $adSizeSpecs = NULL) { + $this->displayTypes = $displayTypes; + $this->activationOptions = $activationOptions; + $this->adSizeSpecs = $adSizeSpecs; + } +}} + +if (!class_exists("DisplayAdSpecAdSizeSpec", FALSE)) { +/** + * Specification for an ad size. This specification allows customization by + * display options for more fine-grained control over returns, so that + * customers can associate ad options with specific sizes. For example, + * suppose the customer in general would like to see placements with + * {@code DisplayOption.STANDARD} and {@code DisplayOption.POP_UNDER} - + * except for 300x250 ads which should only be STANDARD. The customer would + * create a {@code DisplayAdSpec} with {@code DisplayOption.STANDARD} and + * {@code DisplayOption.POP_UNDER}, and also send in an {@code AdSizeSpec} + * with {@code width} of 300, {@code} height of 250, and {@code displayOptionFilter} + * set to {@code DisplayOption.STANDARD}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DisplayAdSpecAdSizeSpec { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var tnsDisplayAdSpecActivationOption[] + */ + public $activationOptionFilter; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec.AdSizeSpec"; + } + + public function __construct($width = NULL, $height = NULL, $activationOptionFilter = NULL) { + $this->width = $width; + $this->height = $height; + $this->activationOptionFilter = $activationOptionFilter; + } +}} + +if (!class_exists("DisplayType", FALSE)) { +/** + * Base interface for types of display ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DisplayType { + /** + * @access public + * @var FlashDisplayType + */ + public $FlashDisplayType; + + /** + * @access public + * @var HtmlDisplayType + */ + public $HtmlDisplayType; + + /** + * @access public + * @var ImageDisplayType + */ + public $ImageDisplayType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayType"; + } + + public function __construct($FlashDisplayType = NULL, $HtmlDisplayType = NULL, $ImageDisplayType = NULL) { + $this->FlashDisplayType = $FlashDisplayType; + $this->HtmlDisplayType = $HtmlDisplayType; + $this->ImageDisplayType = $ImageDisplayType; + } +}} + +if (!class_exists("DoubleAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a double value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleAttribute extends Attribute { + /** + * @access public + * @var double + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("FlashDisplayType", FALSE)) { +/** + * {@link DisplayType} implementation for Flash display ads. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class FlashDisplayType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashDisplayType"; + } + + public function __construct() { + } +}} + +if (!class_exists("HtmlDisplayType", FALSE)) { +/** + * HTML-specific options for display ads are contained within + * this class. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class HtmlDisplayType { + /** + * @access public + * @var tnsHtmlDisplayTypeHtmlOption + */ + public $htmlOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HtmlDisplayType"; + } + + public function __construct($htmlOption = NULL) { + $this->htmlOption = $htmlOption; + } +}} + +if (!class_exists("IdeaTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link IdeaType} value. For example, + * if a {@link com.google.ads.api.services.targetingideas.TargetingIdea} + * represents a keyword idea, its {@link IdeaTypeAttribute} would contain a + * {@code KEYWORD} {@link IdeaType}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdeaTypeAttribute extends Attribute { + /** + * @access public + * @var tnsIdeaType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("ImageDisplayType", FALSE)) { +/** + * {@link DisplayType} implementation for images. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ImageDisplayType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageDisplayType"; + } + + public function __construct() { + } +}} + +if (!class_exists("InStreamAdInfo", FALSE)) { +/** + * Information specific to the instream ad format. Instream ads are video ads + * which play as part of the delivery of video content, either before, during, + * or after the content itself. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InStreamAdInfo { + /** + * @access public + * @var integer + */ + public $maxAdDuration; + + /** + * @access public + * @var integer + */ + public $minAdDuration; + + /** + * @access public + * @var integer + */ + public $medianAdDuration; + + /** + * @access public + * @var double + */ + public $preRollPercent; + + /** + * @access public + * @var double + */ + public $midRollPercent; + + /** + * @access public + * @var double + */ + public $postRollPercent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdInfo"; + } + + public function __construct($maxAdDuration = NULL, $minAdDuration = NULL, $medianAdDuration = NULL, $preRollPercent = NULL, $midRollPercent = NULL, $postRollPercent = NULL) { + $this->maxAdDuration = $maxAdDuration; + $this->minAdDuration = $minAdDuration; + $this->medianAdDuration = $medianAdDuration; + $this->preRollPercent = $preRollPercent; + $this->midRollPercent = $midRollPercent; + $this->postRollPercent = $postRollPercent; + } +}} + +if (!class_exists("InStreamAdInfoAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link InStreamAdInfo} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InStreamAdInfoAttribute extends Attribute { + /** + * @access public + * @var InStreamAdInfo + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdInfoAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("InStreamAdSpec", FALSE)) { +/** + * Placement request/response object which provides details about instream + * ad types, options, and other available configuration variables. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InStreamAdSpec { + /** + * @access public + * @var tnsInStreamAdSpecInStreamType[] + */ + public $inStreamTypes; + + /** + * @access public + * @var integer[] + */ + public $durations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdSpec"; + } + + public function __construct($inStreamTypes = NULL, $durations = NULL) { + $this->inStreamTypes = $inStreamTypes; + $this->durations = $durations; + } +}} + +if (!class_exists("IntegerAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an integer value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IntegerAttribute extends Attribute { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IntegerAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("IntegerSetAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a Set of integer values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IntegerSetAttribute extends Attribute { + /** + * @access public + * @var integer[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IntegerSetAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("KeywordAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Keyword} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordAttribute extends Attribute { + /** + * @access public + * @var Keyword + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("LongAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a long value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongAttribute extends Attribute { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("LongComparisonOperation", FALSE)) { +/** + * Object representing integer comparison operations. This is usually used within + * a particular + * {@link com.google.ads.api.services.targetingideas.search.SearchParameter} to + * specify the valid values requested for the specific + * {@link com.google.ads.api.services.common.optimization.attributes.Attribute}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongComparisonOperation { + /** + * @access public + * @var integer + */ + public $minimum; + + /** + * @access public + * @var integer + */ + public $maximum; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongComparisonOperation"; + } + + public function __construct($minimum = NULL, $maximum = NULL) { + $this->minimum = $minimum; + $this->maximum = $maximum; + } +}} + +if (!class_exists("LongRangeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Range} of {@link LongValue} + * values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongRangeAttribute extends Attribute { + /** + * @access public + * @var Range + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongRangeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + 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("MoneyAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Money} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MoneyAttribute extends Attribute { + /** + * @access public + * @var Money + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MoneyAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("MonthlySearchVolume", FALSE)) { +/** + * A keyword response value representing search volume for a single month. An + * instance with a {@code null} count is valid, indicating that the information + * is unavailable. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MonthlySearchVolume { + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $count; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MonthlySearchVolume"; + } + + public function __construct($year = NULL, $month = NULL, $count = NULL) { + $this->year = $year; + $this->month = $month; + $this->count = $count; + } +}} + +if (!class_exists("MonthlySearchVolumeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link MonthlySearchVolume} + * values. The list contains the past 12 {@link MonthlySearchVolume}s + * (excluding the current month). The first item is the data for the most + * recent month and the last item is the data for the oldest month. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MonthlySearchVolumeAttribute extends Attribute { + /** + * @access public + * @var MonthlySearchVolume[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MonthlySearchVolumeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("OpportunityIdeaTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link OpportunityIdeaType} value. + * For example, if a + * {@link com.google.ads.api.services.optimization.bulkopportunity.OpportunityIdea} + * represents a keyword idea, its {@link OpportunityIdeaTypeAttribute} would + * contain a {@code KEYWORD} {@link OpportunityIdeaType}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OpportunityIdeaTypeAttribute extends Attribute { + /** + * @access public + * @var tnsOpportunityIdeaType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OpportunityIdeaTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("PlacementAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Placement} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PlacementAttribute extends Attribute { + /** + * @access public + * @var Placement + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("PlacementTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link PlacementType} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PlacementTypeAttribute extends Attribute { + /** + * @access public + * @var tnsSiteConstantsPlacementType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("Range", FALSE)) { +/** + * Represents a range of values that has either an upper or a lower bound. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Range { + /** + * @access public + * @var ComparableValue + */ + public $min; + + /** + * @access public + * @var ComparableValue + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Range"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("SearchParameter", FALSE)) { +/** + * A set of {@link SearchParameter}s are supplied to the + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaSelector} + * to specify how the user wants to filter the set of all possible + * {@link com.google.ads.api.services.targetingideas.TargetingIdea}s. + * + * There is a {@link SearchParameter} for all types of inputs. + * {@link SearchParameter}s can conceptually be broken down into two types. + *
      + *
    • Input {@link SearchParameter}s provide the seed information from which + * ideas should be generated or statistic information is desired + * (e.g. {@link RelatedToQuerySearchParameter}, + * {@link RelatedToUrlSearchParameter}, etc). + * Such {@link SearchParameters} are required for valid requests.
    • + *
    • Filter {@link SearchParameter}s are used to trim down the results based + * on {@link com.google.ads.api.services.targetingideas.attributes.Attribute} + * related information (eg. {@link CompetitionSearchParameter}, etc.).
    • + *

    + * + * A request should only contain one instance of each {@link SearchParameter} + *

    One or more of the following {@link SearchParameter}s are required:
    + *

    • {@link CategoryProductsAndServicesSearchParameter}
    • + *
    • {@link RelatedToQuerySearchParameter}
    • + *
    • {@link RelatedToUrlSearchParameter}
    • + *
    • {@link SeedAdGroupIdSearchParameter}
    • + *

    + *

    {@link IdeaType} KEYWORD supports following {@link SearchParameter}s:
    + *

      + *
    • {@link CompetitionSearchParameter}
    • + *
    • {@link ExcludedKeywordSearchParameter}
    • + *
    • {@link IdeaTextFilterSearchParameter}
    • + *
    • {@link IncludeAdultContentSearchParameter}
    • + *
    • {@link CategoryProductsAndServicesSearchParameter}
    • + *
    • {@link LanguageSearchParameter}
    • + *
    • {@link NetworkSearchParameter}
    • + *
    • {@link RelatedToQuerySearchParameter}
    • + *
    • {@link RelatedToUrlSearchParameter}
    • + *
    • {@link SearchVolumeSearchParameter}
    • + *
    • {@link SeedAdGroupIdSearchParameter}
    • + *

    + *

    {@link IdeaType} PLACEMENT supports following {@link SearchParameter}s:
    + *

      + *
    • {@link LanguageSearchParameter}
    • + *
    • {@link PlacementTypeSearchParameter}
    • + *
    • {@link RelatedToQuerySearchParameter}
    • + *
    • {@link RelatedToUrlSearchParameter}
    • + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SearchParameter { + /** + * @access public + * @var string + */ + public $SearchParameterType; + + private $_parameterMap = array ( + "SearchParameter.Type" => "SearchParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SearchParameter"; + } + + public function __construct($SearchParameterType = NULL) { + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("SearchVolumeSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} that specifies the level of search volume expected in results, + * and it has a direct relationship to + * {@link com.google.ads.api.services.targetingideas.external.AttributeType#SEARCH_VOLUME}. + * Absence of a {@link SearchVolumeSearchParameter} in a + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaSelector} is + * equivalent to having no constraint on search volume specified. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SearchVolumeSearchParameter extends SearchParameter { + /** + * @access public + * @var LongComparisonOperation + */ + public $operation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SearchVolumeSearchParameter"; + } + + public function __construct($operation = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->operation = $operation; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("SeedAdGroupIdSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s + * that specifies that the supplied AdGroup should be used as a seed + * for generating new ideas. For example, an AdGroup's keywords + * would be used to generate new and related keywords. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SeedAdGroupIdSearchParameter extends SearchParameter { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SeedAdGroupIdSearchParameter"; + } + + public function __construct($adGroupId = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("StringAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a string value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringAttribute extends Attribute { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("TargetingIdea", FALSE)) { +/** + * Represents a {@link TargetingIdea} returned by search criteria specified in + * the {@link TargetingIdeaSelector}. Targeting ideas are keywords or placements + * that are similar to those the user inputs. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdea { + /** + * @access public + * @var Type_AttributeMapEntry[] + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdea"; + } + + public function __construct($data = NULL) { + $this->data = $data; + } +}} + +if (!class_exists("TargetingIdeaError", FALSE)) { +/** + * Base error class for the + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaError extends ApiError { + /** + * @access public + * @var tnsTargetingIdeaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaError"; + } + + 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("TargetingIdeaPage", FALSE)) { +/** + * Contains a subset of {@link TargetingIdea}s from the search criteria + * specified by a {@link TargetingIdeaSelector}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaPage { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var TargetingIdea[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaPage"; + } + + public function __construct($totalNumEntries = NULL, $entries = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->entries = $entries; + } +}} + +if (!class_exists("TargetingIdeaSelector", FALSE)) { +/** + * A descriptor for finding {@link TargetingIdea}s that match the specified + * criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaSelector { + /** + * @access public + * @var SearchParameter[] + */ + public $searchParameters; + + /** + * @access public + * @var tnsIdeaType + */ + public $ideaType; + + /** + * @access public + * @var tnsRequestType + */ + public $requestType; + + /** + * @access public + * @var tnsAttributeType[] + */ + public $requestedAttributeTypes; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * @access public + * @var string + */ + public $localeCode; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaSelector"; + } + + public function __construct($searchParameters = NULL, $ideaType = NULL, $requestType = NULL, $requestedAttributeTypes = NULL, $paging = NULL, $localeCode = NULL, $currencyCode = NULL) { + $this->searchParameters = $searchParameters; + $this->ideaType = $ideaType; + $this->requestType = $requestType; + $this->requestedAttributeTypes = $requestedAttributeTypes; + $this->paging = $paging; + $this->localeCode = $localeCode; + $this->currencyCode = $currencyCode; + } +}} + +if (!class_exists("TextAdSpec", FALSE)) { +/** + * Specification for a text ad. Currently there are no customizable + * options on text ads, but the presence of a {@code TextAdSpec} in a + * request indicates that text ads are a desired result, and the presence + * of a {@code TextAdSpec} in a response indicates that there are text + * ads available in the requested inventory. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TextAdSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAdSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorError", FALSE)) { +/** + * Base error class for + * {@link com.google.ads.api.services.trafficestimator.TrafficEstimatorService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorError extends ApiError { + /** + * @access public + * @var tnsTrafficEstimatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError"; + } + + 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("Type_AttributeMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Type + * and value of type Attribute. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Type_AttributeMapEntry { + /** + * @access public + * @var tnsAttributeType + */ + public $key; + + /** + * @access public + * @var Attribute + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Type_AttributeMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("WebpageDescriptor", FALSE)) { +/** + * Basic information about a webpage. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageDescriptor { + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $title; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageDescriptor"; + } + + public function __construct($url = NULL, $title = NULL) { + $this->url = $url; + $this->title = $title; + } +}} + +if (!class_exists("WebpageDescriptorAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link WebpageDescriptor} value. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageDescriptorAttribute extends Attribute { + /** + * @access public + * @var WebpageDescriptor + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageDescriptorAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AttributeType", FALSE)) { +/** + * Represents the type of + * {@link com.google.ads.api.services.common.optimization.attributes.Attribute}. + *

    {@link IdeaType} KEYWORD supports the following {@link AttributeType}s:
    + *

    • {@link #AD_SHARE}
    • + *
    • {@link #AVERAGE_CPC}
    • + *
    • {@link #AVERAGE_TARGETED_MONTHLY_SEARCHES}
    • + *
    • {@link #CATEGORY_PRODUCTS_AND_SERVICES}
    • + *
    • {@link #COMPETITION}
    • + *
    • {@link #CRITERION}
    • + *
    • {@link #EXTRACTED_FROM_WEBPAGE}
    • + *
    • {@link #GLOBAL_MONTHLY_SEARCHES}
    • + *
    • {@link #IDEA_TYPE}
    • + *
    • {@link #KEYWORD}
    • + *
    • {@link #KEYWORD_CATEGORY}
    • + *
    • {@link #KEYWORD_TEXT}
    • + *
    • {@link #NEGATIVE_KEYWORDS}
    • + *
    • {@link #NGRAM_GROUP}
    • + *
    • {@link #SEARCH_SHARE}
    • + *
    • {@link #SEARCH_VOLUME}
    • + *
    • {@link #TARGETED_MONTHLY_SEARCHES}
    • + *
    + *

    {@link IdeaType} PLACEMENT supports the following {@link AttributeType}s:
    + *

    • {@link #AD_TYPE_SPEC}
    • + *
    • {@link #APPROX_CONTENT_IMPRESSIONS_PER_DAY}
    • + *
    • {@link #CRITERION}
    • + *
    • {@link #FORMATS}
    • + *
    • {@link #IDEA_TYPE}
    • + *
    • {@link #IN_STREAM_AD_INFO}
    • + *
    • {@link #PLACEMENT}
    • + *
    • {@link #PLACEMENT_CATEGORY}
    • + *
    • {@link #PLACEMENT_NAME}
    • + *
    • {@link #PLACEMENT_TYPE}
    • + *
    • {@link #PUBLISHER_DESCRIPTION}
    • + *
    • {@link #SAMPLE_URL}
    • + *
    + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AttributeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AttributeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompetitionSearchParameterLevel", FALSE)) { +/** + * An enumeration of possible values to be used in conjunction with the + * {@link CompetitionSearchParameter} to specify the granularity of + * competition to be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CompetitionSearchParameterLevel { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompetitionSearchParameter.Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DisplayAdSpecActivationOption", FALSE)) { +/** + * Activation options. Describes the ad's activated mode. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DisplayAdSpecActivationOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec.ActivationOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("HtmlDisplayTypeHtmlOption", FALSE)) { +/** + * Served by a third party. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class HtmlDisplayTypeHtmlOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HtmlDisplayType.HtmlOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdeaType", FALSE)) { +/** + * Represents the type of idea. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdeaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("InStreamAdSpecInStreamType", FALSE)) { +/** + * Display subtype. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InStreamAdSpecInStreamType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdSpec.InStreamType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OpportunityIdeaType", FALSE)) { +/** + * Represents the type of opportunity. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OpportunityIdeaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OpportunityIdeaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestType", FALSE)) { +/** + * Represents the type of the request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SiteConstantsAdFormat", FALSE)) { +/** + * Enumerates the ad formats which can be reported in search results. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SiteConstantsAdFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteConstants.AdFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("SiteConstantsPlacementType", FALSE)) { +/** + * A placement request and response value indicating the type of site or other medium + * (for example, a web page, in a feed, in a video) where ads will appear. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SiteConstantsPlacementType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteConstants.PlacementType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetingIdeaErrorReason", FALSE)) { +/** + * An enumeration of + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaService} + * specific errors. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorErrorReason", FALSE)) { +/** + * When the request with {@code null} campaign ID in + * {@link com.google.ads.api.services.trafficestimator.CampaignEstimateRequest} + * contains an + * {@link com.google.ads.api.services.trafficestimator.AdGroupEstimateRequest} + * with an ID. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetingIdeaServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. + * + *

    The selector must specify a {@code paging} value, with {@code numberResults} set to 800 or + * less. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

    Only a relatively small total number of results will be available through this method. + * Much larger result sets may be available using + * {@link #getBulkKeywordIdeas(TargetingIdeaSelector)} at the price of reduced flexibility in + * selector options. + * + * @param selector Query describing the types of results to return when + * finding matches (similar keyword ideas/placement ideas). + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaServiceGet { + /** + * @access public + * @var TargetingIdeaSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("TargetingIdeaServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetingIdeaServiceGetResponse { + /** + * @access public + * @var TargetingIdeaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBulkKeywordIdeas", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. This method is specialized for returning + * bulk keyword ideas, and thus the selector must be set for + * {@link com.google.ads.api.services.targetingideas.attributes.RequestType#IDEAS} and + * {@link com.google.ads.api.services.common.optimization.attributes.IdeaType#KEYWORD}. + * A limited, fixed set of attributes will be returned. + * + *

    A single-valued + * {@link com.google.ads.api.services.targetingideas.search.RelatedToUrlSearchParameter} + * must be supplied. Single-valued + * {@link com.google.ads.api.services.targetingideas.search.LanguageSearchParameter} and + * {@link com.google.ads.api.services.targetingideas.search.LocationSearchParameter} are + * both optional. Other search parameters compatible with a keyword query may also be + * supplied. + * + *

    The selector must specify a {@code paging} value, with {@code numberResults} set to 800 + * or less. If a URL based search is performed it will return up to 100 keywords when the site is + * not owned, or up to 800 if it is. Number of keywords returned on a keyword based search is up + * to 800. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

    This method can make many more results available than {@link #get(TargetingIdeaSelector)}, + * but allows less control over the query. For fine-tuned queries that do not need large numbers + * of results, prefer {@link #get(TargetingIdeaSelector)}. + * + * @param selector Query describing the bulk keyword ideas to return. + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getBulkKeywordIdeas { + /** + * @access public + * @var TargetingIdeaSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getBulkKeywordIdeasResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class getBulkKeywordIdeasResponse { + /** + * @access public + * @var TargetingIdeaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + 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("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscape", FALSE)) { +/** + * Represents data about a bid landscape for an ad group or criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class BidLandscape extends DataEntry { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var BidLandscapeLandscapePoint[] + */ + public $landscapePoints; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionBidLandscape", FALSE)) { +/** + * The bid landscape for a criterion. A bid landscape estimates how a + * a criterion will perform based on different bid amounts. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionBidLandscape extends BidLandscape { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscape"; + } + + public function __construct($criterionId = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdFormatSpecListAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link AdFormatSpec} values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdFormatSpecListAttribute extends Attribute { + /** + * @access public + * @var AdFormatSpec[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdFormatSpecListAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AdSpecListAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link AdSpec} values. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSpecListAttribute extends Attribute { + /** + * @access public + * @var AdSpec[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpecListAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AdSpecListSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code PLACEMENT} {@link IdeaType}s used to + * filter the results by the list of {@link AdSpec}s. See {@link AdSpec} + * documentation for details on available options. + *

    This element is supported by following {@link IdeaType}s: PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdSpecListSearchParameter extends SearchParameter { + /** + * @access public + * @var AdSpec[] + */ + public $adSpecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpecListSearchParameter"; + } + + public function __construct($adSpecs = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->adSpecs = $adSpecs; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("CategoryProductsAndServicesSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * sets a keyword category that all search results should belong to. + * Uses the newer "Products and Services" taxonomy. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CategoryProductsAndServicesSearchParameter extends SearchParameter { + /** + * @access public + * @var integer + */ + public $categoryId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CategoryProductsAndServicesSearchParameter"; + } + + public function __construct($categoryId = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->categoryId = $categoryId; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("CompetitionSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s used to + * filter the results by the amount of competition (eg: LOW, MEDIUM, HIGH). + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CompetitionSearchParameter extends SearchParameter { + /** + * @access public + * @var tnsCompetitionSearchParameterLevel[] + */ + public $levels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompetitionSearchParameter"; + } + + public function __construct($levels = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->levels = $levels; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("ExcludedKeywordSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * specifies {@link Keyword}s that should be excluded from the results.

    + * + * The {@link KeywordMatchType} associated with these keywords is used to + * provide various filtering strategies. For example, the excluded keyword + * "brand x player" will exclude ideas from the resulting ideas as + * described by the table below. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Idea{@code BROAD}{@code PHRASE}{@code EXACT}
    brand x playerExcludeExcludeExclude
    blu-ray brand x playerExcludeExcludeInclude
    brand x dvd playerExcludeIncludeInclude
    brand x dvdIncludeIncludeInclude
    + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ExcludedKeywordSearchParameter extends SearchParameter { + /** + * @access public + * @var Keyword[] + */ + public $keywords; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExcludedKeywordSearchParameter"; + } + + public function __construct($keywords = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->keywords = $keywords; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("IdeaTextFilterSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * specifies a collection of strings by which the results should be + * constrained. This guarantees that each idea in the result will match + * at least one of the {@code included} values. + * + * For this {@link SearchParameter}, excluded items will always take + * priority over included ones. + * + * This can handle a maximum of 200 (included + excluded) elements. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdeaTextFilterSearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $included; + + /** + * @access public + * @var string[] + */ + public $excluded; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaTextFilterSearchParameter"; + } + + public function __construct($included = NULL, $excluded = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->included = $included; + $this->excluded = $excluded; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("IncludeAdultContentSearchParameter", FALSE)) { +/** + * {@link SearchParameter} that specifies whether adult content should be + * returned.

    + * + * Presence of this {@link SearchParameter} will allow adult keywords + * to be included in the results. + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IncludeAdultContentSearchParameter extends SearchParameter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IncludeAdultContentSearchParameter"; + } + + public function __construct($SearchParameterType = NULL) { + parent::__construct(); + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("LanguageSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for both {@code PLACEMENT} and {@code KEYWORD} + * {@link IdeaType}s used to indicate multiple language being targeted. This can + * be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that + * are best for Japanese language. + * + *

    The service allows at most one language to be targeted for KEYWORD requests and 10 languages + * for PLACEMENT requests. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LanguageSearchParameter extends SearchParameter { + /** + * @access public + * @var Language[] + */ + public $languages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LanguageSearchParameter"; + } + + public function __construct($languages = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->languages = $languages; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("LocationSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for both {@code PLACEMENT} and {@code KEYWORD} + * {@link IdeaType}s used to indicate the locations being targeted. This can + * be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that + * are best for Japan and Los Angeles. + * + *

    This parameter replaces the {@code CountryTargetSearchParameter}. + * + *

    Warning: Not all back-ends support sub-country precision. + * + *

    The service allows up to 10 locations to be targeted for KEYWORD requests and 50 locations + * for PLACEMENT requests. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationSearchParameter extends SearchParameter { + /** + * @access public + * @var Location[] + */ + public $locations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSearchParameter"; + } + + public function __construct($locations = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->locations = $locations; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("NetworkSearchParameter", FALSE)) { +/** + *

    A {@link SearchParameter} for setting the search network. Currently we + * support two network setting options: + *

      + *
    • Google search network
    • + *
    • Google search network and AFS
    • + *
    + *

    This element is supported by following {@link IdeaType}s: KEYWORD. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSearchParameter extends SearchParameter { + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSearchParameter"; + } + + public function __construct($networkSetting = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->networkSetting = $networkSetting; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("PlacementTypeSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code PLACEMENT} {@link IdeaType}s + * used to filter results based on the type of website, known as + * {@link com.google.ads.api.services.targetingideas.attributes.Type#PLACEMENT_TYPE}, + * that they appear in. For example, searches may be limited to find + * results that only appear within mobile websites or feeds. + *

    This element is supported by following {@link IdeaType}s: PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class PlacementTypeSearchParameter extends SearchParameter { + /** + * @access public + * @var tnsSiteConstantsPlacementType[] + */ + public $placementTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTypeSearchParameter"; + } + + public function __construct($placementTypes = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->placementTypes = $placementTypes; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("RelatedToQuerySearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for a query of {@code String}s. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RelatedToQuerySearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $queries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RelatedToQuerySearchParameter"; + } + + public function __construct($queries = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->queries = $queries; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("RelatedToUrlSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} and {@code PLACEMENT} + * {@link IdeaType}s that specifies a set of URLs that results should + * in some way be related too. For example, keyword results would be + * similar to content keywords found on the related URLs. + *

    This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

    This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

    This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RelatedToUrlSearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * @access public + * @var boolean + */ + public $includeSubUrls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RelatedToUrlSearchParameter"; + } + + public function __construct($urls = NULL, $includeSubUrls = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->urls = $urls; + $this->includeSubUrls = $includeSubUrls; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("AdGroupBidLandscape", FALSE)) { +/** + * Represents data about a bidlandscape for an adgroup. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupBidLandscape extends BidLandscape { + /** + * @access public + * @var tnsAdGroupBidLandscapeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $landscapeCurrent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape"; + } + + public function __construct($type = NULL, $landscapeCurrent = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->type = $type; + $this->landscapeCurrent = $landscapeCurrent; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("TargetingIdeaService", FALSE)) { +/** + * TargetingIdeaService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class TargetingIdeaService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "TargetingIdeaServiceGetResponse", + "get" => "TargetingIdeaServiceGet", + "mutate" => "TargetingIdeaServiceMutate", + "mutateResponse" => "TargetingIdeaServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupBidLandscape" => "AdGroupBidLandscape", + "BidLandscape" => "BidLandscape", + "AdGroupCriterionError" => "AdGroupCriterionError", + "ApiError" => "ApiError", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdxError" => "AdxError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "DataEntry" => "DataEntry", + "BidLandscape.LandscapePoint" => "BidLandscapeLandscapePoint", + "BiddingError" => "BiddingError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionBidLandscape" => "CriterionBidLandscape", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NetworkSetting" => "NetworkSetting", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "Paging" => "Paging", + "Placement" => "Placement", + "Platform" => "Platform", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "TargetError" => "TargetError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdGroupBidLandscape.Type" => "AdGroupBidLandscapeType", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BiddingError.Reason" => "BiddingErrorReason", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "AdFormatSpec" => "AdFormatSpec", + "AdFormatSpecListAttribute" => "AdFormatSpecListAttribute", + "Attribute" => "Attribute", + "AdSpec" => "AdSpec", + "AdSpecListAttribute" => "AdSpecListAttribute", + "AdSpecListSearchParameter" => "AdSpecListSearchParameter", + "SearchParameter" => "SearchParameter", + "BidLandscapeAttribute" => "BidLandscapeAttribute", + "BooleanAttribute" => "BooleanAttribute", + "CategoryProductsAndServicesSearchParameter" => "CategoryProductsAndServicesSearchParameter", + "CompetitionSearchParameter" => "CompetitionSearchParameter", + "CriterionAttribute" => "CriterionAttribute", + "CurrencyCodeError" => "CurrencyCodeError", + "DisplayAdSpec" => "DisplayAdSpec", + "DisplayAdSpec.AdSizeSpec" => "DisplayAdSpecAdSizeSpec", + "DisplayType" => "DisplayType", + "DoubleAttribute" => "DoubleAttribute", + "ExcludedKeywordSearchParameter" => "ExcludedKeywordSearchParameter", + "FlashDisplayType" => "FlashDisplayType", + "HtmlDisplayType" => "HtmlDisplayType", + "IdeaTextFilterSearchParameter" => "IdeaTextFilterSearchParameter", + "IdeaTypeAttribute" => "IdeaTypeAttribute", + "ImageDisplayType" => "ImageDisplayType", + "InStreamAdInfo" => "InStreamAdInfo", + "InStreamAdInfoAttribute" => "InStreamAdInfoAttribute", + "InStreamAdSpec" => "InStreamAdSpec", + "IncludeAdultContentSearchParameter" => "IncludeAdultContentSearchParameter", + "IntegerAttribute" => "IntegerAttribute", + "IntegerSetAttribute" => "IntegerSetAttribute", + "KeywordAttribute" => "KeywordAttribute", + "LanguageSearchParameter" => "LanguageSearchParameter", + "LocationSearchParameter" => "LocationSearchParameter", + "LongAttribute" => "LongAttribute", + "LongComparisonOperation" => "LongComparisonOperation", + "LongRangeAttribute" => "LongRangeAttribute", + "MatchesRegexError" => "MatchesRegexError", + "MoneyAttribute" => "MoneyAttribute", + "MonthlySearchVolume" => "MonthlySearchVolume", + "MonthlySearchVolumeAttribute" => "MonthlySearchVolumeAttribute", + "NetworkSearchParameter" => "NetworkSearchParameter", + "OpportunityIdeaTypeAttribute" => "OpportunityIdeaTypeAttribute", + "PlacementAttribute" => "PlacementAttribute", + "PlacementTypeAttribute" => "PlacementTypeAttribute", + "PlacementTypeSearchParameter" => "PlacementTypeSearchParameter", + "Range" => "Range", + "RelatedToQuerySearchParameter" => "RelatedToQuerySearchParameter", + "RelatedToUrlSearchParameter" => "RelatedToUrlSearchParameter", + "SearchVolumeSearchParameter" => "SearchVolumeSearchParameter", + "SeedAdGroupIdSearchParameter" => "SeedAdGroupIdSearchParameter", + "StringAttribute" => "StringAttribute", + "TargetingIdea" => "TargetingIdea", + "TargetingIdeaError" => "TargetingIdeaError", + "TargetingIdeaPage" => "TargetingIdeaPage", + "TargetingIdeaSelector" => "TargetingIdeaSelector", + "TextAdSpec" => "TextAdSpec", + "TrafficEstimatorError" => "TrafficEstimatorError", + "Type_AttributeMapEntry" => "Type_AttributeMapEntry", + "WebpageDescriptor" => "WebpageDescriptor", + "WebpageDescriptorAttribute" => "WebpageDescriptorAttribute", + "AttributeType" => "AttributeType", + "CompetitionSearchParameter.Level" => "CompetitionSearchParameterLevel", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "DisplayAdSpec.ActivationOption" => "DisplayAdSpecActivationOption", + "HtmlDisplayType.HtmlOption" => "HtmlDisplayTypeHtmlOption", + "IdeaType" => "IdeaType", + "InStreamAdSpec.InStreamType" => "InStreamAdSpecInStreamType", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "OpportunityIdeaType" => "OpportunityIdeaType", + "RequestType" => "RequestType", + "SiteConstants.AdFormat" => "SiteConstantsAdFormat", + "SiteConstants.PlacementType" => "SiteConstantsPlacementType", + "TargetingIdeaError.Reason" => "TargetingIdeaErrorReason", + "TrafficEstimatorError.Reason" => "TrafficEstimatorErrorReason", + "getBulkKeywordIdeas" => "getBulkKeywordIdeas", + "getBulkKeywordIdeasResponse" => "getBulkKeywordIdeasResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/o/v201306/TargetingIdeaService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TargetingIdeaService::$classmap; + parent::__construct($wsdl, $options, $user, 'TargetingIdeaService', 'https://adwords.google.com/api/adwords/o/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. + * + *

    The selector must specify a {@code paging} value, with {@code numberResults} set to 800 or + * less. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

    Only a relatively small total number of results will be available through this method. + * Much larger result sets may be available using + * {@link #getBulkKeywordIdeas(TargetingIdeaSelector)} at the price of reduced flexibility in + * selector options. + * + * @param selector Query describing the types of results to return when + * finding matches (similar keyword ideas/placement ideas). + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + */ + public function get($selector) { + $arg = new TargetingIdeaServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. This method is specialized for returning + * bulk keyword ideas, and thus the selector must be set for + * {@link com.google.ads.api.services.targetingideas.attributes.RequestType#IDEAS} and + * {@link com.google.ads.api.services.common.optimization.attributes.IdeaType#KEYWORD}. + * A limited, fixed set of attributes will be returned. + * + *

    A single-valued + * {@link com.google.ads.api.services.targetingideas.search.RelatedToUrlSearchParameter} + * must be supplied. Single-valued + * {@link com.google.ads.api.services.targetingideas.search.LanguageSearchParameter} and + * {@link com.google.ads.api.services.targetingideas.search.LocationSearchParameter} are + * both optional. Other search parameters compatible with a keyword query may also be + * supplied. + * + *

    The selector must specify a {@code paging} value, with {@code numberResults} set to 800 + * or less. If a URL based search is performed it will return up to 100 keywords when the site is + * not owned, or up to 800 if it is. Number of keywords returned on a keyword based search is up + * to 800. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

    This method can make many more results available than {@link #get(TargetingIdeaSelector)}, + * but allows less control over the query. For fine-tuned queries that do not need large numbers + * of results, prefer {@link #get(TargetingIdeaSelector)}. + * + * @param selector Query describing the bulk keyword ideas to return. + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + */ + public function getBulkKeywordIdeas($selector) { + $arg = new getBulkKeywordIdeas($selector); + $result = $this->__soapCall("getBulkKeywordIdeas", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201306/TrafficEstimatorService.php b/src/Google/Api/Ads/AdWords/v201306/TrafficEstimatorService.php new file mode 100755 index 000000000..aa925af9e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201306/TrafficEstimatorService.php @@ -0,0 +1,4856 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CollectionSizeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $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. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

    + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + 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("Estimate", FALSE)) { +/** + * Abstract class representing an reply to an {@link EstimateRequest}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class Estimate { + /** + * @access public + * @var string + */ + public $EstimateType; + + private $_parameterMap = array ( + "Estimate.Type" => "EstimateType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Estimate"; + } + + public function __construct($EstimateType = NULL) { + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("EstimateRequest", FALSE)) { +/** + * Abstract class representing a request to estimate stats. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class EstimateRequest { + /** + * @access public + * @var string + */ + public $EstimateRequestType; + + private $_parameterMap = array ( + "EstimateRequest.Type" => "EstimateRequestType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EstimateRequest"; + } + + public function __construct($EstimateRequestType = NULL) { + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("KeywordEstimate", FALSE)) { +/** + * Represents the traffic estimate result for a single keyword. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * @access public + * @var StatsEstimate + */ + public $min; + + /** + * @access public + * @var StatsEstimate + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordEstimate"; + } + + public function __construct($criterionId = NULL, $min = NULL, $max = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->min = $min; + $this->max = $max; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("KeywordEstimateRequest", FALSE)) { +/** + * Represents a keyword to be estimated. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class KeywordEstimateRequest extends EstimateRequest { + /** + * @access public + * @var Keyword + */ + public $keyword; + + /** + * @access public + * @var Money + */ + public $maxCpc; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordEstimateRequest"; + } + + public function __construct($keyword = NULL, $maxCpc = NULL, $isNegative = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->keyword = $keyword; + $this->maxCpc = $maxCpc; + $this->isNegative = $isNegative; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + 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("StatsEstimate", FALSE)) { +/** + * Represents a set of stats for a traffic estimate. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class StatsEstimate { + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var double + */ + public $clicksPerDay; + + /** + * @access public + * @var double + */ + public $impressionsPerDay; + + /** + * @access public + * @var double + */ + public $clickThroughRate; + + /** + * @access public + * @var Money + */ + public $totalCost; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsEstimate"; + } + + public function __construct($averageCpc = NULL, $averagePosition = NULL, $clicksPerDay = NULL, $impressionsPerDay = NULL, $clickThroughRate = NULL, $totalCost = NULL) { + $this->averageCpc = $averageCpc; + $this->averagePosition = $averagePosition; + $this->clicksPerDay = $clicksPerDay; + $this->impressionsPerDay = $impressionsPerDay; + $this->clickThroughRate = $clickThroughRate; + $this->totalCost = $totalCost; + } +}} + +if (!class_exists("TrafficEstimatorError", FALSE)) { +/** + * Base error class for + * {@link com.google.ads.api.services.trafficestimator.TrafficEstimatorService}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorError extends ApiError { + /** + * @access public + * @var tnsTrafficEstimatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError"; + } + + 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("TrafficEstimatorResult", FALSE)) { +/** + * Contains results of traffic estimation request. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorResult { + /** + * @access public + * @var CampaignEstimate[] + */ + public $campaignEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorResult"; + } + + public function __construct($campaignEstimates = NULL) { + $this->campaignEstimates = $campaignEstimates; + } +}} + +if (!class_exists("TrafficEstimatorSelector", FALSE)) { +/** + * Contains a list of campaigns to perform a traffic estimate on. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorSelector { + /** + * @access public + * @var CampaignEstimateRequest[] + */ + public $campaignEstimateRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorSelector"; + } + + public function __construct($campaignEstimateRequests = NULL) { + $this->campaignEstimateRequests = $campaignEstimateRequests; + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorErrorReason", FALSE)) { +/** + * When the request with {@code null} campaign ID in + * {@link com.google.ads.api.services.trafficestimator.CampaignEstimateRequest} + * contains an + * {@link com.google.ads.api.services.trafficestimator.AdGroupEstimateRequest} + * with an ID. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns traffic estimates for specified criteria. + * + * @param selector Campaigns, ad groups and keywords for which traffic + * should be estimated. + * @return Traffic estimation results. + * @throws ApiException if problems occurred while retrieving estimates + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorServiceGet { + /** + * @access public + * @var TrafficEstimatorSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("TrafficEstimatorServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class TrafficEstimatorServiceGetResponse { + /** + * @access public + * @var TrafficEstimatorResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupEstimate", FALSE)) { +/** + * Represents the estimate results for a single ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var KeywordEstimate[] + */ + public $keywordEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupEstimate"; + } + + public function __construct($adGroupId = NULL, $keywordEstimates = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->keywordEstimates = $keywordEstimates; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("AdGroupEstimateRequest", FALSE)) { +/** + * Represents an ad group that will be estimated. Ad groups may be all + * new or all existing, or a mixture of new and existing. Only existing + * campaigns can contain estimates for existing ad groups.

    + * + *

    To make a keyword estimates request in which estimates do not consider + * existing account information (e.g. historical ad group performance), set both + * {@link #adGroupId} and the enclosing {@link CampaignEstimateRequest}'s + * {@code campaignId} to {@code null}. + * + *

    For more details on usage, refer to document at + * {@link CampaignEstimateRequest}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class AdGroupEstimateRequest extends EstimateRequest { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var KeywordEstimateRequest[] + */ + public $keywordEstimateRequests; + + /** + * @access public + * @var Money + */ + public $maxCpc; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupEstimateRequest"; + } + + public function __construct($adGroupId = NULL, $keywordEstimateRequests = NULL, $maxCpc = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->keywordEstimateRequests = $keywordEstimateRequests; + $this->maxCpc = $maxCpc; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("CampaignEstimate", FALSE)) { +/** + * Represents the estimate results for a single campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdGroupEstimate[] + */ + public $adGroupEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignEstimate"; + } + + public function __construct($campaignId = NULL, $adGroupEstimates = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupEstimates = $adGroupEstimates; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("CampaignEstimateRequest", FALSE)) { +/** + * Represents a campaign that will be estimated.

    + * + * Returns traffic estimates for the requested set of campaigns. + * The campaigns can be all new or all existing, or a mixture of + * new and existing. Only existing campaigns may contain estimates for existing + * ad groups.

    + * + * For existing campaigns, the campaign and optionally the ad group will be + * used as context to produce more accurate estimates. Traffic estimates may + * only be requested on keywords, so regardless of whether campaign and ad group + * IDs are provided or left blank, at least one keyword is required to estimate + * traffic.

    + * + * To make a keyword estimates request in which estimates do not consider + * existing account information (e.g. historical ad group performance), set + * {@link #campaignId} to {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201306 + */ +class CampaignEstimateRequest extends EstimateRequest { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdGroupEstimateRequest[] + */ + public $adGroupEstimateRequests; + + /** + * @access public + * @var Criterion[] + */ + public $criteria; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var Money + */ + public $dailyBudget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignEstimateRequest"; + } + + public function __construct($campaignId = NULL, $adGroupEstimateRequests = NULL, $criteria = NULL, $networkSetting = NULL, $dailyBudget = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupEstimateRequests = $adGroupEstimateRequests; + $this->criteria = $criteria; + $this->networkSetting = $networkSetting; + $this->dailyBudget = $dailyBudget; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("TrafficEstimatorService", FALSE)) { +/** + * TrafficEstimatorService + * @package GoogleApiAdsAdWords + * @subpackage v201306 + * @author WSDLInterpreter + */ +class TrafficEstimatorService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "TrafficEstimatorServiceGetResponse", + "get" => "TrafficEstimatorServiceGet", + "mutate" => "TrafficEstimatorServiceMutate", + "mutateResponse" => "TrafficEstimatorServiceMutateResponse", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NetworkSetting" => "NetworkSetting", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "Placement" => "Placement", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "TargetError" => "TargetError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "AdGroupEstimate" => "AdGroupEstimate", + "Estimate" => "Estimate", + "AdGroupEstimateRequest" => "AdGroupEstimateRequest", + "EstimateRequest" => "EstimateRequest", + "CampaignEstimate" => "CampaignEstimate", + "CampaignEstimateRequest" => "CampaignEstimateRequest", + "CurrencyCodeError" => "CurrencyCodeError", + "KeywordEstimate" => "KeywordEstimate", + "KeywordEstimateRequest" => "KeywordEstimateRequest", + "MatchesRegexError" => "MatchesRegexError", + "StatsEstimate" => "StatsEstimate", + "TrafficEstimatorError" => "TrafficEstimatorError", + "TrafficEstimatorResult" => "TrafficEstimatorResult", + "TrafficEstimatorSelector" => "TrafficEstimatorSelector", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "TrafficEstimatorError.Reason" => "TrafficEstimatorErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/o/v201306/TrafficEstimatorService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TrafficEstimatorService::$classmap; + parent::__construct($wsdl, $options, $user, 'TrafficEstimatorService', 'https://adwords.google.com/api/adwords/o/v201306'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns traffic estimates for specified criteria. + * + * @param selector Campaigns, ad groups and keywords for which traffic + * should be estimated. + * @return Traffic estimation results. + * @throws ApiException if problems occurred while retrieving estimates + */ + public function get($selector) { + $arg = new TrafficEstimatorServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupAdService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupAdService.php new file mode 100755 index 000000000..895ff9b59 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupAdService.php @@ -0,0 +1,6111 @@ +This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Ad { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $displayUrl; + + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * @access public + * @var string + */ + public $AdType; + + private $_parameterMap = array ( + "Ad.Type" => "AdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Ad"; + } + + public function __construct($id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdGroupAd", FALSE)) { +/** + * Represents an ad in an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAd { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Ad + */ + public $ad; + + /** + * @access public + * @var AdGroupAdExperimentData + */ + public $experimentData; + + /** + * @access public + * @var tnsAdGroupAdStatus + */ + public $status; + + /** + * @access public + * @var tnsAdGroupAdApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var boolean + */ + public $trademarkDisapproved; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd"; + } + + public function __construct($adGroupId = NULL, $ad = NULL, $experimentData = NULL, $status = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $trademarkDisapproved = NULL, $forwardCompatibilityMap = NULL) { + $this->adGroupId = $adGroupId; + $this->ad = $ad; + $this->experimentData = $experimentData; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->trademarkDisapproved = $trademarkDisapproved; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("AdGroupAdExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for an AdGroupAd + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + } +}} + +if (!class_exists("AdUnionId", FALSE)) { +/** + * Represents an id indicating a grouping of Ads under some heuristic. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdUnionId { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdUnionIdType; + + private $_parameterMap = array ( + "AdUnionId.Type" => "AdUnionIdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DeprecatedAd", FALSE)) { +/** + * Represents a deprecated ad. + * + * Deprecated ads can be deleted, but cannot be created. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DeprecatedAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsDeprecatedAdType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd"; + } + + public function __construct($name = NULL, $type = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->type = $type; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("ImageAd", FALSE)) { +/** + * Represents an ImageAd. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageAd extends Ad { + /** + * @access public + * @var Image + */ + public $image; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $adToCopyImageFrom; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageAd"; + } + + public function __construct($image = NULL, $name = NULL, $adToCopyImageFrom = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->image = $image; + $this->name = $name; + $this->adToCopyImageFrom = $adToCopyImageFrom; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + 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("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("MobileAd", FALSE)) { +/** + * Represents a mobile ad. + * + *

    + * A mobile ad can contain a click-to-call phone number, a link to a website, + * or both. You specify which features you want by setting certain fields, as + * shown in the following table. For example, to create a click-to-call mobile + * ad, set the fields in the Click-to-call column. A hyphen indicates + * that you should not set the corresponding field. + *

    + *

    + * For more information, see + * + * Create a mobile ad. + *

    + * + * + * + * + * + * + * + * + *
    Click-to-call Website Both
    headline
    + * description
    + * mobileCarriers
    + * phoneNumber
    + * countryCode
    + * businessName
    + * -
    + * -
    + * -
    + *
    headline
    + * description
    + * mobileCarriers
    + * -
    + * -
    + * -
    + * displayUrl
    + * destinationUrl
    + * markupLanguages
    + *
    headline
    + * description
    + * mobileCarriers
    + * phoneNumber
    + * countryCode
    + * businessName
    + * displayUrl
    + * destinationUrl
    + * markupLanguages
    + *
    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var string + */ + public $businessName; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAd"; + } + + public function __construct($headline = NULL, $description = NULL, $markupLanguages = NULL, $mobileCarriers = NULL, $businessName = NULL, $countryCode = NULL, $phoneNumber = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description = $description; + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->businessName = $businessName; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("MobileImageAd", FALSE)) { +/** + * Represents a mobile image ad. + * + *

    For more information, see + * + * Create a mobile ad.

    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileImageAd extends Ad { + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var Image + */ + public $image; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileImageAd"; + } + + public function __construct($markupLanguages = NULL, $mobileCarriers = NULL, $image = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->image = $image; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductAd", FALSE)) { +/** + * Represents a product ad (known as a product + * listing ad in the AdWords user interface). A product ad displays + * product data (managed using the Google Merchant Center) that is + * pulled from the Google base product feed specified in the parent campaign's + * {@linkplain ProductExtension product extension}. + * + *

    Product ads are only available to a limited set of advertisers. If you + * are not eligible to use product ads, they will not serve.

    + * + *

    Caution: Product ads do not use {@link #url url} or + * {@link #displayUrl displayUrl}; setting these fields on a product ad will + * cause an error.

    + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductAd extends Ad { + /** + * @access public + * @var string + */ + public $promotionLine; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAd"; + } + + public function __construct($promotionLine = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->promotionLine = $promotionLine; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RichMediaAd", FALSE)) { +/** + * Data associated with a rich media ad. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $impressionBeaconUrl; + + /** + * @access public + * @var integer + */ + public $adDuration; + + /** + * @access public + * @var integer + */ + public $certifiedVendorFormatId; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var tnsRichMediaAdRichMediaAdType + */ + public $richMediaAdType; + + /** + * @access public + * @var tnsRichMediaAdAdAttribute[] + */ + public $adAttributes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd"; + } + + public function __construct($name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TempAdUnionId", FALSE)) { +/** + * Represents the temporary id for an ad union id, which the user can specify. + * The temporary id can be used to group ads together during ad creation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TempAdUnionId extends AdUnionId { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TempAdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + parent::__construct(); + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("TemplateAd", FALSE)) { +/** + * Represents a Display Ad Builder template ad. A template ad is + * composed of a template (specified by its ID) and the data that populates + * the template's fields. For a list of available templates and their required + * fields, see Template Ads. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateAd extends Ad { + /** + * @access public + * @var integer + */ + public $templateId; + + /** + * @access public + * @var AdUnionId + */ + public $adUnionId; + + /** + * @access public + * @var TemplateElement[] + */ + public $templateElements; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $originAdId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateAd"; + } + + public function __construct($templateId = NULL, $adUnionId = NULL, $templateElements = NULL, $dimensions = NULL, $name = NULL, $duration = NULL, $originAdId = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->templateId = $templateId; + $this->adUnionId = $adUnionId; + $this->templateElements = $templateElements; + $this->dimensions = $dimensions; + $this->name = $name; + $this->duration = $duration; + $this->originAdId = $originAdId; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TemplateElement", FALSE)) { +/** + * Represents an element in a template. Each template element is composed + * of a list of fields (actual value data). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElement { + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var TemplateElementField[] + */ + public $fields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElement"; + } + + public function __construct($uniqueName = NULL, $fields = NULL) { + $this->uniqueName = $uniqueName; + $this->fields = $fields; + } +}} + +if (!class_exists("TemplateElementField", FALSE)) { +/** + * Represents a field in a template element. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElementField { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsTemplateElementFieldType + */ + public $type; + + /** + * @access public + * @var string + */ + public $fieldText; + + /** + * @access public + * @var Media + */ + public $fieldMedia; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField"; + } + + public function __construct($name = NULL, $type = NULL, $fieldText = NULL, $fieldMedia = NULL) { + $this->name = $name; + $this->type = $type; + $this->fieldText = $fieldText; + $this->fieldMedia = $fieldMedia; + } +}} + +if (!class_exists("TextAd", FALSE)) { +/** + * Represents a TextAd. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TextAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAd"; + } + + public function __construct($headline = NULL, $description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ThirdPartyRedirectAd", FALSE)) { +/** + * Data associated with rich media extension attributes. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ThirdPartyRedirectAd extends RichMediaAd { + /** + * @access public + * @var boolean + */ + public $isCookieTargeted; + + /** + * @access public + * @var boolean + */ + public $isUserInterestTargeted; + + /** + * @access public + * @var boolean + */ + public $isTagged; + + /** + * @access public + * @var tnsVideoType[] + */ + public $videoTypes; + + /** + * @access public + * @var tnsThirdPartyRedirectAdExpandingDirection[] + */ + public $expandingDirections; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd"; + } + + public function __construct($isCookieTargeted = NULL, $isUserInterestTargeted = NULL, $isTagged = NULL, $videoTypes = NULL, $expandingDirections = NULL, $name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->isCookieTargeted = $isCookieTargeted; + $this->isUserInterestTargeted = $isUserInterestTargeted; + $this->isTagged = $isTagged; + $this->videoTypes = $videoTypes; + $this->expandingDirections = $expandingDirections; + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("DynamicSearchAd", FALSE)) { +/** + * Represents a dynamic search ad. This ad will have its headline and + * destination URL auto-generated at serving time according to domain name + * specific information provided by {@link DomainInfoExtension} linked at the + * campaign level. + * + *

    Auto-generated fields: headline and destination URL (may contain an optional + * tracking URL)

    + * + *

    Required fields: description1, description2, displayUrl

    + * + *

    The URL field must contain at least one of the following placeholder tags + * (URL parameters): {unescapedlpurl}, {escapedlpurl}, {lpurlpath}. If no URL is + * specified, {unescapedlpurl} will be used as default.

    + * + *

    {unescapedlpurl} can only be used at the beginning of the URL field. It + * will be replaced with the full landing page URL of the displayed ad. Extra query + * parameters can be added to the end, e.g. "{unescapedlpurl}?lang=en".

    + * + *

    {escapedlpurl} will be replaced with the URL-encoded version of the full + * landing page URL. This makes it suitable for use as a query parameter + * value (e.g. "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but + * not at the beginning of the url field.

    + * + *

    {lpurlpath} will be replaced with the path and query part of the landing + * page URL and can be added to a different URL, e.g. + * "http://www.mygoodbusiness.com/tracking/{lpurlpath}".

    + * + *

    There are also special rules that come into play depending on whether the + * destination URL uses local click tracking or third-party click tracking.

    + * + *

    For more information, see the article Using dynamic tracking URLs. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DynamicSearchAd extends Ad { + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DynamicSearchAd"; + } + + public function __construct($description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdApprovalStatus", FALSE)) { +/** + * Represents the possible approval statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdStatus", FALSE)) { +/** + * The current status of an Ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeprecatedAdType", FALSE)) { +/** + * Video ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DeprecatedAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MarkupLanguageType", FALSE)) { +/** + * Markup languages to use for mobile ads. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MarkupLanguageType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MarkupLanguageType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdAdAttribute", FALSE)) { +/** + * A set of attributes that describe the rich media ad capabilities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAdAdAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.AdAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdRichMediaAdType", FALSE)) { +/** + * Different types of rich media ad that are available to customers. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAdRichMediaAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.RichMediaAdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateElementFieldType", FALSE)) { +/** + * Possible field types of template element fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElementFieldType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyRedirectAdExpandingDirection", FALSE)) { +/** + * Allowed expanding directions for ads that are expandable. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ThirdPartyRedirectAdExpandingDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd.ExpandingDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoType", FALSE)) { +/** + * VideoType enum values that are permitted for video filterable + * creative attribute IDs. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class VideoType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds. + * Deleted AdGroupAds are not returned by default. + * + * @param serviceSelector The selector specifying the {@link AdGroupAd}s to return. + * @return The page containing the AdGroupAds that meet the criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupAdServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdServiceGetResponse { + /** + * @access public + * @var AdGroupAdPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupAdServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations (ie. add, set, remove): + *

    Add - Creates a new {@linkplain AdGroupAd ad group ad}. The + * {@code adGroupId} must + * reference an existing ad group. The child {@code Ad} must be sufficiently + * specified by constructing a concrete ad type (such as {@code TextAd}) + * and setting its fields accordingly.

    + *

    Set - Updates an ad group ad. Except for {@code status}, + * ad group ad fields are not mutable. Status updates are + * straightforward - the status of the ad group ad is updated as + * specified. If any other field has changed, it will be ignored. If + * you want to change any of the fields other than status, you must + * make a new ad and then delete the old one.

    + *

    Remove - Removes the link between the specified AdGroup and + * Ad.

    + * @param operations The operations to apply. + * @return A list of AdGroupAds where each entry in the list is the result of + * applying the operation in the input list with the same index. For an + * add/set operation, the return AdGroupAd will be what is saved to the db. + * In the case of the remove operation, the return AdGroupAd will simply be + * an AdGroupAd containing an Ad with the id set to the Ad being deleted from + * the AdGroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdServiceMutate { + /** + * @access public + * @var AdGroupAdOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupAdServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdServiceMutateResponse { + /** + * @access public + * @var AdGroupAdReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds based on the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of AdGroupAds. + * @throws ApiException if problems occur while parsing the query or fetching AdGroupAds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var AdGroupAdPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdError", FALSE)) { +/** + * Base error class for Ad Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdError extends ApiError { + /** + * @access public + * @var tnsAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError"; + } + + 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("AdGroupAdCountLimitExceeded", FALSE)) { +/** + * Indicates too many ads were added/enabled under the specified adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdCountLimitExceeded extends EntityCountLimitExceeded { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdError", FALSE)) { +/** + * Error information for AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdError extends ApiError { + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError"; + } + + 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("AdGroupAdOperation", FALSE)) { +/** + * AdGroupAd service operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdOperation extends Operation { + /** + * @access public + * @var AdGroupAd + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupAdPage", FALSE)) { +/** + * Represents a page of {@link AdGroupAd}s resulting from the query done by + * {@link AdGroupAdService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdPage extends Page { + /** + * @access public + * @var AdGroupAd[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupAdReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupAd[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("AdGroupAdService", FALSE)) { +/** + * AdGroupAdService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupAdService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupAdServiceGetResponse", + "get" => "AdGroupAdServiceGet", + "mutate" => "AdGroupAdServiceMutate", + "mutateResponse" => "AdGroupAdServiceMutateResponse", + "mutateCallToAction" => "AdGroupAdServiceMutateCallToAction", + "search" => "AdGroupAdServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Ad" => "Ad", + "AdError" => "AdError", + "ApiError" => "ApiError", + "AdGroupAd" => "AdGroupAd", + "AdGroupAdCountLimitExceeded" => "AdGroupAdCountLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdGroupAdError" => "AdGroupAdError", + "AdGroupAdExperimentData" => "AdGroupAdExperimentData", + "AdGroupAdOperation" => "AdGroupAdOperation", + "Operation" => "Operation", + "AdGroupAdPage" => "AdGroupAdPage", + "Page" => "Page", + "AdGroupAdReturnValue" => "AdGroupAdReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdUnionId" => "AdUnionId", + "AdxError" => "AdxError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Audio" => "Audio", + "Media" => "Media", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DeprecatedAd" => "DeprecatedAd", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "ExemptionRequest" => "ExemptionRequest", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "IdError" => "IdError", + "Image" => "Image", + "ImageAd" => "ImageAd", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "MobileAd" => "MobileAd", + "MobileImageAd" => "MobileImageAd", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "PolicyViolationError" => "PolicyViolationError", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "ProductAd" => "ProductAd", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "RichMediaAd" => "RichMediaAd", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TempAdUnionId" => "TempAdUnionId", + "TemplateAd" => "TemplateAd", + "TemplateElement" => "TemplateElement", + "TemplateElementField" => "TemplateElementField", + "TextAd" => "TextAd", + "ThirdPartyRedirectAd" => "ThirdPartyRedirectAd", + "Video" => "Video", + "DynamicSearchAd" => "DynamicSearchAd", + "AdError.Reason" => "AdErrorReason", + "AdGroupAd.ApprovalStatus" => "AdGroupAdApprovalStatus", + "AdGroupAd.Status" => "AdGroupAdStatus", + "AdGroupAdError.Reason" => "AdGroupAdErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DeprecatedAd.Type" => "DeprecatedAdType", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MarkupLanguageType" => "MarkupLanguageType", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RichMediaAd.AdAttribute" => "RichMediaAdAdAttribute", + "RichMediaAd.RichMediaAdType" => "RichMediaAdRichMediaAdType", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TemplateElementField.Type" => "TemplateElementFieldType", + "ThirdPartyRedirectAd.ExpandingDirection" => "ThirdPartyRedirectAdExpandingDirection", + "VideoType" => "VideoType", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupAdService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupAdService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupAdService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds. + * Deleted AdGroupAds are not returned by default. + * + * @param serviceSelector The selector specifying the {@link AdGroupAd}s to return. + * @return The page containing the AdGroupAds that meet the criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new AdGroupAdServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations (ie. add, set, remove): + *

    Add - Creates a new {@linkplain AdGroupAd ad group ad}. The + * {@code adGroupId} must + * reference an existing ad group. The child {@code Ad} must be sufficiently + * specified by constructing a concrete ad type (such as {@code TextAd}) + * and setting its fields accordingly.

    + *

    Set - Updates an ad group ad. Except for {@code status}, + * ad group ad fields are not mutable. Status updates are + * straightforward - the status of the ad group ad is updated as + * specified. If any other field has changed, it will be ignored. If + * you want to change any of the fields other than status, you must + * make a new ad and then delete the old one.

    + *

    Remove - Removes the link between the specified AdGroup and + * Ad.

    + * @param operations The operations to apply. + * @return A list of AdGroupAds where each entry in the list is the result of + * applying the operation in the input list with the same index. For an + * add/set operation, the return AdGroupAd will be what is saved to the db. + * In the case of the remove operation, the return AdGroupAd will simply be + * an AdGroupAd containing an Ad with the id set to the Ad being deleted from + * the AdGroup. + */ + public function mutate($operations) { + $arg = new AdGroupAdServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupAds based on the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of AdGroupAds. + * @throws ApiException if problems occur while parsing the query or fetching AdGroupAds. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupBidModifierService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupBidModifierService.php new file mode 100755 index 000000000..a6321c0b3 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupBidModifierService.php @@ -0,0 +1,3035 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdGroupBidModifier", FALSE)) { +/** + * Represents an adgroup level bid modifier override for campaign level criterion + * bid modifier values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifier { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var tnsBidModifierSource + */ + public $bidModifierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifier"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $criterion = NULL, $bidModifier = NULL, $bidModifierSource = NULL) { + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->bidModifierSource = $bidModifierSource; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidModifierSource", FALSE)) { +/** + * Enumerates possible sources for bid modifier. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidModifierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidModifierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupBidModifierServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets ad group level criterion bid modifiers. + * + * @param selector The selector specifying the {@link AdGroupBidModifier}s to return. + * @return A list of ad group bid modifiers. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdGroupBidModifierServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierServiceGetResponse { + /** + * @access public + * @var AdGroupBidModifierPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupBidModifierServiceMutate", FALSE)) { +/** + * 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, REMOVE, SET. + * + * + * + * Adds, removes or updates ad group bid modifier overrides. + * + * @param operations The operations to apply. + * @return The added ad group bid modifier overrides. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierServiceMutate { + /** + * @access public + * @var AdGroupBidModifierOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupBidModifierServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierServiceMutateResponse { + /** + * @access public + * @var AdGroupBidModifierReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AdGroupBidModifierOperation", FALSE)) { +/** + * Operation used to create or mutate a AdGroupBidModifier. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierOperation extends Operation { + /** + * @access public + * @var AdGroupBidModifier + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupBidModifierPage", FALSE)) { +/** + * Contains a subset of adgroup bid modifiers resulting from a call to + * {@link AdGroupBidModifierService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierPage extends Page { + /** + * @access public + * @var AdGroupBidModifier[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidModifierReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupBidModifierService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupBidModifier[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdGroupBidModifierService", FALSE)) { +/** + * AdGroupBidModifierService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupBidModifierService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupBidModifierServiceGetResponse", + "get" => "AdGroupBidModifierServiceGet", + "mutate" => "AdGroupBidModifierServiceMutate", + "mutateResponse" => "AdGroupBidModifierServiceMutateResponse", + "mutateCallToAction" => "AdGroupBidModifierServiceMutateCallToAction", + "search" => "AdGroupBidModifierServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CriterionError" => "CriterionError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Platform" => "Platform", + "Criterion" => "Criterion", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AdGroupBidModifier" => "AdGroupBidModifier", + "AdGroupBidModifierOperation" => "AdGroupBidModifierOperation", + "Operation" => "Operation", + "AdGroupBidModifierPage" => "AdGroupBidModifierPage", + "Page" => "Page", + "AdGroupBidModifierReturnValue" => "AdGroupBidModifierReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BidModifierSource" => "BidModifierSource", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupBidModifierService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupBidModifierService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupBidModifierService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets ad group level criterion bid modifiers. + * + * @param selector The selector specifying the {@link AdGroupBidModifier}s to return. + * @return A list of ad group bid modifiers. + * @throws ApiException when there is at least one error with the request. + */ + public function get($selector) { + $arg = new AdGroupBidModifierServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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, REMOVE, SET. + * + * + * + * Adds, removes or updates ad group bid modifier overrides. + * + * @param operations The operations to apply. + * @return The added ad group bid modifier overrides. + * @throws ApiException when there is at least one error with the request. + */ + public function mutate($operations) { + $arg = new AdGroupBidModifierServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupCriterionService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupCriterionService.php new file mode 100755 index 000000000..9411d40fe --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupCriterionService.php @@ -0,0 +1,7201 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QualityInfo", FALSE)) { +/** + * Container for criterion quality information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QualityInfo { + /** + * @access public + * @var boolean + */ + public $isKeywordAdRelevanceAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageQualityAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageLatencyAcceptable; + + /** + * @access public + * @var integer + */ + public $qualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QualityInfo"; + } + + public function __construct($isKeywordAdRelevanceAcceptable = NULL, $isLandingPageQualityAcceptable = NULL, $isLandingPageLatencyAcceptable = NULL, $qualityScore = NULL) { + $this->isKeywordAdRelevanceAcceptable = $isKeywordAdRelevanceAcceptable; + $this->isLandingPageQualityAcceptable = $isLandingPageQualityAcceptable; + $this->isLandingPageLatencyAcceptable = $isLandingPageLatencyAcceptable; + $this->qualityScore = $qualityScore; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +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}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * Bid multiplier used to modify the bid of a criterion while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var string + */ + public $AdGroupCriterionExperimentBidMultiplierType; + + private $_parameterMap = array ( + "AdGroupCriterionExperimentBidMultiplier.Type" => "AdGroupCriterionExperimentBidMultiplierType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($AdGroupCriterionExperimentBidMultiplierType = NULL) { + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("BiddableAdGroupCriterionExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this {@link BiddableAdGroupCriterion}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddableAdGroupCriterionExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupCriterionExperimentBidMultiplier + */ + public $experimentBidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterionExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultiplier = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultiplier = $experimentBidMultiplier; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
      + *
    • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
    • + *
    + * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * For more information on flexible bidding, visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdGroupCriterion", FALSE)) { +/** + * Represents a criterion in an ad group, used with AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterion { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsCriterionUse + */ + public $criterionUse; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $AdGroupCriterionType; + + private $_parameterMap = array ( + "AdGroupCriterion.Type" => "AdGroupCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApprovalStatus", FALSE)) { +/** + * Approval status for the criterion. + * Note: there are more states involved but we only expose two to users. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUse", FALSE)) { +/** + * The way a criterion is used - biddable or negative. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUse { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUse"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MultiplierSource", FALSE)) { +/** + * Denotes whether the bid multiplier is derived from the adgroup + * or the criterion + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MultiplierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MultiplierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SystemServingStatus", FALSE)) { +/** + * Reported by system to reflect the criterion's serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SystemServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SystemServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserStatus", FALSE)) { +/** + * Specified by user to pause or unpause a criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets adgroup criteria. + * + * @param serviceSelector filters the adgroup criteria to be returned. + * @return a page (subset) view of the criteria selected + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionServiceGetResponse { + /** + * @access public + * @var AdGroupCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, removes or updates adgroup criteria. + * + * @param operations operations to do + * during checks on keywords to be added. + * @return added and updated adgroup criteria (without optional parts) + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionServiceMutate { + /** + * @access public + * @var AdGroupCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionServiceMutateResponse { + /** + * @access public + * @var AdGroupCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of AdGroupCriterion that match the query. + * + * @param query The SQL-like AWQL query string + * @returns A list of AdGroupCriterion + * @throws ApiException when the query is invalid or there are errors processing the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var AdGroupCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + 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("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NegativeAdGroupCriterion", FALSE)) { +/** + * A negative criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeAdGroupCriterion extends AdGroupCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeAdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCPCAdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * AdGroupCriterion level bid multiplier used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPCAdGroupCriterionExperimentBidMultiplier extends AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var tnsMultiplierSource + */ + public $multiplierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($maxCpcMultiplier = NULL, $multiplierSource = NULL, $AdGroupCriterionExperimentBidMultiplierType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->multiplierSource = $multiplierSource; + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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("BiddableAdGroupCriterion", FALSE)) { +/** + * A biddable (positive) criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddableAdGroupCriterion extends AdGroupCriterion { + /** + * @access public + * @var tnsUserStatus + */ + public $userStatus; + + /** + * @access public + * @var tnsSystemServingStatus + */ + public $systemServingStatus; + + /** + * @access public + * @var tnsApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BiddableAdGroupCriterionExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Bid + */ + public $firstPageCpc; + + /** + * @access public + * @var Bid + */ + public $topOfPageCpc; + + /** + * @access public + * @var QualityInfo + */ + public $qualityInfo; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterion"; + } + + public function __construct($userStatus = NULL, $systemServingStatus = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $destinationUrl = NULL, $experimentData = NULL, $firstPageCpc = NULL, $topOfPageCpc = NULL, $qualityInfo = NULL, $biddingStrategyConfiguration = NULL, $bidModifier = NULL, $adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->userStatus = $userStatus; + $this->systemServingStatus = $systemServingStatus; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->destinationUrl = $destinationUrl; + $this->experimentData = $experimentData; + $this->firstPageCpc = $firstPageCpc; + $this->topOfPageCpc = $topOfPageCpc; + $this->qualityInfo = $qualityInfo; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->bidModifier = $bidModifier; + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("AdGroupCriterionOperation", FALSE)) { +/** + * Operation (add, remove and set) on adgroup criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionOperation extends Operation { + /** + * @access public + * @var AdGroupCriterion + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupCriterionPage", FALSE)) { +/** + * Contains a subset of adgroup criteria resulting from a + * {@link AdGroupCriterionService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionPage extends Page { + /** + * @access public + * @var AdGroupCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupCriterionReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupCriterion[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupCriterionService", FALSE)) { +/** + * AdGroupCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupCriterionServiceGetResponse", + "get" => "AdGroupCriterionServiceGet", + "mutate" => "AdGroupCriterionServiceMutate", + "mutateResponse" => "AdGroupCriterionServiceMutateResponse", + "mutateCallToAction" => "AdGroupCriterionServiceMutateCallToAction", + "search" => "AdGroupCriterionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupCriterionError" => "AdGroupCriterionError", + "ApiError" => "ApiError", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdxError" => "AdxError", + "AgeRange" => "AgeRange", + "Criterion" => "Criterion", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "CriterionError" => "CriterionError", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "Gender" => "Gender", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NegativeAdGroupCriterion" => "NegativeAdGroupCriterion", + "AdGroupCriterion" => "AdGroupCriterion", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Placement" => "Placement", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "ProductConditionOperand" => "ProductConditionOperand", + "QualityInfo" => "QualityInfo", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "ExemptionRequest" => "ExemptionRequest", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "ProductCondition" => "ProductCondition", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "ManualCPCAdGroupCriterionExperimentBidMultiplier" => "ManualCPCAdGroupCriterionExperimentBidMultiplier", + "AdGroupCriterionExperimentBidMultiplier" => "AdGroupCriterionExperimentBidMultiplier", + "Product" => "Product", + "Selector" => "Selector", + "BiddableAdGroupCriterionExperimentData" => "BiddableAdGroupCriterionExperimentData", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "BiddableAdGroupCriterion" => "BiddableAdGroupCriterion", + "AdGroupCriterionOperation" => "AdGroupCriterionOperation", + "Operation" => "Operation", + "AdGroupCriterionPage" => "AdGroupCriterionPage", + "Page" => "Page", + "AdGroupCriterionReturnValue" => "AdGroupCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "ApprovalStatus" => "ApprovalStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "CriterionUse" => "CriterionUse", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "MultiplierSource" => "MultiplierSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "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", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SystemServingStatus" => "SystemServingStatus", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "UserStatus" => "UserStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupCriterionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets adgroup criteria. + * + * @param serviceSelector filters the adgroup criteria to be returned. + * @return a page (subset) view of the criteria selected + * @throws ApiException when there is at least one error with the request + */ + public function get($serviceSelector) { + $arg = new AdGroupCriterionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, removes or updates adgroup criteria. + * + * @param operations operations to do + * during checks on keywords to be added. + * @return added and updated adgroup criteria (without optional parts) + * @throws ApiException when there is at least one error with the request + */ + public function mutate($operations) { + $arg = new AdGroupCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of AdGroupCriterion that match the query. + * + * @param query The SQL-like AWQL query string + * @returns A list of AdGroupCriterion + * @throws ApiException when the query is invalid or there are errors processing the request. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupFeedService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupFeedService.php new file mode 100755 index 000000000..b20acbde3 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupFeedService.php @@ -0,0 +1,3622 @@ +feedId = $feedId; + $this->adGroupId = $adGroupId; + $this->matchingFunction = $matchingFunction; + $this->placeholderTypes = $placeholderTypes; + $this->status = $status; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedFunction", FALSE)) { +/** + * Represents a function where its operator is applied to its argument operands + * resulting in a return value. It has the form + * (Operand... Operator Operand...). The type of the return value depends on + * the operator being applied and the type of the operands. + * + *

    Operands per function is limited to 20.

    + * + *

    Here is a code example:

    + * + *
    
    + * 
    + * // For example "feed_attribute == 30" can be represented as:
    + * FeedId feedId = (FeedId of Feed associated with feed_attribute)
    + * FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
    + * Function function = new Function();
    + * function.setLhsOperand(
    + * Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
    + * function.setOperator(Operator.IN);
    + * function.setRhsOperand(
    + * Arrays.asList((Operand) new ConstantOperand(30L)));
    + * 
    + * // Another example matching on multiple values:
    + * "feed_item_id IN (10, 20, 30)" can be represented as:
    + * 
    + * Function function = new Function();
    + * function.setLhsOperand(
    + * Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
    + * function.setOperator(Operator.IN);
    + * function.setRhsOperand(Arrays.asList(
    + * (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
    + * 
    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedFunction { + /** + * @access public + * @var tnsFunctionOperator + */ + public $operator; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $lhsOperand; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $rhsOperand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function"; + } + + public function __construct($operator = NULL, $lhsOperand = NULL, $rhsOperand = NULL) { + $this->operator = $operator; + $this->lhsOperand = $lhsOperand; + $this->rhsOperand = $rhsOperand; + } +}} + +if (!class_exists("FunctionError", FALSE)) { +/** + * Errors that indicate issues with the function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionError extends ApiError { + /** + * @access public + * @var tnsFunctionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("FunctionArgumentOperand", FALSE)) { +/** + * An operand that can be used in a function expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionArgumentOperand { + /** + * @access public + * @var string + */ + public $FunctionArgumentOperandType; + + private $_parameterMap = array ( + "FunctionArgumentOperand.Type" => "FunctionArgumentOperandType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionArgumentOperand"; + } + + public function __construct($FunctionArgumentOperandType = NULL) { + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RequestContextOperand", FALSE)) { +/** + * An operand in a function referring to a value in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestContextOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsRequestContextOperandContextType + */ + public $contextType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand"; + } + + public function __construct($contextType = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->contextType = $contextType; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("AdGroupFeedStatus", FALSE)) { +/** + * Status of the AdGroupFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupFeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConstantOperandConstantType", FALSE)) { +/** + * The types of constant operands. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConstantOperandConstantType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand.ConstantType"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionOperator", FALSE)) { +/** + * Operators that can be used in functions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestContextOperandContextType", FALSE)) { +/** + * Campaign Id in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestContextOperandContextType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand.ContextType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupFeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupFeeds that meet the selector criteria. + * + * @param selector Determines which AdGroupFeeds to return. If empty all + * adgroup feeds are returned. + * @return The list of AdgroupFeeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AdGroupFeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedServiceGetResponse { + /** + * @access public + * @var AdGroupFeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupFeedServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Adds, updates or removes AdGroupFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedServiceMutate { + /** + * @access public + * @var AdGroupFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedServiceMutateResponse { + /** + * @access public + * @var AdGroupFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupFeedError", FALSE)) { +/** + * Represents an error for the AdGroupFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedError extends ApiError { + /** + * @access public + * @var tnsAdGroupFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedError"; + } + + 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("AdGroupFeedOperation", FALSE)) { +/** + * Operation used to create or mutate an AdGroupFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedOperation extends Operation { + /** + * @access public + * @var AdGroupFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupFeedReturnValue", FALSE)) { +/** + * The result of a call to AdGroupFeedService#mutate. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroupFeed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ConstantOperand", FALSE)) { +/** + * A constant operand in a matching function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConstantOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsConstantOperandConstantType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $longValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand"; + } + + public function __construct($type = NULL, $longValue = NULL, $booleanValue = NULL, $doubleValue = NULL, $stringValue = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->type = $type; + $this->longValue = $longValue; + $this->booleanValue = $booleanValue; + $this->doubleValue = $doubleValue; + $this->stringValue = $stringValue; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FeedAttributeOperand", FALSE)) { +/** + * Represents a feed attribute reference to use in a function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedAttributeOperand extends FunctionArgumentOperand { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttributeOperand"; + } + + public function __construct($feedId = NULL, $feedAttributeId = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->feedId = $feedId; + $this->feedAttributeId = $feedAttributeId; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FunctionOperand", FALSE)) { +/** + * A function operand in a matching function. + * Used to represent nested functions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionOperand extends FunctionArgumentOperand { + /** + * @access public + * @var Function + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionOperand"; + } + + public function __construct($value = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->value = $value; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupFeedPage", FALSE)) { +/** + * The result of a call to AdGroupFeedService#get. Contains a list of + * associations between ad groups and feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupFeedPage extends NullStatsPage { + /** + * @access public + * @var AdGroupFeed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupFeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupFeedService", FALSE)) { +/** + * AdGroupFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupFeedServiceGetResponse", + "get" => "AdGroupFeedServiceGet", + "mutate" => "AdGroupFeedServiceMutate", + "mutateResponse" => "AdGroupFeedServiceMutateResponse", + "mutateCallToAction" => "AdGroupFeedServiceMutateCallToAction", + "search" => "AdGroupFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupFeed" => "AdGroupFeed", + "AdGroupFeedError" => "AdGroupFeedError", + "ApiError" => "ApiError", + "AdGroupFeedOperation" => "AdGroupFeedOperation", + "Operation" => "Operation", + "AdGroupFeedPage" => "AdGroupFeedPage", + "NullStatsPage" => "NullStatsPage", + "AdGroupFeedReturnValue" => "AdGroupFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ConstantOperand" => "ConstantOperand", + "FunctionArgumentOperand" => "FunctionArgumentOperand", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttributeOperand" => "FeedAttributeOperand", + "FunctionError" => "FunctionError", + "FunctionOperand" => "FunctionOperand", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestContextOperand" => "RequestContextOperand", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AdGroupFeed.Status" => "AdGroupFeedStatus", + "AdGroupFeedError.Reason" => "AdGroupFeedErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "ConstantOperand.ConstantType" => "ConstantOperandConstantType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Function.Operator" => "FunctionOperator", + "FunctionError.Reason" => "FunctionErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestContextOperand.ContextType" => "RequestContextOperandContextType", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupFeedService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of AdGroupFeeds that meet the selector criteria. + * + * @param selector Determines which AdGroupFeeds to return. If empty all + * adgroup feeds are returned. + * @return The list of AdgroupFeeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new AdGroupFeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Adds, updates or removes AdGroupFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new AdGroupFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdGroupService.php b/src/Google/Api/Ads/AdWords/v201309/AdGroupService.php new file mode 100755 index 000000000..03147e98f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdGroupService.php @@ -0,0 +1,5814 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TargetingSettingDetail", FALSE)) { +/** + * Specifies if criteria of this type group should be used to restrict + * targeting, or if ads can serve anywhere and criteria are only used in + * determining the bid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingSettingDetail { + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $criterionTypeGroup; + + /** + * @access public + * @var boolean + */ + public $targetAll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSettingDetail"; + } + + public function __construct($criterionTypeGroup = NULL, $targetAll = NULL) { + $this->criterionTypeGroup = $criterionTypeGroup; + $this->targetAll = $targetAll; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdGroupExperimentBidMultipliers", FALSE)) { +/** + * Bid multiplier used to modify the bid of an adgroup while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupExperimentBidMultipliers { + /** + * @access public + * @var string + */ + public $AdGroupExperimentBidMultipliersType; + + private $_parameterMap = array ( + "AdGroupExperimentBidMultipliers.Type" => "AdGroupExperimentBidMultipliersType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentBidMultipliers"; + } + + public function __construct($AdGroupExperimentBidMultipliersType = NULL) { + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this adgroup. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupExperimentBidMultipliers + */ + public $experimentBidMultipliers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultipliers = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultipliers = $experimentBidMultipliers; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
      + *
    • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
    • + *
    + * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * For more information on flexible bidding, visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("AdGroup", FALSE)) { +/** + * Represents an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroup { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsAdGroupStatus + */ + public $status; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var AdGroupExperimentData + */ + public $experimentData; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $contentBidCriterionTypeGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup"; + } + + public function __construct($id = NULL, $campaignId = NULL, $campaignName = NULL, $name = NULL, $status = NULL, $settings = NULL, $experimentData = NULL, $forwardCompatibilityMap = NULL, $biddingStrategyConfiguration = NULL, $contentBidCriterionTypeGroup = NULL) { + $this->id = $id; + $this->campaignId = $campaignId; + $this->campaignName = $campaignName; + $this->name = $name; + $this->status = $status; + $this->settings = $settings; + $this->experimentData = $experimentData; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->contentBidCriterionTypeGroup = $contentBidCriterionTypeGroup; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupServiceErrorReason", FALSE)) { +/** + * The reasons for the adgroup service error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupStatus", FALSE)) { +/** + * Status of this ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionTypeGroup", FALSE)) { +/** + * The list of groupings of criteria types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionTypeGroup { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionTypeGroup"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of all the ad groups specified by the selector + * from the target customer's account. + * + * @param serviceSelector The selector specifying the {@link AdGroup}s to return. + * @return List of adgroups identified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdGroupServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceGetResponse { + /** + * @access public + * @var AdGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, updates, or deletes ad groups. + *

    Note: {@link AdGroupOperation} does not support the + * {@code REMOVE} operator. To delete an ad group, set its + * {@link AdGroup#status status} to {@code DELETED}.

    + * + * @param operations List of unique operations. The same ad group cannot be + * specified in more than one operation. + * @return The updated adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceMutate { + /** + * @access public + * @var AdGroupOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdGroupServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceMutateResponse { + /** + * @access public + * @var AdGroupReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of ad groups that match the query. + * + * @param query The SQL-like AWQL query string + * @return A list of adgroups + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var AdGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupServiceError", FALSE)) { +/** + * Represents possible error codes in AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceError extends ApiError { + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError"; + } + + public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->adGroupId = $adGroupId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExplorerAutoOptimizerSetting", FALSE)) { +/** + * Settings for Explorer (GDN Auto Optimizer). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExplorerAutoOptimizerSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExplorerAutoOptimizerSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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("QuotaError", FALSE)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TargetingSetting", FALSE)) { +/** + * Setting for targeting related features. + * This is applicable at Campaign and AdGroup level. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingSetting extends Setting { + /** + * @access public + * @var TargetingSettingDetail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSetting"; + } + + public function __construct($details = NULL, $SettingType = NULL) { + parent::__construct(); + $this->details = $details; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCPCAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPCAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var BidMultiplier + */ + public $maxContentCpcMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpcMultiplier = NULL, $maxContentCpcMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->maxContentCpcMultiplier = $maxContentCpcMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCPMAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPM bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPMAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpmMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPMAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpmMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpmMultiplier = $maxCpmMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupOperation", FALSE)) { +/** + * AdGroup operations for adding/updating/removing adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupOperation extends Operation { + /** + * @access public + * @var AdGroup + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupPage", FALSE)) { +/** + * Contains a subset of adgroup resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.adgroup.AdGroupService#get} call + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupPage extends Page { + /** + * @access public + * @var AdGroup[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupReturnValue", FALSE)) { +/** + * A container for return values from the AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupReturnValue extends ListReturnValue { + /** + * @access public + * @var AdGroup[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupService", FALSE)) { +/** + * AdGroupService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdGroupService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdGroupServiceGetResponse", + "get" => "AdGroupServiceGet", + "mutate" => "AdGroupServiceMutate", + "mutateResponse" => "AdGroupServiceMutateResponse", + "mutateCallToAction" => "AdGroupServiceMutateCallToAction", + "search" => "AdGroupServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupServiceError" => "AdGroupServiceError", + "ApiError" => "ApiError", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "ExplorerAutoOptimizerSetting" => "ExplorerAutoOptimizerSetting", + "Setting" => "Setting", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetingSettingDetail" => "TargetingSettingDetail", + "TargetingSetting" => "TargetingSetting", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "ManualCPCAdGroupExperimentBidMultipliers" => "ManualCPCAdGroupExperimentBidMultipliers", + "AdGroupExperimentBidMultipliers" => "AdGroupExperimentBidMultipliers", + "ManualCPMAdGroupExperimentBidMultipliers" => "ManualCPMAdGroupExperimentBidMultipliers", + "Selector" => "Selector", + "AdGroupExperimentData" => "AdGroupExperimentData", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "AdGroup" => "AdGroup", + "AdGroupOperation" => "AdGroupOperation", + "Operation" => "Operation", + "AdGroupPage" => "AdGroupPage", + "Page" => "Page", + "AdGroupReturnValue" => "AdGroupReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdGroupServiceError.Reason" => "AdGroupServiceErrorReason", + "AdGroup.Status" => "AdGroupStatus", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "CriterionTypeGroup" => "CriterionTypeGroup", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdGroupService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdGroupService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of all the ad groups specified by the selector + * from the target customer's account. + * + * @param serviceSelector The selector specifying the {@link AdGroup}s to return. + * @return List of adgroups identified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new AdGroupServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, updates, or deletes ad groups. + *

    Note: {@link AdGroupOperation} does not support the + * {@code REMOVE} operator. To delete an ad group, set its + * {@link AdGroup#status status} to {@code DELETED}.

    + * + * @param operations List of unique operations. The same ad group cannot be + * specified in more than one operation. + * @return The updated adgroups. + */ + public function mutate($operations) { + $arg = new AdGroupServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of ad groups that match the query. + * + * @param query The SQL-like AWQL query string + * @return A list of adgroups + * @throws ApiException + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdParamService.php b/src/Google/Api/Ads/AdWords/v201309/AdParamService.php new file mode 100755 index 000000000..97c2ee308 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdParamService.php @@ -0,0 +1,2978 @@ +AdParam objects + * (one for each value of {@link #paramIndex}) per ad group + * Keyword + * criterion. + *

    When setting or removing an AdParam, it is uniquely + * identified by the combination of these three fields:

    + *
      + *
    • adGroupId
    • + *
    • criterionId
    • + *
    • paramIndex
    • + *
    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParam { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * @access public + * @var string + */ + public $insertionText; + + /** + * @access public + * @var integer + */ + public $paramIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParam"; + } + + public function __construct($adGroupId = NULL, $criterionId = NULL, $insertionText = NULL, $paramIndex = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionId = $criterionId; + $this->insertionText = $insertionText; + $this->paramIndex = $paramIndex; + } +}} + +if (!class_exists("AdParamPage", FALSE)) { +/** + * Represents a page of AdParams returned by the {@link AdParamService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamPage { + /** + * @access public + * @var AdParam[] + */ + public $entries; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL) { + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdParamErrorReason", FALSE)) { +/** + * The same ad param cannot be specified in multiple operations + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdParamServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the ad parameters that match the criteria specified in the + * selector. + * + * @param serviceSelector Specifies which ad parameters to return. + * @return A list of ad parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdParamServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamServiceGetResponse { + /** + * @access public + * @var AdParamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdParamServiceMutate", FALSE)) { +/** + * 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: SET, REMOVE. + * + * + * + * Sets and removes ad parameters. + *

    Note: {@code ADD} is not supported. Use {@code SET} + * for new ad parameters.

    + * + *
      + *
    • {@code SET}: Creates or updates an ad parameter, setting the new + * parameterized value for the given ad group / keyword pair. + *
    • {@code REMOVE}: Removes an ad parameter. The default-value + * specified in the ad text will be used.
    • + *
    + * + * @param operations The operations to perform. + * @return A list of ad parameters, where each entry in the list is the + * result of applying the operation in the input list with the same index. + * For a {@code SET} operation, the returned ad parameter will contain the + * updated values. For a {@code REMOVE} operation, the returned ad parameter + * will simply be the ad parameter that was removed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamServiceMutate { + /** + * @access public + * @var AdParamOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdParamServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamServiceMutateResponse { + /** + * @access public + * @var AdParam[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdParamError", FALSE)) { +/** + * Errors for AdParamService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamError extends ApiError { + /** + * @access public + * @var tnsAdParamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamError"; + } + + 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("AdParamOperation", FALSE)) { +/** + * Represents an operation on an {@link AdParam}. The supported operators + * are {@code SET} and {@code REMOVE}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamOperation extends Operation { + /** + * @access public + * @var AdParam + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AdParamPolicyError", FALSE)) { +/** + * Policy violation for an AdParam. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdParamPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdParamPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdParamService", FALSE)) { +/** + * AdParamService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdParamService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdParamServiceGetResponse", + "get" => "AdParamServiceGet", + "mutate" => "AdParamServiceMutate", + "mutateResponse" => "AdParamServiceMutateResponse", + "mutateCallToAction" => "AdParamServiceMutateCallToAction", + "search" => "AdParamServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdParam" => "AdParam", + "AdParamError" => "AdParamError", + "ApiError" => "ApiError", + "AdParamOperation" => "AdParamOperation", + "Operation" => "Operation", + "AdParamPage" => "AdParamPage", + "AdParamPolicyError" => "AdParamPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AdParamError.Reason" => "AdParamErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/AdParamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdParamService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdParamService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the ad parameters that match the criteria specified in the + * selector. + * + * @param serviceSelector Specifies which ad parameters to return. + * @return A list of ad parameters. + */ + public function get($serviceSelector) { + $arg = new AdParamServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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: SET, REMOVE. + * + * + * + * Sets and removes ad parameters. + *

    Note: {@code ADD} is not supported. Use {@code SET} + * for new ad parameters.

    + * + *
      + *
    • {@code SET}: Creates or updates an ad parameter, setting the new + * parameterized value for the given ad group / keyword pair. + *
    • {@code REMOVE}: Removes an ad parameter. The default-value + * specified in the ad text will be used.
    • + *
    + * + * @param operations The operations to perform. + * @return A list of ad parameters, where each entry in the list is the + * result of applying the operation in the input list with the same index. + * For a {@code SET} operation, the returned ad parameter will contain the + * updated values. For a {@code REMOVE} operation, the returned ad parameter + * will simply be the ad parameter that was removed. + */ + public function mutate($operations) { + $arg = new AdParamServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AdwordsUserListService.php b/src/Google/Api/Ads/AdWords/v201309/AdwordsUserListService.php new file mode 100755 index 000000000..604a8001c --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AdwordsUserListService.php @@ -0,0 +1,3616 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

    + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("UserListConversionType", FALSE)) { +/** + * Represents a conversion type used for building remarketing user lists. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListConversionType { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsUserListConversionTypeCategory + */ + public $category; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListConversionType"; + } + + public function __construct($id = NULL, $name = NULL, $category = NULL) { + $this->id = $id; + $this->name = $name; + $this->category = $category; + } +}} + +if (!class_exists("LogicalUserListOperand", FALSE)) { +/** + * An interface for a logical user list operand. A logical user list is a + * combination of logical rules. Each rule is defined as a logical operator and + * a list of operands. Those operands can be of type UserList or UserInterest. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LogicalUserListOperand { + /** + * @access public + * @var UserList + */ + public $UserList; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LogicalUserListOperand"; + } + + public function __construct($UserList = NULL) { + $this->UserList = $UserList; + } +}} + +if (!class_exists("UserList", FALSE)) { +/** + * Represents a UserList object that is sent over the wire. + * This is a list of users an account may target. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserList { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var boolean + */ + public $isReadOnly; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsUserListMembershipStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $integrationCode; + + /** + * @access public + * @var tnsAccessReason + */ + public $accessReason; + + /** + * @access public + * @var tnsAccountUserListStatus + */ + public $accountUserListStatus; + + /** + * @access public + * @var integer + */ + public $membershipLifeSpan; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var tnsSizeRange + */ + public $sizeRange; + + /** + * @access public + * @var integer + */ + public $sizeForSearch; + + /** + * @access public + * @var tnsSizeRange + */ + public $sizeRangeForSearch; + + /** + * @access public + * @var string + */ + public $UserListType; + + private $_parameterMap = array ( + "UserList.Type" => "UserListType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserList"; + } + + public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $sizeForSearch = NULL, $sizeRangeForSearch = NULL, $UserListType = NULL) { + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->sizeForSearch = $sizeForSearch; + $this->sizeRangeForSearch = $sizeRangeForSearch; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("UserListError", FALSE)) { +/** + * Represents possible error codes in UserListService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListError extends ApiError { + /** + * @access public + * @var tnsUserListErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListError"; + } + + 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("UserListLogicalRule", FALSE)) { +/** + * A user list logical rule. A rule has a logical operator (and/or/not) and a + * list of operands that can be user lists or user interests. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListLogicalRule { + /** + * @access public + * @var tnsUserListLogicalRuleOperator + */ + public $operator; + + /** + * @access public + * @var LogicalUserListOperand[] + */ + public $ruleOperands; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListLogicalRule"; + } + + public function __construct($operator = NULL, $ruleOperands = NULL) { + $this->operator = $operator; + $this->ruleOperands = $ruleOperands; + } +}} + +if (!class_exists("UserListOperation", FALSE)) { +/** + * UserList operations for adding/updating UserList entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListOperation extends Operation { + /** + * @access public + * @var UserList + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("UserListPage", FALSE)) { +/** + * Contains a list of user lists resulting from the filtering and paging of the + * {@link UserListService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListPage extends Page { + /** + * @access public + * @var UserList[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("UserListReturnValue", FALSE)) { +/** + * A container for return values from the UserListService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListReturnValue extends ListReturnValue { + /** + * @access public + * @var UserList[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AccessReason", FALSE)) { +/** + * AccessReason in the AccountUserListStatus table. This indicates the way the userlist is + * related to a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AccessReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AccessReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AccountUserListStatus", FALSE)) { +/** + * Status in the AccountUserListStatus table. This indicates if the user list share or + * the licensing of the userlist is still active. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AccountUserListStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AccountUserListStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListConversionTypeCategory", FALSE)) { +/** + * User can create only BOOMERANG_EVENT conversion types. For all other types + * UserListService service will return OTHER. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListConversionTypeCategory { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListConversionType.Category"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeRange", FALSE)) { +/** + * Size range in terms of number of users of a UserList/UserInterest. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeRange { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeRange"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListErrorReason", FALSE)) { +/** + * Creating and updating external remarketing user lists is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListLogicalRuleOperator", FALSE)) { +/** + * And - all of the operands. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListLogicalRuleOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListLogicalRule.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. This status indicates whether a user list + * can accumulate more users and may be targeted to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserListMembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdwordsUserListServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of user lists that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link UserList}s to return. + * @return a list of UserList entities which meet the selector criteria. + * @throws ApiException if problems occurred while fetching UserList information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdwordsUserListServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("AdwordsUserListServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdwordsUserListServiceGetResponse { + /** + * @access public + * @var UserListPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdwordsUserListServiceMutate", FALSE)) { +/** + * The minimum size of this collection is 1. The maximum size of this collection is 10000. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies a list of mutate operations (i.e. add, set): + * + * Add - creates a set of user lists + * Set - updates a set of user lists + * + * @param operations the operations to apply + * @return a list of UserList objects + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdwordsUserListServiceMutate { + /** + * @access public + * @var UserListOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("AdwordsUserListServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdwordsUserListServiceMutateResponse { + /** + * @access public + * @var UserListReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExternalRemarketingUserList", FALSE)) { +/** + * User lists created in the DoubleClick platform that are mapped + * from DoubleClick to AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExternalRemarketingUserList extends UserList { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExternalRemarketingUserList"; + } + + public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $sizeForSearch = NULL, $sizeRangeForSearch = NULL, $UserListType = NULL) { + parent::__construct(); + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->sizeForSearch = $sizeForSearch; + $this->sizeRangeForSearch = $sizeRangeForSearch; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("LogicalUserList", FALSE)) { +/** + * Represents a user list that is a custom combination of user lists and user + * interests. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LogicalUserList extends UserList { + /** + * @access public + * @var UserListLogicalRule[] + */ + public $rules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LogicalUserList"; + } + + public function __construct($rules = NULL, $id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $sizeForSearch = NULL, $sizeRangeForSearch = NULL, $UserListType = NULL) { + parent::__construct(); + $this->rules = $rules; + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->sizeForSearch = $sizeForSearch; + $this->sizeRangeForSearch = $sizeRangeForSearch; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("BasicUserList", FALSE)) { +/** + * User list targeting as a collection of conversion types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BasicUserList extends UserList { + /** + * @access public + * @var UserListConversionType[] + */ + public $conversionTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/rm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BasicUserList"; + } + + public function __construct($conversionTypes = NULL, $id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $integrationCode = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $sizeForSearch = NULL, $sizeRangeForSearch = NULL, $UserListType = NULL) { + parent::__construct(); + $this->conversionTypes = $conversionTypes; + $this->id = $id; + $this->isReadOnly = $isReadOnly; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->integrationCode = $integrationCode; + $this->accessReason = $accessReason; + $this->accountUserListStatus = $accountUserListStatus; + $this->membershipLifeSpan = $membershipLifeSpan; + $this->size = $size; + $this->sizeRange = $sizeRange; + $this->sizeForSearch = $sizeForSearch; + $this->sizeRangeForSearch = $sizeRangeForSearch; + $this->UserListType = $UserListType; + } +}} + +if (!class_exists("AdwordsUserListService", FALSE)) { +/** + * AdwordsUserListService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AdwordsUserListService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AdwordsUserListServiceGetResponse", + "get" => "AdwordsUserListServiceGet", + "mutate" => "AdwordsUserListServiceMutate", + "mutateResponse" => "AdwordsUserListServiceMutateResponse", + "mutateCallToAction" => "AdwordsUserListServiceMutateCallToAction", + "search" => "AdwordsUserListServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "ListReturnValue" => "ListReturnValue", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "ExternalRemarketingUserList" => "ExternalRemarketingUserList", + "UserList" => "UserList", + "CollectionSizeError" => "CollectionSizeError", + "UserListConversionType" => "UserListConversionType", + "LogicalUserList" => "LogicalUserList", + "LogicalUserListOperand" => "LogicalUserListOperand", + "BasicUserList" => "BasicUserList", + "UserListError" => "UserListError", + "UserListLogicalRule" => "UserListLogicalRule", + "UserListOperation" => "UserListOperation", + "UserListPage" => "UserListPage", + "UserListReturnValue" => "UserListReturnValue", + "AccessReason" => "AccessReason", + "AccountUserListStatus" => "AccountUserListStatus", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "UserListConversionType.Category" => "UserListConversionTypeCategory", + "SizeRange" => "SizeRange", + "UserListError.Reason" => "UserListErrorReason", + "UserListLogicalRule.Operator" => "UserListLogicalRuleOperator", + "UserListMembershipStatus" => "UserListMembershipStatus", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/rm/v201309/AdwordsUserListService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdwordsUserListService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdwordsUserListService', 'https://adwords.google.com/api/adwords/rm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of user lists that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link UserList}s to return. + * @return a list of UserList entities which meet the selector criteria. + * @throws ApiException if problems occurred while fetching UserList information. + */ + public function get($serviceSelector) { + $arg = new AdwordsUserListServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * The minimum size of this collection is 1. The maximum size of this collection is 10000. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Applies a list of mutate operations (i.e. add, set): + * + * Add - creates a set of user lists + * Set - updates a set of user lists + * + * @param operations the operations to apply + * @return a list of UserList objects + */ + public function mutate($operations) { + $arg = new AdwordsUserListServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/AlertService.php b/src/Google/Api/Ads/AdWords/v201309/AlertService.php new file mode 100755 index 000000000..1395960ec --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/AlertService.php @@ -0,0 +1,2460 @@ +startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

    + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertError", FALSE)) { +/** + * Errors that can occur when using {@link AlertService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertError extends ApiError { + /** + * @access public + * @var tnsAlertErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertError"; + } + + 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("AlertQuery", FALSE)) { +/** + * Querying criteria for getting alerts. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertQuery { + /** + * @access public + * @var tnsClientSpec + */ + public $clientSpec; + + /** + * @access public + * @var tnsFilterSpec + */ + public $filterSpec; + + /** + * @access public + * @var tnsAlertType[] + */ + public $types; + + /** + * @access public + * @var tnsAlertSeverity[] + */ + public $severities; + + /** + * @access public + * @var tnsTriggerTimeSpec + */ + public $triggerTimeSpec; + + /** + * @access public + * @var string + */ + public $triggerTime; + + /** + * @access public + * @var integer[] + */ + public $clientCustomerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertQuery"; + } + + public function __construct($clientSpec = NULL, $filterSpec = NULL, $types = NULL, $severities = NULL, $triggerTimeSpec = NULL, $triggerTime = NULL, $clientCustomerIds = NULL) { + $this->clientSpec = $clientSpec; + $this->filterSpec = $filterSpec; + $this->types = $types; + $this->severities = $severities; + $this->triggerTimeSpec = $triggerTimeSpec; + $this->triggerTime = $triggerTime; + $this->clientCustomerIds = $clientCustomerIds; + } +}} + +if (!class_exists("Detail", FALSE)) { +/** + * Detail refers to a single event or condition that triggered its owning {@link Alert}. + * Multiple details can cause the same {@code Alert} to occur. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Detail { + /** + * @access public + * @var string + */ + public $triggerTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Detail"; + } + + public function __construct($triggerTime = NULL) { + $this->triggerTime = $triggerTime; + } +}} + +if (!class_exists("Alert", FALSE)) { +/** + * Alert for a single client. Triggering events are grouped by {@link AlertType} into the same alert + * with multiple {@link Details}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Alert { + /** + * @access public + * @var tnsAlertSeverity + */ + public $alertSeverity; + + /** + * @access public + * @var tnsAlertType + */ + public $alertType; + + /** + * @access public + * @var integer + */ + public $clientCustomerId; + + /** + * @access public + * @var Detail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Alert"; + } + + public function __construct($alertSeverity = NULL, $alertType = NULL, $clientCustomerId = NULL, $details = NULL) { + $this->alertSeverity = $alertSeverity; + $this->alertType = $alertType; + $this->clientCustomerId = $clientCustomerId; + $this->details = $details; + } +}} + +if (!class_exists("AlertSelector", FALSE)) { +/** + * Selector for querying for alerts. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertSelector { + /** + * @access public + * @var AlertQuery + */ + public $query; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertSelector"; + } + + public function __construct($query = NULL, $paging = NULL) { + $this->query = $query; + $this->paging = $paging; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AlertErrorReason", FALSE)) { +/** + * The possible reasons for an {@link AlertError} to occur. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertSeverity", FALSE)) { +/** + * Severity of an alert, represented as a "color". + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertSeverity { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertSeverity"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertType", FALSE)) { +/** + * Type of an alert. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientSpec", FALSE)) { +/** + * Specification of which managed accounts a client manager is interested in. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("FilterSpec", FALSE)) { +/** + * Describes how a result set of alerts should be filtered based on the triggering account's + * ability to manage clients. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FilterSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FilterSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("TriggerTimeSpec", FALSE)) { +/** + * Specification of what trigger time alerts should match. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TriggerTimeSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TriggerTimeSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("AlertServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets the list of alerts matching the specified clients and time period. + * + * @param selector selects the alerts for which to search. + * @return a page of alerts. + * @throws ApiException if an error occurs + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertServiceGet { + /** + * @access public + * @var AlertSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("AlertServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertServiceGetResponse { + /** + * @access public + * @var AlertPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AlertPage", FALSE)) { +/** + * Contains a subset of {@link Alert}s resulting from the filtering and paging, + * returned by {@link AlertService#get(AlertSelector)}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AlertPage extends NoStatsPage { + /** + * @access public + * @var Alert[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AlertPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AlertService", FALSE)) { +/** + * AlertService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class AlertService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "AlertServiceGetResponse", + "get" => "AlertServiceGet", + "mutate" => "AlertServiceMutate", + "mutateResponse" => "AlertServiceMutateResponse", + "mutateCallToAction" => "AlertServiceMutateCallToAction", + "search" => "AlertServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotWhitelistedError" => "NotWhitelistedError", + "Paging" => "Paging", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "AlertError" => "AlertError", + "AlertQuery" => "AlertQuery", + "Detail" => "Detail", + "Alert" => "Alert", + "AlertPage" => "AlertPage", + "NoStatsPage" => "NoStatsPage", + "AlertSelector" => "AlertSelector", + "AlertError.Reason" => "AlertErrorReason", + "AlertSeverity" => "AlertSeverity", + "AlertType" => "AlertType", + "ClientSpec" => "ClientSpec", + "FilterSpec" => "FilterSpec", + "TriggerTimeSpec" => "TriggerTimeSpec", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201309/AlertService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AlertService::$classmap; + parent::__construct($wsdl, $options, $user, 'AlertService', 'https://adwords.google.com/api/adwords/mcm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets the list of alerts matching the specified clients and time period. + * + * @param selector selects the alerts for which to search. + * @return a page of alerts. + * @throws ApiException if an error occurs + */ + public function get($selector) { + $arg = new AlertServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/BiddingStrategyService.php b/src/Google/Api/Ads/AdWords/v201309/BiddingStrategyService.php new file mode 100755 index 000000000..566acbfe7 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/BiddingStrategyService.php @@ -0,0 +1,4111 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("SharedBiddingStrategy", FALSE)) { +/** + * Bidding strategies store shared bidding configuration data and are account-level objects. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedBiddingStrategy { + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSharedBiddingStrategyBiddingStrategyStatus + */ + public $status; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedBiddingStrategy"; + } + + public function __construct($biddingScheme = NULL, $id = NULL, $name = NULL, $status = NULL, $type = NULL) { + $this->biddingScheme = $biddingScheme; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->type = $type; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedBiddingStrategyBiddingStrategyStatus", FALSE)) { +/** + * Status of the bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedBiddingStrategyBiddingStrategyStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedBiddingStrategy.BiddingStrategyStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyErrorReason", FALSE)) { +/** + * Each bidding strategy must have a unique name. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bidding strategies that match the selector. + * + * @return list of bidding strategies specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("BiddingStrategyServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyServiceGetResponse { + /** + * @access public + * @var BiddingStrategyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BiddingStrategyServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations the operations to apply + * @return the modified list of BiddingStrategy + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyServiceMutate { + /** + * @access public + * @var BiddingStrategyOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BiddingStrategyServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyServiceMutateResponse { + /** + * @access public + * @var BiddingStrategyReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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("BiddingStrategyError", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyError extends ApiError { + /** + * @access public + * @var tnsBiddingStrategyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyOperation", FALSE)) { +/** + * Operations for adding/updating bidding strategies. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyOperation extends Operation { + /** + * @access public + * @var SharedBiddingStrategy + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BiddingStrategyPage", FALSE)) { +/** + * Contains a list of bidding strategies resulting from the filtering and paging + * of {@link BiddingStrategy#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyPage extends Page { + /** + * @access public + * @var SharedBiddingStrategy[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BiddingStrategyReturnValue", FALSE)) { +/** + * A container for return values from the {@link BiddingStrategyService#mutate} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedBiddingStrategy[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BiddingStrategyService", FALSE)) { +/** + * BiddingStrategyService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class BiddingStrategyService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BiddingStrategyServiceGetResponse", + "get" => "BiddingStrategyServiceGet", + "mutate" => "BiddingStrategyServiceMutate", + "mutateResponse" => "BiddingStrategyServiceMutateResponse", + "mutateCallToAction" => "BiddingStrategyServiceMutateCallToAction", + "search" => "BiddingStrategyServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingErrors" => "BiddingErrors", + "BiddingStrategyError" => "BiddingStrategyError", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "Selector" => "Selector", + "SharedBiddingStrategy" => "SharedBiddingStrategy", + "BiddingStrategyOperation" => "BiddingStrategyOperation", + "Operation" => "Operation", + "BiddingStrategyPage" => "BiddingStrategyPage", + "Page" => "Page", + "BiddingStrategyReturnValue" => "BiddingStrategyReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "SharedBiddingStrategy.BiddingStrategyStatus" => "SharedBiddingStrategyBiddingStrategyStatus", + "BiddingStrategyError.Reason" => "BiddingStrategyErrorReason", + "BiddingStrategyType" => "BiddingStrategyType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "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", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/BiddingStrategyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BiddingStrategyService::$classmap; + parent::__construct($wsdl, $options, $user, 'BiddingStrategyService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bidding strategies that match the selector. + * + * @return list of bidding strategies specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($selector) { + $arg = new BiddingStrategyServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations the operations to apply + * @return the modified list of BiddingStrategy + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BiddingStrategyServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/BudgetOrderService.php b/src/Google/Api/Ads/AdWords/v201309/BudgetOrderService.php new file mode 100755 index 000000000..db83e9e61 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/BudgetOrderService.php @@ -0,0 +1,4365 @@ +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * + * + * + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingAccount", FALSE)) { +/** + * Represents an BillingAccount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BillingAccount { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $primaryBillingId; + + /** + * @access public + * @var string + */ + public $secondaryBillingId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingAccount"; + } + + public function __construct($id = NULL, $name = NULL, $currencyCode = NULL, $primaryBillingId = NULL, $secondaryBillingId = NULL) { + $this->id = $id; + $this->name = $name; + $this->currencyCode = $currencyCode; + $this->primaryBillingId = $primaryBillingId; + $this->secondaryBillingId = $secondaryBillingId; + } +}} + +if (!class_exists("BudgetOrder", FALSE)) { +/** + * A {@link BudgetOrder} links an account wide budget with a {@link BillingAccount}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrder { + /** + * @access public + * @var string + */ + public $billingAccountId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $billingAccountName; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $budgetOrderName; + + /** + * @access public + * @var string + */ + public $primaryBillingId; + + /** + * @access public + * @var string + */ + public $secondaryBillingId; + + /** + * @access public + * @var Money + */ + public $spendingLimit; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * @access public + * @var BudgetOrderRequest + */ + public $lastRequest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrder"; + } + + public function __construct($billingAccountId = NULL, $id = NULL, $billingAccountName = NULL, $poNumber = NULL, $budgetOrderName = NULL, $primaryBillingId = NULL, $secondaryBillingId = NULL, $spendingLimit = NULL, $startDateTime = NULL, $endDateTime = NULL, $lastRequest = NULL) { + $this->billingAccountId = $billingAccountId; + $this->id = $id; + $this->billingAccountName = $billingAccountName; + $this->poNumber = $poNumber; + $this->budgetOrderName = $budgetOrderName; + $this->primaryBillingId = $primaryBillingId; + $this->secondaryBillingId = $secondaryBillingId; + $this->spendingLimit = $spendingLimit; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastRequest = $lastRequest; + } +}} + +if (!class_exists("BudgetOrderError", FALSE)) { +/** + * Error information for BudgetOrderService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderError extends ApiError { + /** + * @access public + * @var tnsBudgetOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderError"; + } + + 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("BudgetOrderOperation", FALSE)) { +/** + * Operation for {@link BudgetOrder}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderOperation extends Operation { + /** + * @access public + * @var BudgetOrder + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BudgetOrderPage", FALSE)) { +/** + * A page of {@link BudgetOrder}s from {@link BudgetOrderService#get} + * method. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderPage extends Page { + /** + * @access public + * @var BudgetOrder[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BudgetOrderRequest", FALSE)) { +/** + * Holds fields that provide information on the last set of values that were passed in through + * the parent BudgetOrder for mutate.add and mutate.set. + * This element only applies if manager account is whitelisted for new billing backend. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderRequest { + /** + * @access public + * @var tnsBudgetOrderRequestStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $date; + + /** + * @access public + * @var string + */ + public $billingAccountName; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $budgetOrderName; + + /** + * @access public + * @var Money + */ + public $spendingLimit; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderRequest"; + } + + public function __construct($status = NULL, $date = NULL, $billingAccountName = NULL, $poNumber = NULL, $budgetOrderName = NULL, $spendingLimit = NULL, $startDateTime = NULL, $endDateTime = NULL) { + $this->status = $status; + $this->date = $date; + $this->billingAccountName = $billingAccountName; + $this->poNumber = $poNumber; + $this->budgetOrderName = $budgetOrderName; + $this->spendingLimit = $spendingLimit; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + } +}} + +if (!class_exists("BudgetOrderReturnValue", FALSE)) { +/** + * A container for return values from the {@link BudgetOrderService#mutate} + * method. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderReturnValue extends ListReturnValue { + /** + * @access public + * @var BudgetOrder[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("CustomerOrderLineError", FALSE)) { +/** + * Error information returned for CustomerOrderLineService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerOrderLineError extends ApiError { + /** + * @access public + * @var tnsCustomerOrderLineErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerOrderLineError"; + } + + 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("BudgetOrderErrorReason", FALSE)) { +/** + * Customer is not whitelisted for new billing. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetOrderRequestStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderRequestStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOrderRequest.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerOrderLineErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during a CustomerOrderLine mutate + * operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerOrderLineErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerOrderLineError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetOrderServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets a list of {@link BudgetOrder}s using the generic selector. + * @param serviceSelector specifies which BudgetOrder to return. + * @return A {@link BudgetOrderPage} of BudgetOrders of the client customer. + * All BudgetOrder fields are returned. Stats are not yet supported. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("BudgetOrderServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderServiceGetResponse { + /** + * @access public + * @var BudgetOrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBillingAccounts", FALSE)) { +/** + * Returns all the open/active BillingAccounts associated with the current + * manager. + * @return A list of {@link BillingAccount}s. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getBillingAccounts { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getBillingAccountsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getBillingAccountsResponse { + /** + * @access public + * @var BillingAccount[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BudgetOrderServiceMutate", FALSE)) { +/** + * 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. + * + * + * + * Mutates BudgetOrders, supported operations are: + *

    ADD: Adds a {@link BudgetOrder} to the billing account + * specified by the billing account ID.

    + *

    SET: Sets the start/end date and amount of the + * {@link BudgetOrder}.

    + *

    REMOVE: Cancels the {@link BudgetOrder} (status change).

    + *

    Warning: The BudgetOrderService + * is limited to one operation per mutate request. Any attempt to make more + * than one operation will result in an ApiException.

    + * @param operations A list of operations, however currently we only + * support one operation per mutate call. + * @return BudgetOrders affected by the mutate operation. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderServiceMutate { + /** + * @access public + * @var BudgetOrderOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BudgetOrderServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOrderServiceMutateResponse { + /** + * @access public + * @var BudgetOrderReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/billing/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BudgetOrderService", FALSE)) { +/** + * BudgetOrderService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class BudgetOrderService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BudgetOrderServiceGetResponse", + "get" => "BudgetOrderServiceGet", + "mutate" => "BudgetOrderServiceMutate", + "mutateResponse" => "BudgetOrderServiceMutateResponse", + "mutateCallToAction" => "BudgetOrderServiceMutateCallToAction", + "search" => "BudgetOrderServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "ListReturnValue" => "ListReturnValue", + "LongValue" => "LongValue", + "Money" => "Money", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Operation" => "Operation", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Page" => "Page", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "BillingAccount" => "BillingAccount", + "BudgetOrder" => "BudgetOrder", + "BudgetOrderError" => "BudgetOrderError", + "BudgetOrderOperation" => "BudgetOrderOperation", + "BudgetOrderPage" => "BudgetOrderPage", + "BudgetOrderRequest" => "BudgetOrderRequest", + "BudgetOrderReturnValue" => "BudgetOrderReturnValue", + "CustomerOrderLineError" => "CustomerOrderLineError", + "BudgetOrderError.Reason" => "BudgetOrderErrorReason", + "BudgetOrderRequest.Status" => "BudgetOrderRequestStatus", + "CustomerOrderLineError.Reason" => "CustomerOrderLineErrorReason", + "getBillingAccounts" => "getBillingAccounts", + "getBillingAccountsResponse" => "getBillingAccountsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/billing/v201309/BudgetOrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BudgetOrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'BudgetOrderService', 'https://adwords.google.com/api/adwords/billing/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets a list of {@link BudgetOrder}s using the generic selector. + * @param serviceSelector specifies which BudgetOrder to return. + * @return A {@link BudgetOrderPage} of BudgetOrders of the client customer. + * All BudgetOrder fields are returned. Stats are not yet supported. + * @throws ApiException + */ + public function get($serviceSelector) { + $arg = new BudgetOrderServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * Returns all the open/active BillingAccounts associated with the current + * manager. + * @return A list of {@link BillingAccount}s. + * @throws ApiException + */ + public function getBillingAccounts() { + $arg = new getBillingAccounts(); + $result = $this->__soapCall("getBillingAccounts", array($arg)); + return $result->rval; + } + + + /** + * 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. + * + * + * + * Mutates BudgetOrders, supported operations are: + *

    ADD: Adds a {@link BudgetOrder} to the billing account + * specified by the billing account ID.

    + *

    SET: Sets the start/end date and amount of the + * {@link BudgetOrder}.

    + *

    REMOVE: Cancels the {@link BudgetOrder} (status change).

    + *

    Warning: The BudgetOrderService + * is limited to one operation per mutate request. Any attempt to make more + * than one operation will result in an ApiException.

    + * @param operations A list of operations, however currently we only + * support one operation per mutate call. + * @return BudgetOrders affected by the mutate operation. + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BudgetOrderServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/BudgetService.php b/src/Google/Api/Ads/AdWords/v201309/BudgetService.php new file mode 100755 index 000000000..3a392005f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/BudgetService.php @@ -0,0 +1,3469 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of budgets that match the selector. + * + * @return List of budgets specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("BudgetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetServiceGetResponse { + /** + * @access public + * @var BudgetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BudgetServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations The operations to apply. + * @return The modified list of Budgets, returned in the same order as operations. + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetServiceMutate { + /** + * @access public + * @var BudgetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("BudgetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetServiceMutateResponse { + /** + * @access public + * @var BudgetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOperation", FALSE)) { +/** + * Operations for adding/updating Budget entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOperation extends Operation { + /** + * @access public + * @var Budget + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BudgetPage", FALSE)) { +/** + * Contains a list of budgets resulting from the filtering and paging of + * {@link BudgetService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetPage extends Page { + /** + * @access public + * @var Budget[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("BudgetReturnValue", FALSE)) { +/** + * A container for return values from the {@link BudgetService#mutate} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetReturnValue extends ListReturnValue { + /** + * @access public + * @var Budget[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("BudgetService", FALSE)) { +/** + * BudgetService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class BudgetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "BudgetServiceGetResponse", + "get" => "BudgetServiceGet", + "mutate" => "BudgetServiceMutate", + "mutateResponse" => "BudgetServiceMutateResponse", + "mutateCallToAction" => "BudgetServiceMutateCallToAction", + "search" => "BudgetServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Budget" => "Budget", + "BudgetOperation" => "BudgetOperation", + "Operation" => "Operation", + "BudgetPage" => "BudgetPage", + "Page" => "Page", + "BudgetReturnValue" => "BudgetReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "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", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/BudgetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BudgetService::$classmap; + parent::__construct($wsdl, $options, $user, 'BudgetService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of budgets that match the selector. + * + * @return List of budgets specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($selector) { + $arg = new BudgetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * + * @param operations The operations to apply. + * @return The modified list of Budgets, returned in the same order as operations. + * @throws ApiException + */ + public function mutate($operations) { + $arg = new BudgetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignAdExtensionService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignAdExtensionService.php new file mode 100755 index 000000000..d113703e7 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignAdExtensionService.php @@ -0,0 +1,4265 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("CampaignAdExtension", FALSE)) { +/** + * Represents a campaign level ad extension. A campaign ad extension specifies + * a campaign and an ad extension which can extend any ad under that campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtension { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var tnsCampaignAdExtensionStatus + */ + public $status; + + /** + * @access public + * @var tnsCampaignAdExtensionApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension"; + } + + public function __construct($campaignId = NULL, $adExtension = NULL, $status = NULL, $approvalStatus = NULL) { + $this->campaignId = $campaignId; + $this->adExtension = $adExtension; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdExtensionErrorReason", FALSE)) { +/** + * Account has been deleted + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionApprovalStatus", FALSE)) { +/** + * Approval status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionStatus", FALSE)) { +/** + * Status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionErrorReason", FALSE)) { +/** + * Cannot operate on an adextensions under the wrong campaign + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link CampaignAdExtension}s. + * + * @param serviceSelector The selector specifying the {@link CampaignAdExtension}s to return. + * @return The page containing the {@link CampaignAdExtension}s which meet the + * criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignAdExtensionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionServiceGetResponse { + /** + * @access public + * @var CampaignAdExtensionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignAdExtensionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations The operations to apply. The same {@link CampaignAdExtension} + * cannot be specified in more than one operation. + * @return The changed {@link CampaignAdExtension}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionServiceMutate { + /** + * @access public + * @var CampaignAdExtensionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignAdExtensionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionServiceMutateResponse { + /** + * @access public + * @var CampaignAdExtensionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdExtensionError", FALSE)) { +/** + * AdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionError extends ApiError { + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError"; + } + + 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("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("CampaignAdExtensionError", FALSE)) { +/** + * CampaignAdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionError extends ApiError { + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("InAppLinkExtension", FALSE)) { +/** + *

    This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

    It is also known as Mobile App Extension. + * + *

    The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

    This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

    + *

    Learn more about + * + * phone extensions. + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("CampaignAdExtensionOperation", FALSE)) { +/** + * CampaignAdExtension service operation. Note: The {@code SET} operator + * is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionOperation extends Operation { + /** + * @access public + * @var CampaignAdExtension + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignAdExtensionPage", FALSE)) { +/** + * Represents a page of {@link CampaignAdExtension}s resulting from the query + * done by {@link CampaignAdExtensionService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionPage extends Page { + /** + * @access public + * @var CampaignAdExtension[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignAdExtensionReturnValue", FALSE)) { +/** + * A container for return values from the CampaignAdExtensionService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignAdExtension[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("CampaignAdExtensionService", FALSE)) { +/** + * CampaignAdExtensionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignAdExtensionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignAdExtensionServiceGetResponse", + "get" => "CampaignAdExtensionServiceGet", + "mutate" => "CampaignAdExtensionServiceMutate", + "mutateResponse" => "CampaignAdExtensionServiceMutateResponse", + "mutateCallToAction" => "CampaignAdExtensionServiceMutateCallToAction", + "search" => "CampaignAdExtensionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdExtensionError" => "AdExtensionError", + "ApiError" => "ApiError", + "Address" => "Address", + "AdxError" => "AdxError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignAdExtensionError" => "CampaignAdExtensionError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "AdExtension" => "AdExtension", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "MobileExtension" => "MobileExtension", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OAuthInfo" => "OAuthInfo", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "LocationExtension" => "LocationExtension", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "LocationSyncExtension" => "LocationSyncExtension", + "Selector" => "Selector", + "CampaignAdExtension" => "CampaignAdExtension", + "CampaignAdExtensionOperation" => "CampaignAdExtensionOperation", + "Operation" => "Operation", + "CampaignAdExtensionPage" => "CampaignAdExtensionPage", + "Page" => "Page", + "CampaignAdExtensionReturnValue" => "CampaignAdExtensionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdExtensionError.Reason" => "AdExtensionErrorReason", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignAdExtension.ApprovalStatus" => "CampaignAdExtensionApprovalStatus", + "CampaignAdExtension.Status" => "CampaignAdExtensionStatus", + "CampaignAdExtensionError.Reason" => "CampaignAdExtensionErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LocationExtension.Source" => "LocationExtensionSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignAdExtensionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignAdExtensionService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignAdExtensionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link CampaignAdExtension}s. + * + * @param serviceSelector The selector specifying the {@link CampaignAdExtension}s to return. + * @return The page containing the {@link CampaignAdExtension}s which meet the + * criteria specified by the selector. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new CampaignAdExtensionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Applies the list of mutate operations. + * @param operations The operations to apply. The same {@link CampaignAdExtension} + * cannot be specified in more than one operation. + * @return The changed {@link CampaignAdExtension}s. + */ + public function mutate($operations) { + $arg = new CampaignAdExtensionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignCriterionService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignCriterionService.php new file mode 100755 index 000000000..7e92277ae --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignCriterionService.php @@ -0,0 +1,5632 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("CampaignCriterion", FALSE)) { +/** + * Represents a campaign level criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterion { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $CampaignCriterionType; + + private $_parameterMap = array ( + "CampaignCriterion.Type" => "CampaignCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("CampaignCriterionError", FALSE)) { +/** + * Base error class for Campaign Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionError extends ApiError { + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NegativeCampaignCriterion", FALSE)) { +/** + * A negative campaign criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeCampaignCriterion extends CampaignCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

    A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentLabelType", FALSE)) { +/** + * Content label type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ContentLabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Gets campaign criteria. + * + * @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. + * @return A list of campaign criteria. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionServiceGetResponse { + /** + * @access public + * @var CampaignCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignCriterionServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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, REMOVE, SET. + * + * + * + * Adds, removes or updates campaign criteria. + * + * @param operations The operations to apply. + * @return The added campaign criteria (without any optional parts). + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionServiceMutate { + /** + * @access public + * @var CampaignCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionServiceMutateResponse { + /** + * @access public + * @var CampaignCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaign criteria that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaign criteria. + * @throws ApiException if problems occur while parsing the query or fetching campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var CampaignCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdSchedule", FALSE)) { +/** + * Represents an AdSchedule Criterion. + * AdSchedule is specified as day and time of the week criteria to target + * the Ads. + *

    Note: An AdSchedule may not have more than six intervals + * in a day.

    + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSchedule extends Criterion { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignCriterionLimitExceeded", FALSE)) { +/** + * Error to indicate that too many negative criteria added to some campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsCampaignCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterionOperation", FALSE)) { +/** + * Generic operation (add, remove and set) for campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionOperation extends Operation { + /** + * @access public + * @var CampaignCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignCriterionPage", FALSE)) { +/** + * Contains a subset of campaign criteria resulting from a call to + * {@link CampaignCriterionService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionPage extends Page { + /** + * @access public + * @var CampaignCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignCriterionReturnValue", FALSE)) { +/** + * A container for return values from the CampaignCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignCriterion[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ContentLabel", FALSE)) { +/** + * Content Label for category exclusion. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ContentLabel extends Criterion { + /** + * @access public + * @var tnsContentLabelType + */ + public $contentLabelType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabel"; + } + + public function __construct($contentLabelType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->contentLabelType = $contentLabelType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CampaignCriterionService", FALSE)) { +/** + * CampaignCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignCriterionServiceGetResponse", + "get" => "CampaignCriterionServiceGet", + "mutate" => "CampaignCriterionServiceMutate", + "mutateResponse" => "CampaignCriterionServiceMutateResponse", + "mutateCallToAction" => "CampaignCriterionServiceMutateCallToAction", + "search" => "CampaignCriterionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdSchedule" => "AdSchedule", + "Criterion" => "Criterion", + "Address" => "Address", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AgeRange" => "AgeRange", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignCriterion" => "CampaignCriterion", + "CampaignCriterionError" => "CampaignCriterionError", + "CampaignCriterionLimitExceeded" => "CampaignCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "CampaignCriterionOperation" => "CampaignCriterionOperation", + "Operation" => "Operation", + "CampaignCriterionPage" => "CampaignCriterionPage", + "Page" => "Page", + "CampaignCriterionReturnValue" => "CampaignCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "ContentLabel" => "ContentLabel", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "Gender" => "Gender", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "NegativeCampaignCriterion" => "NegativeCampaignCriterion", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Placement" => "Placement", + "Platform" => "Platform", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignCriterionError.Reason" => "CampaignCriterionErrorReason", + "CampaignCriterionLimitExceeded.CriteriaLimitType" => "CampaignCriterionLimitExceededCriteriaLimitType", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ContentLabelType" => "ContentLabelType", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DayOfWeek" => "DayOfWeek", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "MinuteOfHour" => "MinuteOfHour", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignCriterionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Gets campaign criteria. + * + * @param serviceSelector The selector specifying the {@link CampaignCriterion}s to return. + * @return A list of campaign criteria. + * @throws ApiException when there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new CampaignCriterionServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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, REMOVE, SET. + * + * + * + * Adds, removes or updates campaign criteria. + * + * @param operations The operations to apply. + * @return The added campaign criteria (without any optional parts). + * @throws ApiException when there is at least one error with the request. + */ + public function mutate($operations) { + $arg = new CampaignCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaign criteria that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaign criteria. + * @throws ApiException if problems occur while parsing the query or fetching campaign criteria. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php new file mode 100755 index 000000000..e71750e0c --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php @@ -0,0 +1,3554 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignFeed", FALSE)) { +/** + * CampaignFeeds are used to link a feed to a campaign using a matching function, + * making the feed's feed items available in the campaign's ads for substitution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeed { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var Function + */ + public $matchingFunction; + + /** + * @access public + * @var integer[] + */ + public $placeholderTypes; + + /** + * @access public + * @var tnsCampaignFeedStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeed"; + } + + public function __construct($feedId = NULL, $campaignId = NULL, $matchingFunction = NULL, $placeholderTypes = NULL, $status = NULL) { + $this->feedId = $feedId; + $this->campaignId = $campaignId; + $this->matchingFunction = $matchingFunction; + $this->placeholderTypes = $placeholderTypes; + $this->status = $status; + } +}} + +if (!class_exists("CampaignFeedError", FALSE)) { +/** + * Represents an error for the CampaignFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedError extends ApiError { + /** + * @access public + * @var tnsCampaignFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedFunction", FALSE)) { +/** + * Represents a function where its operator is applied to its argument operands + * resulting in a return value. It has the form + * (Operand... Operator Operand...). The type of the return value depends on + * the operator being applied and the type of the operands. + * + *

    Operands per function is limited to 20.

    + * + *

    Here is a code example:

    + * + *
    
    + * 
    + * // For example "feed_attribute == 30" can be represented as:
    + * FeedId feedId = (FeedId of Feed associated with feed_attribute)
    + * FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
    + * Function function = new Function();
    + * function.setLhsOperand(
    + * Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
    + * function.setOperator(Operator.IN);
    + * function.setRhsOperand(
    + * Arrays.asList((Operand) new ConstantOperand(30L)));
    + * 
    + * // Another example matching on multiple values:
    + * "feed_item_id IN (10, 20, 30)" can be represented as:
    + * 
    + * Function function = new Function();
    + * function.setLhsOperand(
    + * Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
    + * function.setOperator(Operator.IN);
    + * function.setRhsOperand(Arrays.asList(
    + * (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
    + * 
    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedFunction { + /** + * @access public + * @var tnsFunctionOperator + */ + public $operator; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $lhsOperand; + + /** + * @access public + * @var FunctionArgumentOperand[] + */ + public $rhsOperand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function"; + } + + public function __construct($operator = NULL, $lhsOperand = NULL, $rhsOperand = NULL) { + $this->operator = $operator; + $this->lhsOperand = $lhsOperand; + $this->rhsOperand = $rhsOperand; + } +}} + +if (!class_exists("FunctionError", FALSE)) { +/** + * Errors that indicate issues with the function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionError extends ApiError { + /** + * @access public + * @var tnsFunctionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("FunctionArgumentOperand", FALSE)) { +/** + * An operand that can be used in a function expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionArgumentOperand { + /** + * @access public + * @var string + */ + public $FunctionArgumentOperandType; + + private $_parameterMap = array ( + "FunctionArgumentOperand.Type" => "FunctionArgumentOperandType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionArgumentOperand"; + } + + public function __construct($FunctionArgumentOperandType = NULL) { + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RequestContextOperand", FALSE)) { +/** + * An operand in a function referring to a value in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestContextOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsRequestContextOperandContextType + */ + public $contextType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand"; + } + + public function __construct($contextType = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->contextType = $contextType; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("RequestError", FALSE)) { +/** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedStatus", FALSE)) { +/** + * Status of the CampaignFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConstantOperandConstantType", FALSE)) { +/** + * The types of constant operands. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConstantOperandConstantType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand.ConstantType"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionOperator", FALSE)) { +/** + * Operators that can be used in functions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Function.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("FunctionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestContextOperandContextType", FALSE)) { +/** + * Campaign Id in the request context. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestContextOperandContextType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestContextOperand.ContextType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignFeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignFeeds that meet the selector criteria. + * + * @param selector Determines which CampaignFeeds to return. If empty all + * Campaign feeds are returned. + * @return The list of CampaignFeeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CampaignFeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedServiceGetResponse { + /** + * @access public + * @var CampaignFeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignFeedServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Adds, sets or removes CampaignFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedServiceMutate { + /** + * @access public + * @var CampaignFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedServiceMutateResponse { + /** + * @access public + * @var CampaignFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignFeedOperation", FALSE)) { +/** + * Operation used to create or mutate a CampaignFeed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedOperation extends Operation { + /** + * @access public + * @var CampaignFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignFeedReturnValue", FALSE)) { +/** + * The result of a call to {@link CampaignFeedService#mutate}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignFeed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ConstantOperand", FALSE)) { +/** + * A constant operand in a matching function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConstantOperand extends FunctionArgumentOperand { + /** + * @access public + * @var tnsConstantOperandConstantType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $longValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConstantOperand"; + } + + public function __construct($type = NULL, $longValue = NULL, $booleanValue = NULL, $doubleValue = NULL, $stringValue = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->type = $type; + $this->longValue = $longValue; + $this->booleanValue = $booleanValue; + $this->doubleValue = $doubleValue; + $this->stringValue = $stringValue; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FeedAttributeOperand", FALSE)) { +/** + * Represents a feed attribute reference to use in a function. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedAttributeOperand extends FunctionArgumentOperand { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttributeOperand"; + } + + public function __construct($feedId = NULL, $feedAttributeId = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->feedId = $feedId; + $this->feedAttributeId = $feedAttributeId; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("FunctionOperand", FALSE)) { +/** + * A function operand in a matching function. + * Used to represent nested functions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FunctionOperand extends FunctionArgumentOperand { + /** + * @access public + * @var Function + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FunctionOperand"; + } + + public function __construct($value = NULL, $FunctionArgumentOperandType = NULL) { + parent::__construct(); + $this->value = $value; + $this->FunctionArgumentOperandType = $FunctionArgumentOperandType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignFeedPage", FALSE)) { +/** + * The result of a call to {@link CampaignFeedService#get}. Contains a list of + * associations between campaign and feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignFeedPage extends NullStatsPage { + /** + * @access public + * @var CampaignFeed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignFeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignFeedService", FALSE)) { +/** + * CampaignFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignFeedServiceGetResponse", + "get" => "CampaignFeedServiceGet", + "mutate" => "CampaignFeedServiceMutate", + "mutateResponse" => "CampaignFeedServiceMutateResponse", + "mutateCallToAction" => "CampaignFeedServiceMutateCallToAction", + "search" => "CampaignFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "CampaignFeed" => "CampaignFeed", + "CampaignFeedError" => "CampaignFeedError", + "CampaignFeedOperation" => "CampaignFeedOperation", + "Operation" => "Operation", + "CampaignFeedPage" => "CampaignFeedPage", + "NullStatsPage" => "NullStatsPage", + "CampaignFeedReturnValue" => "CampaignFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ConstantOperand" => "ConstantOperand", + "FunctionArgumentOperand" => "FunctionArgumentOperand", + "DatabaseError" => "DatabaseError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttributeOperand" => "FeedAttributeOperand", + "FunctionError" => "FunctionError", + "FunctionOperand" => "FunctionOperand", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestContextOperand" => "RequestContextOperand", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "CampaignFeed.Status" => "CampaignFeedStatus", + "CampaignFeedError.Reason" => "CampaignFeedErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "ConstantOperand.ConstantType" => "ConstantOperandConstantType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Function.Operator" => "FunctionOperator", + "FunctionError.Reason" => "FunctionErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestContextOperand.ContextType" => "RequestContextOperandContextType", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignFeedService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignFeeds that meet the selector criteria. + * + * @param selector Determines which CampaignFeeds to return. If empty all + * Campaign feeds are returned. + * @return The list of CampaignFeeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new CampaignFeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Adds, sets or removes CampaignFeeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new CampaignFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignService.php new file mode 100755 index 000000000..9cd82cd7a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignService.php @@ -0,0 +1,6258 @@ +eligible = $eligible; + $this->rejectionReasons = $rejectionReasons; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FrequencyCap", FALSE)) { +/** + * A frequency cap is the maximum number of times an ad (or some set of ads) can + * be shown to a user over a particular time period. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * @access public + * @var tnsLevel + */ + public $level; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($impressions = NULL, $timeUnit = NULL, $level = NULL) { + $this->impressions = $impressions; + $this->timeUnit = $timeUnit; + $this->level = $level; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
      + *
    • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
    • + *
    + * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * For more information on flexible bidding, visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("Campaign", FALSE)) { +/** + * Data representing an AdWords campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Campaign { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCampaignStatus + */ + public $status; + + /** + * @access public + * @var tnsServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var Budget + */ + public $budget; + + /** + * @access public + * @var ConversionOptimizerEligibility + */ + public $conversionOptimizerEligibility; + + /** + * @access public + * @var tnsAdServingOptimizationStatus + */ + public $adServingOptimizationStatus; + + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Campaign"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $startDate = NULL, $endDate = NULL, $budget = NULL, $conversionOptimizerEligibility = NULL, $adServingOptimizationStatus = NULL, $frequencyCap = NULL, $settings = NULL, $networkSetting = NULL, $biddingStrategyConfiguration = NULL, $forwardCompatibilityMap = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->budget = $budget; + $this->conversionOptimizerEligibility = $conversionOptimizerEligibility; + $this->adServingOptimizationStatus = $adServingOptimizationStatus; + $this->frequencyCap = $frequencyCap; + $this->settings = $settings; + $this->networkSetting = $networkSetting; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdServingOptimizationStatus", FALSE)) { +/** + * Ad serving status of campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdServingOptimizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdServingOptimizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingTransitionErrorReason", FALSE)) { +/** + * Reason for bidding transition error. + * It is used by capability service as denial reasons, for bidding transition + * capability. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingTransitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignStatus", FALSE)) { +/** + * Campaign status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerEligibilityRejectionReason", FALSE)) { +/** + * Campaign is not active + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerEligibilityRejectionReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility.RejectionReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingNegativeGeoTargetType", FALSE)) { +/** + * The various signals a negative location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSettingNegativeGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.NegativeGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingPositiveGeoTargetType", FALSE)) { +/** + * The various signals a positive location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSettingPositiveGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.PositiveGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Level", FALSE)) { +/** + * The level on which the cap is to be applied. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Level { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServingStatus", FALSE)) { +/** + * Campaign serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Unit of time the cap is defined at. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link Campaign}s to return. + * @return A list of campaigns. + * @throws ApiException if problems occurred while fetching campaign information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("CampaignServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignServiceGetResponse { + /** + * @access public + * @var CampaignPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, updates, or deletes campaigns. + *

    Note: {@link CampaignOperation} does not support the + * REMOVE operator. To delete a campaign, set its + * {@link Campaign#status status} to DELETED.

    + * @param operations A list of unique operations. + * The same campaign cannot be specified in more than one operation. + * @return The list of updated campaigns, returned in the same order as the + * operations array. + * @throws ApiException if problems occurred while updating campaign information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignServiceMutate { + /** + * @access public + * @var CampaignOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignServiceMutateResponse { + /** + * @access public + * @var CampaignReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("query", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaigns. + * @throws ApiException if problems occur while parsing the query or fetching campaign + * information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class query { + /** + * @access public + * @var string + */ + public $query; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($query = NULL) { + $this->query = $query; + } +}} + +if (!class_exists("queryResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class queryResponse { + /** + * @access public + * @var CampaignPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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("BiddingTransitionError", FALSE)) { +/** + * Bidding transition errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingTransitionError extends ApiError { + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError"; + } + + 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("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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("CampaignError", FALSE)) { +/** + * Base error class for Campaign Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignError extends ApiError { + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

    {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

    + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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("GeoTargetTypeSetting", FALSE)) { +/** + * Represents a collection of settings related to ads geotargeting. + * + *

    AdWords ads can be geotargeted using Location of Presence (LOP), + * Area of Interest (AOI), or both. LOP is the physical location + * of the user performing the search; AOI is the geographical region + * in which the searcher is interested. For example, if a user in + * New York City performs a search "hotels california", their LOP + * is New York City and their AOI is California. + * + *

    Additionally, ads can be positively or negatively geotargeted. + * An ad that is positively geotargeted to New York City only appears + * to users whose location is related (via AOI or LOP) to New York City. An ad + * that is negatively geotargeted to New York City appears for all + * users except those whose location is related to New York City. Ads can + * only be negatively geotargeted if a positive geotargeting is also supplied, and + * the negatively geotargeted region must be contained within the positive + * region. + * + *

    Geotargeting settings allow ads to be targeted in the following way: + *

      + *
    • Positively geotargeted using solely AOI, solely LOP, or either. + *
    • Negatively geotargeted using solely LOP, or both. + *
    + * + *

    This setting applies only to ads shown on the search network, and does + * not affect ads shown on the Google Display Network. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSetting extends Setting { + /** + * @access public + * @var tnsGeoTargetTypeSettingPositiveGeoTargetType + */ + public $positiveGeoTargetType; + + /** + * @access public + * @var tnsGeoTargetTypeSettingNegativeGeoTargetType + */ + public $negativeGeoTargetType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting"; + } + + public function __construct($positiveGeoTargetType = NULL, $negativeGeoTargetType = NULL, $SettingType = NULL) { + parent::__construct(); + $this->positiveGeoTargetType = $positiveGeoTargetType; + $this->negativeGeoTargetType = $negativeGeoTargetType; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("KeywordMatchSetting", FALSE)) { +/** + * Improved exact and phrase match option includes misspellings, plurals, + * and other close variants of your keywords. + * + * Default value set to {@code true} to include close variants. For more + * information, see the article + * + * What are keyword matching options?. + * + * This setting is required when creating new campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

    A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

    Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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("QuotaError", FALSE)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RealTimeBiddingSetting", FALSE)) { +/** + * Settings for Real-Time Bidding, a feature only available for campaigns + * targeting the Ad Exchange network. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RealTimeBiddingSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RealTimeBiddingSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("RejectedError", FALSE)) { +/** + * Indicates that a field was rejected due to compatibility issues. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + 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("TrackingSetting", FALSE)) { +/** + * Campaign level settings for tracking information. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrackingSetting extends Setting { + /** + * @access public + * @var string + */ + public $trackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingSetting"; + } + + public function __construct($trackingUrl = NULL, $SettingType = NULL) { + parent::__construct(); + $this->trackingUrl = $trackingUrl; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

    Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("CampaignOperation", FALSE)) { +/** + * An operation on an AdWords campaign. + *

    Note: The REMOVE operator is not + * supported. To remove a campaign, set its {@link Campaign#status status} + * to DELETED.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignOperation extends Operation { + /** + * @access public + * @var Campaign + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignPage", FALSE)) { +/** + * Contains a subset of campaign resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.campaign.CampaignService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignPage extends Page { + /** + * @access public + * @var Campaign[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignReturnValue", FALSE)) { +/** + * A container for return values from the CampaignService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignReturnValue extends ListReturnValue { + /** + * @access public + * @var Campaign[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("CampaignService", FALSE)) { +/** + * CampaignService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignServiceGetResponse", + "get" => "CampaignServiceGet", + "mutate" => "CampaignServiceMutate", + "mutateResponse" => "CampaignServiceMutateResponse", + "mutateCallToAction" => "CampaignServiceMutateCallToAction", + "search" => "CampaignServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "BiddingTransitionError" => "BiddingTransitionError", + "BudgetError" => "BudgetError", + "CampaignError" => "CampaignError", + "ClientTermsError" => "ClientTermsError", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "BiddingScheme" => "BiddingScheme", + "ConversionOptimizerEligibility" => "ConversionOptimizerEligibility", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "FrequencyCap" => "FrequencyCap", + "GeoTargetTypeSetting" => "GeoTargetTypeSetting", + "Setting" => "Setting", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "KeywordMatchSetting" => "KeywordMatchSetting", + "LongValue" => "LongValue", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NetworkSetting" => "NetworkSetting", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PercentCpaBid" => "PercentCpaBid", + "Bids" => "Bids", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "Predicate" => "Predicate", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RealTimeBiddingSetting" => "RealTimeBiddingSetting", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetError" => "TargetError", + "TrackingSetting" => "TrackingSetting", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "DatabaseError" => "DatabaseError", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "Selector" => "Selector", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "Budget" => "Budget", + "Campaign" => "Campaign", + "CampaignOperation" => "CampaignOperation", + "Operation" => "Operation", + "CampaignPage" => "CampaignPage", + "Page" => "Page", + "CampaignReturnValue" => "CampaignReturnValue", + "ListReturnValue" => "ListReturnValue", + "AdServingOptimizationStatus" => "AdServingOptimizationStatus", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "BiddingTransitionError.Reason" => "BiddingTransitionErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "CampaignError.Reason" => "CampaignErrorReason", + "CampaignStatus" => "CampaignStatus", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "ConversionOptimizerEligibility.RejectionReason" => "ConversionOptimizerEligibilityRejectionReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "GeoTargetTypeSetting.NegativeGeoTargetType" => "GeoTargetTypeSettingNegativeGeoTargetType", + "GeoTargetTypeSetting.PositiveGeoTargetType" => "GeoTargetTypeSettingPositiveGeoTargetType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "Level" => "Level", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "Predicate.Operator" => "PredicateOperator", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "ServingStatus" => "ServingStatus", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "TimeUnit" => "TimeUnit", + "query" => "query", + "queryResponse" => "queryResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that meet the selector criteria. + * + * @param serviceSelector the selector specifying the {@link Campaign}s to return. + * @return A list of campaigns. + * @throws ApiException if problems occurred while fetching campaign information. + */ + public function get($serviceSelector) { + $arg = new CampaignServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Adds, updates, or deletes campaigns. + *

    Note: {@link CampaignOperation} does not support the + * REMOVE operator. To delete a campaign, set its + * {@link Campaign#status status} to DELETED.

    + * @param operations A list of unique operations. + * The same campaign cannot be specified in more than one operation. + * @return The list of updated campaigns, returned in the same order as the + * operations array. + * @throws ApiException if problems occurred while updating campaign information. + */ + public function mutate($operations) { + $arg = new CampaignServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of campaigns that match the query. + * + * @param query The SQL-like AWQL query string. + * @return A list of campaigns. + * @throws ApiException if problems occur while parsing the query or fetching campaign + * information. + */ + public function query($query) { + $arg = new query($query); + $result = $this->__soapCall("query", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignSharedSetService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignSharedSetService.php new file mode 100755 index 000000000..adfc97cd4 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignSharedSetService.php @@ -0,0 +1,3437 @@ +This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null} when it is contained within {@link Operator}s : ADD, REMOVE. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSet { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $sharedSetName; + + /** + * @access public + * @var tnsSharedSetType + */ + public $sharedSetType; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var tnsCampaignSharedSetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSet"; + } + + public function __construct($sharedSetId = NULL, $campaignId = NULL, $sharedSetName = NULL, $sharedSetType = NULL, $campaignName = NULL, $status = NULL) { + $this->sharedSetId = $sharedSetId; + $this->campaignId = $campaignId; + $this->sharedSetName = $sharedSetName; + $this->sharedSetType = $sharedSetType; + $this->campaignName = $campaignName; + $this->status = $status; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSet.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignSharedSetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignSharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of CampaignSharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CampaignSharedSetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetServiceGetResponse { + /** + * @access public + * @var CampaignSharedSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("CampaignSharedSetServiceMutate", FALSE)) { +/** + * 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, REMOVE. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified list of CampaignSharedSet associations + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetServiceMutate { + /** + * @access public + * @var CampaignSharedSetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("CampaignSharedSetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetServiceMutateResponse { + /** + * @access public + * @var CampaignSharedSetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("CampaignSharedSetError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetError extends ApiError { + /** + * @access public + * @var tnsCampaignSharedSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetError"; + } + + 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("CampaignSharedSetOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetOperation extends Operation { + /** + * @access public + * @var CampaignSharedSet + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignSharedSetReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetReturnValue extends ListReturnValue { + /** + * @access public + * @var CampaignSharedSet[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PagingError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CampaignSharedSetPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignSharedSetPage extends NullStatsPage { + /** + * @access public + * @var CampaignSharedSet[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignSharedSetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CampaignSharedSetService", FALSE)) { +/** + * CampaignSharedSetService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CampaignSharedSetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CampaignSharedSetServiceGetResponse", + "get" => "CampaignSharedSetServiceGet", + "mutate" => "CampaignSharedSetServiceMutate", + "mutateResponse" => "CampaignSharedSetServiceMutateResponse", + "mutateCallToAction" => "CampaignSharedSetServiceMutateCallToAction", + "search" => "CampaignSharedSetServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "CampaignSharedSet" => "CampaignSharedSet", + "CampaignSharedSetError" => "CampaignSharedSetError", + "CampaignSharedSetOperation" => "CampaignSharedSetOperation", + "Operation" => "Operation", + "CampaignSharedSetPage" => "CampaignSharedSetPage", + "NullStatsPage" => "NullStatsPage", + "CampaignSharedSetReturnValue" => "CampaignSharedSetReturnValue", + "ListReturnValue" => "ListReturnValue", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "CampaignSharedSet.Status" => "CampaignSharedSetStatus", + "CampaignSharedSetError.Reason" => "CampaignSharedSetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "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", + "SharedSetType" => "SharedSetType", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/CampaignSharedSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CampaignSharedSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CampaignSharedSetService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of CampaignSharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of CampaignSharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + */ + public function get($selector) { + $arg = new CampaignSharedSetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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, REMOVE. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified list of CampaignSharedSet associations + * @throws ApiException + */ + public function mutate($operations) { + $arg = new CampaignSharedSetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ConstantDataService.php b/src/Google/Api/Ads/AdWords/v201309/ConstantDataService.php new file mode 100755 index 000000000..058fcd280 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ConstantDataService.php @@ -0,0 +1,3936 @@ +operand = $operand; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +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}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAgeRangeCriterion", FALSE)) { +/** + * Returns a list of all age range criteria. + * + * @return A list of age ranges. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getAgeRangeCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAgeRangeCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getAgeRangeCriterionResponse { + /** + * @access public + * @var AgeRange[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCarrierCriterion", FALSE)) { +/** + * Returns a list of all carrier criteria. + * + * @return A list of carriers. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getCarrierCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCarrierCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getCarrierCriterionResponse { + /** + * @access public + * @var Carrier[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getGenderCriterion", FALSE)) { +/** + * Returns a list of all gender criteria. + * + * @return A list of genders. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getGenderCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getGenderCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getGenderCriterionResponse { + /** + * @access public + * @var Gender[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLanguageCriterion", FALSE)) { +/** + * Returns a list of all language criteria. + * + * @return A list of languages. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getLanguageCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getLanguageCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getLanguageCriterionResponse { + /** + * @access public + * @var Language[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getMobileDeviceCriterion", FALSE)) { +/** + * Returns a list of all mobile devices. + * + * @return A list of mobile devices. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getMobileDeviceCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getMobileDeviceCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getMobileDeviceCriterionResponse { + /** + * @access public + * @var MobileDevice[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOperatingSystemVersionCriterion", FALSE)) { +/** + * Returns a list of all operating system version criteria. + * + * @return A list of operating system versions. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getOperatingSystemVersionCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getOperatingSystemVersionCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getOperatingSystemVersionCriterionResponse { + /** + * @access public + * @var OperatingSystemVersion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserInterestCriterion", FALSE)) { +/** + * Returns a list of user interests. + * + * @return A list of user interests. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getUserInterestCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getUserInterestCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getUserInterestCriterionResponse { + /** + * @access public + * @var CriterionUserInterest[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getVerticalCriterion", FALSE)) { +/** + * Returns a list of content verticals. + * + * @return A list of verticals. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getVerticalCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getVerticalCriterionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getVerticalCriterionResponse { + /** + * @access public + * @var Vertical[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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("WebpageParameter", FALSE)) { +/** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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("ConstantDataService", FALSE)) { +/** + * ConstantDataService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ConstantDataService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ConstantDataServiceGetResponse", + "get" => "ConstantDataServiceGet", + "mutate" => "ConstantDataServiceMutate", + "mutateResponse" => "ConstantDataServiceMutateResponse", + "mutateCallToAction" => "ConstantDataServiceMutateCallToAction", + "search" => "ConstantDataServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AgeRange" => "AgeRange", + "Criterion" => "Criterion", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "Gender" => "Gender", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatingSystemVersion" => "OperatingSystemVersion", + "Placement" => "Placement", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "ProductCondition" => "ProductCondition", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Product" => "Product", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "Gender.GenderType" => "GenderGenderType", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "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", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "getAgeRangeCriterion" => "getAgeRangeCriterion", + "getAgeRangeCriterionResponse" => "getAgeRangeCriterionResponse", + "getCarrierCriterion" => "getCarrierCriterion", + "getCarrierCriterionResponse" => "getCarrierCriterionResponse", + "getGenderCriterion" => "getGenderCriterion", + "getGenderCriterionResponse" => "getGenderCriterionResponse", + "getLanguageCriterion" => "getLanguageCriterion", + "getLanguageCriterionResponse" => "getLanguageCriterionResponse", + "getMobileDeviceCriterion" => "getMobileDeviceCriterion", + "getMobileDeviceCriterionResponse" => "getMobileDeviceCriterionResponse", + "getOperatingSystemVersionCriterion" => "getOperatingSystemVersionCriterion", + "getOperatingSystemVersionCriterionResponse" => "getOperatingSystemVersionCriterionResponse", + "getUserInterestCriterion" => "getUserInterestCriterion", + "getUserInterestCriterionResponse" => "getUserInterestCriterionResponse", + "getVerticalCriterion" => "getVerticalCriterion", + "getVerticalCriterionResponse" => "getVerticalCriterionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/ConstantDataService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ConstantDataService::$classmap; + parent::__construct($wsdl, $options, $user, 'ConstantDataService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * Returns a list of all age range criteria. + * + * @return A list of age ranges. + * @throws ApiException when there is at least one error with the request. + */ + public function getAgeRangeCriterion() { + $arg = new getAgeRangeCriterion(); + $result = $this->__soapCall("getAgeRangeCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all carrier criteria. + * + * @return A list of carriers. + * @throws ApiException when there is at least one error with the request. + */ + public function getCarrierCriterion() { + $arg = new getCarrierCriterion(); + $result = $this->__soapCall("getCarrierCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all gender criteria. + * + * @return A list of genders. + * @throws ApiException when there is at least one error with the request. + */ + public function getGenderCriterion() { + $arg = new getGenderCriterion(); + $result = $this->__soapCall("getGenderCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all language criteria. + * + * @return A list of languages. + * @throws ApiException when there is at least one error with the request. + */ + public function getLanguageCriterion() { + $arg = new getLanguageCriterion(); + $result = $this->__soapCall("getLanguageCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all mobile devices. + * + * @return A list of mobile devices. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + */ + public function getMobileDeviceCriterion() { + $arg = new getMobileDeviceCriterion(); + $result = $this->__soapCall("getMobileDeviceCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of all operating system version criteria. + * + * @return A list of operating system versions. + * @throws ApiException when there is at least one error with the request. + * This is a beta feature. + */ + public function getOperatingSystemVersionCriterion() { + $arg = new getOperatingSystemVersionCriterion(); + $result = $this->__soapCall("getOperatingSystemVersionCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of user interests. + * + * @return A list of user interests. + * @throws ApiException when there is at least one error with the request. + */ + public function getUserInterestCriterion() { + $arg = new getUserInterestCriterion(); + $result = $this->__soapCall("getUserInterestCriterion", array($arg)); + return $result->rval; + } + + + /** + * Returns a list of content verticals. + * + * @return A list of verticals. + * @throws ApiException when there is at least one error with the request. + */ + public function getVerticalCriterion() { + $arg = new getVerticalCriterion(); + $result = $this->__soapCall("getVerticalCriterion", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ConversionTrackerService.php b/src/Google/Api/Ads/AdWords/v201309/ConversionTrackerService.php new file mode 100755 index 000000000..7aa66ec80 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ConversionTrackerService.php @@ -0,0 +1,3639 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionTrackerStats", FALSE)) { +/** + * Usage stats about a single {@link ConversionTracker}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerStats { + /** + * @access public + * @var integer + */ + public $numConversionEvents; + + /** + * @access public + * @var Money + */ + public $conversionValue; + + /** + * @access public + * @var string + */ + public $mostRecentConversionDate; + + /** + * @access public + * @var integer + */ + public $numConvertedClicks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerStats"; + } + + public function __construct($numConversionEvents = NULL, $conversionValue = NULL, $mostRecentConversionDate = NULL, $numConvertedClicks = NULL) { + $this->numConversionEvents = $numConversionEvents; + $this->conversionValue = $conversionValue; + $this->mostRecentConversionDate = $mostRecentConversionDate; + $this->numConvertedClicks = $numConvertedClicks; + } +}} + +if (!class_exists("ConversionTracker", FALSE)) { +/** + * An abstract Conversion base class. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTracker { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsConversionTrackerStatus + */ + public $status; + + /** + * @access public + * @var tnsConversionTrackerCategory + */ + public $category; + + /** + * @access public + * @var ConversionTrackerStats + */ + public $stats; + + /** + * @access public + * @var integer + */ + public $viewthroughLookbackWindow; + + /** + * @access public + * @var boolean + */ + public $isProductAdsChargeable; + + /** + * @access public + * @var integer + */ + public $productAdsChargeableConversionWindow; + + /** + * @access public + * @var integer + */ + public $ctcLookbackWindow; + + /** + * @access public + * @var string + */ + public $ConversionTrackerType; + + private $_parameterMap = array ( + "ConversionTracker.Type" => "ConversionTrackerType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ctcLookbackWindow = NULL, $ConversionTrackerType = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ctcLookbackWindow = $ctcLookbackWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdWordsConversionTrackerMarkupLanguage", FALSE)) { +/** + * Controls the markup language in which the snippet will be written. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdWordsConversionTrackerMarkupLanguage { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.MarkupLanguage"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdWordsConversionTrackerTextFormat", FALSE)) { +/** + * Text format to display on the conversion page. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdWordsConversionTrackerTextFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.TextFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdWordsConversionTrackerTrackingCodeType", FALSE)) { +/** + * Type of snippet code to generate. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdWordsConversionTrackerTrackingCodeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker.TrackingCodeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AppConversionAppConversionType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AppConversionAppConversionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion.AppConversionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AppConversionAppPlatform", FALSE)) { +/** + * App platform for the AppConversionTracker. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AppConversionAppPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion.AppPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerCategory", FALSE)) { +/** + * The category of conversion tracker that is being tracked. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerCategory { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker.Category"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerStatus", FALSE)) { +/** + * Status of the conversion tracker. The user cannot ADD or SET the + * status to {@code HIDDEN}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTracker.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackingErrorReason", FALSE)) { +/** + * Enumerates all the possible reasons for a ConversionTypeError. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionTrackerServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of the conversion trackers that match the selector. The + * actual objects contained in the page's list of entries will be specific + * subclasses of the abstract {@link ConversionTracker} class. + * + * @param serviceSelector The selector specifying the + * {@link ConversionTracker}s to return. + * @return List of conversion trackers specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ConversionTrackerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerServiceGetResponse { + /** + * @access public + * @var ConversionTrackerPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ConversionTrackerServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Applies the list of mutate operations such as adding or updating conversion trackers. + *

    Note: {@link ConversionTrackerOperation} does not support the + * REMOVE operator. In order to 'disable' a conversion type, send a + * SET operation for the conversion tracker with the status + * property set to DISABLED

    + * + * @param operations A list of mutate operations to perform. + * @return The list of the conversion trackers as they appear after mutation, + * in the same order as they appeared in the list of operations. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while updating the data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerServiceMutate { + /** + * @access public + * @var ConversionTrackerOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ConversionTrackerServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerServiceMutateResponse { + /** + * @access public + * @var ConversionTrackerReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdWordsConversionTracker", FALSE)) { +/** + * A conversion tracker created through AdWords Conversion Tracking. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdWordsConversionTracker extends ConversionTracker { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var tnsAdWordsConversionTrackerMarkupLanguage + */ + public $markupLanguage; + + /** + * @access public + * @var tnsAdWordsConversionTrackerTextFormat + */ + public $textFormat; + + /** + * @access public + * @var string + */ + public $conversionPageLanguage; + + /** + * @access public + * @var string + */ + public $backgroundColor; + + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * @access public + * @var tnsAdWordsConversionTrackerTrackingCodeType + */ + public $trackingCodeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdWordsConversionTracker"; + } + + public function __construct($snippet = NULL, $markupLanguage = NULL, $textFormat = NULL, $conversionPageLanguage = NULL, $backgroundColor = NULL, $userRevenueValue = NULL, $trackingCodeType = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ctcLookbackWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->markupLanguage = $markupLanguage; + $this->textFormat = $textFormat; + $this->conversionPageLanguage = $conversionPageLanguage; + $this->backgroundColor = $backgroundColor; + $this->userRevenueValue = $userRevenueValue; + $this->trackingCodeType = $trackingCodeType; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ctcLookbackWindow = $ctcLookbackWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("AppConversion", FALSE)) { +/** + * A ConversionTracker for mobile apps. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AppConversion extends ConversionTracker { + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var tnsAppConversionAppPlatform + */ + public $appPlatform; + + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var tnsAppConversionAppConversionType + */ + public $appConversionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppConversion"; + } + + public function __construct($appId = NULL, $appPlatform = NULL, $userRevenueValue = NULL, $snippet = NULL, $appConversionType = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ctcLookbackWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->appId = $appId; + $this->appPlatform = $appPlatform; + $this->userRevenueValue = $userRevenueValue; + $this->snippet = $snippet; + $this->appConversionType = $appConversionType; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ctcLookbackWindow = $ctcLookbackWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ConversionTrackingError", FALSE)) { +/** + * An error that can occur during calls to the ConversionTypeService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackingError extends ApiError { + /** + * @access public + * @var tnsConversionTrackingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackingError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("UploadConversion", FALSE)) { +/** + * A conversion type that receives conversions by having them uploaded + * through the OfflineConversionFeedService. + * + * After successfully creating a new UploadConversion, send the name of this conversion type + * along with your conversion details to the OfflineConversionFeedService + * to attribute those conversions to this conversion type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UploadConversion extends ConversionTracker { + /** + * @access public + * @var string + */ + public $userRevenueValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UploadConversion"; + } + + public function __construct($userRevenueValue = NULL, $id = NULL, $name = NULL, $status = NULL, $category = NULL, $stats = NULL, $viewthroughLookbackWindow = NULL, $isProductAdsChargeable = NULL, $productAdsChargeableConversionWindow = NULL, $ctcLookbackWindow = NULL, $ConversionTrackerType = NULL) { + parent::__construct(); + $this->userRevenueValue = $userRevenueValue; + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->category = $category; + $this->stats = $stats; + $this->viewthroughLookbackWindow = $viewthroughLookbackWindow; + $this->isProductAdsChargeable = $isProductAdsChargeable; + $this->productAdsChargeableConversionWindow = $productAdsChargeableConversionWindow; + $this->ctcLookbackWindow = $ctcLookbackWindow; + $this->ConversionTrackerType = $ConversionTrackerType; + } +}} + +if (!class_exists("ConversionTrackerOperation", FALSE)) { +/** + * Operations for conversion tracker. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerOperation extends Operation { + /** + * @access public + * @var ConversionTracker + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ConversionTrackerReturnValue", FALSE)) { +/** + * A container for return values from the ConversionTrackerService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerReturnValue extends ListReturnValue { + /** + * @access public + * @var ConversionTracker[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionTrackerPage", FALSE)) { +/** + * Contains a subset of {@link ConversionTracker}s resulting from the filtering + * and paging of the {@link ConversionTrackerService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionTrackerPage extends NoStatsPage { + /** + * @access public + * @var ConversionTracker[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionTrackerPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ConversionTrackerService", FALSE)) { +/** + * ConversionTrackerService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ConversionTrackerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ConversionTrackerServiceGetResponse", + "get" => "ConversionTrackerServiceGet", + "mutate" => "ConversionTrackerServiceMutate", + "mutateResponse" => "ConversionTrackerServiceMutateResponse", + "mutateCallToAction" => "ConversionTrackerServiceMutateCallToAction", + "search" => "ConversionTrackerServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdWordsConversionTracker" => "AdWordsConversionTracker", + "ConversionTracker" => "ConversionTracker", + "AppConversion" => "AppConversion", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ConversionTrackingError" => "ConversionTrackingError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "UploadConversion" => "UploadConversion", + "ConversionTrackerStats" => "ConversionTrackerStats", + "ConversionTrackerOperation" => "ConversionTrackerOperation", + "Operation" => "Operation", + "ConversionTrackerReturnValue" => "ConversionTrackerReturnValue", + "ListReturnValue" => "ListReturnValue", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ConversionTrackerPage" => "ConversionTrackerPage", + "NoStatsPage" => "NoStatsPage", + "Page" => "Page", + "Selector" => "Selector", + "AdWordsConversionTracker.MarkupLanguage" => "AdWordsConversionTrackerMarkupLanguage", + "AdWordsConversionTracker.TextFormat" => "AdWordsConversionTrackerTextFormat", + "AdWordsConversionTracker.TrackingCodeType" => "AdWordsConversionTrackerTrackingCodeType", + "AppConversion.AppConversionType" => "AppConversionAppConversionType", + "AppConversion.AppPlatform" => "AppConversionAppPlatform", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ConversionTracker.Category" => "ConversionTrackerCategory", + "ConversionTracker.Status" => "ConversionTrackerStatus", + "ConversionTrackingError.Reason" => "ConversionTrackingErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/ConversionTrackerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ConversionTrackerService::$classmap; + parent::__construct($wsdl, $options, $user, 'ConversionTrackerService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of the conversion trackers that match the selector. The + * actual objects contained in the page's list of entries will be specific + * subclasses of the abstract {@link ConversionTracker} class. + * + * @param serviceSelector The selector specifying the + * {@link ConversionTracker}s to return. + * @return List of conversion trackers specified by the selector. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while retrieving results. + */ + public function get($serviceSelector) { + $arg = new ConversionTrackerServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Applies the list of mutate operations such as adding or updating conversion trackers. + *

    Note: {@link ConversionTrackerOperation} does not support the + * REMOVE operator. In order to 'disable' a conversion type, send a + * SET operation for the conversion tracker with the status + * property set to DISABLED

    + * + * @param operations A list of mutate operations to perform. + * @return The list of the conversion trackers as they appear after mutation, + * in the same order as they appeared in the list of operations. + * @throws com.google.ads.api.services.common.error.ApiException if problems + * occurred while updating the data. + */ + public function mutate($operations) { + $arg = new ConversionTrackerServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CustomerService.php b/src/Google/Api/Ads/AdWords/v201309/CustomerService.php new file mode 100755 index 000000000..6af1980d4 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CustomerService.php @@ -0,0 +1,2122 @@ +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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

    + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Customer", FALSE)) { +/** + * Represents a customer for the CustomerService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Customer { + /** + * @access public + * @var integer + */ + public $customerId; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $dateTimeZone; + + /** + * @access public + * @var string + */ + public $descriptiveName; + + /** + * @access public + * @var boolean + */ + public $canManageClients; + + /** + * @access public + * @var boolean + */ + public $testAccount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Customer"; + } + + public function __construct($customerId = NULL, $currencyCode = NULL, $dateTimeZone = NULL, $descriptiveName = NULL, $canManageClients = NULL, $testAccount = NULL) { + $this->customerId = $customerId; + $this->currencyCode = $currencyCode; + $this->dateTimeZone = $dateTimeZone; + $this->descriptiveName = $descriptiveName; + $this->canManageClients = $canManageClients; + $this->testAccount = $testAccount; + } +}} + +if (!class_exists("CustomerServiceGet", FALSE)) { +/** + * Returns details of the authorized customer. + * + * @return customer associated with the caller + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerServiceGet { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerServiceGetResponse { + /** + * @access public + * @var Customer + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CustomerService", FALSE)) { +/** + * CustomerService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CustomerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CustomerServiceGetResponse", + "get" => "CustomerServiceGet", + "mutate" => "CustomerServiceMutate", + "mutateResponse" => "CustomerServiceMutateResponse", + "mutateCallToAction" => "CustomerServiceMutateCallToAction", + "search" => "CustomerServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "Customer" => "Customer", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201309/CustomerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomerService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomerService', 'https://adwords.google.com/api/adwords/mcm/v201309'); + } + + /** + * Returns details of the authorized customer. + * + * @return customer associated with the caller + */ + public function get() { + $arg = new CustomerServiceGet(); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/CustomerSyncService.php b/src/Google/Api/Ads/AdWords/v201309/CustomerSyncService.php new file mode 100755 index 000000000..e448eb063 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/CustomerSyncService.php @@ -0,0 +1,2343 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * + * + * + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupChangeData", FALSE)) { +/** + * Holds information about a changed adgroup + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupChangeData { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $adGroupChangeStatus; + + /** + * @access public + * @var integer[] + */ + public $changedAds; + + /** + * @access public + * @var integer[] + */ + public $changedCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedCriteria; + + /** + * @access public + * @var integer[] + */ + public $changedFeeds; + + /** + * @access public + * @var integer[] + */ + public $deletedFeeds; + + /** + * @access public + * @var integer[] + */ + public $changedAdGroupBidModifierCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedAdGroupBidModifierCriteria; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupChangeData"; + } + + public function __construct($adGroupId = NULL, $adGroupChangeStatus = NULL, $changedAds = NULL, $changedCriteria = NULL, $deletedCriteria = NULL, $changedFeeds = NULL, $deletedFeeds = NULL, $changedAdGroupBidModifierCriteria = NULL, $deletedAdGroupBidModifierCriteria = NULL) { + $this->adGroupId = $adGroupId; + $this->adGroupChangeStatus = $adGroupChangeStatus; + $this->changedAds = $changedAds; + $this->changedCriteria = $changedCriteria; + $this->deletedCriteria = $deletedCriteria; + $this->changedFeeds = $changedFeeds; + $this->deletedFeeds = $deletedFeeds; + $this->changedAdGroupBidModifierCriteria = $changedAdGroupBidModifierCriteria; + $this->deletedAdGroupBidModifierCriteria = $deletedAdGroupBidModifierCriteria; + } +}} + +if (!class_exists("CampaignChangeData", FALSE)) { +/** + * Holds information about a changed campaign and any ad groups under + * that have changed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignChangeData { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $campaignChangeStatus; + + /** + * @access public + * @var AdGroupChangeData[] + */ + public $changedAdGroups; + + /** + * @access public + * @var integer[] + */ + public $addedCampaignCriteria; + + /** + * @access public + * @var integer[] + */ + public $deletedCampaignCriteria; + + /** + * @access public + * @var integer[] + */ + public $addedAdExtensions; + + /** + * @access public + * @var integer[] + */ + public $deletedAdExtensions; + + /** + * @access public + * @var integer[] + */ + public $changedFeeds; + + /** + * @access public + * @var integer[] + */ + public $deletedFeeds; + + /** + * @access public + * @var boolean + */ + public $campaignTargetingChanged; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignChangeData"; + } + + public function __construct($campaignId = NULL, $campaignChangeStatus = NULL, $changedAdGroups = NULL, $addedCampaignCriteria = NULL, $deletedCampaignCriteria = NULL, $addedAdExtensions = NULL, $deletedAdExtensions = NULL, $changedFeeds = NULL, $deletedFeeds = NULL, $campaignTargetingChanged = NULL) { + $this->campaignId = $campaignId; + $this->campaignChangeStatus = $campaignChangeStatus; + $this->changedAdGroups = $changedAdGroups; + $this->addedCampaignCriteria = $addedCampaignCriteria; + $this->deletedCampaignCriteria = $deletedCampaignCriteria; + $this->addedAdExtensions = $addedAdExtensions; + $this->deletedAdExtensions = $deletedAdExtensions; + $this->changedFeeds = $changedFeeds; + $this->deletedFeeds = $deletedFeeds; + $this->campaignTargetingChanged = $campaignTargetingChanged; + } +}} + +if (!class_exists("CustomerSyncError", FALSE)) { +/** + * Represents CustomerSyncService specific errors + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncError extends ApiError { + /** + * @access public + * @var tnsCustomerSyncErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncError"; + } + + public function __construct($reason = NULL, $campaignId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->campaignId = $campaignId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedChangeData", FALSE)) { +/** + * Holds information about a changed feed and any feeds items within the feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedChangeData { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var tnsChangeStatus + */ + public $feedChangeStatus; + + /** + * @access public + * @var integer[] + */ + public $changedFeedItems; + + /** + * @access public + * @var integer[] + */ + public $deletedFeedItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedChangeData"; + } + + public function __construct($feedId = NULL, $feedChangeStatus = NULL, $changedFeedItems = NULL, $deletedFeedItems = NULL) { + $this->feedId = $feedId; + $this->feedChangeStatus = $feedChangeStatus; + $this->changedFeedItems = $changedFeedItems; + $this->deletedFeedItems = $deletedFeedItems; + } +}} + +if (!class_exists("CustomerChangeData", FALSE)) { +/** + * Holds information about changes to a customer + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerChangeData { + /** + * @access public + * @var CampaignChangeData[] + */ + public $changedCampaigns; + + /** + * @access public + * @var FeedChangeData[] + */ + public $changedFeeds; + + /** + * @access public + * @var string + */ + public $lastChangeTimestamp; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerChangeData"; + } + + public function __construct($changedCampaigns = NULL, $changedFeeds = NULL, $lastChangeTimestamp = NULL) { + $this->changedCampaigns = $changedCampaigns; + $this->changedFeeds = $changedFeeds; + $this->lastChangeTimestamp = $lastChangeTimestamp; + } +}} + +if (!class_exists("CustomerSyncSelector", FALSE)) { +/** + * A filter for selecting change history data for a customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncSelector { + /** + * @access public + * @var DateTimeRange + */ + public $dateTimeRange; + + /** + * @access public + * @var integer[] + */ + public $campaignIds; + + /** + * @access public + * @var integer[] + */ + public $feedIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncSelector"; + } + + public function __construct($dateTimeRange = NULL, $campaignIds = NULL, $feedIds = NULL) { + $this->dateTimeRange = $dateTimeRange; + $this->campaignIds = $campaignIds; + $this->feedIds = $feedIds; + } +}} + +if (!class_exists("ChangeStatus", FALSE)) { +/** + * An enum used to classify the types of changes that have been made to + * an adgroup/campaign during a specified date range. This only refers + * to the field of the entity itself, and not its children. + * + * For example, if an AdGroup name changed, this status would be FIELDS_CHANGED, + * but if only bids on keywords belonging an AdGroup were changed this + * status would be FIELDS_UNCHANGED. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ChangeStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ChangeStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerSyncErrorReason", FALSE)) { +/** + * The request attempted to access a campaign that either does not + * exist or belongs to a different account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomerSyncError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomerSyncServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns information about changed entities inside a customer's account. + * + * @param selector Specifies the filter for selecting changehistory events for a customer. + * @return A Customer->Campaign->AdGroup hierarchy containing information about the objects + * changed at each level. All Campaigns that are requested in the selector will be returned, + * regardless of whether or not they have changed, but unchanged AdGroups will be ignored. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncServiceGet { + /** + * @access public + * @var CustomerSyncSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("CustomerSyncServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CustomerSyncServiceGetResponse { + /** + * @access public + * @var CustomerChangeData + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/ch/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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 this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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 this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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 this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("CustomerSyncService", FALSE)) { +/** + * CustomerSyncService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class CustomerSyncService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "CustomerSyncServiceGetResponse", + "get" => "CustomerSyncServiceGet", + "mutate" => "CustomerSyncServiceMutate", + "mutateResponse" => "CustomerSyncServiceMutateResponse", + "mutateCallToAction" => "CustomerSyncServiceMutateCallToAction", + "search" => "CustomerSyncServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateTimeRange" => "DateTimeRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "AdGroupChangeData" => "AdGroupChangeData", + "CampaignChangeData" => "CampaignChangeData", + "CustomerSyncError" => "CustomerSyncError", + "FeedChangeData" => "FeedChangeData", + "CustomerChangeData" => "CustomerChangeData", + "CustomerSyncSelector" => "CustomerSyncSelector", + "ChangeStatus" => "ChangeStatus", + "CustomerSyncError.Reason" => "CustomerSyncErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/ch/v201309/CustomerSyncService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomerSyncService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomerSyncService', 'https://adwords.google.com/api/adwords/ch/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns information about changed entities inside a customer's account. + * + * @param selector Specifies the filter for selecting changehistory events for a customer. + * @return A Customer->Campaign->AdGroup hierarchy containing information about the objects + * changed at each level. All Campaigns that are requested in the selector will be returned, + * regardless of whether or not they have changed, but unchanged AdGroups will be ignored. + */ + public function get($selector) { + $arg = new CustomerSyncServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/DataService.php b/src/Google/Api/Ads/AdWords/v201309/DataService.php new file mode 100755 index 000000000..e020a928a --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/DataService.php @@ -0,0 +1,3276 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscapeLandscapePoint", FALSE)) { +/** + * A set of estimates for a criterion's performance for a specific bid + * amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscapeLandscapePoint { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var Money + */ + public $marginalCpc; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var integer + */ + public $promotedImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape.LandscapePoint"; + } + + public function __construct($bid = NULL, $clicks = NULL, $cost = NULL, $marginalCpc = NULL, $impressions = NULL, $promotedImpressions = NULL) { + $this->bid = $bid; + $this->clicks = $clicks; + $this->cost = $cost; + $this->marginalCpc = $marginalCpc; + $this->impressions = $impressions; + $this->promotedImpressions = $promotedImpressions; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("DataEntry", FALSE)) { +/** + * The base class of all return types of the table service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DataEntry { + /** + * @access public + * @var string + */ + public $DataEntryType; + + private $_parameterMap = array ( + "DataEntry.Type" => "DataEntryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataEntry"; + } + + public function __construct($DataEntryType = NULL) { + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidLandscapeType", FALSE)) { +/** + * Used to specify the type of {@code AdGroupLandscape} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscapeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DataErrorReason", FALSE)) { +/** + * Reasons for error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DataErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAdGroupBidLandscape", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the ad groups specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getAdGroupBidLandscape { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("getAdGroupBidLandscapeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getAdGroupBidLandscapeResponse { + /** + * @access public + * @var AdGroupBidLandscapePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCriterionBidLandscape", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the criteria specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getCriterionBidLandscape { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("getCriterionBidLandscapeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getCriterionBidLandscapeResponse { + /** + * @access public + * @var CriterionBidLandscapePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DataError", FALSE)) { +/** + * Represents errors thrown by the get operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DataError extends ApiError { + /** + * @access public + * @var tnsDataErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscape", FALSE)) { +/** + * Represents data about a bid landscape for an ad group or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscape extends DataEntry { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var BidLandscapeLandscapePoint[] + */ + public $landscapePoints; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AdGroupBidLandscape", FALSE)) { +/** + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscape extends BidLandscape { + /** + * @access public + * @var tnsAdGroupBidLandscapeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $landscapeCurrent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape"; + } + + public function __construct($type = NULL, $landscapeCurrent = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->type = $type; + $this->landscapeCurrent = $landscapeCurrent; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionBidLandscape", FALSE)) { +/** + * The bid landscape for a criterion. A bid landscape estimates how a + * a criterion will perform based on different bid amounts. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionBidLandscape extends BidLandscape { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscape"; + } + + public function __construct($criterionId = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupBidLandscapePage", FALSE)) { +/** + * Contains a subset of {@link AdGroupBidLandscape} objects resulting from the + * filtering and paging of + * {@link com.google.ads.api.services.campaignmgmt.data.DataService#getAdGroupBidLandscape} + * call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscapePage extends NoStatsPage { + /** + * @access public + * @var AdGroupBidLandscape[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscapePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("CriterionBidLandscapePage", FALSE)) { +/** + * Contains a subset of {@link CriterionBidLandscapePage} objects resulting from the + * filtering and paging of + * {@link com.google.ads.api.services.campaignmgmt.data.DataService#getCriterionBidLandscape} + * call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionBidLandscapePage extends NoStatsPage { + /** + * @access public + * @var CriterionBidLandscape[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscapePage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("DataService", FALSE)) { +/** + * DataService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class DataService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "DataServiceGetResponse", + "get" => "DataServiceGet", + "mutate" => "DataServiceMutate", + "mutateResponse" => "DataServiceMutateResponse", + "mutateCallToAction" => "DataServiceMutateCallToAction", + "search" => "DataServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupBidLandscape" => "AdGroupBidLandscape", + "BidLandscape" => "BidLandscape", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CriterionBidLandscape" => "CriterionBidLandscape", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "LongValue" => "LongValue", + "Money" => "Money", + "ComparableValue" => "ComparableValue", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DataError" => "DataError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "BidLandscape.LandscapePoint" => "BidLandscapeLandscapePoint", + "Selector" => "Selector", + "DataEntry" => "DataEntry", + "AdGroupBidLandscapePage" => "AdGroupBidLandscapePage", + "NoStatsPage" => "NoStatsPage", + "CriterionBidLandscapePage" => "CriterionBidLandscapePage", + "Page" => "Page", + "AdGroupBidLandscape.Type" => "AdGroupBidLandscapeType", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "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", + "DataError.Reason" => "DataErrorReason", + "getAdGroupBidLandscape" => "getAdGroupBidLandscape", + "getAdGroupBidLandscapeResponse" => "getAdGroupBidLandscapeResponse", + "getCriterionBidLandscape" => "getCriterionBidLandscape", + "getCriterionBidLandscapeResponse" => "getCriterionBidLandscapeResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/DataService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = DataService::$classmap; + parent::__construct($wsdl, $options, $user, 'DataService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the ad groups specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + */ + public function getAdGroupBidLandscape($serviceSelector) { + $arg = new getAdGroupBidLandscape($serviceSelector); + $result = $this->__soapCall("getAdGroupBidLandscape", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of bid landscapes for the criteria specified in the selector. + * + * @param serviceSelector Selects the entities to return bid landscapes for. + * @return A list of bid landscapes. + * @throws ApiException when there is at least one error with the request. + */ + public function getCriterionBidLandscape($serviceSelector) { + $arg = new getCriterionBidLandscape($serviceSelector); + $result = $this->__soapCall("getCriterionBidLandscape", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ExperimentService.php b/src/Google/Api/Ads/AdWords/v201309/ExperimentService.php new file mode 100755 index 000000000..76753c87c --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ExperimentService.php @@ -0,0 +1,3488 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("ExperimentSummaryStats", FALSE)) { +/** + * Contains how many changes were made associated with an experiment at + * the adgroup, critieria and creative levels + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentSummaryStats { + /** + * @access public + * @var integer + */ + public $adGroupsCount; + + /** + * @access public + * @var integer + */ + public $adGroupCriteriaCount; + + /** + * @access public + * @var integer + */ + public $adGroupAdsCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentSummaryStats"; + } + + public function __construct($adGroupsCount = NULL, $adGroupCriteriaCount = NULL, $adGroupAdsCount = NULL) { + $this->adGroupsCount = $adGroupsCount; + $this->adGroupCriteriaCount = $adGroupCriteriaCount; + $this->adGroupAdsCount = $adGroupAdsCount; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Experiment", FALSE)) { +/** + * Class representing a experiment for the ExperimentService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Experiment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $controlId; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsExperimentStatus + */ + public $status; + + /** + * @access public + * @var tnsExperimentServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var integer + */ + public $queryPercentage; + + /** + * @access public + * @var string + */ + public $startDateTime; + + /** + * @access public + * @var string + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var ExperimentSummaryStats + */ + public $experimentSummaryStats; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Experiment"; + } + + public function __construct($id = NULL, $controlId = NULL, $campaignId = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $queryPercentage = NULL, $startDateTime = NULL, $endDateTime = NULL, $lastModifiedDateTime = NULL, $experimentSummaryStats = NULL) { + $this->id = $id; + $this->controlId = $controlId; + $this->campaignId = $campaignId; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->queryPercentage = $queryPercentage; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->experimentSummaryStats = $experimentSummaryStats; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServiceErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServingStatus", FALSE)) { +/** + * Experiment is currently active and receiving traffic + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentStatus", FALSE)) { +/** + * Experiment status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of experiments specified by the experiment selector from + * the customer's account. + * @param serviceSelector The selector specifying the {@link Experiment}s to return. + * If selector is empty, all experiments are returned. + * @return List of experiments meeting all the criteria of each selector. + * @throws ApiException if problems occurred while fetching experiment information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ExperimentServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceGetResponse { + /** + * @access public + * @var ExperimentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ExperimentServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Mutates (add, update or remove) experiments. + * Note: To REMOVE use SET and mark status to DELETED. + * @param operations A list of unique operations. + * The same experiment cannot be specified in more than one operation. + * @return The updated experiments. The list of experiments is returned in + * the same order in which it came in as input. + * @throws ApiException if problems occurred while updating experiment information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceMutate { + /** + * @access public + * @var ExperimentOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ExperimentServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceMutateResponse { + /** + * @access public + * @var ExperimentReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExperimentServiceError", FALSE)) { +/** + * Base error class for Experiment Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentServiceError extends ApiError { + /** + * @access public + * @var tnsExperimentServiceErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentServiceError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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("QuotaError", FALSE)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ExperimentOperation", FALSE)) { +/** + * Operation for adding, updating or removing operations. For removing, + * use SET and mark status as DELETED. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentOperation extends Operation { + /** + * @access public + * @var Experiment + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ExperimentReturnValue", FALSE)) { +/** + * A container for return values from the ExperimentService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentReturnValue extends ListReturnValue { + /** + * @access public + * @var Experiment[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExperimentPage", FALSE)) { +/** + * Contains a subset of experiment resulting from the filtering and paging of the + * {@link com.google.ads.api.services.campaignmgmt.campaign.ExperimentService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentPage extends Page { + /** + * @access public + * @var Experiment[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ExperimentService", FALSE)) { +/** + * ExperimentService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ExperimentService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ExperimentServiceGetResponse", + "get" => "ExperimentServiceGet", + "mutate" => "ExperimentServiceMutate", + "mutateResponse" => "ExperimentServiceMutateResponse", + "mutateCallToAction" => "ExperimentServiceMutateCallToAction", + "search" => "ExperimentServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "ExperimentServiceError" => "ExperimentServiceError", + "ExperimentSummaryStats" => "ExperimentSummaryStats", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "Experiment" => "Experiment", + "ExperimentOperation" => "ExperimentOperation", + "Operation" => "Operation", + "ExperimentReturnValue" => "ExperimentReturnValue", + "ListReturnValue" => "ListReturnValue", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ExperimentPage" => "ExperimentPage", + "Page" => "Page", + "Selector" => "Selector", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentServiceError.Reason" => "ExperimentServiceErrorReason", + "ExperimentServingStatus" => "ExperimentServingStatus", + "ExperimentStatus" => "ExperimentStatus", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "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", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/ExperimentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ExperimentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ExperimentService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of experiments specified by the experiment selector from + * the customer's account. + * @param serviceSelector The selector specifying the {@link Experiment}s to return. + * If selector is empty, all experiments are returned. + * @return List of experiments meeting all the criteria of each selector. + * @throws ApiException if problems occurred while fetching experiment information. + */ + public function get($serviceSelector) { + $arg = new ExperimentServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * 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. + * + * + * + * Mutates (add, update or remove) experiments. + * Note: To REMOVE use SET and mark status to DELETED. + * @param operations A list of unique operations. + * The same experiment cannot be specified in more than one operation. + * @return The updated experiments. The list of experiments is returned in + * the same order in which it came in as input. + * @throws ApiException if problems occurred while updating experiment information. + */ + public function mutate($operations) { + $arg = new ExperimentServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ExpressBusinessService.php b/src/Google/Api/Ads/AdWords/v201309/ExpressBusinessService.php new file mode 100755 index 000000000..2c5b62291 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ExpressBusinessService.php @@ -0,0 +1,3432 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

    + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExpressBusinessError", FALSE)) { +/** + * Express business related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessError extends ApiError { + /** + * @access public + * @var tnsExpressBusinessErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusinessError"; + } + + 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("PhoneNumber", FALSE)) { +/** + * Phone number which contains the phone number string plus the region that the number is to be + * from. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PhoneNumber { + /** + * @access public + * @var tnsRegionCode + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PhoneNumber"; + } + + public function __construct($regionCode = NULL, $number = NULL) { + $this->regionCode = $regionCode; + $this->number = $number; + } +}} + +if (!class_exists("ExpressBusiness", FALSE)) { +/** + * Information about an AdWords Express business. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusiness { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsExpressBusinessStatus + */ + public $status; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var PhoneNumber + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $website; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusiness"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $address = NULL, $geoPoint = NULL, $phoneNumber = NULL, $website = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->phoneNumber = $phoneNumber; + $this->website = $website; + } +}} + +if (!class_exists("ExpressBusinessOperation", FALSE)) { +/** + * A typed {@link Operation} class that uses an instance of {@link ExpressBusiness} as its operand. + * + *

    Note: The REMOVE operator is not + * supported. To remove an {@link ExpressBusiness}, set its {@link ExpressBusiness#status status} + * to DELETED.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessOperation extends Operation { + /** + * @access public + * @var ExpressBusiness + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusinessOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ExpressBusinessStatus", FALSE)) { +/** + * Possible statusus of this business. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusiness.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExpressBusinessErrorReason", FALSE)) { +/** + * Reason behind the {@code BusinessError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusinessError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCode", FALSE)) { +/** + * A region (country, territory, continent, etc), as defined by Unicode's + * "CLDR", itself based on ISO 3166 (UN country codes). + * + *

    See: + * + * http://unicode.org/cldr/charts/supplemental/territory_containment_un_m_49.html + * + *

    It contains no behavior, but is the authoritative definition of Region + * identity in java Google code. + * + *

    Do: + *

      + *
    • use it everywhere you need to compare regions
    • + *
    • use it in all APIs that take/return a region (such as a country), + * particularly all public APIs
    • + *
    • get the instance corresponding to an CLDR code using {@link #forString} + *
    • + *
    • get the String CLDR code with {@link #toString}
    • + *
    • use the String CLDR code in your DB as a key to currencies
    • + *
    • if your API supports only a subset of these codes, make sure to + * validate (e.g. by creating an EnumSet and using Precondition) + *
    • put your project-specific region-related information in a class under + * your project root, using an EnumMap or BiMap to map these Regions to your + * objects. + *
    • + *
    + * + * Do not: + *
      + *
    • depend on the ordinal of a region, for example using {@link #ordinal()} + * or depending on the index of a particular region in the {@link #values} + * array. + *
    • depend on the comparison order of regions, via + * {@link Enum#compareTo(Enum)}), or via the iteration order of an + * EnumSet, etc. + *
    • use {@link #valueOf} or {@link #name()}. The CLDR numeric codes aren't + * valid for java, so they were prepended by "UN" (as in "UN001" for the + * CLDR code "001"). + *
    • assume that these are the same as the two-letter ISO codes. Oftentimes + * they will be, but CLDR guarantees stability, so ISO codes that change + * will be different from the entries in this enum. + *
    + * + * This enum does not: + *
      + *
    • have i18n features
    • + *
    • have application-specific data
    • + *
    + * + * These concerns will be addressed by other classes, some in + * application-specific packages, others in common.base.i18n. The latter ones + * will be listed with "see" tags in this class. + * This class does not supply methods for getting information about regions. + * For those methods, see {@link RegionInfo}. + * + *

    Note that not all regions have a "two-letter" country code. Instead, some + * have a three digit number -- the UN M.49 (United Nations) area code. + * These are the enum items prepended with "UN". See: + * + *

      + *
    • http://unstats.un.org/unsd/methods/m49/m49alpha.htm + *
    • http://unstats.un.org/unsd/methods/m49/m49.htm + *
    + * + *

    Also note that CLDR -- contrary to ISO -- guarantees non-reuse of + * country codes. Thus, though most times CLDR codes are the same as the ISO + * codes, sometimes they are not. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExpressBusinessServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the Express businesses that meet the criteria set in the given selector. + * + * @param selector the selector specifying the AdWords Express businesses to return + * @return list of AdWords Express businesses identified by the selector + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("ExpressBusinessServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessServiceGetResponse { + /** + * @access public + * @var ExpressBusinessPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ExpressBusinessServiceMutate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Performs the given {@link ExpressBusinessOperation}. + * + * @param operations list of unique operations; the same AdWords Express business cannot be + * specified in more than one operation + * @return the updated AdWords Express businesses + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessServiceMutate { + /** + * @access public + * @var ExpressBusinessOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ExpressBusinessServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessServiceMutateResponse { + /** + * @access public + * @var ExpressBusiness[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ExpressBusinessPage", FALSE)) { +/** + * Contains a page of {@link ExpressBusiness}es with no stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressBusinessPage extends NoStatsPage { + /** + * @access public + * @var ExpressBusiness[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressBusinessPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ExpressBusinessService", FALSE)) { +/** + * ExpressBusinessService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ExpressBusinessService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ExpressBusinessServiceGetResponse", + "get" => "ExpressBusinessServiceGet", + "mutate" => "ExpressBusinessServiceMutate", + "mutateResponse" => "ExpressBusinessServiceMutateResponse", + "mutateCallToAction" => "ExpressBusinessServiceMutateCallToAction", + "search" => "ExpressBusinessServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Address" => "Address", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "Date" => "Date", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "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", + "ExpressBusinessError" => "ExpressBusinessError", + "PhoneNumber" => "PhoneNumber", + "ExpressBusiness" => "ExpressBusiness", + "ExpressBusinessOperation" => "ExpressBusinessOperation", + "ExpressBusinessPage" => "ExpressBusinessPage", + "NoStatsPage" => "NoStatsPage", + "ExpressBusiness.Status" => "ExpressBusinessStatus", + "ExpressBusinessError.Reason" => "ExpressBusinessErrorReason", + "RegionCode" => "RegionCode", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/express/v201309/ExpressBusinessService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ExpressBusinessService::$classmap; + parent::__construct($wsdl, $options, $user, 'ExpressBusinessService', 'https://adwords.google.com/api/adwords/express/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the Express businesses that meet the criteria set in the given selector. + * + * @param selector the selector specifying the AdWords Express businesses to return + * @return list of AdWords Express businesses identified by the selector + */ + public function get($selector) { + $arg = new ExpressBusinessServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Performs the given {@link ExpressBusinessOperation}. + * + * @param operations list of unique operations; the same AdWords Express business cannot be + * specified in more than one operation + * @return the updated AdWords Express businesses + */ + public function mutate($operations) { + $arg = new ExpressBusinessServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/FeedItemService.php b/src/Google/Api/Ads/AdWords/v201309/FeedItemService.php new file mode 100755 index 000000000..94160d1ab --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/FeedItemService.php @@ -0,0 +1,3587 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedItemAttributeError", FALSE)) { +/** + * Contains validation error details for a set of feed attributes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemAttributeError { + /** + * @access public + * @var integer[] + */ + public $feedAttributeIds; + + /** + * @access public + * @var integer + */ + public $validationErrorCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeError"; + } + + public function __construct($feedAttributeIds = NULL, $validationErrorCode = NULL) { + $this->feedAttributeIds = $feedAttributeIds; + $this->validationErrorCode = $validationErrorCode; + } +}} + +if (!class_exists("FeedItemAttributeValue", FALSE)) { +/** + * Represents a feed item's value for a particular feed attribute. A feed item's value is + * composed of a collection of these attribute values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemAttributeValue { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $integerValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeValue"; + } + + public function __construct($feedAttributeId = NULL, $integerValue = NULL, $doubleValue = NULL, $booleanValue = NULL, $stringValue = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->integerValue = $integerValue; + $this->doubleValue = $doubleValue; + $this->booleanValue = $booleanValue; + $this->stringValue = $stringValue; + } +}} + +if (!class_exists("FeedItemDevicePreference", FALSE)) { +/** + * Represents a FeedItem device preference. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemDevicePreference { + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemDevicePreference"; + } + + public function __construct($devicePreference = NULL) { + $this->devicePreference = $devicePreference; + } +}} + +if (!class_exists("FeedItemSchedule", FALSE)) { +/** + * Represents a FeedItem schedule, which specifies a time interval on a given day + * when the feed item may serve. The FeedItemSchedule times are in the account's time zone. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemSchedule { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + } +}} + +if (!class_exists("FeedItemScheduling", FALSE)) { +/** + * Represents a collection of FeedItem schedules specifying all time intervals for which + * the feed item may serve. Any time range not covered by the specified FeedItemSchedules will + * prevent the feed item from serving during those times. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemScheduling { + /** + * @access public + * @var FeedItemSchedule[] + */ + public $feedItemSchedules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemScheduling"; + } + + public function __construct($feedItemSchedules = NULL) { + $this->feedItemSchedules = $feedItemSchedules; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("FeedItemValidationDetail", FALSE)) { +/** + * Contains offline-validation and approval results for a given FeedItem and FeedMapping. Each + * validation detail indicates any issues found on the feed item when used in the context + * of the feed mapping. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetail { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var tnsFeedItemValidationDetailValidationStatus + */ + public $validationStatus; + + /** + * @access public + * @var FeedItemAttributeError[] + */ + public $validationErrors; + + /** + * @access public + * @var tnsFeedItemValidationDetailApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail"; + } + + public function __construct($feedMappingId = NULL, $validationStatus = NULL, $validationErrors = NULL, $approvalStatus = NULL) { + $this->feedMappingId = $feedMappingId; + $this->validationStatus = $validationStatus; + $this->validationErrors = $validationErrors; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedItem", FALSE)) { +/** + * Represents an item in a feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItem { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedItemId; + + /** + * @access public + * @var tnsFeedItemStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $startTime; + + /** + * @access public + * @var string + */ + public $endTime; + + /** + * @access public + * @var FeedItemAttributeValue[] + */ + public $attributeValues; + + /** + * @access public + * @var FeedItemValidationDetail[] + */ + public $validationDetails; + + /** + * @access public + * @var FeedItemDevicePreference + */ + public $devicePreference; + + /** + * @access public + * @var FeedItemScheduling + */ + public $scheduling; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem"; + } + + public function __construct($feedId = NULL, $feedItemId = NULL, $status = NULL, $startTime = NULL, $endTime = NULL, $attributeValues = NULL, $validationDetails = NULL, $devicePreference = NULL, $scheduling = NULL) { + $this->feedId = $feedId; + $this->feedItemId = $feedItemId; + $this->status = $status; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->attributeValues = $attributeValues; + $this->validationDetails = $validationDetails; + $this->devicePreference = $devicePreference; + $this->scheduling = $scheduling; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemStatus", FALSE)) { +/** + * Feed item is active + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemErrorReason", FALSE)) { +/** + * The reasons for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailApprovalStatus", FALSE)) { +/** + * Feed item approval status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetailApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailValidationStatus", FALSE)) { +/** + * Feed item validation status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetailValidationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ValidationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedItems that meet the selector criteria. + * + * @param selector Determines which FeedItems to return. If empty all + * FeedItems are returned. + * @return The list of FeedItems. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedItemServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemServiceGetResponse { + /** + * @access public + * @var FeedItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedItemServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set FeedItems. + * + * @param operations The operations to apply. + * @return The resulting FeedItems. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemServiceMutate { + /** + * @access public + * @var FeedItemOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedItemServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemServiceMutateResponse { + /** + * @access public + * @var FeedItemReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedItemError", FALSE)) { +/** + * FeedItemService related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemError extends ApiError { + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedItemOperation", FALSE)) { +/** + * FeedItem service mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemOperation extends Operation { + /** + * @access public + * @var FeedItem + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedItemReturnValue", FALSE)) { +/** + * A container for return values from FeedItemService.mutate(). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemReturnValue extends ListReturnValue { + /** + * @access public + * @var FeedItem[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedItemPage", FALSE)) { +/** + * Contains a subset of feed items resulting from a {@link FeedItemService#get} call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemPage extends NullStatsPage { + /** + * @access public + * @var FeedItem[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedItemService", FALSE)) { +/** + * FeedItemService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class FeedItemService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedItemServiceGetResponse", + "get" => "FeedItemServiceGet", + "mutate" => "FeedItemServiceMutate", + "mutateResponse" => "FeedItemServiceMutateResponse", + "mutateCallToAction" => "FeedItemServiceMutateCallToAction", + "search" => "FeedItemServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedItemAttributeError" => "FeedItemAttributeError", + "FeedItemAttributeValue" => "FeedItemAttributeValue", + "FeedItemDevicePreference" => "FeedItemDevicePreference", + "FeedItemError" => "FeedItemError", + "FeedItemSchedule" => "FeedItemSchedule", + "FeedItemScheduling" => "FeedItemScheduling", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "FeedItemValidationDetail" => "FeedItemValidationDetail", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "FeedItem" => "FeedItem", + "FeedItemOperation" => "FeedItemOperation", + "Operation" => "Operation", + "FeedItemPage" => "FeedItemPage", + "NullStatsPage" => "NullStatsPage", + "FeedItemReturnValue" => "FeedItemReturnValue", + "ListReturnValue" => "ListReturnValue", + "Page" => "Page", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DayOfWeek" => "DayOfWeek", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "FeedItem.Status" => "FeedItemStatus", + "FeedItemError.Reason" => "FeedItemErrorReason", + "FeedItemValidationDetail.ApprovalStatus" => "FeedItemValidationDetailApprovalStatus", + "FeedItemValidationDetail.ValidationStatus" => "FeedItemValidationDetailValidationStatus", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MinuteOfHour" => "MinuteOfHour", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/FeedItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedItemService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedItems that meet the selector criteria. + * + * @param selector Determines which FeedItems to return. If empty all + * FeedItems are returned. + * @return The list of FeedItems. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedItemServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set FeedItems. + * + * @param operations The operations to apply. + * @return The resulting FeedItems. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedItemServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/FeedMappingService.php b/src/Google/Api/Ads/AdWords/v201309/FeedMappingService.php new file mode 100755 index 000000000..4d9cd7592 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/FeedMappingService.php @@ -0,0 +1,2963 @@ +For a list of feed placeholders, see + * + * https://developers.google.com/adwords/api/docs/appendix/placeholders + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AttributeFieldMapping { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $fieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AttributeFieldMapping"; + } + + public function __construct($feedAttributeId = NULL, $fieldId = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->fieldId = $fieldId; + } +}} + +if (!class_exists("DateRange", FALSE)) { +/** + * Represents a range of dates that has either an upper or a lower bound. + * The format for the date is YYYYMMDD. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateRange { + /** + * @access public + * @var string + */ + public $min; + + /** + * @access public + * @var string + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedMapping", FALSE)) { +/** + * A FeedMapping represents a mapping between feed attributes in a specific feed + * and placeholder fields for a specific placeholder type. This will tell the + * ads serving system which parts of the feed item should be used when + * populating a placeholder. Without this mapping the placeholder cannot be + * populated and the extension can not be displayed. + * + *

    For a list of feed placeholders, see + * + * https://developers.google.com/adwords/api/docs/appendix/placeholders + *

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMapping { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $placeholderType; + + /** + * @access public + * @var tnsFeedMappingStatus + */ + public $status; + + /** + * @access public + * @var AttributeFieldMapping[] + */ + public $attributeFieldMappings; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMapping"; + } + + public function __construct($feedMappingId = NULL, $feedId = NULL, $placeholderType = NULL, $status = NULL, $attributeFieldMappings = NULL) { + $this->feedMappingId = $feedMappingId; + $this->feedId = $feedId; + $this->placeholderType = $placeholderType; + $this->status = $status; + $this->attributeFieldMappings = $attributeFieldMappings; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingStatus", FALSE)) { +/** + * This mapping is used in feeds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMapping.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingErrorReason", FALSE)) { +/** + * The given placeholder field does not exist. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedMappingServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedMappings that meet the selector criteria. + * + * @param selector Determines which FeedMappings to return. If empty all + * FeedMappings are returned. + * @return The list of FeedMappings. + * @throws ApiException indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedMappingServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingServiceGetResponse { + /** + * @access public + * @var FeedMappingPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedMappingServiceMutate", FALSE)) { +/** + * 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, REMOVE. + * + * + * + * Add and remove FeedMappings. + * + * @param operations The operations to apply. + * @return The resulting FeedMappings. + * @throws ApiException indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingServiceMutate { + /** + * @access public + * @var FeedMappingOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedMappingServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingServiceMutateResponse { + /** + * @access public + * @var FeedMappingReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedMappingError", FALSE)) { +/** + * Errors caused by invalid usage of FeedMappingService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingError extends ApiError { + /** + * @access public + * @var tnsFeedMappingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingError"; + } + + 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("FeedMappingOperation", FALSE)) { +/** + * Operation used to create a FeedMapping. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingOperation extends Operation { + /** + * @access public + * @var FeedMapping + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedMappingReturnValue", FALSE)) { +/** + * The result of a call to {@link FeedMappingService#mutate}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingReturnValue extends ListReturnValue { + /** + * @access public + * @var FeedMapping[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedMappingPage", FALSE)) { +/** + * The result of a call to {@link FeedMappingService#get}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedMappingPage extends NullStatsPage { + /** + * @access public + * @var FeedMapping[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedMappingPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedMappingService", FALSE)) { +/** + * FeedMappingService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class FeedMappingService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedMappingServiceGetResponse", + "get" => "FeedMappingServiceGet", + "mutate" => "FeedMappingServiceMutate", + "mutateResponse" => "FeedMappingServiceMutateResponse", + "mutateCallToAction" => "FeedMappingServiceMutateCallToAction", + "search" => "FeedMappingServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AttributeFieldMapping" => "AttributeFieldMapping", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "FeedMapping" => "FeedMapping", + "FeedMappingError" => "FeedMappingError", + "FeedMappingOperation" => "FeedMappingOperation", + "Operation" => "Operation", + "FeedMappingPage" => "FeedMappingPage", + "NullStatsPage" => "NullStatsPage", + "FeedMappingReturnValue" => "FeedMappingReturnValue", + "ListReturnValue" => "ListReturnValue", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "Page" => "Page", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "FeedMapping.Status" => "FeedMappingStatus", + "FeedMappingError.Reason" => "FeedMappingErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/FeedMappingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedMappingService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedMappingService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of FeedMappings that meet the selector criteria. + * + * @param selector Determines which FeedMappings to return. If empty all + * FeedMappings are returned. + * @return The list of FeedMappings. + * @throws ApiException indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedMappingServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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, REMOVE. + * + * + * + * Add and remove FeedMappings. + * + * @param operations The operations to apply. + * @return The resulting FeedMappings. + * @throws ApiException indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedMappingServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/FeedService.php b/src/Google/Api/Ads/AdWords/v201309/FeedService.php new file mode 100755 index 000000000..17684aa2d --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/FeedService.php @@ -0,0 +1,3189 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("FeedAttribute", FALSE)) { +/** + * FeedAttributes define the types of data expected to be present in a Feed. A single FeedAttribute + * specifies the expected type of the FeedItemAttributes with the same FeedAttributeId. Optionally, + * a FeedAttribute can be marked as being part of a FeedItem's unique key. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedAttribute { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsFeedAttributeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isPartOfKey; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttribute"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $isPartOfKey = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->isPartOfKey = $isPartOfKey; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Feed", FALSE)) { +/** + * A Feed identifies a source of data and its schema. The data for the Feed can either be + * user-entered via the FeedItemService or system-generated, in which case the data is provided + * automatically. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Feed { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var FeedAttribute[] + */ + public $attributes; + + /** + * @access public + * @var tnsFeedStatus + */ + public $status; + + /** + * @access public + * @var tnsFeedOrigin + */ + public $origin; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed"; + } + + public function __construct($id = NULL, $name = NULL, $attributes = NULL, $status = NULL, $origin = NULL) { + $this->id = $id; + $this->name = $name; + $this->attributes = $attributes; + $this->status = $status; + $this->origin = $origin; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedOrigin", FALSE)) { +/** + * The creator of the {@link Feed}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedOrigin { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed.Origin"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedStatus", FALSE)) { +/** + * Status of the Feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Feed.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedAttributeType", FALSE)) { +/** + * Possible data types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedAttributeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedAttribute.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedErrorReason", FALSE)) { +/** + * Error reasons. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of Feeds that meet the selector criteria. + * + * @param selector Determines which Feeds to return. If empty all + * Feeds are returned. + * @return The list of Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("FeedServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedServiceGetResponse { + /** + * @access public + * @var FeedPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("FeedServiceMutate", FALSE)) { +/** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set Feeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedServiceMutate { + /** + * @access public + * @var FeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("FeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedServiceMutateResponse { + /** + * @access public + * @var FeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("FeedError", FALSE)) { +/** + * An error caused by an invalid Feed in a FeedService request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedError extends ApiError { + /** + * @access public + * @var tnsFeedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("FeedOperation", FALSE)) { +/** + * Operation used to create or mutate a Feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedOperation extends Operation { + /** + * @access public + * @var Feed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("FeedReturnValue", FALSE)) { +/** + * The result of a call to FeedService#mutate. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedReturnValue extends ListReturnValue { + /** + * @access public + * @var Feed[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedPage", FALSE)) { +/** + * The result of a call to FeedService#get. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedPage extends NullStatsPage { + /** + * @access public + * @var Feed[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("FeedService", FALSE)) { +/** + * FeedService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class FeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "FeedServiceGetResponse", + "get" => "FeedServiceGet", + "mutate" => "FeedServiceMutate", + "mutateResponse" => "FeedServiceMutateResponse", + "mutateCallToAction" => "FeedServiceMutateCallToAction", + "search" => "FeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "FeedAttribute" => "FeedAttribute", + "FeedError" => "FeedError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Feed" => "Feed", + "FeedOperation" => "FeedOperation", + "Operation" => "Operation", + "FeedPage" => "FeedPage", + "NullStatsPage" => "NullStatsPage", + "FeedReturnValue" => "FeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "Page" => "Page", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "Feed.Origin" => "FeedOrigin", + "Feed.Status" => "FeedStatus", + "FeedAttribute.Type" => "FeedAttributeType", + "FeedError.Reason" => "FeedErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/FeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = FeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'FeedService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of Feeds that meet the selector criteria. + * + * @param selector Determines which Feeds to return. If empty all + * Feeds are returned. + * @return The list of Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function get($selector) { + $arg = new FeedServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field must not contain {@code null} elements. + * Elements in this field must have distinct IDs for following {@link Operator}s : SET, REMOVE. + * This field must contain at least one element. + * This field is required and should not be {@code null}. + * + * + * + * Add, remove, and set Feeds. + * + * @param operations The operations to apply. + * @return The resulting Feeds. + * @throws ApiException Indicates a problem with the request. + */ + public function mutate($operations) { + $arg = new FeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/GeoLocationService.php b/src/Google/Api/Ads/AdWords/v201309/GeoLocationService.php new file mode 100755 index 000000000..a041f74c2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/GeoLocationService.php @@ -0,0 +1,2168 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("GeoLocationSelector", FALSE)) { +/** + * A selector used to fetch geographic coordinates for given addresses. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationSelector { + /** + * @access public + * @var Address[] + */ + public $addresses; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationSelector"; + } + + public function __construct($addresses = NULL) { + $this->addresses = $addresses; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("GeoLocation", FALSE)) { +/** + * Class representing a location with its geographic coordinates. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocation { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $GeoLocationType; + + private $_parameterMap = array ( + "GeoLocation.Type" => "GeoLocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocation"; + } + + public function __construct($geoPoint = NULL, $address = NULL, $encodedLocation = NULL, $GeoLocationType = NULL) { + $this->geoPoint = $geoPoint; + $this->address = $address; + $this->encodedLocation = $encodedLocation; + $this->GeoLocationType = $GeoLocationType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoLocationErrorReason", FALSE)) { +/** + * The reasons for the geolocation errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoLocationServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the geographic location information for the address specified. + * + * @param selector specifies the addresses. + * @return list of {@link GeoLocation} objects. Returns {@link InvalidGeoLocation} object if + * the address cannot be geocoded. + * @throws ApiException if problems occurred while retrieving the location information + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationServiceGet { + /** + * @access public + * @var GeoLocationSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("GeoLocationServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationServiceGetResponse { + /** + * @access public + * @var GeoLocation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("GeoLocationError", FALSE)) { +/** + * Errors for {@link GeoLocationService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoLocationError extends ApiError { + /** + * @access public + * @var tnsGeoLocationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoLocationError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidGeoLocation", FALSE)) { +/** + * Invalid GeoLocation object. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InvalidGeoLocation extends GeoLocation { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidGeoLocation"; + } + + public function __construct($geoPoint = NULL, $address = NULL, $encodedLocation = NULL, $GeoLocationType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->address = $address; + $this->encodedLocation = $encodedLocation; + $this->GeoLocationType = $GeoLocationType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("GeoLocationService", FALSE)) { +/** + * GeoLocationService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class GeoLocationService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "GeoLocationServiceGetResponse", + "get" => "GeoLocationServiceGet", + "mutate" => "GeoLocationServiceMutate", + "mutateResponse" => "GeoLocationServiceMutateResponse", + "mutateCallToAction" => "GeoLocationServiceMutateCallToAction", + "search" => "GeoLocationServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Address" => "Address", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DistinctError" => "DistinctError", + "GeoLocationError" => "GeoLocationError", + "GeoLocationSelector" => "GeoLocationSelector", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "InvalidGeoLocation" => "InvalidGeoLocation", + "GeoLocation" => "GeoLocation", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "GeoLocationError.Reason" => "GeoLocationErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/GeoLocationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = GeoLocationService::$classmap; + parent::__construct($wsdl, $options, $user, 'GeoLocationService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the geographic location information for the address specified. + * + * @param selector specifies the addresses. + * @return list of {@link GeoLocation} objects. Returns {@link InvalidGeoLocation} object if + * the address cannot be geocoded. + * @throws ApiException if problems occurred while retrieving the location information + */ + public function get($selector) { + $arg = new GeoLocationServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/LocationCriterionService.php b/src/Google/Api/Ads/AdWords/v201309/LocationCriterionService.php new file mode 100755 index 000000000..dbf5b6950 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/LocationCriterionService.php @@ -0,0 +1,3553 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Location", FALSE)) { +/** + * Represents Location criterion. + *

    A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("LocationCriterion", FALSE)) { +/** + * Represents data that encapsulates a location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterion { + /** + * @access public + * @var Location + */ + public $location; + + /** + * @access public + * @var string + */ + public $canonicalName; + + /** + * @access public + * @var integer + */ + public $reach; + + /** + * @access public + * @var string + */ + public $locale; + + /** + * @access public + * @var string + */ + public $searchTerm; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterion"; + } + + public function __construct($location = NULL, $canonicalName = NULL, $reach = NULL, $locale = NULL, $searchTerm = NULL, $countryCode = NULL) { + $this->location = $location; + $this->canonicalName = $canonicalName; + $this->reach = $reach; + $this->locale = $locale; + $this->searchTerm = $searchTerm; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("LocationCriterionServiceError", FALSE)) { +/** + * Represents errors thrown by the {@link LocationCriterionService#get} operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterionServiceError extends ApiError { + /** + * @access public + * @var tnsLocationCriterionServiceErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterionServiceError"; + } + + 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("MobileAppCategory", FALSE)) { +/** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationCriterionServiceErrorReason", FALSE)) { +/** + * Reasons for error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterionServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationCriterionServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link LocationCriterion}'s that match the specified selector. + * + * @param selector filters the LocationCriterion to be returned. + * @return A list of location criterion. + * @throws ApiException when there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("LocationCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationCriterionServiceGetResponse { + /** + * @access public + * @var LocationCriterion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("LocationCriterionService", FALSE)) { +/** + * LocationCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class LocationCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "LocationCriterionServiceGetResponse", + "get" => "LocationCriterionServiceGet", + "mutate" => "LocationCriterionServiceMutate", + "mutateResponse" => "LocationCriterionServiceMutateResponse", + "mutateCallToAction" => "LocationCriterionServiceMutateCallToAction", + "search" => "LocationCriterionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "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", + "Location" => "Location", + "LocationCriterion" => "LocationCriterion", + "LocationCriterionServiceError" => "LocationCriterionServiceError", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "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", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "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", + "LocationCriterionServiceError.Reason" => "LocationCriterionServiceErrorReason", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "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", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/LocationCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LocationCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'LocationCriterionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of {@link LocationCriterion}'s that match the specified selector. + * + * @param selector filters the LocationCriterion to be returned. + * @return A list of location criterion. + * @throws ApiException when there is at least one error with the request. + */ + public function get($selector) { + $arg = new LocationCriterionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/ManagedCustomerService.php b/src/Google/Api/Ads/AdWords/v201309/ManagedCustomerService.php new file mode 100755 index 000000000..43d00ea0b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ManagedCustomerService.php @@ -0,0 +1,3778 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

    + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceError", FALSE)) { +/** + * Error for {@link ManagedCustomerService} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceError extends ApiError { + /** + * @access public + * @var tnsManagedCustomerServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer[] + */ + public $customerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerServiceError"; + } + + public function __construct($reason = NULL, $customerIds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->customerIds = $customerIds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PendingInvitationSelector", FALSE)) { +/** + * Selector for getPendingInvitations method. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PendingInvitationSelector { + /** + * @access public + * @var integer[] + */ + public $managerCustomerIds; + + /** + * @access public + * @var integer[] + */ + public $clientCustomerIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PendingInvitationSelector"; + } + + public function __construct($managerCustomerIds = NULL, $clientCustomerIds = NULL) { + $this->managerCustomerIds = $managerCustomerIds; + $this->clientCustomerIds = $clientCustomerIds; + } +}} + +if (!class_exists("ManagedCustomerLink", FALSE)) { +/** + * Represents an AdWords manager-client link. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerLink { + /** + * @access public + * @var integer + */ + public $managerCustomerId; + + /** + * @access public + * @var integer + */ + public $clientCustomerId; + + /** + * @access public + * @var tnsLinkStatus + */ + public $linkStatus; + + /** + * @access public + * @var string + */ + public $pendingDescriptiveName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerLink"; + } + + public function __construct($managerCustomerId = NULL, $clientCustomerId = NULL, $linkStatus = NULL, $pendingDescriptiveName = NULL) { + $this->managerCustomerId = $managerCustomerId; + $this->clientCustomerId = $clientCustomerId; + $this->linkStatus = $linkStatus; + $this->pendingDescriptiveName = $pendingDescriptiveName; + } +}} + +if (!class_exists("LinkOperation", FALSE)) { +/** + * Operation for modifying ManagedCustomer links. See {@link ManagedCustomerService#mutateLink}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LinkOperation extends Operation { + /** + * @access public + * @var ManagedCustomerLink + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LinkOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("MoveOperation", FALSE)) { +/** + * Operation for moving ManagedCustomer links. See {@link ManagedCustomerService#mutateManager}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MoveOperation extends Operation { + /** + * @access public + * @var ManagedCustomerLink + */ + public $operand; + + /** + * @access public + * @var integer + */ + public $oldManagerCustomerId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MoveOperation"; + } + + public function __construct($operand = NULL, $oldManagerCustomerId = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->oldManagerCustomerId = $oldManagerCustomerId; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("MutateLinkResults", FALSE)) { +/** + * Results of a {@link ManagedCustomerService#mutateLink} call which changes + * manager/client links. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateLinkResults { + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MutateLinkResults"; + } + + public function __construct($links = NULL) { + $this->links = $links; + } +}} + +if (!class_exists("MutateManagerResults", FALSE)) { +/** + * Results of a {@link ManagedCustomerService#mutateManager} call, which moves client customers to + * new managers. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateManagerResults { + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MutateManagerResults"; + } + + public function __construct($links = NULL) { + $this->links = $links; + } +}} + +if (!class_exists("ManagedCustomer", FALSE)) { +/** + * Data object that represents a managed customer. Member of {@link ManagedCustomerPage}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomer { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $login; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var integer + */ + public $customerId; + + /** + * @access public + * @var boolean + */ + public $canManageClients; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $dateTimeZone; + + /** + * @access public + * @var boolean + */ + public $testAccount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomer"; + } + + public function __construct($name = NULL, $login = NULL, $companyName = NULL, $customerId = NULL, $canManageClients = NULL, $currencyCode = NULL, $dateTimeZone = NULL, $testAccount = NULL) { + $this->name = $name; + $this->login = $login; + $this->companyName = $companyName; + $this->customerId = $customerId; + $this->canManageClients = $canManageClients; + $this->currencyCode = $currencyCode; + $this->dateTimeZone = $dateTimeZone; + $this->testAccount = $testAccount; + } +}} + +if (!class_exists("ManagedCustomerOperation", FALSE)) { +/** + * An operation on a managed customer. + *

    Note: only ADD operator is supported.

    + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerOperation extends Operation { + /** + * @access public + * @var ManagedCustomer + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("ManagedCustomerPage", FALSE)) { +/** + * Return result of {@link ManagedCustomerService} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerPage extends Page { + /** + * @access public + * @var ManagedCustomer[] + */ + public $entries; + + /** + * @access public + * @var ManagedCustomerLink[] + */ + public $links; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerPage"; + } + + public function __construct($entries = NULL, $links = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->links = $links; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ManagedCustomerReturnValue", FALSE)) { +/** + * A container for return values from the ManagedCustomerService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerReturnValue { + /** + * @access public + * @var ManagedCustomer[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerReturnValue"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("PendingInvitation", FALSE)) { +/** + * Pending invitation result for the getPendingInvitations method. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PendingInvitation { + /** + * @access public + * @var ManagedCustomer + */ + public $manager; + + /** + * @access public + * @var ManagedCustomer + */ + public $client; + + /** + * @access public + * @var string + */ + public $creationDate; + + /** + * @access public + * @var string + */ + public $expirationDate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PendingInvitation"; + } + + public function __construct($manager = NULL, $client = NULL, $creationDate = NULL, $expirationDate = NULL) { + $this->manager = $manager; + $this->client = $client; + $this->creationDate = $creationDate; + $this->expirationDate = $expirationDate; + } +}} + +if (!class_exists("LinkStatus", FALSE)) { +/** + * These status values match the values in the ServicedAccounts.Status column. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LinkStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LinkStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceErrorReason", FALSE)) { +/** + * Unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManagedCustomerServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ManagedCustomerServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of customers that meet the selector criteria. + * + * @param selector The selector specifying the {@link ManagedCustomer}s to return. + * @return List of customers identified by the selector. + * @throws ApiException When there is at least one error with the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("ManagedCustomerServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceGetResponse { + /** + * @access public + * @var ManagedCustomerPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPendingInvitations", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the pending invitations for the customer IDs in the selector. + * @param selector the manager customer ids (inviters) or the client customer ids (invitees) + * @throws ApiException when there is at least one error with the request + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getPendingInvitations { + /** + * @access public + * @var PendingInvitationSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getPendingInvitationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getPendingInvitationsResponse { + /** + * @access public + * @var PendingInvitation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ManagedCustomerServiceMutate", FALSE)) { +/** + * 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: SET, ADD. + * + * + * + * Adds managed customers. + * + *

    Note: {@link ManagedCustomerOperation} only supports + * {@code ADD} operator.

    + * + * @param operations List of unique operations. + * @return The list of updated managed customers, returned in the same order as the + * operations array. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceMutate { + /** + * @access public + * @var ManagedCustomerOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("ManagedCustomerServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManagedCustomerServiceMutateResponse { + /** + * @access public + * @var ManagedCustomerReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("mutateLink", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Modifies the ManagedCustomer forest. These actions are possible (categorized by + * Operator + Link Status): + * + *
      + *
    • ADD + PENDING: manager extends invitations + *
    • SET + CANCELLED: manager rescinds invitations + *
    • SET + INACTIVE: manager/client terminates links + *
    • SET + ACTIVE: client accepts invitations + *
    • SET + REFUSED: client declines invitations + *
    + * + * @param operations the list of operations + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class mutateLink { + /** + * @access public + * @var LinkOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("mutateLinkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class mutateLinkResponse { + /** + * @access public + * @var MutateLinkResults + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("mutateManager", FALSE)) { +/** + * 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: SET. + * + * + * + * Moves client customers to new managers (moving links). Only the following action is possible: + * + *
      + *
    • SET + ACTIVE: manager moves client customers to new managers within the same MCC + * hierarchy + *
    + * + * @param operations List of unique operations. + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class mutateManager { + /** + * @access public + * @var MoveOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("mutateManagerResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class mutateManagerResponse { + /** + * @access public + * @var MutateManagerResults + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/mcm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ManagedCustomerService", FALSE)) { +/** + * ManagedCustomerService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ManagedCustomerService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ManagedCustomerServiceGetResponse", + "get" => "ManagedCustomerServiceGet", + "mutate" => "ManagedCustomerServiceMutate", + "mutateResponse" => "ManagedCustomerServiceMutateResponse", + "mutateCallToAction" => "ManagedCustomerServiceMutateCallToAction", + "search" => "ManagedCustomerServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "Operation" => "Operation", + "Page" => "Page", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "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", + "ManagedCustomerServiceError" => "ManagedCustomerServiceError", + "PendingInvitationSelector" => "PendingInvitationSelector", + "ManagedCustomerLink" => "ManagedCustomerLink", + "LinkOperation" => "LinkOperation", + "MoveOperation" => "MoveOperation", + "MutateLinkResults" => "MutateLinkResults", + "MutateManagerResults" => "MutateManagerResults", + "ManagedCustomer" => "ManagedCustomer", + "ManagedCustomerOperation" => "ManagedCustomerOperation", + "ManagedCustomerPage" => "ManagedCustomerPage", + "ManagedCustomerReturnValue" => "ManagedCustomerReturnValue", + "PendingInvitation" => "PendingInvitation", + "LinkStatus" => "LinkStatus", + "ManagedCustomerServiceError.Reason" => "ManagedCustomerServiceErrorReason", + "getPendingInvitations" => "getPendingInvitations", + "getPendingInvitationsResponse" => "getPendingInvitationsResponse", + "mutateLink" => "mutateLink", + "mutateLinkResponse" => "mutateLinkResponse", + "mutateManager" => "mutateManager", + "mutateManagerResponse" => "mutateManagerResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/mcm/v201309/ManagedCustomerService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ManagedCustomerService::$classmap; + parent::__construct($wsdl, $options, $user, 'ManagedCustomerService', 'https://adwords.google.com/api/adwords/mcm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the list of customers that meet the selector criteria. + * + * @param selector The selector specifying the {@link ManagedCustomer}s to return. + * @return List of customers identified by the selector. + * @throws ApiException When there is at least one error with the request. + */ + public function get($serviceSelector) { + $arg = new ManagedCustomerServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the pending invitations for the customer IDs in the selector. + * @param selector the manager customer ids (inviters) or the client customer ids (invitees) + * @throws ApiException when there is at least one error with the request + */ + public function getPendingInvitations($selector) { + $arg = new getPendingInvitations($selector); + $result = $this->__soapCall("getPendingInvitations", array($arg)); + return $result->rval; + } + + + /** + * 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: SET, ADD. + * + * + * + * Adds managed customers. + * + *

    Note: {@link ManagedCustomerOperation} only supports + * {@code ADD} operator.

    + * + * @param operations List of unique operations. + * @return The list of updated managed customers, returned in the same order as the + * operations array. + */ + public function mutate($operations) { + $arg = new ManagedCustomerServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: SET, ADD. + * + * + * + * Modifies the ManagedCustomer forest. These actions are possible (categorized by + * Operator + Link Status): + * + *
      + *
    • ADD + PENDING: manager extends invitations + *
    • SET + CANCELLED: manager rescinds invitations + *
    • SET + INACTIVE: manager/client terminates links + *
    • SET + ACTIVE: client accepts invitations + *
    • SET + REFUSED: client declines invitations + *
    + * + * @param operations the list of operations + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + */ + public function mutateLink($operations) { + $arg = new mutateLink($operations); + $result = $this->__soapCall("mutateLink", array($arg)); + return $result->rval; + } + + + /** + * 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: SET. + * + * + * + * Moves client customers to new managers (moving links). Only the following action is possible: + * + *
      + *
    • SET + ACTIVE: manager moves client customers to new managers within the same MCC + * hierarchy + *
    + * + * @param operations List of unique operations. + * @return results for the given operations + * @throws ApiException with a {@link ManagedCustomerServiceError} + */ + public function mutateManager($operations) { + $arg = new mutateManager($operations); + $result = $this->__soapCall("mutateManager", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/MediaService.php b/src/Google/Api/Ads/AdWords/v201309/MediaService.php new file mode 100755 index 000000000..80be89397 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/MediaService.php @@ -0,0 +1,3204 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * Specifies how the resulting information should be sorted. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * Specifies the page of results to return in the response. A page is specified + * by the result position to start at and the maximum number of results to + * return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaPage", FALSE)) { +/** + * Page of media returned by the {@link MediaService} which includes + * the media. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaPage { + /** + * @access public + * @var Media[] + */ + public $entries; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL) { + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * A generic selector to specify the type of information to return. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AudioErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AudioErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudioError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoErrorReason", FALSE)) { +/** + * Invalid video. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class VideoErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of media that meet the criteria specified by the selector. + *

    Note: {@code MediaService} will not return any + * {@link ImageAd} image files.

    + * + * @param serviceSelector Selects which media objects to return. + * @return A list of {@code Media} objects. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaServiceGet { + /** + * @access public + * @var Selector + */ + public $serviceSelector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($serviceSelector = NULL) { + $this->serviceSelector = $serviceSelector; + } +}} + +if (!class_exists("MediaServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaServiceGetResponse { + /** + * @access public + * @var MediaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("upload", FALSE)) { +/** + * Uploads new media. Currently, you can only upload {@link Image} files. + * + * @param media A list of {@code Media} objects, each containing the data to + * be uploaded. + * @return A list of uploaded media in the same order as the argument list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class upload { + /** + * @access public + * @var Media[] + */ + public $media; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($media = NULL) { + $this->media = $media; + } +}} + +if (!class_exists("uploadResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class uploadResponse { + /** + * @access public + * @var Media[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("AudioError", FALSE)) { +/** + * Error class for errors associated with parsing audio data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AudioError extends ApiError { + /** + * @access public + * @var tnsAudioErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudioError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("VideoError", FALSE)) { +/** + * Error class for errors associated with parsing video data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class VideoError extends ApiError { + /** + * @access public + * @var tnsVideoErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("MediaService", FALSE)) { +/** + * MediaService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class MediaService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "MediaServiceGetResponse", + "get" => "MediaServiceGet", + "mutate" => "MediaServiceMutate", + "mutateResponse" => "MediaServiceMutateResponse", + "mutateCallToAction" => "MediaServiceMutateCallToAction", + "search" => "MediaServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Audio" => "Audio", + "Media" => "Media", + "AudioError" => "AudioError", + "ApiError" => "ApiError", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "Image" => "Image", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "NewEntityCreationError" => "NewEntityCreationError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "Video" => "Video", + "VideoError" => "VideoError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "MediaPage" => "MediaPage", + "Selector" => "Selector", + "AudioError.Reason" => "AudioErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "VideoError.Reason" => "VideoErrorReason", + "upload" => "upload", + "uploadResponse" => "uploadResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/MediaService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = MediaService::$classmap; + parent::__construct($wsdl, $options, $user, 'MediaService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of media that meet the criteria specified by the selector. + *

    Note: {@code MediaService} will not return any + * {@link ImageAd} image files.

    + * + * @param serviceSelector Selects which media objects to return. + * @return A list of {@code Media} objects. + */ + public function get($serviceSelector) { + $arg = new MediaServiceGet($serviceSelector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * Uploads new media. Currently, you can only upload {@link Image} files. + * + * @param media A list of {@code Media} objects, each containing the data to + * be uploaded. + * @return A list of uploaded media in the same order as the argument list. + */ + public function upload($media) { + $arg = new upload($media); + $result = $this->__soapCall("upload", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/MutateJobService.php b/src/Google/Api/Ads/AdWords/v201309/MutateJobService.php new file mode 100755 index 000000000..67cf33256 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/MutateJobService.php @@ -0,0 +1,16670 @@ +This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Ad { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $displayUrl; + + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * @access public + * @var string + */ + public $AdType; + + private $_parameterMap = array ( + "Ad.Type" => "AdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Ad"; + } + + public function __construct($id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdExtension", FALSE)) { +/** + * Base class for AdExtension objects. An AdExtension is an extension to + * an existing ad or metadata that will process into an extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtension { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdExtensionType; + + private $_parameterMap = array ( + "AdExtension.Type" => "AdExtensionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtension"; + } + + public function __construct($id = NULL, $AdExtensionType = NULL) { + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("AdExtensionOverride", FALSE)) { +/** + * Represents an ad level ad extension override. An ad extension override + * specifies the ad extension that must be used if the ad is served with + * any ad extension data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverride { + /** + * @access public + * @var integer + */ + public $adId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var OverrideInfo + */ + public $overrideInfo; + + /** + * @access public + * @var tnsAdExtensionOverrideStatus + */ + public $status; + + /** + * @access public + * @var tnsAdExtensionOverrideApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride"; + } + + public function __construct($adId = NULL, $adExtension = NULL, $overrideInfo = NULL, $status = NULL, $approvalStatus = NULL) { + $this->adId = $adId; + $this->adExtension = $adExtension; + $this->overrideInfo = $overrideInfo; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("AdGroup", FALSE)) { +/** + * Represents an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroup { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $campaignName; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsAdGroupStatus + */ + public $status; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var AdGroupExperimentData + */ + public $experimentData; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $contentBidCriterionTypeGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup"; + } + + public function __construct($id = NULL, $campaignId = NULL, $campaignName = NULL, $name = NULL, $status = NULL, $settings = NULL, $experimentData = NULL, $forwardCompatibilityMap = NULL, $biddingStrategyConfiguration = NULL, $contentBidCriterionTypeGroup = NULL) { + $this->id = $id; + $this->campaignId = $campaignId; + $this->campaignName = $campaignName; + $this->name = $name; + $this->status = $status; + $this->settings = $settings; + $this->experimentData = $experimentData; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->contentBidCriterionTypeGroup = $contentBidCriterionTypeGroup; + } +}} + +if (!class_exists("AdGroupAd", FALSE)) { +/** + * Represents an ad in an ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAd { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Ad + */ + public $ad; + + /** + * @access public + * @var AdGroupAdExperimentData + */ + public $experimentData; + + /** + * @access public + * @var tnsAdGroupAdStatus + */ + public $status; + + /** + * @access public + * @var tnsAdGroupAdApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var boolean + */ + public $trademarkDisapproved; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd"; + } + + public function __construct($adGroupId = NULL, $ad = NULL, $experimentData = NULL, $status = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $trademarkDisapproved = NULL, $forwardCompatibilityMap = NULL) { + $this->adGroupId = $adGroupId; + $this->ad = $ad; + $this->experimentData = $experimentData; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->trademarkDisapproved = $trademarkDisapproved; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("AdGroupAdExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for an AdGroupAd + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + } +}} + +if (!class_exists("AdGroupBidModifier", FALSE)) { +/** + * Represents an adgroup level bid modifier override for campaign level criterion + * bid modifier values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifier { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var tnsBidModifierSource + */ + public $bidModifierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifier"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $criterion = NULL, $bidModifier = NULL, $bidModifierSource = NULL) { + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->bidModifierSource = $bidModifierSource; + } +}} + +if (!class_exists("AdGroupCriterion", FALSE)) { +/** + * Represents a criterion in an ad group, used with AdGroupCriterionService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterion { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var tnsCriterionUse + */ + public $criterionUse; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $AdGroupCriterionType; + + private $_parameterMap = array ( + "AdGroupCriterion.Type" => "AdGroupCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("AdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * Bid multiplier used to modify the bid of a criterion while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var string + */ + public $AdGroupCriterionExperimentBidMultiplierType; + + private $_parameterMap = array ( + "AdGroupCriterionExperimentBidMultiplier.Type" => "AdGroupCriterionExperimentBidMultiplierType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($AdGroupCriterionExperimentBidMultiplierType = NULL) { + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("AdGroupExperimentBidMultipliers", FALSE)) { +/** + * Bid multiplier used to modify the bid of an adgroup while running + * an experiment. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupExperimentBidMultipliers { + /** + * @access public + * @var string + */ + public $AdGroupExperimentBidMultipliersType; + + private $_parameterMap = array ( + "AdGroupExperimentBidMultipliers.Type" => "AdGroupExperimentBidMultipliersType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentBidMultipliers"; + } + + public function __construct($AdGroupExperimentBidMultipliersType = NULL) { + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("AdGroupExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this adgroup. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupExperimentBidMultipliers + */ + public $experimentBidMultipliers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultipliers = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultipliers = $experimentBidMultipliers; + } +}} + +if (!class_exists("AdUnionId", FALSE)) { +/** + * Represents an id indicating a grouping of Ads under some heuristic. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdUnionId { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $AdUnionIdType; + + private $_parameterMap = array ( + "AdUnionId.Type" => "AdUnionIdType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("Address", FALSE)) { +/** + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Address { + /** + * @access public + * @var string + */ + public $streetAddress; + + /** + * @access public + * @var string + */ + public $streetAddress2; + + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $provinceCode; + + /** + * @access public + * @var string + */ + public $provinceName; + + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Address"; + } + + public function __construct($streetAddress = NULL, $streetAddress2 = NULL, $cityName = NULL, $provinceCode = NULL, $provinceName = NULL, $postalCode = NULL, $countryCode = NULL) { + $this->streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiErrorReason", FALSE)) { +/** + * Interface that has a reason return an associated service error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiErrorReason { + /** + * @access public + * @var tnsAdErrorReason + */ + public $AdErrorReason; + + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $AdExtensionErrorReason; + + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $AdExtensionOverrideErrorReason; + + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $AdGroupAdErrorReason; + + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $AdGroupCriterionErrorReason; + + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $AdGroupServiceErrorReason; + + /** + * @access public + * @var tnsAdxErrorReason + */ + public $AdxErrorReason; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $AuthenticationErrorReason; + + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $AuthorizationErrorReason; + + /** + * @access public + * @var tnsBetaErrorReason + */ + public $BetaErrorReason; + + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $BiddingErrorReason; + + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $BiddingErrorsReason; + + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $BiddingTransitionErrorReason; + + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $BudgetErrorReason; + + /** + * @access public + * @var tnsBulkMutateJobErrorReason + */ + public $BulkMutateJobErrorReason; + + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $CampaignAdExtensionErrorReason; + + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $CampaignCriterionErrorReason; + + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $CampaignErrorReason; + + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $ClientTermsErrorReason; + + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $CriterionErrorReason; + + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $DatabaseErrorReason; + + /** + * @access public + * @var tnsDateErrorReason + */ + public $DateErrorReason; + + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $DistinctErrorReason; + + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $EntityAccessDeniedReason; + + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $EntityCountLimitExceededReason; + + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $EntityNotFoundReason; + + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $FeedItemErrorReason; + + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $ForwardCompatibilityErrorReason; + + /** + * @access public + * @var tnsIdErrorReason + */ + public $IdErrorReason; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $ImageErrorReason; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $InternalApiErrorReason; + + /** + * @access public + * @var tnsJobErrorReason + */ + public $JobErrorReason; + + /** + * @access public + * @var tnsMediaErrorReason + */ + public $MediaErrorReason; + + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $NewEntityCreationErrorReason; + + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $NotEmptyErrorReason; + + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $NotWhitelistedErrorReason; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $NullErrorReason; + + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $OperationAccessDeniedReason; + + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $OperatorErrorReason; + + /** + * @access public + * @var tnsPagingErrorReason + */ + public $PagingErrorReason; + + /** + * @access public + * @var tnsPolicyViolationErrorReason + */ + public $PolicyViolationErrorReason; + + /** + * @access public + * @var tnsQueryErrorReason + */ + public $QueryErrorReason; + + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $QuotaCheckErrorReason; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $QuotaErrorReason; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $RangeErrorReason; + + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $RateExceededErrorReason; + + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $ReadOnlyErrorReason; + + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $RegionCodeErrorReason; + + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $RejectedErrorReason; + + /** + * @access public + * @var tnsRequestErrorReason + */ + public $RequestErrorReason; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $RequiredErrorReason; + + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $SelectorErrorReason; + + /** + * @access public + * @var tnsSettingErrorReason + */ + public $SettingErrorReason; + + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $SizeLimitErrorReason; + + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $StatsQueryErrorReason; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $StringLengthErrorReason; + + /** + * @access public + * @var tnsTargetErrorReason + */ + public $TargetErrorReason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiErrorReason"; + } + + public function __construct($AdErrorReason = NULL, $AdExtensionErrorReason = NULL, $AdExtensionOverrideErrorReason = NULL, $AdGroupAdErrorReason = NULL, $AdGroupCriterionErrorReason = NULL, $AdGroupServiceErrorReason = NULL, $AdxErrorReason = NULL, $AuthenticationErrorReason = NULL, $AuthorizationErrorReason = NULL, $BetaErrorReason = NULL, $BiddingErrorReason = NULL, $BiddingErrorsReason = NULL, $BiddingTransitionErrorReason = NULL, $BudgetErrorReason = NULL, $BulkMutateJobErrorReason = NULL, $CampaignAdExtensionErrorReason = NULL, $CampaignCriterionErrorReason = NULL, $CampaignErrorReason = NULL, $ClientTermsErrorReason = NULL, $CriterionErrorReason = NULL, $DatabaseErrorReason = NULL, $DateErrorReason = NULL, $DistinctErrorReason = NULL, $EntityAccessDeniedReason = NULL, $EntityCountLimitExceededReason = NULL, $EntityNotFoundReason = NULL, $FeedItemErrorReason = NULL, $ForwardCompatibilityErrorReason = NULL, $IdErrorReason = NULL, $ImageErrorReason = NULL, $InternalApiErrorReason = NULL, $JobErrorReason = NULL, $MediaErrorReason = NULL, $NewEntityCreationErrorReason = NULL, $NotEmptyErrorReason = NULL, $NotWhitelistedErrorReason = NULL, $NullErrorReason = NULL, $OperationAccessDeniedReason = NULL, $OperatorErrorReason = NULL, $PagingErrorReason = NULL, $PolicyViolationErrorReason = NULL, $QueryErrorReason = NULL, $QuotaCheckErrorReason = NULL, $QuotaErrorReason = NULL, $RangeErrorReason = NULL, $RateExceededErrorReason = NULL, $ReadOnlyErrorReason = NULL, $RegionCodeErrorReason = NULL, $RejectedErrorReason = NULL, $RequestErrorReason = NULL, $RequiredErrorReason = NULL, $SelectorErrorReason = NULL, $SettingErrorReason = NULL, $SizeLimitErrorReason = NULL, $StatsQueryErrorReason = NULL, $StringLengthErrorReason = NULL, $TargetErrorReason = NULL) { + $this->AdErrorReason = $AdErrorReason; + $this->AdExtensionErrorReason = $AdExtensionErrorReason; + $this->AdExtensionOverrideErrorReason = $AdExtensionOverrideErrorReason; + $this->AdGroupAdErrorReason = $AdGroupAdErrorReason; + $this->AdGroupCriterionErrorReason = $AdGroupCriterionErrorReason; + $this->AdGroupServiceErrorReason = $AdGroupServiceErrorReason; + $this->AdxErrorReason = $AdxErrorReason; + $this->AuthenticationErrorReason = $AuthenticationErrorReason; + $this->AuthorizationErrorReason = $AuthorizationErrorReason; + $this->BetaErrorReason = $BetaErrorReason; + $this->BiddingErrorReason = $BiddingErrorReason; + $this->BiddingErrorsReason = $BiddingErrorsReason; + $this->BiddingTransitionErrorReason = $BiddingTransitionErrorReason; + $this->BudgetErrorReason = $BudgetErrorReason; + $this->BulkMutateJobErrorReason = $BulkMutateJobErrorReason; + $this->CampaignAdExtensionErrorReason = $CampaignAdExtensionErrorReason; + $this->CampaignCriterionErrorReason = $CampaignCriterionErrorReason; + $this->CampaignErrorReason = $CampaignErrorReason; + $this->ClientTermsErrorReason = $ClientTermsErrorReason; + $this->CriterionErrorReason = $CriterionErrorReason; + $this->DatabaseErrorReason = $DatabaseErrorReason; + $this->DateErrorReason = $DateErrorReason; + $this->DistinctErrorReason = $DistinctErrorReason; + $this->EntityAccessDeniedReason = $EntityAccessDeniedReason; + $this->EntityCountLimitExceededReason = $EntityCountLimitExceededReason; + $this->EntityNotFoundReason = $EntityNotFoundReason; + $this->FeedItemErrorReason = $FeedItemErrorReason; + $this->ForwardCompatibilityErrorReason = $ForwardCompatibilityErrorReason; + $this->IdErrorReason = $IdErrorReason; + $this->ImageErrorReason = $ImageErrorReason; + $this->InternalApiErrorReason = $InternalApiErrorReason; + $this->JobErrorReason = $JobErrorReason; + $this->MediaErrorReason = $MediaErrorReason; + $this->NewEntityCreationErrorReason = $NewEntityCreationErrorReason; + $this->NotEmptyErrorReason = $NotEmptyErrorReason; + $this->NotWhitelistedErrorReason = $NotWhitelistedErrorReason; + $this->NullErrorReason = $NullErrorReason; + $this->OperationAccessDeniedReason = $OperationAccessDeniedReason; + $this->OperatorErrorReason = $OperatorErrorReason; + $this->PagingErrorReason = $PagingErrorReason; + $this->PolicyViolationErrorReason = $PolicyViolationErrorReason; + $this->QueryErrorReason = $QueryErrorReason; + $this->QuotaCheckErrorReason = $QuotaCheckErrorReason; + $this->QuotaErrorReason = $QuotaErrorReason; + $this->RangeErrorReason = $RangeErrorReason; + $this->RateExceededErrorReason = $RateExceededErrorReason; + $this->ReadOnlyErrorReason = $ReadOnlyErrorReason; + $this->RegionCodeErrorReason = $RegionCodeErrorReason; + $this->RejectedErrorReason = $RejectedErrorReason; + $this->RequestErrorReason = $RequestErrorReason; + $this->RequiredErrorReason = $RequiredErrorReason; + $this->SelectorErrorReason = $SelectorErrorReason; + $this->SettingErrorReason = $SettingErrorReason; + $this->SizeLimitErrorReason = $SizeLimitErrorReason; + $this->StatsQueryErrorReason = $StatsQueryErrorReason; + $this->StringLengthErrorReason = $StringLengthErrorReason; + $this->TargetErrorReason = $TargetErrorReason; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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("Bid", FALSE)) { +/** + * Represents a bid of a certain amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bid { + /** + * @access public + * @var Money + */ + public $amount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bid"; + } + + public function __construct($amount = NULL) { + $this->amount = $amount; + } +}} + +if (!class_exists("BidMultiplier", FALSE)) { +/** + * Represents a multiplier to modify a bid. The final value after + * modification is represented by the multiplied bid value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidMultiplier { + /** + * @access public + * @var double + */ + public $multiplier; + + /** + * @access public + * @var Bid + */ + public $multipliedBid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidMultiplier"; + } + + public function __construct($multiplier = NULL, $multipliedBid = NULL) { + $this->multiplier = $multiplier; + $this->multipliedBid = $multipliedBid; + } +}} + +if (!class_exists("BiddableAdGroupCriterion", FALSE)) { +/** + * A biddable (positive) criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddableAdGroupCriterion extends AdGroupCriterion { + /** + * @access public + * @var tnsUserStatus + */ + public $userStatus; + + /** + * @access public + * @var tnsSystemServingStatus + */ + public $systemServingStatus; + + /** + * @access public + * @var tnsApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var string[] + */ + public $disapprovalReasons; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BiddableAdGroupCriterionExperimentData + */ + public $experimentData; + + /** + * @access public + * @var Bid + */ + public $firstPageCpc; + + /** + * @access public + * @var Bid + */ + public $topOfPageCpc; + + /** + * @access public + * @var QualityInfo + */ + public $qualityInfo; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterion"; + } + + public function __construct($userStatus = NULL, $systemServingStatus = NULL, $approvalStatus = NULL, $disapprovalReasons = NULL, $destinationUrl = NULL, $experimentData = NULL, $firstPageCpc = NULL, $topOfPageCpc = NULL, $qualityInfo = NULL, $biddingStrategyConfiguration = NULL, $bidModifier = NULL, $adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->userStatus = $userStatus; + $this->systemServingStatus = $systemServingStatus; + $this->approvalStatus = $approvalStatus; + $this->disapprovalReasons = $disapprovalReasons; + $this->destinationUrl = $destinationUrl; + $this->experimentData = $experimentData; + $this->firstPageCpc = $firstPageCpc; + $this->topOfPageCpc = $topOfPageCpc; + $this->qualityInfo = $qualityInfo; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->bidModifier = $bidModifier; + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("BiddableAdGroupCriterionExperimentData", FALSE)) { +/** + * Data associated with an advertiser experiment for this {@link BiddableAdGroupCriterion}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddableAdGroupCriterionExperimentData { + /** + * @access public + * @var integer + */ + public $experimentId; + + /** + * @access public + * @var tnsExperimentDeltaStatus + */ + public $experimentDeltaStatus; + + /** + * @access public + * @var tnsExperimentDataStatus + */ + public $experimentDataStatus; + + /** + * @access public + * @var AdGroupCriterionExperimentBidMultiplier + */ + public $experimentBidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddableAdGroupCriterionExperimentData"; + } + + public function __construct($experimentId = NULL, $experimentDeltaStatus = NULL, $experimentDataStatus = NULL, $experimentBidMultiplier = NULL) { + $this->experimentId = $experimentId; + $this->experimentDeltaStatus = $experimentDeltaStatus; + $this->experimentDataStatus = $experimentDataStatus; + $this->experimentBidMultiplier = $experimentBidMultiplier; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BiddingErrors", FALSE)) { +/** + * Represents error codes for bidding strategy entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrors extends ApiError { + /** + * @access public + * @var tnsBiddingErrorsReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors"; + } + + 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("BiddingScheme", FALSE)) { +/** + * Base class for all bidding schemes. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingScheme { + /** + * @access public + * @var string + */ + public $BiddingSchemeType; + + private $_parameterMap = array ( + "BiddingScheme.Type" => "BiddingSchemeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BiddingStrategyConfiguration", FALSE)) { +/** + * Encapsulates the information about bids and bidding strategies. + * + * Bidding Strategy can be set on campaigns, ad groups or ad group criteria. + * A bidding strategy can be set using one of the following: + *
      + *
    • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
    • + *
    • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for + * flexible bid strategies.
    • + *
    + * If the bidding strategy type is used, then schemes are created using default values. + * + * Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. + * Multiple bids can be set at the same time. Only the bids that apply to the campaign's + * {@linkplain Campaign#biddingStrategyConfiguration bidding strategy} will be used. + * + * For more information on flexible bidding, visit the + * Help Center. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyConfiguration { + /** + * @access public + * @var integer + */ + public $biddingStrategyId; + + /** + * @access public + * @var string + */ + public $biddingStrategyName; + + /** + * @access public + * @var tnsBiddingStrategyType + */ + public $biddingStrategyType; + + /** + * @access public + * @var tnsBiddingStrategySource + */ + public $biddingStrategySource; + + /** + * @access public + * @var BiddingScheme + */ + public $biddingScheme; + + /** + * @access public + * @var Bids[] + */ + public $bids; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyConfiguration"; + } + + public function __construct($biddingStrategyId = NULL, $biddingStrategyName = NULL, $biddingStrategyType = NULL, $biddingStrategySource = NULL, $biddingScheme = NULL, $bids = NULL) { + $this->biddingStrategyId = $biddingStrategyId; + $this->biddingStrategyName = $biddingStrategyName; + $this->biddingStrategyType = $biddingStrategyType; + $this->biddingStrategySource = $biddingStrategySource; + $this->biddingScheme = $biddingScheme; + $this->bids = $bids; + } +}} + +if (!class_exists("BiddingTransitionError", FALSE)) { +/** + * Bidding transition errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingTransitionError extends ApiError { + /** + * @access public + * @var tnsBiddingTransitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError"; + } + + 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("Bids", FALSE)) { +/** + * Base class for all bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Bids { + /** + * @access public + * @var string + */ + public $BidsType; + + private $_parameterMap = array ( + "Bids.Type" => "BidsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Bids"; + } + + public function __construct($BidsType = NULL) { + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("BillingSummary", FALSE)) { +/** + * Represents the billing summary of the job that provides the overall cost of + * the job's operations, i.e., for the work done by the job. This + * therefore excludes the cost of operating on the job itself - setting up the + * job, polling for its status, retrieving the result, etc. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BillingSummary { + /** + * @access public + * @var integer + */ + public $numOperations; + + /** + * @access public + * @var integer + */ + public $numUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSummary"; + } + + public function __construct($numOperations = NULL, $numUnits = NULL) { + $this->numOperations = $numOperations; + $this->numUnits = $numUnits; + } +}} + +if (!class_exists("Budget", FALSE)) { +/** + * Budgets are used for managing the amount of money spent on AdWords. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Budget { + /** + * @access public + * @var integer + */ + public $budgetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsBudgetBudgetPeriod + */ + public $period; + + /** + * @access public + * @var Money + */ + public $amount; + + /** + * @access public + * @var tnsBudgetBudgetDeliveryMethod + */ + public $deliveryMethod; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var boolean + */ + public $isExplicitlyShared; + + /** + * @access public + * @var tnsBudgetBudgetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget"; + } + + public function __construct($budgetId = NULL, $name = NULL, $period = NULL, $amount = NULL, $deliveryMethod = NULL, $referenceCount = NULL, $isExplicitlyShared = NULL, $status = NULL) { + $this->budgetId = $budgetId; + $this->name = $name; + $this->period = $period; + $this->amount = $amount; + $this->deliveryMethod = $deliveryMethod; + $this->referenceCount = $referenceCount; + $this->isExplicitlyShared = $isExplicitlyShared; + $this->status = $status; + } +}} + +if (!class_exists("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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("BudgetOptimizerBiddingScheme", FALSE)) { +/** + * In budget optimizer, Google automatically places bids for the user based on + * their daily/monthly budget. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOptimizerBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("BulkMutateJobError", FALSE)) { +/** + * Bulk mutate job handling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobError extends ApiError { + /** + * @access public + * @var tnsBulkMutateJobErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobError"; + } + + 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("BulkMutateJobPolicy", FALSE)) { +/** + * A basic job policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobPolicy { + /** + * @access public + * @var integer[] + */ + public $prerequisiteJobIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobPolicy"; + } + + public function __construct($prerequisiteJobIds = NULL) { + $this->prerequisiteJobIds = $prerequisiteJobIds; + } +}} + +if (!class_exists("BulkMutateRequest", FALSE)) { +/** + * A request part of a {@link BulkMutateJob}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateRequest { + /** + * @access public + * @var integer + */ + public $partIndex; + + /** + * @access public + * @var OperationStream[] + */ + public $operationStreams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateRequest"; + } + + public function __construct($partIndex = NULL, $operationStreams = NULL) { + $this->partIndex = $partIndex; + $this->operationStreams = $operationStreams; + } +}} + +if (!class_exists("BulkMutateResult", FALSE)) { +/** + * Represents a result part of a {@link BulkMutateJob}. + * + *

    Once one or more mutate operations have been processed, the bulk mutate + * job will eventually be completed. This means that the job will have a result + * corresponding to each operation. The types of results for an operation are: + *

      + *
    • {@link ReturnValueResult}: the corresponding operation was successfully + * processed and this result contains the return value of that operation; + *
    • + *
    • {@link FailureResult} or {@link BatchFailureResult}: the corresponding + * operation was in a batch that failed with errors. Please inspect these + * errors to determine if the operation itself was faulty and if so what + * errors need to be fixed before you submit this operation as part of a + * future job.
    • + *
    • {@link LostResult}: the corresponding operation was processed - it was + * either successful and had a return value, or it was a part of a failed + * batch. Unfortunately, despite our best efforts, we were unable to + * durably save the result. You may have to retrieve the related state of + * your account to determine if this operation actually succeeded.
    • + *
    • {@link UnprocessedResult}: the corresponding operation was not processed + * because the job was aborted Note: The job's status will be + * {@code COMPLETED}, signifying that although it may have some operations + * that were processed, it cannot be resumed.
    • + * + *

      The results of a job are structured so that the each operation can be + * easily matched to its corresponding result. So for every + * {@link BulkMutateRequest} in a job, there is a corresponding + * {@code BulkMutateResult}; For every {@link OperationStream} in a request + * part, there is a corresponding {@link OperationStreamResult}; And, for + * every {@link Operation} in an operation stream, there is an + * {@link OperationResult}.

      + * + *

      Within an operation stream, the operations are processed in atomic + * batches. So even one faulty operation may cause its neighboring non-faulty + * operations to fail just because they happened to be processed in the same + * batch. It is important to keep this batch failure reporting scheme in mind + * when handling operation failures.

      + * + *

      There will be a single {@link ApiException} returned for each failing + * batch of operations, and it will have a similar structure and + * interpretation to the exceptions returned by the synchronous AdWords API + * services. This exception is returned in a {@link FailureResult} that + * corresponds to the first operation of the failing batch.

      + * + *

      The exception may contain multiple errors, and each error may have + * {@code OGNL path}s that identify the faulty operation(s) by index (or + * position within the batch). The first operation in the batch has an + * implicit index of 0. The subsequent operations in the batch have a + * corresponding {@link BatchFailureResult} which explicitly specifies the + * index of the operation within the batch.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateResult { + /** + * @access public + * @var integer + */ + public $partIndex; + + /** + * @access public + * @var OperationStreamResult[] + */ + public $operationStreamResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateResult"; + } + + public function __construct($partIndex = NULL, $operationStreamResults = NULL) { + $this->partIndex = $partIndex; + $this->operationStreamResults = $operationStreamResults; + } +}} + +if (!class_exists("Campaign", FALSE)) { +/** + * Data representing an AdWords campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Campaign { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCampaignStatus + */ + public $status; + + /** + * @access public + * @var tnsServingStatus + */ + public $servingStatus; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var Budget + */ + public $budget; + + /** + * @access public + * @var ConversionOptimizerEligibility + */ + public $conversionOptimizerEligibility; + + /** + * @access public + * @var tnsAdServingOptimizationStatus + */ + public $adServingOptimizationStatus; + + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var Setting[] + */ + public $settings; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var BiddingStrategyConfiguration + */ + public $biddingStrategyConfiguration; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Campaign"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $servingStatus = NULL, $startDate = NULL, $endDate = NULL, $budget = NULL, $conversionOptimizerEligibility = NULL, $adServingOptimizationStatus = NULL, $frequencyCap = NULL, $settings = NULL, $networkSetting = NULL, $biddingStrategyConfiguration = NULL, $forwardCompatibilityMap = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->servingStatus = $servingStatus; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->budget = $budget; + $this->conversionOptimizerEligibility = $conversionOptimizerEligibility; + $this->adServingOptimizationStatus = $adServingOptimizationStatus; + $this->frequencyCap = $frequencyCap; + $this->settings = $settings; + $this->networkSetting = $networkSetting; + $this->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + } +}} + +if (!class_exists("CampaignAdExtension", FALSE)) { +/** + * Represents a campaign level ad extension. A campaign ad extension specifies + * a campaign and an ad extension which can extend any ad under that campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtension { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdExtension + */ + public $adExtension; + + /** + * @access public + * @var tnsCampaignAdExtensionStatus + */ + public $status; + + /** + * @access public + * @var tnsCampaignAdExtensionApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension"; + } + + public function __construct($campaignId = NULL, $adExtension = NULL, $status = NULL, $approvalStatus = NULL) { + $this->campaignId = $campaignId; + $this->adExtension = $adExtension; + $this->status = $status; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("CampaignAdExtensionError", FALSE)) { +/** + * CampaignAdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionError extends ApiError { + /** + * @access public + * @var tnsCampaignAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError"; + } + + 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("CampaignCriterion", FALSE)) { +/** + * Represents a campaign level criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterion { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var String_StringMapEntry[] + */ + public $forwardCompatibilityMap; + + /** + * @access public + * @var string + */ + public $CampaignCriterionType; + + private $_parameterMap = array ( + "CampaignCriterion.Type" => "CampaignCriterionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("CampaignCriterionError", FALSE)) { +/** + * Base error class for Campaign Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionError extends ApiError { + /** + * @access public + * @var tnsCampaignCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError"; + } + + 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("CampaignError", FALSE)) { +/** + * Base error class for Campaign Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignError extends ApiError { + /** + * @access public + * @var tnsCampaignErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ConversionOptimizerBiddingScheme", FALSE)) { +/** + * Conversion optimizer bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + *

      {@code pricingMode} currently defaults to {@code CLICKS} and + * cannot be changed.

      + * + *

      Note that campaigns must meet specific + * eligibility requirements before they can use the ConversionOptimizer + * bidding strategy. + * + * For more information on conversion optimizer, visit the + * Conversion Optimizer site. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemePricingMode + */ + public $pricingMode; + + /** + * @access public + * @var tnsConversionOptimizerBiddingSchemeBidType + */ + public $bidType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme"; + } + + public function __construct($pricingMode = NULL, $bidType = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->pricingMode = $pricingMode; + $this->bidType = $bidType; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ConversionOptimizerEligibility", FALSE)) { +/** + * Eligibility data for Campaign to transition to Conversion Optimizer + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerEligibility { + /** + * @access public + * @var boolean + */ + public $eligible; + + /** + * @access public + * @var tnsConversionOptimizerEligibilityRejectionReason[] + */ + public $rejectionReasons; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility"; + } + + public function __construct($eligible = NULL, $rejectionReasons = NULL) { + $this->eligible = $eligible; + $this->rejectionReasons = $rejectionReasons; + } +}} + +if (!class_exists("CpaBid", FALSE)) { +/** + * CPA Bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpaBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpaBid"; + } + + public function __construct($bid = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpcBid", FALSE)) { +/** + * Manual click based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpcBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var Money + */ + public $contentBid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpcBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpcBid"; + } + + public function __construct($bid = NULL, $contentBid = NULL, $cpcBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->contentBid = $contentBid; + $this->cpcBidSource = $cpcBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("CpmBid", FALSE)) { +/** + * Manual impression based bids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CpmBid extends Bids { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $cpmBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CpmBid"; + } + + public function __construct($bid = NULL, $cpmBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->cpmBidSource = $cpmBidSource; + $this->BidsType = $BidsType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DeprecatedAd", FALSE)) { +/** + * Represents a deprecated ad. + * + * Deprecated ads can be deleted, but cannot be created. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DeprecatedAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsDeprecatedAdType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd"; + } + + public function __construct($name = NULL, $type = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->type = $type; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Dimensions", FALSE)) { +/** + * Represents a simple height-width dimension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Dimensions { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimensions"; + } + + public function __construct($width = NULL, $height = NULL) { + $this->width = $width; + $this->height = $height; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("DomainInfoExtension", FALSE)) { +/** + * Domain extension, which adds domain info to ads. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DomainInfoExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $domainName; + + /** + * @access public + * @var string + */ + public $languageCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DomainInfoExtension"; + } + + public function __construct($domainName = NULL, $languageCode = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->domainName = $domainName; + $this->languageCode = $languageCode; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("EnhancedCpcBiddingScheme", FALSE)) { +/** + * Enhanced CPC is a bidding strategy that raises your bids for clicks that seem more likely to + * lead to a conversion and lowers them for clicks where they seem less likely. + * + * This bidding scheme does not support criteria level bidding strategy overrides. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EnhancedCpcBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnhancedCpcBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityId", FALSE)) { +/** + * A qualified long-valued identity that can identify different types of + * AdWords entities such as campaigns and ad-groups. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityId { + /** + * @access public + * @var tnsEntityIdType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityId"; + } + + public function __construct($type = NULL, $value = NULL) { + $this->type = $type; + $this->value = $value; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ExemptionRequest", FALSE)) { +/** + * A request to be exempted from a {@link PolicyViolationError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExemptionRequest { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExemptionRequest"; + } + + public function __construct($key = NULL) { + $this->key = $key; + } +}} + +if (!class_exists("FeedItem", FALSE)) { +/** + * Represents an item in a feed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItem { + /** + * @access public + * @var integer + */ + public $feedId; + + /** + * @access public + * @var integer + */ + public $feedItemId; + + /** + * @access public + * @var tnsFeedItemStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $startTime; + + /** + * @access public + * @var string + */ + public $endTime; + + /** + * @access public + * @var FeedItemAttributeValue[] + */ + public $attributeValues; + + /** + * @access public + * @var FeedItemValidationDetail[] + */ + public $validationDetails; + + /** + * @access public + * @var FeedItemDevicePreference + */ + public $devicePreference; + + /** + * @access public + * @var FeedItemScheduling + */ + public $scheduling; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem"; + } + + public function __construct($feedId = NULL, $feedItemId = NULL, $status = NULL, $startTime = NULL, $endTime = NULL, $attributeValues = NULL, $validationDetails = NULL, $devicePreference = NULL, $scheduling = NULL) { + $this->feedId = $feedId; + $this->feedItemId = $feedItemId; + $this->status = $status; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->attributeValues = $attributeValues; + $this->validationDetails = $validationDetails; + $this->devicePreference = $devicePreference; + $this->scheduling = $scheduling; + } +}} + +if (!class_exists("FeedItemAttributeError", FALSE)) { +/** + * Contains validation error details for a set of feed attributes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemAttributeError { + /** + * @access public + * @var integer[] + */ + public $feedAttributeIds; + + /** + * @access public + * @var integer + */ + public $validationErrorCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeError"; + } + + public function __construct($feedAttributeIds = NULL, $validationErrorCode = NULL) { + $this->feedAttributeIds = $feedAttributeIds; + $this->validationErrorCode = $validationErrorCode; + } +}} + +if (!class_exists("FeedItemAttributeValue", FALSE)) { +/** + * Represents a feed item's value for a particular feed attribute. A feed item's value is + * composed of a collection of these attribute values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemAttributeValue { + /** + * @access public + * @var integer + */ + public $feedAttributeId; + + /** + * @access public + * @var integer + */ + public $integerValue; + + /** + * @access public + * @var double + */ + public $doubleValue; + + /** + * @access public + * @var boolean + */ + public $booleanValue; + + /** + * @access public + * @var string + */ + public $stringValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemAttributeValue"; + } + + public function __construct($feedAttributeId = NULL, $integerValue = NULL, $doubleValue = NULL, $booleanValue = NULL, $stringValue = NULL) { + $this->feedAttributeId = $feedAttributeId; + $this->integerValue = $integerValue; + $this->doubleValue = $doubleValue; + $this->booleanValue = $booleanValue; + $this->stringValue = $stringValue; + } +}} + +if (!class_exists("FeedItemDevicePreference", FALSE)) { +/** + * Represents a FeedItem device preference. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemDevicePreference { + /** + * @access public + * @var integer + */ + public $devicePreference; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemDevicePreference"; + } + + public function __construct($devicePreference = NULL) { + $this->devicePreference = $devicePreference; + } +}} + +if (!class_exists("FeedItemError", FALSE)) { +/** + * FeedItemService related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemError extends ApiError { + /** + * @access public + * @var tnsFeedItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError"; + } + + 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("FeedItemSchedule", FALSE)) { +/** + * Represents a FeedItem schedule, which specifies a time interval on a given day + * when the feed item may serve. The FeedItemSchedule times are in the account's time zone. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemSchedule { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + } +}} + +if (!class_exists("FeedItemScheduling", FALSE)) { +/** + * Represents a collection of FeedItem schedules specifying all time intervals for which + * the feed item may serve. Any time range not covered by the specified FeedItemSchedules will + * prevent the feed item from serving during those times. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemScheduling { + /** + * @access public + * @var FeedItemSchedule[] + */ + public $feedItemSchedules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemScheduling"; + } + + public function __construct($feedItemSchedules = NULL) { + $this->feedItemSchedules = $feedItemSchedules; + } +}} + +if (!class_exists("FeedItemValidationDetail", FALSE)) { +/** + * Contains offline-validation and approval results for a given FeedItem and FeedMapping. Each + * validation detail indicates any issues found on the feed item when used in the context + * of the feed mapping. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetail { + /** + * @access public + * @var integer + */ + public $feedMappingId; + + /** + * @access public + * @var tnsFeedItemValidationDetailValidationStatus + */ + public $validationStatus; + + /** + * @access public + * @var FeedItemAttributeError[] + */ + public $validationErrors; + + /** + * @access public + * @var tnsFeedItemValidationDetailApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail"; + } + + public function __construct($feedMappingId = NULL, $validationStatus = NULL, $validationErrors = NULL, $approvalStatus = NULL) { + $this->feedMappingId = $feedMappingId; + $this->validationStatus = $validationStatus; + $this->validationErrors = $validationErrors; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ForwardCompatibilityError", FALSE)) { +/** + * A ForwardComptibilityError represents possible errors when using the forwardCompatibilityMap + * in some of the common services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityError extends ApiError { + /** + * @access public + * @var tnsForwardCompatibilityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * A frequency cap is the maximum number of times an ad (or some set of ads) can + * be shown to a user over a particular time period. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * @access public + * @var tnsLevel + */ + public $level; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($impressions = NULL, $timeUnit = NULL, $level = NULL) { + $this->impressions = $impressions; + $this->timeUnit = $timeUnit; + $this->level = $level; + } +}} + +if (!class_exists("Gender", FALSE)) { +/** + * Represents a Gender criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Gender extends Criterion { + /** + * @access public + * @var tnsGenderGenderType + */ + public $genderType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender"; + } + + public function __construct($genderType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->genderType = $genderType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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("ImageAd", FALSE)) { +/** + * Represents an ImageAd. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageAd extends Ad { + /** + * @access public + * @var Image + */ + public $image; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $adToCopyImageFrom; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageAd"; + } + + public function __construct($image = NULL, $name = NULL, $adToCopyImageFrom = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->image = $image; + $this->name = $name; + $this->adToCopyImageFrom = $adToCopyImageFrom; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Error class for errors associated with parsing image data. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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("InAppLinkExtension", FALSE)) { +/** + *

      This extension is useful for advertisers who wish to provide users with a + * link that points to the advertiser's mobile application in addition to their + * website. + * + *

      It is also known as Mobile App Extension. + * + *

      The API allows one InAppLinkExtension per {@code AppStore} per campaign. + * Only the extension for a given {@code AppStore} will render on the device + * relevant to that {@code AppStore} (e.g. iPhones for {@code AppStore.ITUNES} + * and Android phones for {@code AppStore.GOOGLE_PLAY}). + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InAppLinkExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $inAppLinkText; + + /** + * @access public + * @var string + */ + public $inAppLinkUrl; + + /** + * @access public + * @var tnsInAppLinkExtensionAppStore + */ + public $appStore; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension"; + } + + public function __construct($inAppLinkText = NULL, $inAppLinkUrl = NULL, $appStore = NULL, $appId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->inAppLinkText = $inAppLinkText; + $this->inAppLinkUrl = $inAppLinkUrl; + $this->appStore = $appStore; + $this->appId = $appId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Job", FALSE)) { +/** + * Represents an asynchronous macro unit of work. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Job { + /** + * @access public + * @var ApiErrorReason + */ + public $failureReason; + + /** + * @access public + * @var JobStats + */ + public $stats; + + /** + * @access public + * @var BillingSummary + */ + public $billingSummary; + + /** + * @access public + * @var string + */ + public $JobType; + + private $_parameterMap = array ( + "Job.Type" => "JobType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Job"; + } + + public function __construct($failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("JobError", FALSE)) { +/** + * Job handling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobError extends ApiError { + /** + * @access public + * @var tnsJobErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobError"; + } + + 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("JobEvent", FALSE)) { +/** + * An event defined by a status change of a job. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobEvent { + /** + * @access public + * @var string + */ + public $dateTime; + + /** + * @access public + * @var string + */ + public $JobEventType; + + private $_parameterMap = array ( + "JobEvent.Type" => "JobEventType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobEvent"; + } + + public function __construct($dateTime = NULL, $JobEventType = NULL) { + $this->dateTime = $dateTime; + $this->JobEventType = $JobEventType; + } +}} + +if (!class_exists("JobResult", FALSE)) { +/** + * Represents the result data of a job. This contains both the results of + * successfully processed operations as well as errors returned by failed + * operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobResult { + /** + * @access public + * @var BulkMutateResult + */ + public $BulkMutateResult; + + /** + * @access public + * @var SimpleMutateResult + */ + public $SimpleMutateResult; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobResult"; + } + + public function __construct($BulkMutateResult = NULL, $SimpleMutateResult = NULL) { + $this->BulkMutateResult = $BulkMutateResult; + $this->SimpleMutateResult = $SimpleMutateResult; + } +}} + +if (!class_exists("JobSelector", FALSE)) { +/** + * For selecting jobs whose information will be returned from a get method call + * of a job service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobSelector { + /** + * @access public + * @var boolean + */ + public $includeHistory; + + /** + * @access public + * @var boolean + */ + public $includeStats; + + /** + * @access public + * @var string + */ + public $JobSelectorType; + + private $_parameterMap = array ( + "JobSelector.Type" => "JobSelectorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobSelector"; + } + + public function __construct($includeHistory = NULL, $includeStats = NULL, $JobSelectorType = NULL) { + $this->includeHistory = $includeHistory; + $this->includeStats = $includeStats; + $this->JobSelectorType = $JobSelectorType; + } +}} + +if (!class_exists("JobStats", FALSE)) { +/** + * Job-handling statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobStats { + /** + * @access public + * @var integer + */ + public $progressPercent; + + /** + * @access public + * @var integer + */ + public $pendingTimeMillis; + + /** + * @access public + * @var integer + */ + public $processingTimeMillis; + + /** + * @access public + * @var string + */ + public $JobStatsType; + + private $_parameterMap = array ( + "JobStats.Type" => "JobStatsType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobStats"; + } + + public function __construct($progressPercent = NULL, $pendingTimeMillis = NULL, $processingTimeMillis = NULL, $JobStatsType = NULL) { + $this->progressPercent = $progressPercent; + $this->pendingTimeMillis = $pendingTimeMillis; + $this->processingTimeMillis = $processingTimeMillis; + $this->JobStatsType = $JobStatsType; + } +}} + +if (!class_exists("Keyword", FALSE)) { +/** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("LocationExtension", FALSE)) { +/** + * Location based ad extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationExtension extends AdExtension { + /** + * @access public + * @var Address + */ + public $address; + + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var base64Binary + */ + public $encodedLocation; + + /** + * @access public + * @var string + */ + public $companyName; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var tnsLocationExtensionSource + */ + public $source; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var integer + */ + public $imageMediaId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension"; + } + + public function __construct($address = NULL, $geoPoint = NULL, $encodedLocation = NULL, $companyName = NULL, $phoneNumber = NULL, $source = NULL, $iconMediaId = NULL, $imageMediaId = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->address = $address; + $this->geoPoint = $geoPoint; + $this->encodedLocation = $encodedLocation; + $this->companyName = $companyName; + $this->phoneNumber = $phoneNumber; + $this->source = $source; + $this->iconMediaId = $iconMediaId; + $this->imageMediaId = $imageMediaId; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("LocationOverrideInfo", FALSE)) { +/** + * Represents override info for ad level LocationExtension overrides. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationOverrideInfo { + /** + * @access public + * @var integer + */ + public $radius; + + /** + * @access public + * @var tnsLocationOverrideInfoRadiusUnits + */ + public $radiusUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo"; + } + + public function __construct($radius = NULL, $radiusUnits = NULL) { + $this->radius = $radius; + $this->radiusUnits = $radiusUnits; + } +}} + +if (!class_exists("LocationSyncExtension", FALSE)) { +/** + * Local business center(LBC) sync extension that ties a LBC account with a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationSyncExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var OAuthInfo + */ + public $oAuthInfo; + + /** + * @access public + * @var integer + */ + public $iconMediaId; + + /** + * @access public + * @var boolean + */ + public $shouldSyncUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSyncExtension"; + } + + public function __construct($email = NULL, $authToken = NULL, $oAuthInfo = NULL, $iconMediaId = NULL, $shouldSyncUrl = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->email = $email; + $this->authToken = $authToken; + $this->oAuthInfo = $oAuthInfo; + $this->iconMediaId = $iconMediaId; + $this->shouldSyncUrl = $shouldSyncUrl; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("ManualCPCAdGroupCriterionExperimentBidMultiplier", FALSE)) { +/** + * AdGroupCriterion level bid multiplier used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPCAdGroupCriterionExperimentBidMultiplier extends AdGroupCriterionExperimentBidMultiplier { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var tnsMultiplierSource + */ + public $multiplierSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupCriterionExperimentBidMultiplier"; + } + + public function __construct($maxCpcMultiplier = NULL, $multiplierSource = NULL, $AdGroupCriterionExperimentBidMultiplierType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->multiplierSource = $multiplierSource; + $this->AdGroupCriterionExperimentBidMultiplierType = $AdGroupCriterionExperimentBidMultiplierType; + } +}} + +if (!class_exists("ManualCPCAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPC bidding strategies. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPCAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpcMultiplier; + + /** + * @access public + * @var BidMultiplier + */ + public $maxContentCpcMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPCAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpcMultiplier = NULL, $maxContentCpcMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpcMultiplier = $maxCpcMultiplier; + $this->maxContentCpcMultiplier = $maxContentCpcMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCPMAdGroupExperimentBidMultipliers", FALSE)) { +/** + * Adgroup level bid multipliers used in manual CPM bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCPMAdGroupExperimentBidMultipliers extends AdGroupExperimentBidMultipliers { + /** + * @access public + * @var BidMultiplier + */ + public $maxCpmMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCPMAdGroupExperimentBidMultipliers"; + } + + public function __construct($maxCpmMultiplier = NULL, $AdGroupExperimentBidMultipliersType = NULL) { + parent::__construct(); + $this->maxCpmMultiplier = $maxCpmMultiplier; + $this->AdGroupExperimentBidMultipliersType = $AdGroupExperimentBidMultipliersType; + } +}} + +if (!class_exists("ManualCpcBiddingScheme", FALSE)) { +/** + * Manual click based bidding where user pays per click. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpcBiddingScheme extends BiddingScheme { + /** + * @access public + * @var boolean + */ + public $enhancedCpcEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpcBiddingScheme"; + } + + public function __construct($enhancedCpcEnabled = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->enhancedCpcEnabled = $enhancedCpcEnabled; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("ManualCpmBiddingScheme", FALSE)) { +/** + * Manual impression based bidding where user pays per thousand impressions. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ManualCpmBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ManualCpmBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("Media", FALSE)) { +/** + * Represents some kind of media. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media { + /** + * @access public + * @var integer + */ + public $mediaId; + + /** + * @access public + * @var tnsMediaMediaType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $referenceId; + + /** + * @access public + * @var Media_Size_DimensionsMapEntry[] + */ + public $dimensions; + + /** + * @access public + * @var Media_Size_StringMapEntry[] + */ + public $urls; + + /** + * @access public + * @var tnsMediaMimeType + */ + public $mimeType; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $creationTime; + + /** + * @access public + * @var string + */ + public $MediaType; + + private $_parameterMap = array ( + "Media.Type" => "MediaType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media"; + } + + public function __construct($mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("MediaError", FALSE)) { +/** + * Error class for media related errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaError extends ApiError { + /** + * @access public + * @var tnsMediaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError"; + } + + 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("Media_Size_DimensionsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type Dimensions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_DimensionsMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var Dimensions + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_DimensionsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Media_Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Media_Size_StringMapEntry { + /** + * @access public + * @var tnsMediaSize + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media_Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("MobileAd", FALSE)) { +/** + * Represents a mobile ad. + * + *

      + * A mobile ad can contain a click-to-call phone number, a link to a website, + * or both. You specify which features you want by setting certain fields, as + * shown in the following table. For example, to create a click-to-call mobile + * ad, set the fields in the Click-to-call column. A hyphen indicates + * that you should not set the corresponding field. + *

      + *

      + * For more information, see + * + * Create a mobile ad. + *

      + * + * + * + * + * + * + * + * + *
      Click-to-call Website Both
      headline
      + * description
      + * mobileCarriers
      + * phoneNumber
      + * countryCode
      + * businessName
      + * -
      + * -
      + * -
      + *
      headline
      + * description
      + * mobileCarriers
      + * -
      + * -
      + * -
      + * displayUrl
      + * destinationUrl
      + * markupLanguages
      + *
      headline
      + * description
      + * mobileCarriers
      + * phoneNumber
      + * countryCode
      + * businessName
      + * displayUrl
      + * destinationUrl
      + * markupLanguages
      + *
      + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var string + */ + public $businessName; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAd"; + } + + public function __construct($headline = NULL, $description = NULL, $markupLanguages = NULL, $mobileCarriers = NULL, $businessName = NULL, $countryCode = NULL, $phoneNumber = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description = $description; + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->businessName = $businessName; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device Criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDevice extends Criterion { + /** + * @access public + * @var string + */ + public $deviceName; + + /** + * @access public + * @var string + */ + public $manufacturerName; + + /** + * @access public + * @var tnsMobileDeviceDeviceType + */ + public $deviceType; + + /** + * @access public + * @var string + */ + public $operatingSystemName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($deviceName = NULL, $manufacturerName = NULL, $deviceType = NULL, $operatingSystemName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->deviceName = $deviceName; + $this->manufacturerName = $manufacturerName; + $this->deviceType = $deviceType; + $this->operatingSystemName = $operatingSystemName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("MobileExtension", FALSE)) { +/** + * Represents a phone extension. + * + *

      This type of ad extension attaches a phone number + * to a text ad, which lets customers call the advertiser directly from the ad. + * Phone extensions will appear as clickable phone numbers beneath the main text ad, + * and will be visible to high-end mobile device users who access google.com search, + * Voice search, Google Mobile App, or Google Maps for Mobile from their phone. + *

      + *

      Learn more about + * + * phone extensions. + *

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileExtension extends AdExtension { + /** + * @access public + * @var string + */ + public $phoneNumber; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * @access public + * @var boolean + */ + public $isCallTrackingEnabled; + + /** + * @access public + * @var boolean + */ + public $isCallOnly; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileExtension"; + } + + public function __construct($phoneNumber = NULL, $countryCode = NULL, $isCallTrackingEnabled = NULL, $isCallOnly = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->phoneNumber = $phoneNumber; + $this->countryCode = $countryCode; + $this->isCallTrackingEnabled = $isCallTrackingEnabled; + $this->isCallOnly = $isCallOnly; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("MobileImageAd", FALSE)) { +/** + * Represents a mobile image ad. + * + *

      For more information, see + * + * Create a mobile ad.

      + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileImageAd extends Ad { + /** + * @access public + * @var tnsMarkupLanguageType[] + */ + public $markupLanguages; + + /** + * @access public + * @var string[] + */ + public $mobileCarriers; + + /** + * @access public + * @var Image + */ + public $image; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileImageAd"; + } + + public function __construct($markupLanguages = NULL, $mobileCarriers = NULL, $image = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->markupLanguages = $markupLanguages; + $this->mobileCarriers = $mobileCarriers; + $this->image = $image; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NegativeAdGroupCriterion", FALSE)) { +/** + * A negative criterion in an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeAdGroupCriterion extends AdGroupCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeAdGroupCriterion"; + } + + public function __construct($adGroupId = NULL, $criterionUse = NULL, $criterion = NULL, $forwardCompatibilityMap = NULL, $AdGroupCriterionType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->criterionUse = $criterionUse; + $this->criterion = $criterion; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->AdGroupCriterionType = $AdGroupCriterionType; + } +}} + +if (!class_exists("NegativeCampaignCriterion", FALSE)) { +/** + * A negative campaign criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeCampaignCriterion extends CampaignCriterion { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCampaignCriterion"; + } + + public function __construct($campaignId = NULL, $isNegative = NULL, $criterion = NULL, $bidModifier = NULL, $forwardCompatibilityMap = NULL, $CampaignCriterionType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->isNegative = $isNegative; + $this->criterion = $criterion; + $this->bidModifier = $bidModifier; + $this->forwardCompatibilityMap = $forwardCompatibilityMap; + $this->CampaignCriterionType = $CampaignCriterionType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NewEntityCreationError", FALSE)) { +/** + * Error associated with creation of new entities using + * {@link com.google.ads.api.services.common.id.TempId}s. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OAuthInfo", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OAuthInfo { + /** + * @access public + * @var string + */ + public $httpMethod; + + /** + * @access public + * @var string + */ + public $httpRequestUrl; + + /** + * @access public + * @var string + */ + public $httpAuthorizationHeader; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuthInfo"; + } + + public function __construct($httpMethod = NULL, $httpRequestUrl = NULL, $httpAuthorizationHeader = NULL) { + $this->httpMethod = $httpMethod; + $this->httpRequestUrl = $httpRequestUrl; + $this->httpAuthorizationHeader = $httpAuthorizationHeader; + } +}} + +if (!class_exists("Operand", FALSE)) { +/** + * A marker interface for entities that can be operated upon in mutate + * operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operand { + /** + * @access public + * @var AdExtensionOverride + */ + public $AdExtensionOverride; + + /** + * @access public + * @var AdGroupAd + */ + public $AdGroupAd; + + /** + * @access public + * @var AdGroupBidModifier + */ + public $AdGroupBidModifier; + + /** + * @access public + * @var AdGroupCriterion + */ + public $AdGroupCriterion; + + /** + * @access public + * @var AdGroup + */ + public $AdGroup; + + /** + * @access public + * @var Ad + */ + public $Ad; + + /** + * @access public + * @var Budget + */ + public $Budget; + + /** + * @access public + * @var CampaignAdExtension + */ + public $CampaignAdExtension; + + /** + * @access public + * @var CampaignCriterion + */ + public $CampaignCriterion; + + /** + * @access public + * @var Campaign + */ + public $Campaign; + + /** + * @access public + * @var FeedItem + */ + public $FeedItem; + + /** + * @access public + * @var Job + */ + public $Job; + + /** + * @access public + * @var Media + */ + public $Media; + + /** + * @access public + * @var PlaceHolder + */ + public $PlaceHolder; + + /** + * @access public + * @var TargetList + */ + public $TargetList; + + /** + * @access public + * @var Target + */ + public $Target; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operand"; + } + + public function __construct($AdExtensionOverride = NULL, $AdGroupAd = NULL, $AdGroupBidModifier = NULL, $AdGroupCriterion = NULL, $AdGroup = NULL, $Ad = NULL, $Budget = NULL, $CampaignAdExtension = NULL, $CampaignCriterion = NULL, $Campaign = NULL, $FeedItem = NULL, $Job = NULL, $Media = NULL, $PlaceHolder = NULL, $TargetList = NULL, $Target = NULL) { + $this->AdExtensionOverride = $AdExtensionOverride; + $this->AdGroupAd = $AdGroupAd; + $this->AdGroupBidModifier = $AdGroupBidModifier; + $this->AdGroupCriterion = $AdGroupCriterion; + $this->AdGroup = $AdGroup; + $this->Ad = $Ad; + $this->Budget = $Budget; + $this->CampaignAdExtension = $CampaignAdExtension; + $this->CampaignCriterion = $CampaignCriterion; + $this->Campaign = $Campaign; + $this->FeedItem = $FeedItem; + $this->Job = $Job; + $this->Media = $Media; + $this->PlaceHolder = $PlaceHolder; + $this->TargetList = $TargetList; + $this->Target = $Target; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a Operating System Version Criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersion extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $osMajorVersion; + + /** + * @access public + * @var integer + */ + public $osMinorVersion; + + /** + * @access public + * @var tnsOperatingSystemVersionOperatorType + */ + public $operatorType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($name = NULL, $osMajorVersion = NULL, $osMinorVersion = NULL, $operatorType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->osMajorVersion = $osMajorVersion; + $this->osMinorVersion = $osMinorVersion; + $this->operatorType = $operatorType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperationResult", FALSE)) { +/** + * Represents the result of an individual mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationResult { + /** + * @access public + * @var string + */ + public $OperationResultType; + + private $_parameterMap = array ( + "OperationResult.Type" => "OperationResultType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationResult"; + } + + public function __construct($OperationResultType = NULL) { + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("OperationStream", FALSE)) { +/** + * A stream of AdWords API mutate operations that must be performed serially. + * Further, this operation stream must be processed serially with all other + * operation streams in a bulk mutate job that specify the same scoping + * entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationStream { + /** + * @access public + * @var EntityId + */ + public $scopingEntityId; + + /** + * @access public + * @var Operation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationStream"; + } + + public function __construct($scopingEntityId = NULL, $operations = NULL) { + $this->scopingEntityId = $scopingEntityId; + $this->operations = $operations; + } +}} + +if (!class_exists("OperationStreamResult", FALSE)) { +/** + * The result of processing an {@link OperationStream}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationStreamResult { + /** + * @access public + * @var OperationResult[] + */ + public $operationResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationStreamResult"; + } + + public function __construct($operationResults = NULL) { + $this->operationResults = $operationResults; + } +}} + +if (!class_exists("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("OverrideInfo", FALSE)) { +/** + * Represents additional override info with which to augment the override + * extension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OverrideInfo { + /** + * @access public + * @var LocationOverrideInfo + */ + public $LocationOverrideInfo; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OverrideInfo"; + } + + public function __construct($LocationOverrideInfo = NULL) { + $this->LocationOverrideInfo = $LocationOverrideInfo; + } +}} + +if (!class_exists("PageOnePromotedBiddingScheme", FALSE)) { +/** + * Page-One Promoted bidding scheme, which sets max cpc bids to + * target impressions on page one or page one promoted slots on google.com. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingScheme extends BiddingScheme { + /** + * @access public + * @var tnsPageOnePromotedBiddingSchemeStrategyGoal + */ + public $strategyGoal; + + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var double + */ + public $bidModifier; + + /** + * @access public + * @var boolean + */ + public $bidChangesForRaisesOnly; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenBudgetConstained; + + /** + * @access public + * @var boolean + */ + public $raiseBidWhenLowQualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme"; + } + + public function __construct($strategyGoal = NULL, $bidCeiling = NULL, $bidModifier = NULL, $bidChangesForRaisesOnly = NULL, $raiseBidWhenBudgetConstained = NULL, $raiseBidWhenLowQualityScore = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->strategyGoal = $strategyGoal; + $this->bidCeiling = $bidCeiling; + $this->bidModifier = $bidModifier; + $this->bidChangesForRaisesOnly = $bidChangesForRaisesOnly; + $this->raiseBidWhenBudgetConstained = $raiseBidWhenBudgetConstained; + $this->raiseBidWhenLowQualityScore = $raiseBidWhenLowQualityScore; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("PercentCpaBid", FALSE)) { +/** + * Percentage CPA based bidding where user pays a percent of conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBid extends Bids { + /** + * @access public + * @var integer + */ + public $bid; + + /** + * @access public + * @var tnsBidSource + */ + public $percentCpaBidSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBid"; + } + + public function __construct($bid = NULL, $percentCpaBidSource = NULL, $BidsType = NULL) { + parent::__construct(); + $this->bid = $bid; + $this->percentCpaBidSource = $percentCpaBidSource; + $this->BidsType = $BidsType; + } +}} + +if (!class_exists("PercentCpaBiddingScheme", FALSE)) { +/** + * Percentage CPA based bidding scheme attributes where user pays a percent of conversions. + * This bidding strategy is available only to some advertisers. + *

      A campaign can only be created with PercentCPA bidding strategy. Existing + * campaigns with a different bidding strategy cannot be transitioned to PercentCPA. + *

      Similarly, once created as a PercentCPA, a campaign cannot be transitioned to + * any other bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PercentCpaBiddingScheme extends BiddingScheme { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PercentCpaBiddingScheme"; + } + + public function __construct($BiddingSchemeType = NULL) { + parent::__construct(); + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("PlaceHolder", FALSE)) { +/** + * A place holder for a result which is not available. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PlaceHolder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlaceHolder"; + } + + public function __construct() { + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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("ProductAd", FALSE)) { +/** + * Represents a product ad (known as a product + * listing ad in the AdWords user interface). A product ad displays + * product data (managed using the Google Merchant Center) that is + * pulled from the Google base product feed specified in the parent campaign's + * {@linkplain ProductExtension product extension}. + * + *

      Product ads are only available to a limited set of advertisers. If you + * are not eligible to use product ads, they will not serve.

      + * + *

      Caution: Product ads do not use {@link #url url} or + * {@link #displayUrl displayUrl}; setting these fields on a product ad will + * cause an error.

      + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductAd extends Ad { + /** + * @access public + * @var string + */ + public $promotionLine; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAd"; + } + + public function __construct($promotionLine = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->promotionLine = $promotionLine; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

      A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QualityInfo", FALSE)) { +/** + * Container for criterion quality information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QualityInfo { + /** + * @access public + * @var boolean + */ + public $isKeywordAdRelevanceAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageQualityAcceptable; + + /** + * @access public + * @var boolean + */ + public $isLandingPageLatencyAcceptable; + + /** + * @access public + * @var integer + */ + public $qualityScore; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QualityInfo"; + } + + public function __construct($isKeywordAdRelevanceAcceptable = NULL, $isLandingPageQualityAcceptable = NULL, $isLandingPageLatencyAcceptable = NULL, $qualityScore = NULL) { + $this->isKeywordAdRelevanceAcceptable = $isKeywordAdRelevanceAcceptable; + $this->isLandingPageQualityAcceptable = $isLandingPageQualityAcceptable; + $this->isLandingPageLatencyAcceptable = $isLandingPageLatencyAcceptable; + $this->qualityScore = $qualityScore; + } +}} + +if (!class_exists("QueryError", FALSE)) { +/** + * A QueryError represents possible errors for query parsing and execution. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryError extends ApiError { + /** + * @access public + * @var tnsQueryErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError"; + } + + public function __construct($reason = NULL, $message = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->message = $message; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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("QuotaError", FALSE)) { +/** + * Errors that are thrown if a quota limit is exceeded. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + public function __construct($reason = NULL, $limit = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->limit = $limit; + $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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ReturnValueResult", FALSE)) { +/** + * Represents a success result of processing a mutate operation that returned + * a value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReturnValueResult extends OperationResult { + /** + * @access public + * @var Operand + */ + public $returnValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReturnValueResult"; + } + + public function __construct($returnValue = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->returnValue = $returnValue; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("RichMediaAd", FALSE)) { +/** + * Data associated with a rich media ad. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAd extends Ad { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $impressionBeaconUrl; + + /** + * @access public + * @var integer + */ + public $adDuration; + + /** + * @access public + * @var integer + */ + public $certifiedVendorFormatId; + + /** + * @access public + * @var string + */ + public $sourceUrl; + + /** + * @access public + * @var tnsRichMediaAdRichMediaAdType + */ + public $richMediaAdType; + + /** + * @access public + * @var tnsRichMediaAdAdAttribute[] + */ + public $adAttributes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd"; + } + + public function __construct($name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("SelectorError", FALSE)) { +/** + * Represents possible error codes for {@link Selector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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("Setting", FALSE)) { +/** + * Base type for AdWords campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Setting { + /** + * @access public + * @var string + */ + public $SettingType; + + private $_parameterMap = array ( + "Setting.Type" => "SettingType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Setting"; + } + + public function __construct($SettingType = NULL) { + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("SettingError", FALSE)) { +/** + * Indicates a problem with campaign settings. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingError extends ApiError { + /** + * @access public + * @var tnsSettingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError"; + } + + 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("SimpleMutateJob", FALSE)) { +/** + * A mutation job, which was submitted using + * {@link MutateJobService#mutate}, and will execute asynchronously + * sometime after submission. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SimpleMutateJob extends Job { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * @access public + * @var JobEvent[] + */ + public $history; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SimpleMutateJob"; + } + + public function __construct($id = NULL, $status = NULL, $history = NULL, $failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + parent::__construct(); + $this->id = $id; + $this->status = $status; + $this->history = $history; + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("SimpleMutateResult", FALSE)) { +/** + * The results of a simple mutation job. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SimpleMutateResult { + /** + * @access public + * @var Operand[] + */ + public $results; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SimpleMutateResult"; + } + + public function __construct($results = NULL, $errors = NULL) { + $this->results = $results; + $this->errors = $errors; + } +}} + +if (!class_exists("Sitelink", FALSE)) { +/** + * Class to represent a single sitelink + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Sitelink { + /** + * @access public + * @var string + */ + public $displayText; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Sitelink"; + } + + public function __construct($displayText = NULL, $destinationUrl = NULL) { + $this->displayText = $displayText; + $this->destinationUrl = $destinationUrl; + } +}} + +if (!class_exists("SitelinksExtension", FALSE)) { +/** + * Class to represent a set of sitelinks and their order of preference. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SitelinksExtension extends AdExtension { + /** + * @access public + * @var Sitelink[] + */ + public $sitelinks; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SitelinksExtension"; + } + + public function __construct($sitelinks = NULL, $id = NULL, $AdExtensionType = NULL) { + parent::__construct(); + $this->sitelinks = $sitelinks; + $this->id = $id; + $this->AdExtensionType = $AdExtensionType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * Indicates that the number of entries in the request or response exceeds the system limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type String. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class String_StringMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Target", FALSE)) { +/** + * Target abstract class. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Target { + /** + * @access public + * @var string + */ + public $TargetType; + + private $_parameterMap = array ( + "Target.Type" => "TargetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Target"; + } + + public function __construct($TargetType = NULL) { + $this->TargetType = $TargetType; + } +}} + +if (!class_exists("TargetCpaBiddingScheme", FALSE)) { +/** + * Target Cpa bidding strategy helps you maximize your return on investment + * (ROI) by automatically getting you the most possible conversions for your budget. + * + * This is similar to the ConversionOptimizerBiddingScheme but does not + * support user-entered AdGroup-level target CPA bids, but rather a strategy-wide + * average CPA target. + * + *

      Note that campaigns must meet specific + * eligibility requirements before they can use the TargetCpaBiddingScheme + * bidding strategy. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetCpaBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $targetCpa; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetCpaBiddingScheme"; + } + + public function __construct($targetCpa = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->targetCpa = $targetCpa; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + 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("TargetList", FALSE)) { +/** + * Targets list abstract class (a list of a given type of targets along with their campaign ID). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetList { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var string + */ + public $TargetListType; + + private $_parameterMap = array ( + "TargetList.Type" => "TargetListType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetList"; + } + + public function __construct($campaignId = NULL, $TargetListType = NULL) { + $this->campaignId = $campaignId; + $this->TargetListType = $TargetListType; + } +}} + +if (!class_exists("TargetingSettingDetail", FALSE)) { +/** + * Specifies if criteria of this type group should be used to restrict + * targeting, or if ads can serve anywhere and criteria are only used in + * determining the bid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingSettingDetail { + /** + * @access public + * @var tnsCriterionTypeGroup + */ + public $criterionTypeGroup; + + /** + * @access public + * @var boolean + */ + public $targetAll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSettingDetail"; + } + + public function __construct($criterionTypeGroup = NULL, $targetAll = NULL) { + $this->criterionTypeGroup = $criterionTypeGroup; + $this->targetAll = $targetAll; + } +}} + +if (!class_exists("TargetSpendBiddingScheme", FALSE)) { +/** + * Target Spend bidding scheme, in which Google automatically places + * bids for the user based on their daily/monthly budget or optional + * spend target. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetSpendBiddingScheme extends BiddingScheme { + /** + * @access public + * @var Money + */ + public $bidCeiling; + + /** + * @access public + * @var Money + */ + public $spendTarget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetSpendBiddingScheme"; + } + + public function __construct($bidCeiling = NULL, $spendTarget = NULL, $BiddingSchemeType = NULL) { + parent::__construct(); + $this->bidCeiling = $bidCeiling; + $this->spendTarget = $spendTarget; + $this->BiddingSchemeType = $BiddingSchemeType; + } +}} + +if (!class_exists("TargetingSetting", FALSE)) { +/** + * Setting for targeting related features. + * This is applicable at Campaign and AdGroup level. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingSetting extends Setting { + /** + * @access public + * @var TargetingSettingDetail[] + */ + public $details; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingSetting"; + } + + public function __construct($details = NULL, $SettingType = NULL) { + parent::__construct(); + $this->details = $details; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("TempAdUnionId", FALSE)) { +/** + * Represents the temporary id for an ad union id, which the user can specify. + * The temporary id can be used to group ads together during ad creation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TempAdUnionId extends AdUnionId { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TempAdUnionId"; + } + + public function __construct($id = NULL, $AdUnionIdType = NULL) { + parent::__construct(); + $this->id = $id; + $this->AdUnionIdType = $AdUnionIdType; + } +}} + +if (!class_exists("TemplateAd", FALSE)) { +/** + * Represents a Display Ad Builder template ad. A template ad is + * composed of a template (specified by its ID) and the data that populates + * the template's fields. For a list of available templates and their required + * fields, see Template Ads. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateAd extends Ad { + /** + * @access public + * @var integer + */ + public $templateId; + + /** + * @access public + * @var AdUnionId + */ + public $adUnionId; + + /** + * @access public + * @var TemplateElement[] + */ + public $templateElements; + + /** + * @access public + * @var Dimensions + */ + public $dimensions; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $originAdId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateAd"; + } + + public function __construct($templateId = NULL, $adUnionId = NULL, $templateElements = NULL, $dimensions = NULL, $name = NULL, $duration = NULL, $originAdId = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->templateId = $templateId; + $this->adUnionId = $adUnionId; + $this->templateElements = $templateElements; + $this->dimensions = $dimensions; + $this->name = $name; + $this->duration = $duration; + $this->originAdId = $originAdId; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TemplateElement", FALSE)) { +/** + * Represents an element in a template. Each template element is composed + * of a list of fields (actual value data). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElement { + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var TemplateElementField[] + */ + public $fields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElement"; + } + + public function __construct($uniqueName = NULL, $fields = NULL) { + $this->uniqueName = $uniqueName; + $this->fields = $fields; + } +}} + +if (!class_exists("TemplateElementField", FALSE)) { +/** + * Represents a field in a template element. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElementField { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsTemplateElementFieldType + */ + public $type; + + /** + * @access public + * @var string + */ + public $fieldText; + + /** + * @access public + * @var Media + */ + public $fieldMedia; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField"; + } + + public function __construct($name = NULL, $type = NULL, $fieldText = NULL, $fieldMedia = NULL) { + $this->name = $name; + $this->type = $type; + $this->fieldText = $fieldText; + $this->fieldMedia = $fieldMedia; + } +}} + +if (!class_exists("TextAd", FALSE)) { +/** + * Represents a TextAd. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TextAd extends Ad { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAd"; + } + + public function __construct($headline = NULL, $description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->headline = $headline; + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("ThirdPartyRedirectAd", FALSE)) { +/** + * Data associated with rich media extension attributes. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ThirdPartyRedirectAd extends RichMediaAd { + /** + * @access public + * @var boolean + */ + public $isCookieTargeted; + + /** + * @access public + * @var boolean + */ + public $isUserInterestTargeted; + + /** + * @access public + * @var boolean + */ + public $isTagged; + + /** + * @access public + * @var tnsVideoType[] + */ + public $videoTypes; + + /** + * @access public + * @var tnsThirdPartyRedirectAdExpandingDirection[] + */ + public $expandingDirections; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd"; + } + + public function __construct($isCookieTargeted = NULL, $isUserInterestTargeted = NULL, $isTagged = NULL, $videoTypes = NULL, $expandingDirections = NULL, $name = NULL, $dimensions = NULL, $snippet = NULL, $impressionBeaconUrl = NULL, $adDuration = NULL, $certifiedVendorFormatId = NULL, $sourceUrl = NULL, $richMediaAdType = NULL, $adAttributes = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->isCookieTargeted = $isCookieTargeted; + $this->isUserInterestTargeted = $isUserInterestTargeted; + $this->isTagged = $isTagged; + $this->videoTypes = $videoTypes; + $this->expandingDirections = $expandingDirections; + $this->name = $name; + $this->dimensions = $dimensions; + $this->snippet = $snippet; + $this->impressionBeaconUrl = $impressionBeaconUrl; + $this->adDuration = $adDuration; + $this->certifiedVendorFormatId = $certifiedVendorFormatId; + $this->sourceUrl = $sourceUrl; + $this->richMediaAdType = $richMediaAdType; + $this->adAttributes = $adAttributes; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("TrackingSetting", FALSE)) { +/** + * Campaign level settings for tracking information. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrackingSetting extends Setting { + /** + * @access public + * @var string + */ + public $trackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingSetting"; + } + + public function __construct($trackingUrl = NULL, $SettingType = NULL) { + parent::__construct(); + $this->trackingUrl = $trackingUrl; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("UnprocessedResult", FALSE)) { +/** + * Indicates that the mutate operation was not processed. This could result + * if the job was aborted by the back-end workflow because the developer's API + * quota was exceeded or if the job encountered some severe workflow system + * failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UnprocessedResult extends OperationResult { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnprocessedResult"; + } + + public function __construct($OperationResultType = NULL) { + parent::__construct(); + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("CriterionUserInterest", FALSE)) { +/** + * User Interest - represents a particular interest based vertical to be targeted. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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("Video", FALSE)) { +/** + * Encapsulates a Video media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Video extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * @access public + * @var string + */ + public $industryStandardCommercialIdentifier; + + /** + * @access public + * @var string + */ + public $advertisingId; + + /** + * @access public + * @var string + */ + public $youTubeVideoIdString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Video"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $industryStandardCommercialIdentifier = NULL, $advertisingId = NULL, $youTubeVideoIdString = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->industryStandardCommercialIdentifier = $industryStandardCommercialIdentifier; + $this->advertisingId = $advertisingId; + $this->youTubeVideoIdString = $youTubeVideoIdString; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DynamicSearchAd", FALSE)) { +/** + * Represents a dynamic search ad. This ad will have its headline and + * destination URL auto-generated at serving time according to domain name + * specific information provided by {@link DomainInfoExtension} linked at the + * campaign level. + * + *

      Auto-generated fields: headline and destination URL (may contain an optional + * tracking URL)

      + * + *

      Required fields: description1, description2, displayUrl

      + * + *

      The URL field must contain at least one of the following placeholder tags + * (URL parameters): {unescapedlpurl}, {escapedlpurl}, {lpurlpath}. If no URL is + * specified, {unescapedlpurl} will be used as default.

      + * + *

      {unescapedlpurl} can only be used at the beginning of the URL field. It + * will be replaced with the full landing page URL of the displayed ad. Extra query + * parameters can be added to the end, e.g. "{unescapedlpurl}?lang=en".

      + * + *

      {escapedlpurl} will be replaced with the URL-encoded version of the full + * landing page URL. This makes it suitable for use as a query parameter + * value (e.g. "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but + * not at the beginning of the url field.

      + * + *

      {lpurlpath} will be replaced with the path and query part of the landing + * page URL and can be added to a different URL, e.g. + * "http://www.mygoodbusiness.com/tracking/{lpurlpath}".

      + * + *

      There are also special rules that come into play depending on whether the + * destination URL uses local click tracking or third-party click tracking.

      + * + *

      For more information, see the article Using dynamic tracking URLs. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DynamicSearchAd extends Ad { + /** + * @access public + * @var string + */ + public $description1; + + /** + * @access public + * @var string + */ + public $description2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DynamicSearchAd"; + } + + public function __construct($description1 = NULL, $description2 = NULL, $id = NULL, $url = NULL, $displayUrl = NULL, $devicePreference = NULL, $AdType = NULL) { + parent::__construct(); + $this->description1 = $description1; + $this->description2 = $description2; + $this->id = $id; + $this->url = $url; + $this->displayUrl = $displayUrl; + $this->devicePreference = $devicePreference; + $this->AdType = $AdType; + } +}} + +if (!class_exists("AdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionErrorReason", FALSE)) { +/** + * Account has been deleted + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideApprovalStatus", FALSE)) { +/** + * Approval status for the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideStatus", FALSE)) { +/** + * Status of the AdExtensionOverride + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverride.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdExtensionOverrideErrorReason", FALSE)) { +/** + * Cannot override an ad that is already overriden with an adextension + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdApprovalStatus", FALSE)) { +/** + * Represents the possible approval statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdStatus", FALSE)) { +/** + * The current status of an Ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAd.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupAdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupServiceErrorReason", FALSE)) { +/** + * The reasons for the adgroup service error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupStatus", FALSE)) { +/** + * Status of this ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdServingOptimizationStatus", FALSE)) { +/** + * Ad serving status of campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdServingOptimizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdServingOptimizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AgeRangeAgeRangeType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRangeAgeRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange.AgeRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApprovalStatus", FALSE)) { +/** + * Approval status for the criterion. + * Note: there are more states involved but we only expose two to users. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BasicJobStatus", FALSE)) { +/** + * A basic set of job statuses. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BasicJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BasicJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidModifierSource", FALSE)) { +/** + * Enumerates possible sources for bid modifier. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidModifierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidModifierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BidSource", FALSE)) { +/** + * Indicate where a criterion's bid came from: criterion or the adgroup it + * belongs to. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorsReason", FALSE)) { +/** + * Bidding strategy cannot override ad group or campaign bidding strategy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorsReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingErrors.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategySource", FALSE)) { +/** + * Indicates where bidding strategy came from: campaign, adgroup or criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategySource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategySource"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingStrategyType", FALSE)) { +/** + * The bidding strategy type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingStrategyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingStrategyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingTransitionErrorReason", FALSE)) { +/** + * Reason for bidding transition error. + * It is used by capability service as denial reasons, for bidding transition + * capability. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingTransitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingTransitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetDeliveryMethod", FALSE)) { +/** + * Budget delivery methods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetDeliveryMethod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetDeliveryMethod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetPeriod", FALSE)) { +/** + * Budget periods. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetPeriod { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetPeriod"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetBudgetStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetBudgetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Budget.BudgetStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BulkMutateJobErrorReason", FALSE)) { +/** + * The reasons for the bulk mutate job handling error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionApprovalStatus", FALSE)) { +/** + * Approval status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionStatus", FALSE)) { +/** + * Status of the CampaignAdExtension. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtension.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignAdExtensionErrorReason", FALSE)) { +/** + * Cannot operate on an adextensions under the wrong campaign + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CampaignStatus", FALSE)) { +/** + * Campaign status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentLabelType", FALSE)) { +/** + * Content label type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ContentLabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemeBidType", FALSE)) { +/** + * Average cost-per-acquisition (targetCPA) bid type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemeBidType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.BidType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerBiddingSchemePricingMode", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerBiddingSchemePricingMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerBiddingScheme.PricingMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionOptimizerEligibilityRejectionReason", FALSE)) { +/** + * Campaign is not active + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ConversionOptimizerEligibilityRejectionReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionOptimizerEligibility.RejectionReason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionTypeGroup", FALSE)) { +/** + * The list of groupings of criteria types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionTypeGroup { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionTypeGroup"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUse", FALSE)) { +/** + * The way a criterion is used - biddable or negative. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUse { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUse"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeprecatedAdType", FALSE)) { +/** + * Video ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DeprecatedAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeprecatedAd.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityIdType", FALSE)) { +/** + * Type of entity identity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityIdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityId.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDataStatus", FALSE)) { +/** + * Status of the experimental change associated with an entity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDataStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDataStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExperimentDeltaStatus", FALSE)) { +/** + * Status of an entity denoting its type of experimental change in a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExperimentDeltaStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExperimentDeltaStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemStatus", FALSE)) { +/** + * Feed item is active + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItem.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemErrorReason", FALSE)) { +/** + * The reasons for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailApprovalStatus", FALSE)) { +/** + * Feed item approval status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetailApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeedItemValidationDetailValidationStatus", FALSE)) { +/** + * Feed item validation status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemValidationDetailValidationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemValidationDetail.ValidationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForwardCompatibilityErrorReason", FALSE)) { +/** + * The reason for the error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ForwardCompatibilityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForwardCompatibilityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenderGenderType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GenderGenderType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Gender.GenderType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingNegativeGeoTargetType", FALSE)) { +/** + * The various signals a negative location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSettingNegativeGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.NegativeGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetTypeSettingPositiveGeoTargetType", FALSE)) { +/** + * The various signals a positive location target may use. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSettingPositiveGeoTargetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting.PositiveGeoTargetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The image is not valid. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InAppLinkExtensionAppStore", FALSE)) { +/** + * The AppStore this extension will render for. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InAppLinkExtensionAppStore { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InAppLinkExtension.AppStore"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("JobErrorReason", FALSE)) { +/** + * The reasons for the job handling error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class JobErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "JobError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Level", FALSE)) { +/** + * The level on which the cap is to be applied. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Level { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationExtensionSource", FALSE)) { +/** + * From manual entry in adwords frontend + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationExtensionSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationExtension.Source"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationOverrideInfoRadiusUnits", FALSE)) { +/** + * Radius units + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationOverrideInfoRadiusUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationOverrideInfo.RadiusUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("MarkupLanguageType", FALSE)) { +/** + * Markup languages to use for mobile ads. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MarkupLanguageType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MarkupLanguageType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMediaType", FALSE)) { +/** + * Media types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMediaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MediaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaMimeType", FALSE)) { +/** + * Mime types + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaSize", FALSE)) { +/** + * Sizes for retrieving the original media + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Media.Size"; + } + + public function __construct() { + } +}} + +if (!class_exists("MediaErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MediaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MediaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently only 0, 15, 30, and 45 are supported + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobileDeviceDeviceType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileDeviceDeviceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice.DeviceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MultiplierSource", FALSE)) { +/** + * Denotes whether the bid multiplier is derived from the adgroup + * or the criterion + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MultiplierSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MultiplierSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * Do not set the id field while creating new entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatingSystemVersionOperatorType", FALSE)) { +/** + * The operator type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatingSystemVersionOperatorType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion.OperatorType"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PageOnePromotedBiddingSchemeStrategyGoal", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PageOnePromotedBiddingSchemeStrategyGoal { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PageOnePromotedBiddingScheme.StrategyGoal"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PolicyViolationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + public function __construct() { + } +}} + +if (!class_exists("QueryErrorReason", FALSE)) { +/** + * The reason for the query error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QueryError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The reasons for the quota error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdAdAttribute", FALSE)) { +/** + * A set of attributes that describe the rich media ad capabilities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAdAdAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.AdAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaAdRichMediaAdType", FALSE)) { +/** + * Different types of rich media ad that are available to customers. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RichMediaAdRichMediaAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaAd.RichMediaAdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServingStatus", FALSE)) { +/** + * Campaign serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("SettingErrorReason", FALSE)) { +/** + * The reasons for the setting error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SettingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SettingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SystemServingStatus", FALSE)) { +/** + * Reported by system to reflect the criterion's serving status. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SystemServingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SystemServingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateElementFieldType", FALSE)) { +/** + * Possible field types of template element fields. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TemplateElementFieldType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateElementField.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyRedirectAdExpandingDirection", FALSE)) { +/** + * Allowed expanding directions for ads that are expandable. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ThirdPartyRedirectAdExpandingDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyRedirectAd.ExpandingDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Unit of time the cap is defined at. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserStatus", FALSE)) { +/** + * Specified by user to pause or unpause a criterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class UserStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoType", FALSE)) { +/** + * VideoType enum values that are permitted for video filterable + * creative attribute IDs. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class VideoType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoType"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("MutateJobServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Query the status of existing jobs, both simple and bulk API. + *

      Use a {@link JobSelector} to query and return a list which may + * contain both {@link BulkMutateJob} and/or {@link SimpleMutateJob}.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateJobServiceGet { + /** + * @access public + * @var JobSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("MutateJobServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateJobServiceGetResponse { + /** + * @access public + * @var Job[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getResult", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Query mutation results, of a {@code COMPLETED} job. + *

      Use a {@link JobSelector} to query and return either a + * {@link BulkMutateResult} or a {@link SimpleMutateResult}. Submit only one job ID + * at a time.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getResult { + /** + * @access public + * @var JobSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getResultResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getResultResponse { + /** + * @access public + * @var JobResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("MutateJobServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Simplified way of submitting a mutation job. The provided list of + * operations, if valid, will create a new job with a unique id, which will + * be returned. This id can later be used in invocations of + * {@link #get} and {@link #getResult}. Policy can optionally be specified. + * + *

      When this method returns with success, the job will be in + * {@code PROCESSING} or {@code PENDING} state and no further action is + * needed for the job to get executed.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateJobServiceMutate { + /** + * @access public + * @var Operation[] + */ + public $operations; + + /** + * @access public + * @var BulkMutateJobPolicy + */ + public $policy; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL, $policy = NULL) { + $this->operations = $operations; + $this->policy = $policy; + } +}} + +if (!class_exists("MutateJobServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MutateJobServiceMutateResponse { + /** + * @access public + * @var SimpleMutateJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdError", FALSE)) { +/** + * Base error class for Ad Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdError extends ApiError { + /** + * @access public + * @var tnsAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdError"; + } + + 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("AdExtensionError", FALSE)) { +/** + * AdExtension errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionError extends ApiError { + /** + * @access public + * @var tnsAdExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionError"; + } + + 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("AdExtensionOverrideError", FALSE)) { +/** + * AdExtensionOverride errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideError extends ApiError { + /** + * @access public + * @var tnsAdExtensionOverrideErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideError"; + } + + 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("AdExtensionOverrideOperation", FALSE)) { +/** + * AdExtensionOverride service operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdExtensionOverrideOperation extends Operation { + /** + * @access public + * @var AdExtensionOverride + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExtensionOverrideOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupAdCountLimitExceeded", FALSE)) { +/** + * Indicates too many ads were added/enabled under the specified adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdCountLimitExceeded extends EntityCountLimitExceeded { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupAdError", FALSE)) { +/** + * Error information for AdGroupAdService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdError extends ApiError { + /** + * @access public + * @var tnsAdGroupAdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdError"; + } + + 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("AdGroupAdOperation", FALSE)) { +/** + * AdGroupAd service operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupAdOperation extends Operation { + /** + * @access public + * @var AdGroupAd + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupAdOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupBidModifierOperation", FALSE)) { +/** + * Operation used to create or mutate a AdGroupBidModifier. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidModifierOperation extends Operation { + /** + * @access public + * @var AdGroupBidModifier + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidModifierOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + 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("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdGroupCriterionOperation", FALSE)) { +/** + * Operation (add, remove and set) on adgroup criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionOperation extends Operation { + /** + * @access public + * @var AdGroupCriterion + */ + public $operand; + + /** + * @access public + * @var ExemptionRequest[] + */ + public $exemptionRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionOperation"; + } + + public function __construct($operand = NULL, $exemptionRequests = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->exemptionRequests = $exemptionRequests; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupOperation", FALSE)) { +/** + * AdGroup operations for adding/updating/removing adgroups. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupOperation extends Operation { + /** + * @access public + * @var AdGroup + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("AdGroupServiceError", FALSE)) { +/** + * Represents possible error codes in AdGroupService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupServiceError extends ApiError { + /** + * @access public + * @var tnsAdGroupServiceErrorReason + */ + public $reason; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupServiceError"; + } + + public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->adGroupId = $adGroupId; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdSchedule", FALSE)) { +/** + * Represents an AdSchedule Criterion. + * AdSchedule is specified as day and time of the week criteria to target + * the Ads. + *

      Note: An AdSchedule may not have more than six intervals + * in a day.

      + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSchedule extends Criterion { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSchedule"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("AdScheduleTarget", FALSE)) { +/** + * Immutable structure to hold an ad schedule target. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdScheduleTarget extends Target { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var integer + */ + public $startHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $startMinute; + + /** + * @access public + * @var integer + */ + public $endHour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $endMinute; + + /** + * @access public + * @var double + */ + public $bidMultiplier; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdScheduleTarget"; + } + + public function __construct($dayOfWeek = NULL, $startHour = NULL, $startMinute = NULL, $endHour = NULL, $endMinute = NULL, $bidMultiplier = NULL, $TargetType = NULL) { + parent::__construct(); + $this->dayOfWeek = $dayOfWeek; + $this->startHour = $startHour; + $this->startMinute = $startMinute; + $this->endHour = $endHour; + $this->endMinute = $endMinute; + $this->bidMultiplier = $bidMultiplier; + $this->TargetType = $TargetType; + } +}} + +if (!class_exists("AdScheduleTargetList", FALSE)) { +/** + * List of ad schedule targets. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdScheduleTargetList extends TargetList { + /** + * @access public + * @var AdScheduleTarget[] + */ + public $targets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdScheduleTargetList"; + } + + public function __construct($targets = NULL, $campaignId = NULL, $TargetListType = NULL) { + parent::__construct(); + $this->targets = $targets; + $this->campaignId = $campaignId; + $this->TargetListType = $TargetListType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("AgeRange", FALSE)) { +/** + * Represents an Age Range criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only excludable. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AgeRange extends Criterion { + /** + * @access public + * @var tnsAgeRangeAgeRangeType + */ + public $ageRangeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AgeRange"; + } + + public function __construct($ageRangeType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->ageRangeType = $ageRangeType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Audio", FALSE)) { +/** + * Encapsulates an Audio media identified by a MediaId. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Audio extends Media { + /** + * @access public + * @var integer + */ + public $durationMillis; + + /** + * @access public + * @var string + */ + public $streamingUrl; + + /** + * @access public + * @var boolean + */ + public $readyToPlayOnTheWeb; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Audio"; + } + + public function __construct($durationMillis = NULL, $streamingUrl = NULL, $readyToPlayOnTheWeb = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->durationMillis = $durationMillis; + $this->streamingUrl = $streamingUrl; + $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("BatchFailureResult", FALSE)) { +/** + * Represents a failure result for a mutate operation that was applied in a + * transactional batch. It does not imply that the corresponding operation + * for this result itself caused the failure. To determine that, please see + * the {@link FailureResult} provided for the first operation of the batch. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BatchFailureResult extends OperationResult { + /** + * @access public + * @var integer + */ + public $operationIndexInBatch; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BatchFailureResult"; + } + + public function __construct($operationIndexInBatch = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->operationIndexInBatch = $operationIndexInBatch; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("BudgetOperation", FALSE)) { +/** + * Operations for adding/updating Budget entities. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetOperation extends Operation { + /** + * @access public + * @var Budget + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("BulkMutateJob", FALSE)) { +/** + * A {@code BulkMutateJob} is essentially a mixed collection of mutate + * operations from the following AdWords API campaign management services: + *

        + *
      • {@link CampaignService}
      • + *
      • {@link CampaignTargetService}
      • + *
      • {@link CampaignCriterionService}
      • + *
      • {@link AdGroupService}
      • + *
      • {@link AdGroupAdService}
      • + *
      • {@link AdGroupCriterionService}
      • + *
      + * + *

      The mutate operations in a job's request are constructed in exactly the + * same way as they are for synchronous calls to these services.

      + * + *

      The mutate operations are grouped by their scoping entity in the + * AdWords customer tree. Currently, mutate operations can be grouped either + * by the customer or by their parent campaign. However, they cannot be + * grouped both ways - some by customer and others by campaigns - in the same + * job.

      + * + *

      Note: A job may have no more than 500,000 mutate + * operations in total, and no more than 10 different scoping campaigns.

      + * + *

      The mutate operations must be packaged into containers called + * {@code Operation Streams}, each tagged with the ID of the scoping entity of + * its operations.

      + * + *

      To facilitate the building of very large bulk mutate jobs, the operation + * streams of a job can be submitted using multiple request parts. A job is + * queued for processing as soon as it can be determined that all of its + * request parts have been received.

      + * + *

      Note: A job may have no more than 100 request parts. + * Each part may have no more than 25 operation streams and no more than 10,000 + * operations in total.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJob extends Job { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var BulkMutateJobPolicy + */ + public $policy; + + /** + * @access public + * @var BulkMutateRequest + */ + public $request; + + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * @access public + * @var BulkMutateJobEvent[] + */ + public $history; + + /** + * @access public + * @var BulkMutateResult + */ + public $result; + + /** + * @access public + * @var integer + */ + public $numRequestParts; + + /** + * @access public + * @var integer + */ + public $numRequestPartsReceived; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJob"; + } + + public function __construct($id = NULL, $policy = NULL, $request = NULL, $status = NULL, $history = NULL, $result = NULL, $numRequestParts = NULL, $numRequestPartsReceived = NULL, $failureReason = NULL, $stats = NULL, $billingSummary = NULL, $JobType = NULL) { + parent::__construct(); + $this->id = $id; + $this->policy = $policy; + $this->request = $request; + $this->status = $status; + $this->history = $history; + $this->result = $result; + $this->numRequestParts = $numRequestParts; + $this->numRequestPartsReceived = $numRequestPartsReceived; + $this->failureReason = $failureReason; + $this->stats = $stats; + $this->billingSummary = $billingSummary; + $this->JobType = $JobType; + } +}} + +if (!class_exists("BulkMutateJobEvent", FALSE)) { +/** + * An event defined by a status change of a bulk mutate job. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobEvent extends JobEvent { + /** + * @access public + * @var tnsBasicJobStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobEvent"; + } + + public function __construct($status = NULL, $dateTime = NULL, $JobEventType = NULL) { + parent::__construct(); + $this->status = $status; + $this->dateTime = $dateTime; + $this->JobEventType = $JobEventType; + } +}} + +if (!class_exists("BulkMutateJobSelector", FALSE)) { +/** + * Specifies additional criteria for selecting bulk mutate jobs. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobSelector extends JobSelector { + /** + * @access public + * @var integer[] + */ + public $jobIds; + + /** + * @access public + * @var integer + */ + public $resultPartIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobSelector"; + } + + public function __construct($jobIds = NULL, $resultPartIndex = NULL, $includeHistory = NULL, $includeStats = NULL, $JobSelectorType = NULL) { + parent::__construct(); + $this->jobIds = $jobIds; + $this->resultPartIndex = $resultPartIndex; + $this->includeHistory = $includeHistory; + $this->includeStats = $includeStats; + $this->JobSelectorType = $JobSelectorType; + } +}} + +if (!class_exists("BulkMutateJobStats", FALSE)) { +/** + * Bulk mutate job-handling statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BulkMutateJobStats extends JobStats { + /** + * @access public + * @var integer + */ + public $numOperations; + + /** + * @access public + * @var integer + */ + public $numFailedOperations; + + /** + * @access public + * @var integer + */ + public $numUnprocessedOperations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BulkMutateJobStats"; + } + + public function __construct($numOperations = NULL, $numFailedOperations = NULL, $numUnprocessedOperations = NULL, $progressPercent = NULL, $pendingTimeMillis = NULL, $processingTimeMillis = NULL, $JobStatsType = NULL) { + parent::__construct(); + $this->numOperations = $numOperations; + $this->numFailedOperations = $numFailedOperations; + $this->numUnprocessedOperations = $numUnprocessedOperations; + $this->progressPercent = $progressPercent; + $this->pendingTimeMillis = $pendingTimeMillis; + $this->processingTimeMillis = $processingTimeMillis; + $this->JobStatsType = $JobStatsType; + } +}} + +if (!class_exists("CampaignAdExtensionOperation", FALSE)) { +/** + * CampaignAdExtension service operation. Note: The {@code SET} operator + * is not supported. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignAdExtensionOperation extends Operation { + /** + * @access public + * @var CampaignAdExtension + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignAdExtensionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignCriterionLimitExceeded", FALSE)) { +/** + * Error to indicate that too many negative criteria added to some campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsCampaignCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CampaignCriterionOperation", FALSE)) { +/** + * Generic operation (add, remove and set) for campaign criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignCriterionOperation extends Operation { + /** + * @access public + * @var CampaignCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignOperation", FALSE)) { +/** + * An operation on an AdWords campaign. + *

      Note: The REMOVE operator is not + * supported. To remove a campaign, set its {@link Campaign#status status} + * to DELETED.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignOperation extends Operation { + /** + * @access public + * @var Campaign + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("CampaignTargetOperation", FALSE)) { +/** + * Sets a list of targets on a specified campaign. + *

      Note: Only the SET operator is supported.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignTargetOperation extends Operation { + /** + * @access public + * @var TargetList + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignTargetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Carrier", FALSE)) { +/** + * Represents a Carrier Criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Carrier extends Criterion { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Carrier"; + } + + public function __construct($name = NULL, $countryCode = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->name = $name; + $this->countryCode = $countryCode; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("ContentLabel", FALSE)) { +/** + * Content Label for category exclusion. + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ContentLabel extends Criterion { + /** + * @access public + * @var tnsContentLabelType + */ + public $contentLabelType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentLabel"; + } + + public function __construct($contentLabelType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->contentLabelType = $contentLabelType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("ExplorerAutoOptimizerSetting", FALSE)) { +/** + * Settings for Explorer (GDN Auto Optimizer). + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExplorerAutoOptimizerSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExplorerAutoOptimizerSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("FailureResult", FALSE)) { +/** + * Represents a failure result for an individual mutate operation. + * + *

      Currently, operations are applied in transactional batches, so the + * corresponding operation for this result may not itself be faulty.

      + * + *

      The errors in the exception may contain {@code OGNL path}s that identify + * the faulty operations in the batch. Please see the subsequent + * {@link BatchFailureResult}s to determine the remaining operations that were + * also applied in the batch and their positions within the batch.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FailureResult extends OperationResult { + /** + * @access public + * @var ApiException + */ + public $cause; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FailureResult"; + } + + public function __construct($cause = NULL, $OperationResultType = NULL) { + parent::__construct(); + $this->cause = $cause; + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("FeedItemOperation", FALSE)) { +/** + * FeedItem service mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FeedItemOperation extends Operation { + /** + * @access public + * @var FeedItem + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeedItemOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("GeoTargetTypeSetting", FALSE)) { +/** + * Represents a collection of settings related to ads geotargeting. + * + *

      AdWords ads can be geotargeted using Location of Presence (LOP), + * Area of Interest (AOI), or both. LOP is the physical location + * of the user performing the search; AOI is the geographical region + * in which the searcher is interested. For example, if a user in + * New York City performs a search "hotels california", their LOP + * is New York City and their AOI is California. + * + *

      Additionally, ads can be positively or negatively geotargeted. + * An ad that is positively geotargeted to New York City only appears + * to users whose location is related (via AOI or LOP) to New York City. An ad + * that is negatively geotargeted to New York City appears for all + * users except those whose location is related to New York City. Ads can + * only be negatively geotargeted if a positive geotargeting is also supplied, and + * the negatively geotargeted region must be contained within the positive + * region. + * + *

      Geotargeting settings allow ads to be targeted in the following way: + *

        + *
      • Positively geotargeted using solely AOI, solely LOP, or either. + *
      • Negatively geotargeted using solely LOP, or both. + *
      + * + *

      This setting applies only to ads shown on the search network, and does + * not affect ads shown on the Google Display Network. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoTargetTypeSetting extends Setting { + /** + * @access public + * @var tnsGeoTargetTypeSettingPositiveGeoTargetType + */ + public $positiveGeoTargetType; + + /** + * @access public + * @var tnsGeoTargetTypeSettingNegativeGeoTargetType + */ + public $negativeGeoTargetType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetTypeSetting"; + } + + public function __construct($positiveGeoTargetType = NULL, $negativeGeoTargetType = NULL, $SettingType = NULL) { + parent::__construct(); + $this->positiveGeoTargetType = $positiveGeoTargetType; + $this->negativeGeoTargetType = $negativeGeoTargetType; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("Image", FALSE)) { +/** + * Encapsulates an Image media. For {@code SET},{@code REMOVE} operations in + * MediaService, use {@code mediaId}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Image extends Media { + /** + * @access public + * @var base64Binary + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Image"; + } + + public function __construct($data = NULL, $mediaId = NULL, $type = NULL, $referenceId = NULL, $dimensions = NULL, $urls = NULL, $mimeType = NULL, $sourceUrl = NULL, $name = NULL, $fileSize = NULL, $creationTime = NULL, $MediaType = NULL) { + parent::__construct(); + $this->data = $data; + $this->mediaId = $mediaId; + $this->type = $type; + $this->referenceId = $referenceId; + $this->dimensions = $dimensions; + $this->urls = $urls; + $this->mimeType = $mimeType; + $this->sourceUrl = $sourceUrl; + $this->name = $name; + $this->fileSize = $fileSize; + $this->creationTime = $creationTime; + $this->MediaType = $MediaType; + } +}} + +if (!class_exists("KeywordMatchSetting", FALSE)) { +/** + * Improved exact and phrase match option includes misspellings, plurals, + * and other close variants of your keywords. + * + * Default value set to {@code true} to include close variants. For more + * information, see the article + * + * What are keyword matching options?. + * + * This setting is required when creating new campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LostResult", FALSE)) { +/** + * Represents the result of processing an individual mutate operation that + * however failed to get durably saved despite the service's best efforts. + * + *

      The operation is considered to have completed processing because it + * either was successfully performed or failed with validation errors, and + * cannot be retried without the risk of doing duplicate work. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LostResult extends OperationResult { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LostResult"; + } + + public function __construct($OperationResultType = NULL) { + parent::__construct(); + $this->OperationResultType = $OperationResultType; + } +}} + +if (!class_exists("RealTimeBiddingSetting", FALSE)) { +/** + * Settings for Real-Time Bidding, a feature only available for campaigns + * targeting the Ad Exchange network. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RealTimeBiddingSetting extends Setting { + /** + * @access public + * @var boolean + */ + public $optIn; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RealTimeBiddingSetting"; + } + + public function __construct($optIn = NULL, $SettingType = NULL) { + parent::__construct(); + $this->optIn = $optIn; + $this->SettingType = $SettingType; + } +}} + +if (!class_exists("MutateJobService", FALSE)) { +/** + * MutateJobService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class MutateJobService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "MutateJobServiceGetResponse", + "get" => "MutateJobServiceGet", + "mutate" => "MutateJobServiceMutate", + "mutateResponse" => "MutateJobServiceMutateResponse", + "mutateCallToAction" => "MutateJobServiceMutateCallToAction", + "search" => "MutateJobServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Ad" => "Ad", + "AdError" => "AdError", + "ApiError" => "ApiError", + "AdExtension" => "AdExtension", + "AdExtensionError" => "AdExtensionError", + "AdExtensionOverride" => "AdExtensionOverride", + "AdExtensionOverrideError" => "AdExtensionOverrideError", + "AdExtensionOverrideOperation" => "AdExtensionOverrideOperation", + "Operation" => "Operation", + "AdGroup" => "AdGroup", + "AdGroupAd" => "AdGroupAd", + "AdGroupAdCountLimitExceeded" => "AdGroupAdCountLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdGroupAdError" => "AdGroupAdError", + "AdGroupAdExperimentData" => "AdGroupAdExperimentData", + "AdGroupAdOperation" => "AdGroupAdOperation", + "AdGroupBidModifier" => "AdGroupBidModifier", + "AdGroupBidModifierOperation" => "AdGroupBidModifierOperation", + "AdGroupCriterion" => "AdGroupCriterion", + "AdGroupCriterionError" => "AdGroupCriterionError", + "AdGroupCriterionExperimentBidMultiplier" => "AdGroupCriterionExperimentBidMultiplier", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "AdGroupCriterionOperation" => "AdGroupCriterionOperation", + "AdGroupExperimentBidMultipliers" => "AdGroupExperimentBidMultipliers", + "AdGroupExperimentData" => "AdGroupExperimentData", + "AdGroupOperation" => "AdGroupOperation", + "AdGroupServiceError" => "AdGroupServiceError", + "AdSchedule" => "AdSchedule", + "Criterion" => "Criterion", + "AdScheduleTarget" => "AdScheduleTarget", + "Target" => "Target", + "AdScheduleTargetList" => "AdScheduleTargetList", + "TargetList" => "TargetList", + "AdUnionId" => "AdUnionId", + "Address" => "Address", + "AdxError" => "AdxError", + "AgeRange" => "AgeRange", + "ApiErrorReason" => "ApiErrorReason", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Audio" => "Audio", + "Media" => "Media", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "BatchFailureResult" => "BatchFailureResult", + "OperationResult" => "OperationResult", + "BetaError" => "BetaError", + "Bid" => "Bid", + "BidMultiplier" => "BidMultiplier", + "BiddableAdGroupCriterion" => "BiddableAdGroupCriterion", + "BiddableAdGroupCriterionExperimentData" => "BiddableAdGroupCriterionExperimentData", + "BiddingError" => "BiddingError", + "BiddingErrors" => "BiddingErrors", + "BiddingScheme" => "BiddingScheme", + "BiddingStrategyConfiguration" => "BiddingStrategyConfiguration", + "BiddingTransitionError" => "BiddingTransitionError", + "Bids" => "Bids", + "BillingSummary" => "BillingSummary", + "Budget" => "Budget", + "BudgetError" => "BudgetError", + "BudgetOperation" => "BudgetOperation", + "BudgetOptimizerBiddingScheme" => "BudgetOptimizerBiddingScheme", + "BulkMutateJob" => "BulkMutateJob", + "Job" => "Job", + "BulkMutateJobError" => "BulkMutateJobError", + "BulkMutateJobEvent" => "BulkMutateJobEvent", + "JobEvent" => "JobEvent", + "BulkMutateJobPolicy" => "BulkMutateJobPolicy", + "BulkMutateJobSelector" => "BulkMutateJobSelector", + "JobSelector" => "JobSelector", + "BulkMutateJobStats" => "BulkMutateJobStats", + "JobStats" => "JobStats", + "BulkMutateRequest" => "BulkMutateRequest", + "BulkMutateResult" => "BulkMutateResult", + "Campaign" => "Campaign", + "CampaignAdExtension" => "CampaignAdExtension", + "CampaignAdExtensionError" => "CampaignAdExtensionError", + "CampaignAdExtensionOperation" => "CampaignAdExtensionOperation", + "CampaignCriterion" => "CampaignCriterion", + "CampaignCriterionError" => "CampaignCriterionError", + "CampaignCriterionLimitExceeded" => "CampaignCriterionLimitExceeded", + "CampaignCriterionOperation" => "CampaignCriterionOperation", + "CampaignError" => "CampaignError", + "CampaignOperation" => "CampaignOperation", + "CampaignTargetOperation" => "CampaignTargetOperation", + "Carrier" => "Carrier", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "ContentLabel" => "ContentLabel", + "ConversionOptimizerBiddingScheme" => "ConversionOptimizerBiddingScheme", + "ConversionOptimizerEligibility" => "ConversionOptimizerEligibility", + "CpaBid" => "CpaBid", + "CpcBid" => "CpcBid", + "CpmBid" => "CpmBid", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DeprecatedAd" => "DeprecatedAd", + "Dimensions" => "Dimensions", + "DistinctError" => "DistinctError", + "DomainInfoExtension" => "DomainInfoExtension", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EnhancedCpcBiddingScheme" => "EnhancedCpcBiddingScheme", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityId" => "EntityId", + "EntityNotFound" => "EntityNotFound", + "ExemptionRequest" => "ExemptionRequest", + "ExplorerAutoOptimizerSetting" => "ExplorerAutoOptimizerSetting", + "Setting" => "Setting", + "FailureResult" => "FailureResult", + "FeedItem" => "FeedItem", + "FeedItemAttributeError" => "FeedItemAttributeError", + "FeedItemAttributeValue" => "FeedItemAttributeValue", + "FeedItemDevicePreference" => "FeedItemDevicePreference", + "FeedItemError" => "FeedItemError", + "FeedItemOperation" => "FeedItemOperation", + "FeedItemSchedule" => "FeedItemSchedule", + "FeedItemScheduling" => "FeedItemScheduling", + "FeedItemValidationDetail" => "FeedItemValidationDetail", + "ForwardCompatibilityError" => "ForwardCompatibilityError", + "FrequencyCap" => "FrequencyCap", + "Gender" => "Gender", + "GeoPoint" => "GeoPoint", + "GeoTargetTypeSetting" => "GeoTargetTypeSetting", + "IdError" => "IdError", + "Image" => "Image", + "ImageAd" => "ImageAd", + "ImageError" => "ImageError", + "InAppLinkExtension" => "InAppLinkExtension", + "InternalApiError" => "InternalApiError", + "JobError" => "JobError", + "JobResult" => "JobResult", + "Keyword" => "Keyword", + "KeywordMatchSetting" => "KeywordMatchSetting", + "Language" => "Language", + "Location" => "Location", + "LocationExtension" => "LocationExtension", + "LocationOverrideInfo" => "LocationOverrideInfo", + "LocationSyncExtension" => "LocationSyncExtension", + "LongValue" => "LongValue", + "LostResult" => "LostResult", + "ManualCPCAdGroupCriterionExperimentBidMultiplier" => "ManualCPCAdGroupCriterionExperimentBidMultiplier", + "ManualCPCAdGroupExperimentBidMultipliers" => "ManualCPCAdGroupExperimentBidMultipliers", + "ManualCPMAdGroupExperimentBidMultipliers" => "ManualCPMAdGroupExperimentBidMultipliers", + "ManualCpcBiddingScheme" => "ManualCpcBiddingScheme", + "ManualCpmBiddingScheme" => "ManualCpmBiddingScheme", + "MediaError" => "MediaError", + "Media_Size_DimensionsMapEntry" => "Media_Size_DimensionsMapEntry", + "Media_Size_StringMapEntry" => "Media_Size_StringMapEntry", + "MobileAd" => "MobileAd", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "MobileDevice" => "MobileDevice", + "MobileExtension" => "MobileExtension", + "MobileImageAd" => "MobileImageAd", + "Money" => "Money", + "NegativeAdGroupCriterion" => "NegativeAdGroupCriterion", + "NegativeCampaignCriterion" => "NegativeCampaignCriterion", + "NetworkSetting" => "NetworkSetting", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OAuthInfo" => "OAuthInfo", + "Operand" => "Operand", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperationAccessDenied" => "OperationAccessDenied", + "OperationStream" => "OperationStream", + "OperationStreamResult" => "OperationStreamResult", + "OperatorError" => "OperatorError", + "OverrideInfo" => "OverrideInfo", + "PageOnePromotedBiddingScheme" => "PageOnePromotedBiddingScheme", + "PagingError" => "PagingError", + "PercentCpaBid" => "PercentCpaBid", + "PercentCpaBiddingScheme" => "PercentCpaBiddingScheme", + "PlaceHolder" => "PlaceHolder", + "Placement" => "Placement", + "Platform" => "Platform", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Product" => "Product", + "ProductAd" => "ProductAd", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QualityInfo" => "QualityInfo", + "QueryError" => "QueryError", + "QuotaCheckError" => "QuotaCheckError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RealTimeBiddingSetting" => "RealTimeBiddingSetting", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "ReturnValueResult" => "ReturnValueResult", + "RichMediaAd" => "RichMediaAd", + "SelectorError" => "SelectorError", + "SettingError" => "SettingError", + "SimpleMutateJob" => "SimpleMutateJob", + "SimpleMutateResult" => "SimpleMutateResult", + "Sitelink" => "Sitelink", + "SitelinksExtension" => "SitelinksExtension", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "String_StringMapEntry" => "String_StringMapEntry", + "TargetCpaBiddingScheme" => "TargetCpaBiddingScheme", + "TargetError" => "TargetError", + "TargetingSettingDetail" => "TargetingSettingDetail", + "TargetSpendBiddingScheme" => "TargetSpendBiddingScheme", + "TargetingSetting" => "TargetingSetting", + "TempAdUnionId" => "TempAdUnionId", + "TemplateAd" => "TemplateAd", + "TemplateElement" => "TemplateElement", + "TemplateElementField" => "TemplateElementField", + "TextAd" => "TextAd", + "ThirdPartyRedirectAd" => "ThirdPartyRedirectAd", + "TrackingSetting" => "TrackingSetting", + "UnprocessedResult" => "UnprocessedResult", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Video" => "Video", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "DynamicSearchAd" => "DynamicSearchAd", + "AdError.Reason" => "AdErrorReason", + "AdExtensionError.Reason" => "AdExtensionErrorReason", + "AdExtensionOverride.ApprovalStatus" => "AdExtensionOverrideApprovalStatus", + "AdExtensionOverride.Status" => "AdExtensionOverrideStatus", + "AdExtensionOverrideError.Reason" => "AdExtensionOverrideErrorReason", + "AdGroupAd.ApprovalStatus" => "AdGroupAdApprovalStatus", + "AdGroupAd.Status" => "AdGroupAdStatus", + "AdGroupAdError.Reason" => "AdGroupAdErrorReason", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdGroupServiceError.Reason" => "AdGroupServiceErrorReason", + "AdGroup.Status" => "AdGroupStatus", + "AdServingOptimizationStatus" => "AdServingOptimizationStatus", + "AdxError.Reason" => "AdxErrorReason", + "AgeRange.AgeRangeType" => "AgeRangeAgeRangeType", + "ApprovalStatus" => "ApprovalStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BasicJobStatus" => "BasicJobStatus", + "BetaError.Reason" => "BetaErrorReason", + "BidModifierSource" => "BidModifierSource", + "BidSource" => "BidSource", + "BiddingError.Reason" => "BiddingErrorReason", + "BiddingErrors.Reason" => "BiddingErrorsReason", + "BiddingStrategySource" => "BiddingStrategySource", + "BiddingStrategyType" => "BiddingStrategyType", + "BiddingTransitionError.Reason" => "BiddingTransitionErrorReason", + "Budget.BudgetDeliveryMethod" => "BudgetBudgetDeliveryMethod", + "Budget.BudgetPeriod" => "BudgetBudgetPeriod", + "Budget.BudgetStatus" => "BudgetBudgetStatus", + "BudgetError.Reason" => "BudgetErrorReason", + "BulkMutateJobError.Reason" => "BulkMutateJobErrorReason", + "CampaignAdExtension.ApprovalStatus" => "CampaignAdExtensionApprovalStatus", + "CampaignAdExtension.Status" => "CampaignAdExtensionStatus", + "CampaignAdExtensionError.Reason" => "CampaignAdExtensionErrorReason", + "CampaignCriterionError.Reason" => "CampaignCriterionErrorReason", + "CampaignCriterionLimitExceeded.CriteriaLimitType" => "CampaignCriterionLimitExceededCriteriaLimitType", + "CampaignError.Reason" => "CampaignErrorReason", + "CampaignStatus" => "CampaignStatus", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "ContentLabelType" => "ContentLabelType", + "ConversionOptimizerBiddingScheme.BidType" => "ConversionOptimizerBiddingSchemeBidType", + "ConversionOptimizerBiddingScheme.PricingMode" => "ConversionOptimizerBiddingSchemePricingMode", + "ConversionOptimizerEligibility.RejectionReason" => "ConversionOptimizerEligibilityRejectionReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "CriterionTypeGroup" => "CriterionTypeGroup", + "CriterionUse" => "CriterionUse", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DayOfWeek" => "DayOfWeek", + "DeprecatedAd.Type" => "DeprecatedAdType", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityId.Type" => "EntityIdType", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "ExperimentDataStatus" => "ExperimentDataStatus", + "ExperimentDeltaStatus" => "ExperimentDeltaStatus", + "FeedItem.Status" => "FeedItemStatus", + "FeedItemError.Reason" => "FeedItemErrorReason", + "FeedItemValidationDetail.ApprovalStatus" => "FeedItemValidationDetailApprovalStatus", + "FeedItemValidationDetail.ValidationStatus" => "FeedItemValidationDetailValidationStatus", + "ForwardCompatibilityError.Reason" => "ForwardCompatibilityErrorReason", + "Gender.GenderType" => "GenderGenderType", + "GeoTargetTypeSetting.NegativeGeoTargetType" => "GeoTargetTypeSettingNegativeGeoTargetType", + "GeoTargetTypeSetting.PositiveGeoTargetType" => "GeoTargetTypeSettingPositiveGeoTargetType", + "IdError.Reason" => "IdErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InAppLinkExtension.AppStore" => "InAppLinkExtensionAppStore", + "InternalApiError.Reason" => "InternalApiErrorReason", + "JobError.Reason" => "JobErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "Level" => "Level", + "LocationExtension.Source" => "LocationExtensionSource", + "LocationOverrideInfo.RadiusUnits" => "LocationOverrideInfoRadiusUnits", + "LocationTargetingStatus" => "LocationTargetingStatus", + "MarkupLanguageType" => "MarkupLanguageType", + "Media.MediaType" => "MediaMediaType", + "Media.MimeType" => "MediaMimeType", + "Media.Size" => "MediaSize", + "MediaError.Reason" => "MediaErrorReason", + "MinuteOfHour" => "MinuteOfHour", + "MobileDevice.DeviceType" => "MobileDeviceDeviceType", + "MultiplierSource" => "MultiplierSource", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatingSystemVersion.OperatorType" => "OperatingSystemVersionOperatorType", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PageOnePromotedBiddingScheme.StrategyGoal" => "PageOnePromotedBiddingSchemeStrategyGoal", + "PagingError.Reason" => "PagingErrorReason", + "PolicyViolationError.Reason" => "PolicyViolationErrorReason", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "QueryError.Reason" => "QueryErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RichMediaAd.AdAttribute" => "RichMediaAdAdAttribute", + "RichMediaAd.RichMediaAdType" => "RichMediaAdRichMediaAdType", + "SelectorError.Reason" => "SelectorErrorReason", + "ServingStatus" => "ServingStatus", + "SettingError.Reason" => "SettingErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SystemServingStatus" => "SystemServingStatus", + "TargetError.Reason" => "TargetErrorReason", + "TemplateElementField.Type" => "TemplateElementFieldType", + "ThirdPartyRedirectAd.ExpandingDirection" => "ThirdPartyRedirectAdExpandingDirection", + "TimeUnit" => "TimeUnit", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "UserStatus" => "UserStatus", + "VideoType" => "VideoType", + "WebpageConditionOperand" => "WebpageConditionOperand", + "getResult" => "getResult", + "getResultResponse" => "getResultResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/MutateJobService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = MutateJobService::$classmap; + parent::__construct($wsdl, $options, $user, 'MutateJobService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Query the status of existing jobs, both simple and bulk API. + *

      Use a {@link JobSelector} to query and return a list which may + * contain both {@link BulkMutateJob} and/or {@link SimpleMutateJob}.

      + */ + public function get($selector) { + $arg = new MutateJobServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Query mutation results, of a {@code COMPLETED} job. + *

      Use a {@link JobSelector} to query and return either a + * {@link BulkMutateResult} or a {@link SimpleMutateResult}. Submit only one job ID + * at a time.

      + */ + public function getResult($selector) { + $arg = new getResult($selector); + $result = $this->__soapCall("getResult", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Simplified way of submitting a mutation job. The provided list of + * operations, if valid, will create a new job with a unique id, which will + * be returned. This id can later be used in invocations of + * {@link #get} and {@link #getResult}. Policy can optionally be specified. + * + *

      When this method returns with success, the job will be in + * {@code PROCESSING} or {@code PENDING} state and no further action is + * needed for the job to get executed.

      + */ + public function mutate($operations, $policy) { + $arg = new MutateJobServiceMutate($operations, $policy); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/OfflineConversionFeedService.php b/src/Google/Api/Ads/AdWords/v201309/OfflineConversionFeedService.php new file mode 100755 index 000000000..b657c0f42 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/OfflineConversionFeedService.php @@ -0,0 +1,2926 @@ +googleClickId = $googleClickId; + $this->conversionName = $conversionName; + $this->conversionTime = $conversionTime; + $this->conversionValue = $conversionValue; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Base list return value type. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OfflineConversionErrorReason", FALSE)) { +/** + * The reasons for an OfflineConversionError. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OfflineConversionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * The reasons for errors when using pagination. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OfflineConversionFeedServiceMutate", FALSE)) { +/** + * 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. + * + * + * + * Reports an offline conversion for each entry in {@code operations}. + *

      + * This bulk operation does not have any transactional guarantees. Some operations can succeed + * while others fail. + * + * @param operations A list of offline conversion feed operations. + * @return The list of offline conversion feed results (in the same order as the operations). + * @throws {@link ApiException} if problems occurred while applying offline conversions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionFeedServiceMutate { + /** + * @access public + * @var OfflineConversionFeedOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("OfflineConversionFeedServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionFeedServiceMutateResponse { + /** + * @access public + * @var OfflineConversionFeedReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientTermsError", FALSE)) { +/** + * Error due to user not accepting the AdWords terms of service. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OfflineConversionError", FALSE)) { +/** + * Errors that the {@link OfflineConversionFeedService} can throw. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionError extends ApiError { + /** + * @access public + * @var tnsOfflineConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OfflineConversionError"; + } + + 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("OfflineConversionFeedOperation", FALSE)) { +/** + * Operation for uploading {@link OfflineConversionFeed}. + * See {@link OfflineConversionFeedService#mutate} + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionFeedOperation extends Operation { + /** + * @access public + * @var OfflineConversionFeed + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OfflineConversionFeedOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PagingError", FALSE)) { +/** + * Error codes for pagination. + * See {@link com.google.ads.api.services.common.pagination.Paging}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("OfflineConversionFeedReturnValue", FALSE)) { +/** + * A container for return values from the OfflineConversionFeedService. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OfflineConversionFeedReturnValue extends ListReturnValue { + /** + * @access public + * @var OfflineConversionFeed[] + */ + public $value; + + /** + * @access public + * @var ApiError[] + */ + public $partialFailureErrors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OfflineConversionFeedReturnValue"; + } + + public function __construct($value = NULL, $partialFailureErrors = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->partialFailureErrors = $partialFailureErrors; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("OfflineConversionFeedService", FALSE)) { +/** + * OfflineConversionFeedService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class OfflineConversionFeedService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "OfflineConversionFeedServiceGetResponse", + "get" => "OfflineConversionFeedServiceGet", + "mutate" => "OfflineConversionFeedServiceMutate", + "mutateResponse" => "OfflineConversionFeedServiceMutateResponse", + "mutateCallToAction" => "OfflineConversionFeedServiceMutateCallToAction", + "search" => "OfflineConversionFeedServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "CurrencyCodeError" => "CurrencyCodeError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "MatchesRegexError" => "MatchesRegexError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OfflineConversionError" => "OfflineConversionError", + "OfflineConversionFeed" => "OfflineConversionFeed", + "OfflineConversionFeedOperation" => "OfflineConversionFeedOperation", + "Operation" => "Operation", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "PagingError" => "PagingError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "OfflineConversionFeedReturnValue" => "OfflineConversionFeedReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OfflineConversionError.Reason" => "OfflineConversionErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/OfflineConversionFeedService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = OfflineConversionFeedService::$classmap; + parent::__construct($wsdl, $options, $user, 'OfflineConversionFeedService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * 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. + * + * + * + * Reports an offline conversion for each entry in {@code operations}. + *

      + * This bulk operation does not have any transactional guarantees. Some operations can succeed + * while others fail. + * + * @param operations A list of offline conversion feed operations. + * @return The list of offline conversion feed results (in the same order as the operations). + * @throws {@link ApiException} if problems occurred while applying offline conversions. + */ + public function mutate($operations) { + $arg = new OfflineConversionFeedServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + 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 new file mode 100755 index 000000000..d68f8343e --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/PromotionService.php @@ -0,0 +1,5097 @@ +streetAddress = $streetAddress; + $this->streetAddress2 = $streetAddress2; + $this->cityName = $cityName; + $this->provinceCode = $provinceCode; + $this->provinceName = $provinceName; + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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.

      + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRange"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("GeoPoint", FALSE)) { +/** + * Specifies a geo location with the supplied latitude/longitude. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class GeoPoint { + /** + * @access public + * @var integer + */ + public $latitudeInMicroDegrees; + + /** + * @access public + * @var integer + */ + public $longitudeInMicroDegrees; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoPoint"; + } + + public function __construct($latitudeInMicroDegrees = NULL, $longitudeInMicroDegrees = NULL) { + $this->latitudeInMicroDegrees = $latitudeInMicroDegrees; + $this->longitudeInMicroDegrees = $longitudeInMicroDegrees; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * Errors associated with the ids. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $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. + * This is a beta feature. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This represents an operation that includes an operator and an operand + * specified type. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Contains the results from a get call. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("Proximity", FALSE)) { +/** + * Represents a Proximity Criterion. + * + * A proximity is an area within a certain radius of a point with the center point being described + * by a lat/long pair. The caller may also alternatively provide address fields which will be + * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not + * used for calculating the lat/long to target. + *

      A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Proximity extends Criterion { + /** + * @access public + * @var GeoPoint + */ + public $geoPoint; + + /** + * @access public + * @var tnsProximityDistanceUnits + */ + public $radiusDistanceUnits; + + /** + * @access public + * @var double + */ + public $radiusInUnits; + + /** + * @access public + * @var Address + */ + public $address; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity"; + } + + public function __construct($geoPoint = NULL, $radiusDistanceUnits = NULL, $radiusInUnits = NULL, $address = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->geoPoint = $geoPoint; + $this->radiusDistanceUnits = $radiusDistanceUnits; + $this->radiusInUnits = $radiusInUnits; + $this->address = $address; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $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}. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorError extends ApiError { + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

      + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * This represents an operator that may be presented to an adsapi service. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Defines the valid set of operators. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProximityDistanceUnits", FALSE)) { +/** + * The radius distance is expressed in either kilometers or miles. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProximityDistanceUnits { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proximity.DistanceUnits"; + } + + 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. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SelectorErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SelectorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SelectorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * Possible orders of sorting. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("Creative", FALSE)) { +/** + * Creative for a text ad. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Creative { + /** + * @access public + * @var string + */ + public $headline; + + /** + * @access public + * @var string + */ + public $line1; + + /** + * @access public + * @var string + */ + public $line2; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Creative"; + } + + public function __construct($headline = NULL, $line1 = NULL, $line2 = NULL) { + $this->headline = $headline; + $this->line1 = $line1; + $this->line2 = $line2; + } +}} + +if (!class_exists("ExpressSoapHeader", FALSE)) { +/** + * {@link SoapHeader} for AdWords Express services. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExpressSoapHeader extends SoapRequestHeader { + /** + * @access public + * @var integer + */ + public $expressBusinessId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExpressSoapHeader"; + } + + public function __construct($expressBusinessId = NULL, $authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + parent::__construct(); + $this->expressBusinessId = $expressBusinessId; + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("KeywordSet", FALSE)) { +/** + * A keyword set based {@link Criterion}. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordSet extends Criterion { + /** + * @access public + * @var string + */ + public $keywordSetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var boolean + */ + public $deprecated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordSet"; + } + + public function __construct($keywordSetId = NULL, $name = NULL, $deprecated = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->keywordSetId = $keywordSetId; + $this->name = $name; + $this->deprecated = $deprecated; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NegativeCriterion", FALSE)) { +/** + * A negative criterion. It wraps a {@link Criterion} and will be associated with an ad group as a + * {@link com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.NegativeAdGroupCriterion} + * . + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeCriterion extends Criterion { + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeCriterion"; + } + + public function __construct($criterion = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->criterion = $criterion; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("NegativeKeyword", FALSE)) { +/** + * Criterion to mark a keyword is negative keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NegativeKeyword extends Keyword { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NegativeKeyword"; + } + + 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("NoStatsPage", FALSE)) { +/** + * Base class for Get results for a page of entities that do not use statistics. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NoStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductService extends Criterion { + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductService"; + } + + public function __construct($text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Promotion", FALSE)) { +/** + * A promotion for a business. It contains all the user specified data as needed by AdWords Express + * to generate AdWords campaigns. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Promotion { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsPromotionStatus + */ + public $status; + + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var boolean + */ + public $streetAddressVisible; + + /** + * @access public + * @var boolean + */ + public $callTrackingEnabled; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var Criterion[] + */ + public $criteria; + + /** + * @access public + * @var integer[] + */ + public $campaignIds; + + /** + * @access public + * @var Money + */ + public $remainingBudget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Promotion"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $creatives = NULL, $destinationUrl = NULL, $streetAddressVisible = NULL, $callTrackingEnabled = NULL, $budget = NULL, $criteria = NULL, $campaignIds = NULL, $remainingBudget = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->creatives = $creatives; + $this->destinationUrl = $destinationUrl; + $this->streetAddressVisible = $streetAddressVisible; + $this->callTrackingEnabled = $callTrackingEnabled; + $this->budget = $budget; + $this->criteria = $criteria; + $this->campaignIds = $campaignIds; + $this->remainingBudget = $remainingBudget; + } +}} + +if (!class_exists("PromotionError", FALSE)) { +/** + * Promotion related errors for AdWords Express. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionError extends ApiError { + /** + * @access public + * @var tnsPromotionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PromotionError"; + } + + 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("PromotionOperation", FALSE)) { +/** + * A typed {@link Operation} class that uses an instance of {@link Promotion} as its operand. + * + *

      Note: The REMOVE operator is not + * supported. To remove a {@link Promotion}, set its {@link Promotion#status status} to + * DELETED.

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionOperation extends Operation { + /** + * @access public + * @var Promotion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PromotionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("PromotionPage", FALSE)) { +/** + * Contains a page of {@link Promotion}s with no stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionPage extends NoStatsPage { + /** + * @access public + * @var Promotion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PromotionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("PromotionStatus", FALSE)) { +/** + * Statuses of a promotion. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Promotion.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("PromotionErrorReason", FALSE)) { +/** + * Reason behind the {@code PromotionError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PromotionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PromotionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the promotions that meet the criteria set in the given selector. + * @param selector the selector specifying the AdWords Express promotion to return + * @return list of AdWords Express promotion identified by the selector + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("PromotionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionServiceGetResponse { + /** + * @access public + * @var PromotionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("PromotionServiceMutate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Performs the given {@link PromotionOperation}. + * @param operations list of unique operations; the same AdWords Express promotion cannot be + * specified in more than one operation + * @return the updated AdWords Express promotion + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionServiceMutate { + /** + * @access public + * @var PromotionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("PromotionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PromotionServiceMutateResponse { + /** + * @access public + * @var Promotion[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/express/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Structure to specify an address location. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("PromotionService", FALSE)) { +/** + * PromotionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class PromotionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "PromotionServiceGetResponse", + "get" => "PromotionServiceGet", + "mutate" => "PromotionServiceMutate", + "mutateResponse" => "PromotionServiceMutateResponse", + "mutateCallToAction" => "PromotionServiceMutateCallToAction", + "search" => "PromotionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "Address" => "Address", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "Date" => "Date", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "GeoPoint" => "GeoPoint", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "Operation" => "Operation", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Page" => "Page", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "Proximity" => "Proximity", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "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", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "Proximity.DistanceUnits" => "ProximityDistanceUnits", + "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", + "Creative" => "Creative", + "ExpressSoapHeader" => "ExpressSoapHeader", + "KeywordSet" => "KeywordSet", + "NegativeCriterion" => "NegativeCriterion", + "NegativeKeyword" => "NegativeKeyword", + "NoStatsPage" => "NoStatsPage", + "ProductService" => "ProductService", + "Promotion" => "Promotion", + "PromotionError" => "PromotionError", + "PromotionOperation" => "PromotionOperation", + "PromotionPage" => "PromotionPage", + "Promotion.Status" => "PromotionStatus", + "PromotionError.Reason" => "PromotionErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/express/v201309/PromotionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PromotionService::$classmap; + parent::__construct($wsdl, $options, $user, 'PromotionService', 'https://adwords.google.com/api/adwords/express/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the promotions that meet the criteria set in the given selector. + * @param selector the selector specifying the AdWords Express promotion to return + * @return list of AdWords Express promotion identified by the selector + */ + public function get($selector) { + $arg = new PromotionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET. + * + * + * + * Performs the given {@link PromotionOperation}. + * @param operations list of unique operations; the same AdWords Express promotion cannot be + * specified in more than one operation + * @return the updated AdWords Express promotion + */ + public function mutate($operations) { + $arg = new PromotionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + +}} diff --git a/src/Google/Api/Ads/AdWords/v201309/ReportDefinitionService.php b/src/Google/Api/Ads/AdWords/v201309/ReportDefinitionService.php new file mode 100755 index 000000000..cc838a29b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ReportDefinitionService.php @@ -0,0 +1,2348 @@ +enumValue = $enumValue; + $this->enumDisplayValue = $enumDisplayValue; + } +}} + +if (!class_exists("ReportDefinitionField", FALSE)) { +/** + * Represents the fields that can be used to create a ReportDefinition. + * This class allows the user to query the list of fields applicable to a + * given report type. Consumers of reports will be able use the retrieved + * fields through the {@link ReportDefinitionService#getReportFields} + * api and run the corresponding reports. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReportDefinitionField { + /** + * @access public + * @var string + */ + public $fieldName; + + /** + * @access public + * @var string + */ + public $displayFieldName; + + /** + * @access public + * @var string + */ + public $xmlAttributeName; + + /** + * @access public + * @var string + */ + public $fieldType; + + /** + * @access public + * @var string[] + */ + public $enumValues; + + /** + * @access public + * @var boolean + */ + public $canSelect; + + /** + * @access public + * @var boolean + */ + public $canFilter; + + /** + * @access public + * @var boolean + */ + public $isEnumType; + + /** + * @access public + * @var boolean + */ + public $isBeta; + + /** + * @access public + * @var EnumValuePair[] + */ + public $enumValuePairs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionField"; + } + + public function __construct($fieldName = NULL, $displayFieldName = NULL, $xmlAttributeName = NULL, $fieldType = NULL, $enumValues = NULL, $canSelect = NULL, $canFilter = NULL, $isEnumType = NULL, $isBeta = NULL, $enumValuePairs = NULL) { + $this->fieldName = $fieldName; + $this->displayFieldName = $displayFieldName; + $this->xmlAttributeName = $xmlAttributeName; + $this->fieldType = $fieldType; + $this->enumValues = $enumValues; + $this->canSelect = $canSelect; + $this->canFilter = $canFilter; + $this->isEnumType = $isEnumType; + $this->isBeta = $isBeta; + $this->enumValuePairs = $enumValuePairs; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Defines the required and optional elements within the header of a SOAP request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Defines the elements within the header of a SOAP response. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * The reasons for the beta error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CollectionSizeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportDefinitionReportType", FALSE)) { +/** + * Enums for report types. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReportDefinitionReportType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinition.ReportType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportDefinitionErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * a {@link ReportDefinitionService#mutate(java.util.List)} operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReportDefinitionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportFields", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns the available report fields for a given report type. + * + * @param reportType The type of report. + * @return The list of available report fields. Each + * {@link ReportDefinitionField} encapsulates the field name, the + * field data type, and the enum values (if the field's type is + * {@code enum}). + * @throws ApiException if a problem occurred while fetching the + * ReportDefinitionField information. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getReportFields { + /** + * @access public + * @var tnsReportDefinitionReportType + */ + public $reportType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportType = NULL) { + $this->reportType = $reportType; + } +}} + +if (!class_exists("getReportFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getReportFieldsResponse { + /** + * @access public + * @var ReportDefinitionField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * Errors encountered when trying to authorize a user. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * Errors that are thrown when a Beta feature is accessed incorrectly. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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("ReportDefinitionError", FALSE)) { +/** + * Encapsulates the errors that can be thrown during {@link ReportDefinition} + * mutate operation. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReportDefinitionError extends ApiError { + /** + * @access public + * @var tnsReportDefinitionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDefinitionError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ReportDefinitionService", FALSE)) { +/** + * ReportDefinitionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class ReportDefinitionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "ReportDefinitionServiceGetResponse", + "get" => "ReportDefinitionServiceGet", + "mutate" => "ReportDefinitionServiceMutate", + "mutateResponse" => "ReportDefinitionServiceMutateResponse", + "mutateCallToAction" => "ReportDefinitionServiceMutateCallToAction", + "search" => "ReportDefinitionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "EnumValuePair" => "EnumValuePair", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "ReportDefinitionError" => "ReportDefinitionError", + "ReportDefinitionField" => "ReportDefinitionField", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "ReportDefinition.ReportType" => "ReportDefinitionReportType", + "ReportDefinitionError.Reason" => "ReportDefinitionErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getReportFields" => "getReportFields", + "getReportFieldsResponse" => "getReportFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/ReportDefinitionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportDefinitionService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportDefinitionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns the available report fields for a given report type. + * + * @param reportType The type of report. + * @return The list of available report fields. Each + * {@link ReportDefinitionField} encapsulates the field name, the + * field data type, and the enum values (if the field's type is + * {@code enum}). + * @throws ApiException if a problem occurred while fetching the + * ReportDefinitionField information. + */ + public function getReportFields($reportType) { + $arg = new getReportFields($reportType); + $result = $this->__soapCall("getReportFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/SharedCriterionService.php b/src/Google/Api/Ads/AdWords/v201309/SharedCriterionService.php new file mode 100755 index 000000000..fa48ac6c2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/SharedCriterionService.php @@ -0,0 +1,3844 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * This field can be selected using the value "Operand". + * This field is required and should not be {@code null}. + * This string must not be empty. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("WebpageCondition", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + public function __construct($operand = NULL, $argument = NULL) { + $this->operand = $operand; + $this->argument = $argument; + } +}} + +if (!class_exists("CriterionParameter", FALSE)) { +/** + * Indicates that this instance is a subtype of CriterionParameter. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("ProductCondition", FALSE)) { +/** + * This field can be selected using the value "Argument". + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("Criterion", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("SharedCriterion", FALSE)) { +/** + * This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterion { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var Criterion + */ + public $criterion; + + /** + * @access public + * @var boolean + */ + public $negative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterion"; + } + + public function __construct($sharedSetId = NULL, $criterion = NULL, $negative = NULL) { + $this->sharedSetId = $sharedSetId; + $this->criterion = $criterion; + $this->negative = $negative; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedCriterionErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedCriterionServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * @param selector filters the criteria returned + * @return + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("SharedCriterionServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionServiceGetResponse { + /** + * @access public + * @var SharedCriterionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("SharedCriterionServiceMutate", FALSE)) { +/** + * 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, REMOVE. + * + * + * + * Adds, removes criteria in a shared set. + * @param operations + * @return + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionServiceMutate { + /** + * @access public + * @var SharedCriterionOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("SharedCriterionServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionServiceMutateResponse { + /** + * @access public + * @var SharedCriterionReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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)) { +/** + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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)) { +/** + * This is enabled for AdX. + * This is a beta feature. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("Placement", FALSE)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SharedCriterionError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionError extends ApiError { + /** + * @access public + * @var tnsSharedCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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)) { +/** + * This is enabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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("WebpageParameter", FALSE)) { +/** + * This field is required and should not be {@code null}. + * The length of this string should be between 1 and 2048, inclusive. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("Webpage", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Product", FALSE)) { +/** + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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("SharedCriterionOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionOperation extends Operation { + /** + * @access public + * @var SharedCriterion + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SharedCriterionPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionPage extends Page { + /** + * @access public + * @var SharedCriterion[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("SharedCriterionReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedCriterionReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedCriterion[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedCriterionReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("SharedCriterionService", FALSE)) { +/** + * SharedCriterionService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class SharedCriterionService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "SharedCriterionServiceGetResponse", + "get" => "SharedCriterionServiceGet", + "mutate" => "SharedCriterionServiceMutate", + "mutateResponse" => "SharedCriterionServiceMutateResponse", + "mutateCallToAction" => "SharedCriterionServiceMutateCallToAction", + "search" => "SharedCriterionServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "CriterionError" => "CriterionError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Criterion" => "Criterion", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SharedCriterionError" => "SharedCriterionError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "ProductCondition" => "ProductCondition", + "Webpage" => "Webpage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Product" => "Product", + "Selector" => "Selector", + "SharedCriterion" => "SharedCriterion", + "SharedCriterionOperation" => "SharedCriterionOperation", + "Operation" => "Operation", + "SharedCriterionPage" => "SharedCriterionPage", + "Page" => "Page", + "SharedCriterionReturnValue" => "SharedCriterionReturnValue", + "ListReturnValue" => "ListReturnValue", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SharedCriterionError.Reason" => "SharedCriterionErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/SharedCriterionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SharedCriterionService::$classmap; + parent::__construct($wsdl, $options, $user, 'SharedCriterionService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * @param selector filters the criteria returned + * @return + * @throws ApiException + */ + public function get($selector) { + $arg = new SharedCriterionServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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, REMOVE. + * + * + * + * Adds, removes criteria in a shared set. + * @param operations + * @return + * @throws ApiException + */ + public function mutate($operations) { + $arg = new SharedCriterionServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/SharedSetService.php b/src/Google/Api/Ads/AdWords/v201309/SharedSetService.php new file mode 100755 index 000000000..2d6f6bc5f --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/SharedSetService.php @@ -0,0 +1,3299 @@ +min = $min; + $this->max = $max; + } +}} + +if (!class_exists("OrderBy", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OrderBy { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsSortOrder + */ + public $sortOrder; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderBy"; + } + + public function __construct($field = NULL, $sortOrder = NULL) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } +}} + +if (!class_exists("Paging", FALSE)) { +/** + * This field must be greater than or equal to 0. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } +}} + +if (!class_exists("Predicate", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Predicate { + /** + * @access public + * @var string + */ + public $field; + + /** + * @access public + * @var tnsPredicateOperator + */ + public $operator; + + /** + * @access public + * @var string[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate"; + } + + public function __construct($field = NULL, $operator = NULL, $values = NULL) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } +}} + +if (!class_exists("SharedSet", FALSE)) { +/** + * This field can be selected using the value "SharedSetId".This field can be filtered on. + * This field is required and should not be {@code null} when it is contained within {@link Operator}s : SET, REMOVE. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSet { + /** + * @access public + * @var integer + */ + public $sharedSetId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsSharedSetType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $memberCount; + + /** + * @access public + * @var integer + */ + public $referenceCount; + + /** + * @access public + * @var tnsSharedSetStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSet"; + } + + public function __construct($sharedSetId = NULL, $name = NULL, $type = NULL, $memberCount = NULL, $referenceCount = NULL, $status = NULL) { + $this->sharedSetId = $sharedSetId; + $this->name = $name; + $this->type = $type; + $this->memberCount = $memberCount; + $this->referenceCount = $referenceCount; + $this->status = $status; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $this->authToken = $authToken; + $this->clientCustomerId = $clientCustomerId; + $this->developerToken = $developerToken; + $this->userAgent = $userAgent; + $this->validateOnly = $validateOnly; + $this->partialFailure = $partialFailure; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("ListReturnValue", FALSE)) { +/** + * Indicates that this instance is a subtype of ListReturnValue. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ListReturnValue { + /** + * @access public + * @var string + */ + public $ListReturnValueType; + + private $_parameterMap = array ( + "ListReturnValue.Type" => "ListReturnValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListReturnValue"; + } + + public function __construct($ListReturnValueType = NULL) { + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("Operation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operation { + /** + * @access public + * @var tnsOperator + */ + public $operator; + + /** + * @access public + * @var string + */ + public $OperationType; + + private $_parameterMap = array ( + "Operation.Type" => "OperationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operation"; + } + + public function __construct($operator = NULL, $OperationType = NULL) { + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("Page", FALSE)) { +/** + * Indicates that this instance is a subtype of Page. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Page"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * Indicates that this instance is a subtype of ApiError. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Indicates that this instance is a subtype of ApplicationException. + * Although this field is returned in the response, it is ignored on input + * and cannot be selected. Specify xsi:type instead. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Selector", FALSE)) { +/** + * This field must contain distinct elements. + * This field must not contain {@code null} elements. + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Selector { + /** + * @access public + * @var string[] + */ + public $fields; + + /** + * @access public + * @var Predicate[] + */ + public $predicates; + + /** + * @access public + * @var DateRange + */ + public $dateRange; + + /** + * @access public + * @var OrderBy[] + */ + public $ordering; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Selector"; + } + + public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BetaErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NewEntityCreationErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Operator", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Operator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PagingErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PredicateOperator", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PredicateOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Predicate.Operator"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetStatus", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSet.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetType", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SortOrder", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SortOrder { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SortOrder"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SharedSetServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of SharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of SharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetServiceGet { + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("SharedSetServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetServiceGetResponse { + /** + * @access public + * @var SharedSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("SharedSetServiceMutate", FALSE)) { +/** + * 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}. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified CriterionList entities + * @throws ApiException + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetServiceMutate { + /** + * @access public + * @var SharedSetOperation[] + */ + public $operations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($operations = NULL) { + $this->operations = $operations; + } +}} + +if (!class_exists("SharedSetServiceMutateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetServiceMutateResponse { + /** + * @access public + * @var SharedSetReturnValue + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AuthorizationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BetaError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BetaError extends ApiError { + /** + * @access public + * @var tnsBetaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BetaError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DistinctError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("IdError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NewEntityCreationError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NewEntityCreationError extends ApiError { + /** + * @access public + * @var tnsNewEntityCreationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NewEntityCreationError"; + } + + 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("NotEmptyError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("OperationAccessDenied", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("PagingError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PagingError extends ApiError { + /** + * @access public + * @var tnsPagingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PagingError"; + } + + 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("QuotaCheckError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("SharedSetError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetError extends ApiError { + /** + * @access public + * @var tnsSharedSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetError"; + } + + 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("SharedSetOperation", FALSE)) { +/** + * This field is required and should not be {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetOperation extends Operation { + /** + * @access public + * @var SharedSet + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetOperation"; + } + + public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) { + parent::__construct(); + $this->operand = $operand; + $this->operator = $operator; + $this->OperationType = $OperationType; + } +}} + +if (!class_exists("SharedSetReturnValue", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetReturnValue extends ListReturnValue { + /** + * @access public + * @var SharedSet[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetReturnValue"; + } + + public function __construct($value = NULL, $ListReturnValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ListReturnValueType = $ListReturnValueType; + } +}} + +if (!class_exists("SizeLimitError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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("StringLengthError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DatabaseError", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("NullStatsPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullStatsPage extends Page { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullStatsPage"; + } + + public function __construct($totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("SharedSetPage", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SharedSetPage extends NullStatsPage { + /** + * @access public + * @var SharedSet[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedSetPage"; + } + + public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) { + parent::__construct(); + $this->entries = $entries; + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } +}} + +if (!class_exists("SharedSetService", FALSE)) { +/** + * SharedSetService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class SharedSetService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "SharedSetServiceGetResponse", + "get" => "SharedSetServiceGet", + "mutate" => "SharedSetServiceMutate", + "mutateResponse" => "SharedSetServiceMutateResponse", + "mutateCallToAction" => "SharedSetServiceMutateCallToAction", + "search" => "SharedSetServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AuthenticationError" => "AuthenticationError", + "ApiError" => "ApiError", + "AuthorizationError" => "AuthorizationError", + "BetaError" => "BetaError", + "ClientTermsError" => "ClientTermsError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "NewEntityCreationError" => "NewEntityCreationError", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "OrderBy" => "OrderBy", + "Paging" => "Paging", + "PagingError" => "PagingError", + "Predicate" => "Predicate", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SharedSet" => "SharedSet", + "SharedSetError" => "SharedSetError", + "SharedSetOperation" => "SharedSetOperation", + "Operation" => "Operation", + "SharedSetPage" => "SharedSetPage", + "NullStatsPage" => "NullStatsPage", + "SharedSetReturnValue" => "SharedSetReturnValue", + "ListReturnValue" => "ListReturnValue", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "DatabaseError" => "DatabaseError", + "Page" => "Page", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "Selector" => "Selector", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BetaError.Reason" => "BetaErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NewEntityCreationError.Reason" => "NewEntityCreationErrorReason", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "Operator" => "Operator", + "OperatorError.Reason" => "OperatorErrorReason", + "PagingError.Reason" => "PagingErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SharedSet.Status" => "SharedSetStatus", + "SharedSetError.Reason" => "SharedSetErrorReason", + "SharedSetType" => "SharedSetType", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/cm/v201309/SharedSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SharedSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'SharedSetService', 'https://adwords.google.com/api/adwords/cm/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a list of SharedSets based on the given selector. + * @param selector the selector specifying the query + * @return a list of SharedSet entities that meet the criterion specified + * by the selector + * @throws ApiException + */ + public function get($selector) { + $arg = new SharedSetServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * 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}. + * + * + * + * Applies the list of mutate operations. + * @param operations the operations to apply + * @return the modified CriterionList entities + * @throws ApiException + */ + public function mutate($operations) { + $arg = new SharedSetServiceMutate($operations); + $result = $this->__soapCall("mutate", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/TargetingIdeaService.php b/src/Google/Api/Ads/AdWords/v201309/TargetingIdeaService.php new file mode 100755 index 000000000..9af20a9ed --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/TargetingIdeaService.php @@ -0,0 +1,8224 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BidLandscapeLandscapePoint", FALSE)) { +/** + * A set of estimates for a criterion's performance for a specific bid + * amount. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscapeLandscapePoint { + /** + * @access public + * @var Money + */ + public $bid; + + /** + * @access public + * @var integer + */ + public $clicks; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var Money + */ + public $marginalCpc; + + /** + * @access public + * @var integer + */ + public $impressions; + + /** + * @access public + * @var integer + */ + public $promotedImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape.LandscapePoint"; + } + + public function __construct($bid = NULL, $clicks = NULL, $cost = NULL, $marginalCpc = NULL, $impressions = NULL, $promotedImpressions = NULL) { + $this->bid = $bid; + $this->clicks = $clicks; + $this->cost = $cost; + $this->marginalCpc = $marginalCpc; + $this->impressions = $impressions; + $this->promotedImpressions = $promotedImpressions; + } +}} + +if (!class_exists("BiddingError", FALSE)) { +/** + * Represents bidding errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingError extends ApiError { + /** + * @access public + * @var tnsBiddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError"; + } + + 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("BudgetError", FALSE)) { +/** + * A list of all the error codes being used by the common budget domain package. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetError extends ApiError { + /** + * @access public + * @var tnsBudgetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("CriterionError", FALSE)) { +/** + * Error class used for reporting criteria related errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionError extends ApiError { + /** + * @access public + * @var tnsCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError"; + } + + 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("CriterionParameter", FALSE)) { +/** + * Base type of criterion parameters. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityCountLimitExceeded", FALSE)) { +/** + * Signals that an entity count limit was exceeded for some level. + * For example, too many criteria for a campaign. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceeded extends ApiError { + /** + * @access public + * @var tnsEntityCountLimitExceededReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $enclosingId; + + /** + * @access public + * @var integer + */ + public $limit; + + /** + * @access public + * @var string + */ + public $accountLimitType; + + /** + * @access public + * @var integer + */ + public $existingCount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded"; + } + + public function __construct($reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $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. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Paging { + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $numberResults; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Paging"; + } + + public function __construct($startIndex = NULL, $numberResults = NULL) { + $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("Platform", FALSE)) { +/** + * Represents Platform criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Platform extends Criterion { + /** + * @access public + * @var string + */ + public $platformName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Platform"; + } + + public function __construct($platformName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->platformName = $platformName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("PolicyViolationError", FALSE)) { +/** + * Represents violations of a single policy by some text in a field. + * + * Violations of a single policy by the same string in multiple places + * within a field is reported in one instance of this class and only one + * exemption needs to be filed. + * Violations of a single policy by two different strings is reported + * as two separate instances of this class. + * + * e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it + * would be represented by one instance. If the ad also contains 'INC' which + * also violates 'capitalization' it would be represented in a separate + * instance. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationError extends ApiError { + /** + * @access public + * @var PolicyViolationKey + */ + public $key; + + /** + * @access public + * @var string + */ + public $externalPolicyName; + + /** + * @access public + * @var string + */ + public $externalPolicyUrl; + + /** + * @access public + * @var string + */ + public $externalPolicyDescription; + + /** + * @access public + * @var boolean + */ + public $isExemptable; + + /** + * @access public + * @var PolicyViolationErrorPart[] + */ + public $violatingParts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("PolicyViolationErrorPart", FALSE)) { +/** + * Points to a substring within an ad field or criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationErrorPart { + /** + * @access public + * @var integer + */ + public $index; + + /** + * @access public + * @var integer + */ + public $length; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationError.Part"; + } + + public function __construct($index = NULL, $length = NULL) { + $this->index = $index; + $this->length = $length; + } +}} + +if (!class_exists("PolicyViolationKey", FALSE)) { +/** + * Key of the violation. The key is used for referring to a violation when + * filing an exemption request. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PolicyViolationKey { + /** + * @access public + * @var string + */ + public $policyName; + + /** + * @access public + * @var string + */ + public $violatingText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PolicyViolationKey"; + } + + public function __construct($policyName = NULL, $violatingText = NULL) { + $this->policyName = $policyName; + $this->violatingText = $violatingText; + } +}} + +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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatsQueryError", FALSE)) { +/** + * Represents possible error codes when querying for stats. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryError extends ApiError { + /** + * @access public + * @var tnsStatsQueryErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("DataEntry", FALSE)) { +/** + * The base class of all return types of the table service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DataEntry { + /** + * @access public + * @var string + */ + public $DataEntryType; + + private $_parameterMap = array ( + "DataEntry.Type" => "DataEntryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DataEntry"; + } + + public function __construct($DataEntryType = NULL) { + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

      + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdGroupBidLandscapeType", FALSE)) { +/** + * Used to specify the type of {@code AdGroupLandscape} + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscapeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdGroupCriterionLimitExceededCriteriaLimitType", FALSE)) { +/** + * The entity type that exceeded the limit. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceededCriteriaLimitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded.CriteriaLimitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BiddingErrorReason", FALSE)) { +/** + * Reason for bidding error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BiddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BiddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BudgetErrorReason", FALSE)) { +/** + * The reasons for the budget error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BudgetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BudgetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionErrorReason", FALSE)) { +/** + * Concrete type of criterion is required for ADD and SET operations. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityCountLimitExceededReason", FALSE)) { +/** + * Limits at various levels of the account. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityCountLimitExceededReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityCountLimitExceeded.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaCheckErrorReason", FALSE)) { +/** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatsQueryErrorReason", FALSE)) { +/** + * The reasons for errors when querying for stats. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsQueryErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsQueryError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdFormatSpec", FALSE)) { +/** + * A placement response object which provides information about one of the ad formats + * supported by a placement. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdFormatSpec { + /** + * @access public + * @var tnsSiteConstantsAdFormat + */ + public $format; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdFormatSpec"; + } + + public function __construct($format = NULL) { + $this->format = $format; + } +}} + +if (!class_exists("AdSpec", FALSE)) { +/** + * Interface for ad specifications to implement. See individual spec + * documentation for more details on how to use each type, and + * {@link AdSpecListSearchParameter} to understand what these specs are for. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSpec { + /** + * @access public + * @var DisplayAdSpec + */ + public $DisplayAdSpec; + + /** + * @access public + * @var InStreamAdSpec + */ + public $InStreamAdSpec; + + /** + * @access public + * @var TextAdSpec + */ + public $TextAdSpec; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpec"; + } + + public function __construct($DisplayAdSpec = NULL, $InStreamAdSpec = NULL, $TextAdSpec = NULL) { + $this->DisplayAdSpec = $DisplayAdSpec; + $this->InStreamAdSpec = $InStreamAdSpec; + $this->TextAdSpec = $TextAdSpec; + } +}} + +if (!class_exists("Attribute", FALSE)) { +/** + * {@link Attribute}s encompass the core information about a particular + * {@link com.google.ads.api.services.targetingideas.TargetingIdea}. Some + * attributes are for {@code KEYWORD} {@link IdeaType}s, some are for + * {@code PLACEMENT} {@link IdeaType}s, and some are for both. Ultimately, an + * {@link Attribute} instance simply wraps an actual value of interest. For + * example, {@link KeywordAttribute} wraps the keyword itself, while a + * {@link BooleanAttribute} simply wraps a boolean describing some information + * about the keyword idea. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Attribute { + /** + * @access public + * @var string + */ + public $AttributeType; + + private $_parameterMap = array ( + "Attribute.Type" => "AttributeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Attribute"; + } + + public function __construct($AttributeType = NULL) { + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("BidLandscapeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link BidLandscape} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscapeAttribute extends Attribute { + /** + * @access public + * @var BidLandscape + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscapeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("BooleanAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a boolean value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BooleanAttribute extends Attribute { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("CriterionAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Criterion} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionAttribute extends Attribute { + /** + * @access public + * @var Criterion + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + 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("DisplayAdSpec", FALSE)) { +/** + * Placement request/response object which provides details about display + * ad types, options, and other available configuration variables. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DisplayAdSpec { + /** + * @access public + * @var DisplayType[] + */ + public $displayTypes; + + /** + * @access public + * @var tnsDisplayAdSpecActivationOption[] + */ + public $activationOptions; + + /** + * @access public + * @var DisplayAdSpecAdSizeSpec[] + */ + public $adSizeSpecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec"; + } + + public function __construct($displayTypes = NULL, $activationOptions = NULL, $adSizeSpecs = NULL) { + $this->displayTypes = $displayTypes; + $this->activationOptions = $activationOptions; + $this->adSizeSpecs = $adSizeSpecs; + } +}} + +if (!class_exists("DisplayAdSpecAdSizeSpec", FALSE)) { +/** + * Specification for an ad size. This specification allows customization by + * display options for more fine-grained control over returns, so that + * customers can associate ad options with specific sizes. For example, + * suppose the customer in general would like to see placements with + * {@code DisplayOption.STANDARD} and {@code DisplayOption.POP_UNDER} - + * except for 300x250 ads which should only be STANDARD. The customer would + * create a {@code DisplayAdSpec} with {@code DisplayOption.STANDARD} and + * {@code DisplayOption.POP_UNDER}, and also send in an {@code AdSizeSpec} + * with {@code width} of 300, {@code} height of 250, and {@code displayOptionFilter} + * set to {@code DisplayOption.STANDARD}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DisplayAdSpecAdSizeSpec { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var tnsDisplayAdSpecActivationOption[] + */ + public $activationOptionFilter; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec.AdSizeSpec"; + } + + public function __construct($width = NULL, $height = NULL, $activationOptionFilter = NULL) { + $this->width = $width; + $this->height = $height; + $this->activationOptionFilter = $activationOptionFilter; + } +}} + +if (!class_exists("DisplayType", FALSE)) { +/** + * Base interface for types of display ads. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DisplayType { + /** + * @access public + * @var FlashDisplayType + */ + public $FlashDisplayType; + + /** + * @access public + * @var HtmlDisplayType + */ + public $HtmlDisplayType; + + /** + * @access public + * @var ImageDisplayType + */ + public $ImageDisplayType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayType"; + } + + public function __construct($FlashDisplayType = NULL, $HtmlDisplayType = NULL, $ImageDisplayType = NULL) { + $this->FlashDisplayType = $FlashDisplayType; + $this->HtmlDisplayType = $HtmlDisplayType; + $this->ImageDisplayType = $ImageDisplayType; + } +}} + +if (!class_exists("DoubleAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a double value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleAttribute extends Attribute { + /** + * @access public + * @var double + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("FlashDisplayType", FALSE)) { +/** + * {@link DisplayType} implementation for Flash display ads. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class FlashDisplayType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashDisplayType"; + } + + public function __construct() { + } +}} + +if (!class_exists("HtmlDisplayType", FALSE)) { +/** + * HTML-specific options for display ads are contained within + * this class. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class HtmlDisplayType { + /** + * @access public + * @var tnsHtmlDisplayTypeHtmlOption + */ + public $htmlOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HtmlDisplayType"; + } + + public function __construct($htmlOption = NULL) { + $this->htmlOption = $htmlOption; + } +}} + +if (!class_exists("IdeaTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link IdeaType} value. For example, + * if a {@link com.google.ads.api.services.targetingideas.TargetingIdea} + * represents a keyword idea, its {@link IdeaTypeAttribute} would contain a + * {@code KEYWORD} {@link IdeaType}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdeaTypeAttribute extends Attribute { + /** + * @access public + * @var tnsIdeaType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("ImageDisplayType", FALSE)) { +/** + * {@link DisplayType} implementation for images. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ImageDisplayType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageDisplayType"; + } + + public function __construct() { + } +}} + +if (!class_exists("InStreamAdInfo", FALSE)) { +/** + * Information specific to the instream ad format. Instream ads are video ads + * which play as part of the delivery of video content, either before, during, + * or after the content itself. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InStreamAdInfo { + /** + * @access public + * @var integer + */ + public $maxAdDuration; + + /** + * @access public + * @var integer + */ + public $minAdDuration; + + /** + * @access public + * @var integer + */ + public $medianAdDuration; + + /** + * @access public + * @var double + */ + public $preRollPercent; + + /** + * @access public + * @var double + */ + public $midRollPercent; + + /** + * @access public + * @var double + */ + public $postRollPercent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdInfo"; + } + + public function __construct($maxAdDuration = NULL, $minAdDuration = NULL, $medianAdDuration = NULL, $preRollPercent = NULL, $midRollPercent = NULL, $postRollPercent = NULL) { + $this->maxAdDuration = $maxAdDuration; + $this->minAdDuration = $minAdDuration; + $this->medianAdDuration = $medianAdDuration; + $this->preRollPercent = $preRollPercent; + $this->midRollPercent = $midRollPercent; + $this->postRollPercent = $postRollPercent; + } +}} + +if (!class_exists("InStreamAdInfoAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link InStreamAdInfo} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InStreamAdInfoAttribute extends Attribute { + /** + * @access public + * @var InStreamAdInfo + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdInfoAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("InStreamAdSpec", FALSE)) { +/** + * Placement request/response object which provides details about instream + * ad types, options, and other available configuration variables. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InStreamAdSpec { + /** + * @access public + * @var tnsInStreamAdSpecInStreamType[] + */ + public $inStreamTypes; + + /** + * @access public + * @var integer[] + */ + public $durations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdSpec"; + } + + public function __construct($inStreamTypes = NULL, $durations = NULL) { + $this->inStreamTypes = $inStreamTypes; + $this->durations = $durations; + } +}} + +if (!class_exists("IntegerAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an integer value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IntegerAttribute extends Attribute { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IntegerAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("IntegerSetAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a Set of integer values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IntegerSetAttribute extends Attribute { + /** + * @access public + * @var integer[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IntegerSetAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("KeywordAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Keyword} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordAttribute extends Attribute { + /** + * @access public + * @var Keyword + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("LongAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a long value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongAttribute extends Attribute { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("LongComparisonOperation", FALSE)) { +/** + * Object representing integer comparison operations. This is usually used within + * a particular + * {@link com.google.ads.api.services.targetingideas.search.SearchParameter} to + * specify the valid values requested for the specific + * {@link com.google.ads.api.services.common.optimization.attributes.Attribute}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongComparisonOperation { + /** + * @access public + * @var integer + */ + public $minimum; + + /** + * @access public + * @var integer + */ + public $maximum; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongComparisonOperation"; + } + + public function __construct($minimum = NULL, $maximum = NULL) { + $this->minimum = $minimum; + $this->maximum = $maximum; + } +}} + +if (!class_exists("LongRangeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Range} of {@link LongValue} + * values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongRangeAttribute extends Attribute { + /** + * @access public + * @var Range + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongRangeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + 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("MoneyAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Money} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MoneyAttribute extends Attribute { + /** + * @access public + * @var Money + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MoneyAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("MonthlySearchVolume", FALSE)) { +/** + * A keyword response value representing search volume for a single month. An + * instance with a {@code null} count is valid, indicating that the information + * is unavailable. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MonthlySearchVolume { + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $count; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MonthlySearchVolume"; + } + + public function __construct($year = NULL, $month = NULL, $count = NULL) { + $this->year = $year; + $this->month = $month; + $this->count = $count; + } +}} + +if (!class_exists("MonthlySearchVolumeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link MonthlySearchVolume} + * values. The list contains the past 12 {@link MonthlySearchVolume}s + * (excluding the current month). The first item is the data for the most + * recent month and the last item is the data for the oldest month. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MonthlySearchVolumeAttribute extends Attribute { + /** + * @access public + * @var MonthlySearchVolume[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MonthlySearchVolumeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("OpportunityIdeaTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains an {@link OpportunityIdeaType} value. + * For example, if a + * {@link com.google.ads.api.services.optimization.bulkopportunity.OpportunityIdea} + * represents a keyword idea, its {@link OpportunityIdeaTypeAttribute} would + * contain a {@code KEYWORD} {@link OpportunityIdeaType}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OpportunityIdeaTypeAttribute extends Attribute { + /** + * @access public + * @var tnsOpportunityIdeaType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OpportunityIdeaTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("PlacementAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link Placement} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PlacementAttribute extends Attribute { + /** + * @access public + * @var Placement + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("PlacementTypeAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link PlacementType} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PlacementTypeAttribute extends Attribute { + /** + * @access public + * @var tnsSiteConstantsPlacementType + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTypeAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("Range", FALSE)) { +/** + * Represents a range of values that has either an upper or a lower bound. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Range { + /** + * @access public + * @var ComparableValue + */ + public $min; + + /** + * @access public + * @var ComparableValue + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Range"; + } + + public function __construct($min = NULL, $max = NULL) { + $this->min = $min; + $this->max = $max; + } +}} + +if (!class_exists("SearchParameter", FALSE)) { +/** + * A set of {@link SearchParameter}s are supplied to the + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaSelector} + * to specify how the user wants to filter the set of all possible + * {@link com.google.ads.api.services.targetingideas.TargetingIdea}s. + * + * There is a {@link SearchParameter} for all types of inputs. + * {@link SearchParameter}s can conceptually be broken down into two types. + *
        + *
      • Input {@link SearchParameter}s provide the seed information from which + * ideas should be generated or statistic information is desired + * (e.g. {@link RelatedToQuerySearchParameter}, + * {@link RelatedToUrlSearchParameter}, etc). + * Such {@link SearchParameters} are required for valid requests.
      • + *
      • Filter {@link SearchParameter}s are used to trim down the results based + * on {@link com.google.ads.api.services.targetingideas.attributes.Attribute} + * related information (eg. {@link CompetitionSearchParameter}, etc.).
      • + *

      + * + * A request should only contain one instance of each {@link SearchParameter} + *

      One or more of the following {@link SearchParameter}s are required:
      + *

      • {@link CategoryProductsAndServicesSearchParameter}
      • + *
      • {@link RelatedToQuerySearchParameter}
      • + *
      • {@link RelatedToUrlSearchParameter}
      • + *

      + *

      {@link IdeaType} KEYWORD supports following {@link SearchParameter}s:
      + *

        + *
      • {@link CompetitionSearchParameter}
      • + *
      • {@link ExcludedKeywordSearchParameter}
      • + *
      • {@link IdeaTextFilterSearchParameter}
      • + *
      • {@link IncludeAdultContentSearchParameter}
      • + *
      • {@link CategoryProductsAndServicesSearchParameter}
      • + *
      • {@link LanguageSearchParameter}
      • + *
      • {@link NetworkSearchParameter}
      • + *
      • {@link RelatedToQuerySearchParameter}
      • + *
      • {@link RelatedToUrlSearchParameter}
      • + *
      • {@link SearchVolumeSearchParameter}
      • + *

      + *

      {@link IdeaType} PLACEMENT supports following {@link SearchParameter}s:
      + *

        + *
      • {@link LanguageSearchParameter}
      • + *
      • {@link PlacementTypeSearchParameter}
      • + *
      • {@link RelatedToQuerySearchParameter}
      • + *
      • {@link RelatedToUrlSearchParameter}
      • + *

      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SearchParameter { + /** + * @access public + * @var string + */ + public $SearchParameterType; + + private $_parameterMap = array ( + "SearchParameter.Type" => "SearchParameterType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SearchParameter"; + } + + public function __construct($SearchParameterType = NULL) { + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("SearchVolumeSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} that specifies the level of search volume expected in results, + * and it has a direct relationship to + * {@link com.google.ads.api.services.targetingideas.external.AttributeType#SEARCH_VOLUME}. + * Absence of a {@link SearchVolumeSearchParameter} in a + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaSelector} is + * equivalent to having no constraint on search volume specified. + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SearchVolumeSearchParameter extends SearchParameter { + /** + * @access public + * @var LongComparisonOperation + */ + public $operation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SearchVolumeSearchParameter"; + } + + public function __construct($operation = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->operation = $operation; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("StringAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a string value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringAttribute extends Attribute { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("TargetingIdea", FALSE)) { +/** + * Represents a {@link TargetingIdea} returned by search criteria specified in + * the {@link TargetingIdeaSelector}. Targeting ideas are keywords or placements + * that are similar to those the user inputs. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdea { + /** + * @access public + * @var Type_AttributeMapEntry[] + */ + public $data; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdea"; + } + + public function __construct($data = NULL) { + $this->data = $data; + } +}} + +if (!class_exists("TargetingIdeaError", FALSE)) { +/** + * Base error class for the + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaError extends ApiError { + /** + * @access public + * @var tnsTargetingIdeaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaError"; + } + + 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("TargetingIdeaPage", FALSE)) { +/** + * Contains a subset of {@link TargetingIdea}s from the search criteria + * specified by a {@link TargetingIdeaSelector}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaPage { + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var TargetingIdea[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaPage"; + } + + public function __construct($totalNumEntries = NULL, $entries = NULL) { + $this->totalNumEntries = $totalNumEntries; + $this->entries = $entries; + } +}} + +if (!class_exists("TargetingIdeaSelector", FALSE)) { +/** + * A descriptor for finding {@link TargetingIdea}s that match the specified + * criteria. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaSelector { + /** + * @access public + * @var SearchParameter[] + */ + public $searchParameters; + + /** + * @access public + * @var tnsIdeaType + */ + public $ideaType; + + /** + * @access public + * @var tnsRequestType + */ + public $requestType; + + /** + * @access public + * @var tnsAttributeType[] + */ + public $requestedAttributeTypes; + + /** + * @access public + * @var Paging + */ + public $paging; + + /** + * @access public + * @var string + */ + public $localeCode; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaSelector"; + } + + public function __construct($searchParameters = NULL, $ideaType = NULL, $requestType = NULL, $requestedAttributeTypes = NULL, $paging = NULL, $localeCode = NULL, $currencyCode = NULL) { + $this->searchParameters = $searchParameters; + $this->ideaType = $ideaType; + $this->requestType = $requestType; + $this->requestedAttributeTypes = $requestedAttributeTypes; + $this->paging = $paging; + $this->localeCode = $localeCode; + $this->currencyCode = $currencyCode; + } +}} + +if (!class_exists("TextAdSpec", FALSE)) { +/** + * Specification for a text ad. Currently there are no customizable + * options on text ads, but the presence of a {@code TextAdSpec} in a + * request indicates that text ads are a desired result, and the presence + * of a {@code TextAdSpec} in a response indicates that there are text + * ads available in the requested inventory. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TextAdSpec { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAdSpec"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorError", FALSE)) { +/** + * Base error class for + * {@link com.google.ads.api.services.trafficestimator.TrafficEstimatorService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorError extends ApiError { + /** + * @access public + * @var tnsTrafficEstimatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError"; + } + + 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("Type_AttributeMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Type + * and value of type Attribute. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Type_AttributeMapEntry { + /** + * @access public + * @var tnsAttributeType + */ + public $key; + + /** + * @access public + * @var Attribute + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Type_AttributeMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("WebpageDescriptor", FALSE)) { +/** + * Basic information about a webpage. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageDescriptor { + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $title; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageDescriptor"; + } + + public function __construct($url = NULL, $title = NULL) { + $this->url = $url; + $this->title = $title; + } +}} + +if (!class_exists("WebpageDescriptorAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a {@link WebpageDescriptor} value. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageDescriptorAttribute extends Attribute { + /** + * @access public + * @var WebpageDescriptor + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageDescriptorAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AttributeType", FALSE)) { +/** + * Represents the type of + * {@link com.google.ads.api.services.common.optimization.attributes.Attribute}. + *

      {@link IdeaType} KEYWORD supports the following {@link AttributeType}s:
      + *

      • {@link #AD_SHARE}
      • + *
      • {@link #AVERAGE_CPC}
      • + *
      • {@link #AVERAGE_TARGETED_MONTHLY_SEARCHES}
      • + *
      • {@link #CATEGORY_PRODUCTS_AND_SERVICES}
      • + *
      • {@link #COMPETITION}
      • + *
      • {@link #CRITERION}
      • + *
      • {@link #EXTRACTED_FROM_WEBPAGE}
      • + *
      • {@link #GLOBAL_MONTHLY_SEARCHES}
      • + *
      • {@link #IDEA_TYPE}
      • + *
      • {@link #KEYWORD}
      • + *
      • {@link #KEYWORD_CATEGORY}
      • + *
      • {@link #KEYWORD_TEXT}
      • + *
      • {@link #NEGATIVE_KEYWORDS}
      • + *
      • {@link #NGRAM_GROUP}
      • + *
      • {@link #SEARCH_SHARE}
      • + *
      • {@link #SEARCH_VOLUME}
      • + *
      • {@link #TARGETED_MONTHLY_SEARCHES}
      • + *
      + *

      {@link IdeaType} PLACEMENT supports the following {@link AttributeType}s:
      + *

      • {@link #AD_TYPE_SPEC}
      • + *
      • {@link #APPROX_CONTENT_IMPRESSIONS_PER_DAY}
      • + *
      • {@link #CRITERION}
      • + *
      • {@link #FORMATS}
      • + *
      • {@link #IDEA_TYPE}
      • + *
      • {@link #IN_STREAM_AD_INFO}
      • + *
      • {@link #PLACEMENT}
      • + *
      • {@link #PLACEMENT_CATEGORY}
      • + *
      • {@link #PLACEMENT_NAME}
      • + *
      • {@link #PLACEMENT_TYPE}
      • + *
      • {@link #PUBLISHER_DESCRIPTION}
      • + *
      • {@link #SAMPLE_URL}
      • + *
      + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AttributeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AttributeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompetitionSearchParameterLevel", FALSE)) { +/** + * An enumeration of possible values to be used in conjunction with the + * {@link CompetitionSearchParameter} to specify the granularity of + * competition to be filtered. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CompetitionSearchParameterLevel { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompetitionSearchParameter.Level"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DisplayAdSpecActivationOption", FALSE)) { +/** + * Activation options. Describes the ad's activated mode. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DisplayAdSpecActivationOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisplayAdSpec.ActivationOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("HtmlDisplayTypeHtmlOption", FALSE)) { +/** + * Served by a third party. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class HtmlDisplayTypeHtmlOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HtmlDisplayType.HtmlOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdeaType", FALSE)) { +/** + * Represents the type of idea. + * This is disabled for AdX. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdeaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("InStreamAdSpecInStreamType", FALSE)) { +/** + * Display subtype. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InStreamAdSpecInStreamType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InStreamAdSpec.InStreamType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OpportunityIdeaType", FALSE)) { +/** + * Represents the type of opportunity. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OpportunityIdeaType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OpportunityIdeaType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestType", FALSE)) { +/** + * Represents the type of the request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestType"; + } + + public function __construct() { + } +}} + +if (!class_exists("SiteConstantsAdFormat", FALSE)) { +/** + * Enumerates the ad formats which can be reported in search results. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SiteConstantsAdFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteConstants.AdFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("SiteConstantsPlacementType", FALSE)) { +/** + * A placement request and response value indicating the type of site or other medium + * (for example, a web page, in a feed, in a video) where ads will appear. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SiteConstantsPlacementType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteConstants.PlacementType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetingIdeaErrorReason", FALSE)) { +/** + * An enumeration of + * {@link com.google.ads.api.services.targetingideas.TargetingIdeaService} + * specific errors. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetingIdeaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorErrorReason", FALSE)) { +/** + * When the request with {@code null} campaign ID in + * {@link com.google.ads.api.services.trafficestimator.CampaignEstimateRequest} + * contains an + * {@link com.google.ads.api.services.trafficestimator.AdGroupEstimateRequest} + * with an ID. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetingIdeaServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. + * + *

      The selector must specify a {@code paging} value, with {@code numberResults} set to 800 or + * less. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

      Only a relatively small total number of results will be available through this method. + * Much larger result sets may be available using + * {@link #getBulkKeywordIdeas(TargetingIdeaSelector)} at the price of reduced flexibility in + * selector options. + * + * @param selector Query describing the types of results to return when + * finding matches (similar keyword ideas/placement ideas). + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaServiceGet { + /** + * @access public + * @var TargetingIdeaSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("TargetingIdeaServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetingIdeaServiceGetResponse { + /** + * @access public + * @var TargetingIdeaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBulkKeywordIdeas", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. This method is specialized for returning + * bulk keyword ideas, and thus the selector must be set for + * {@link com.google.ads.api.services.targetingideas.attributes.RequestType#IDEAS} and + * {@link com.google.ads.api.services.common.optimization.attributes.IdeaType#KEYWORD}. + * A limited, fixed set of attributes will be returned. + * + *

      A single-valued + * {@link com.google.ads.api.services.targetingideas.search.RelatedToUrlSearchParameter} + * must be supplied. Single-valued + * {@link com.google.ads.api.services.targetingideas.search.LanguageSearchParameter} and + * {@link com.google.ads.api.services.targetingideas.search.LocationSearchParameter} are + * both optional. Other search parameters compatible with a keyword query may also be + * supplied. + * + *

      The selector must specify a {@code paging} value, with {@code numberResults} set to 800 + * or less. If a URL based search is performed it will return up to 100 keywords when the site is + * not owned, or up to 800 if it is. Number of keywords returned on a keyword based search is up + * to 800. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

      This method can make many more results available than {@link #get(TargetingIdeaSelector)}, + * but allows less control over the query. For fine-tuned queries that do not need large numbers + * of results, prefer {@link #get(TargetingIdeaSelector)}. + * + * @param selector Query describing the bulk keyword ideas to return. + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getBulkKeywordIdeas { + /** + * @access public + * @var TargetingIdeaSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("getBulkKeywordIdeasResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class getBulkKeywordIdeasResponse { + /** + * @access public + * @var TargetingIdeaPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdGroupCriterionError", FALSE)) { +/** + * Base error class for Ad Group Criterion Service. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionError extends ApiError { + /** + * @access public + * @var tnsAdGroupCriterionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionError"; + } + + 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("AdGroupCriterionLimitExceeded", FALSE)) { +/** + * Signals that too many criteria were added to some ad group. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupCriterionLimitExceeded extends EntityCountLimitExceeded { + /** + * @access public + * @var tnsAdGroupCriterionLimitExceededCriteriaLimitType + */ + public $limitType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupCriterionLimitExceeded"; + } + + public function __construct($limitType = NULL, $reason = NULL, $enclosingId = NULL, $limit = NULL, $accountLimitType = NULL, $existingCount = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->limitType = $limitType; + $this->reason = $reason; + $this->enclosingId = $enclosingId; + $this->limit = $limit; + $this->accountLimitType = $accountLimitType; + $this->existingCount = $existingCount; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BidLandscape", FALSE)) { +/** + * Represents data about a bid landscape for an ad group or criterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class BidLandscape extends DataEntry { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var string + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $endDate; + + /** + * @access public + * @var BidLandscapeLandscapePoint[] + */ + public $landscapePoints; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BidLandscape"; + } + + public function __construct($campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionBidLandscape", FALSE)) { +/** + * The bid landscape for a criterion. A bid landscape estimates how a + * a criterion will perform based on different bid amounts. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionBidLandscape extends BidLandscape { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionBidLandscape"; + } + + public function __construct($criterionId = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("CriterionPolicyError", FALSE)) { +/** + * Contains the policy violations for a single BiddableAdGroupCriterion. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionPolicyError extends PolicyViolationError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionPolicyError"; + } + + public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->key = $key; + $this->externalPolicyName = $externalPolicyName; + $this->externalPolicyUrl = $externalPolicyUrl; + $this->externalPolicyDescription = $externalPolicyDescription; + $this->isExemptable = $isExemptable; + $this->violatingParts = $violatingParts; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdFormatSpecListAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link AdFormatSpec} values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdFormatSpecListAttribute extends Attribute { + /** + * @access public + * @var AdFormatSpec[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdFormatSpecListAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AdSpecListAttribute", FALSE)) { +/** + * {@link Attribute} type that contains a list of {@link AdSpec} values. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSpecListAttribute extends Attribute { + /** + * @access public + * @var AdSpec[] + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpecListAttribute"; + } + + public function __construct($value = NULL, $AttributeType = NULL) { + parent::__construct(); + $this->value = $value; + $this->AttributeType = $AttributeType; + } +}} + +if (!class_exists("AdSpecListSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code PLACEMENT} {@link IdeaType}s used to + * filter the results by the list of {@link AdSpec}s. See {@link AdSpec} + * documentation for details on available options. + *

      This element is supported by following {@link IdeaType}s: PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdSpecListSearchParameter extends SearchParameter { + /** + * @access public + * @var AdSpec[] + */ + public $adSpecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSpecListSearchParameter"; + } + + public function __construct($adSpecs = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->adSpecs = $adSpecs; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("CategoryProductsAndServicesSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * sets a keyword category that all search results should belong to. + * Uses the newer "Products and Services" taxonomy. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CategoryProductsAndServicesSearchParameter extends SearchParameter { + /** + * @access public + * @var integer + */ + public $categoryId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CategoryProductsAndServicesSearchParameter"; + } + + public function __construct($categoryId = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->categoryId = $categoryId; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("CompetitionSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s used to + * filter the results by the amount of competition (eg: LOW, MEDIUM, HIGH). + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CompetitionSearchParameter extends SearchParameter { + /** + * @access public + * @var tnsCompetitionSearchParameterLevel[] + */ + public $levels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompetitionSearchParameter"; + } + + public function __construct($levels = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->levels = $levels; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("ExcludedKeywordSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * specifies {@link Keyword}s that should be excluded from the results.

      + * + * The {@link KeywordMatchType} associated with these keywords is used to + * provide various filtering strategies. For example, the excluded keyword + * "brand x player" will exclude ideas from the resulting ideas as + * described by the table below. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      Idea{@code BROAD}{@code PHRASE}{@code EXACT}
      brand x playerExcludeExcludeExclude
      blu-ray brand x playerExcludeExcludeInclude
      brand x dvd playerExcludeIncludeInclude
      brand x dvdIncludeIncludeInclude
      + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ExcludedKeywordSearchParameter extends SearchParameter { + /** + * @access public + * @var Keyword[] + */ + public $keywords; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExcludedKeywordSearchParameter"; + } + + public function __construct($keywords = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->keywords = $keywords; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("IdeaTextFilterSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} {@link IdeaType}s that + * specifies a collection of strings by which the results should be + * constrained. This guarantees that each idea in the result will match + * at least one of the {@code included} values. + * + * For this {@link SearchParameter}, excluded items will always take + * priority over included ones. + * + * This can handle a maximum of 200 (included + excluded) elements. + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdeaTextFilterSearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $included; + + /** + * @access public + * @var string[] + */ + public $excluded; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdeaTextFilterSearchParameter"; + } + + public function __construct($included = NULL, $excluded = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->included = $included; + $this->excluded = $excluded; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("IncludeAdultContentSearchParameter", FALSE)) { +/** + * {@link SearchParameter} that specifies whether adult content should be + * returned.

      + * + * Presence of this {@link SearchParameter} will allow adult keywords + * to be included in the results. + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IncludeAdultContentSearchParameter extends SearchParameter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IncludeAdultContentSearchParameter"; + } + + public function __construct($SearchParameterType = NULL) { + parent::__construct(); + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("LanguageSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for both {@code PLACEMENT} and {@code KEYWORD} + * {@link IdeaType}s used to indicate multiple language being targeted. This can + * be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that + * are best for Japanese language. + * + *

      The service allows at most one language to be targeted for KEYWORD requests and 10 languages + * for PLACEMENT requests. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LanguageSearchParameter extends SearchParameter { + /** + * @access public + * @var Language[] + */ + public $languages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LanguageSearchParameter"; + } + + public function __construct($languages = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->languages = $languages; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("LocationSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for both {@code PLACEMENT} and {@code KEYWORD} + * {@link IdeaType}s used to indicate the locations being targeted. This can + * be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that + * are best for Japan and Los Angeles. + * + *

      This parameter replaces the {@code CountryTargetSearchParameter}. + * + *

      Warning: Not all back-ends support sub-country precision. + * + *

      The service allows up to 10 locations to be targeted for KEYWORD requests and 50 locations + * for PLACEMENT requests. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationSearchParameter extends SearchParameter { + /** + * @access public + * @var Location[] + */ + public $locations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationSearchParameter"; + } + + public function __construct($locations = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->locations = $locations; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("NetworkSearchParameter", FALSE)) { +/** + *

      A {@link SearchParameter} for setting the search network. Currently we + * support two network setting options: + *

        + *
      • Google search network
      • + *
      • Google search network and AFS
      • + *
      + *

      This element is supported by following {@link IdeaType}s: KEYWORD. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSearchParameter extends SearchParameter { + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSearchParameter"; + } + + public function __construct($networkSetting = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->networkSetting = $networkSetting; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("PlacementTypeSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code PLACEMENT} {@link IdeaType}s + * used to filter results based on the type of website, known as + * {@link com.google.ads.api.services.targetingideas.attributes.Type#PLACEMENT_TYPE}, + * that they appear in. For example, searches may be limited to find + * results that only appear within mobile websites or feeds. + *

      This element is supported by following {@link IdeaType}s: PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class PlacementTypeSearchParameter extends SearchParameter { + /** + * @access public + * @var tnsSiteConstantsPlacementType[] + */ + public $placementTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTypeSearchParameter"; + } + + public function __construct($placementTypes = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->placementTypes = $placementTypes; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("RelatedToQuerySearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for a query of {@code String}s. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RelatedToQuerySearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $queries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RelatedToQuerySearchParameter"; + } + + public function __construct($queries = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->queries = $queries; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("RelatedToUrlSearchParameter", FALSE)) { +/** + * A {@link SearchParameter} for {@code KEYWORD} and {@code PLACEMENT} + * {@link IdeaType}s that specifies a set of URLs that results should + * in some way be related too. For example, keyword results would be + * similar to content keywords found on the related URLs. + *

      This search parameter can be used in bulk keyword requests through the {@link com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector)} method. It must be single-valued when used in a call to that method. + *

      This element is supported by following {@link IdeaType}s: KEYWORD, PLACEMENT. + *

      This element is supported by following {@link RequestType}s: IDEAS, STATS. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RelatedToUrlSearchParameter extends SearchParameter { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * @access public + * @var boolean + */ + public $includeSubUrls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RelatedToUrlSearchParameter"; + } + + public function __construct($urls = NULL, $includeSubUrls = NULL, $SearchParameterType = NULL) { + parent::__construct(); + $this->urls = $urls; + $this->includeSubUrls = $includeSubUrls; + $this->SearchParameterType = $SearchParameterType; + } +}} + +if (!class_exists("AdGroupBidLandscape", FALSE)) { +/** + * Represents data about a bidlandscape for an adgroup. + * + * + * + * Represents data about a bidlandscape for an adgroup. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupBidLandscape extends BidLandscape { + /** + * @access public + * @var tnsAdGroupBidLandscapeType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $landscapeCurrent; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupBidLandscape"; + } + + public function __construct($type = NULL, $landscapeCurrent = NULL, $campaignId = NULL, $adGroupId = NULL, $startDate = NULL, $endDate = NULL, $landscapePoints = NULL, $DataEntryType = NULL) { + parent::__construct(); + $this->type = $type; + $this->landscapeCurrent = $landscapeCurrent; + $this->campaignId = $campaignId; + $this->adGroupId = $adGroupId; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->landscapePoints = $landscapePoints; + $this->DataEntryType = $DataEntryType; + } +}} + +if (!class_exists("TargetingIdeaService", FALSE)) { +/** + * TargetingIdeaService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class TargetingIdeaService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "TargetingIdeaServiceGetResponse", + "get" => "TargetingIdeaServiceGet", + "mutate" => "TargetingIdeaServiceMutate", + "mutateResponse" => "TargetingIdeaServiceMutateResponse", + "mutateCallToAction" => "TargetingIdeaServiceMutateCallToAction", + "search" => "TargetingIdeaServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdGroupBidLandscape" => "AdGroupBidLandscape", + "BidLandscape" => "BidLandscape", + "AdGroupCriterionError" => "AdGroupCriterionError", + "ApiError" => "ApiError", + "AdGroupCriterionLimitExceeded" => "AdGroupCriterionLimitExceeded", + "EntityCountLimitExceeded" => "EntityCountLimitExceeded", + "AdxError" => "AdxError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "DataEntry" => "DataEntry", + "BidLandscape.LandscapePoint" => "BidLandscapeLandscapePoint", + "BiddingError" => "BiddingError", + "BudgetError" => "BudgetError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionBidLandscape" => "CriterionBidLandscape", + "CriterionError" => "CriterionError", + "CriterionParameter" => "CriterionParameter", + "CriterionPolicyError" => "CriterionPolicyError", + "PolicyViolationError" => "PolicyViolationError", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NetworkSetting" => "NetworkSetting", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "Paging" => "Paging", + "Placement" => "Placement", + "Platform" => "Platform", + "PolicyViolationError.Part" => "PolicyViolationErrorPart", + "PolicyViolationKey" => "PolicyViolationKey", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StatsQueryError" => "StatsQueryError", + "StringLengthError" => "StringLengthError", + "TargetError" => "TargetError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdGroupBidLandscape.Type" => "AdGroupBidLandscapeType", + "AdGroupCriterionError.Reason" => "AdGroupCriterionErrorReason", + "AdGroupCriterionLimitExceeded.CriteriaLimitType" => "AdGroupCriterionLimitExceededCriteriaLimitType", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "BiddingError.Reason" => "BiddingErrorReason", + "BudgetError.Reason" => "BudgetErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "CriterionError.Reason" => "CriterionErrorReason", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityCountLimitExceeded.Reason" => "EntityCountLimitExceededReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StatsQueryError.Reason" => "StatsQueryErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "AdFormatSpec" => "AdFormatSpec", + "AdFormatSpecListAttribute" => "AdFormatSpecListAttribute", + "Attribute" => "Attribute", + "AdSpec" => "AdSpec", + "AdSpecListAttribute" => "AdSpecListAttribute", + "AdSpecListSearchParameter" => "AdSpecListSearchParameter", + "SearchParameter" => "SearchParameter", + "BidLandscapeAttribute" => "BidLandscapeAttribute", + "BooleanAttribute" => "BooleanAttribute", + "CategoryProductsAndServicesSearchParameter" => "CategoryProductsAndServicesSearchParameter", + "CompetitionSearchParameter" => "CompetitionSearchParameter", + "CriterionAttribute" => "CriterionAttribute", + "CurrencyCodeError" => "CurrencyCodeError", + "DisplayAdSpec" => "DisplayAdSpec", + "DisplayAdSpec.AdSizeSpec" => "DisplayAdSpecAdSizeSpec", + "DisplayType" => "DisplayType", + "DoubleAttribute" => "DoubleAttribute", + "ExcludedKeywordSearchParameter" => "ExcludedKeywordSearchParameter", + "FlashDisplayType" => "FlashDisplayType", + "HtmlDisplayType" => "HtmlDisplayType", + "IdeaTextFilterSearchParameter" => "IdeaTextFilterSearchParameter", + "IdeaTypeAttribute" => "IdeaTypeAttribute", + "ImageDisplayType" => "ImageDisplayType", + "InStreamAdInfo" => "InStreamAdInfo", + "InStreamAdInfoAttribute" => "InStreamAdInfoAttribute", + "InStreamAdSpec" => "InStreamAdSpec", + "IncludeAdultContentSearchParameter" => "IncludeAdultContentSearchParameter", + "IntegerAttribute" => "IntegerAttribute", + "IntegerSetAttribute" => "IntegerSetAttribute", + "KeywordAttribute" => "KeywordAttribute", + "LanguageSearchParameter" => "LanguageSearchParameter", + "LocationSearchParameter" => "LocationSearchParameter", + "LongAttribute" => "LongAttribute", + "LongComparisonOperation" => "LongComparisonOperation", + "LongRangeAttribute" => "LongRangeAttribute", + "MatchesRegexError" => "MatchesRegexError", + "MoneyAttribute" => "MoneyAttribute", + "MonthlySearchVolume" => "MonthlySearchVolume", + "MonthlySearchVolumeAttribute" => "MonthlySearchVolumeAttribute", + "NetworkSearchParameter" => "NetworkSearchParameter", + "OpportunityIdeaTypeAttribute" => "OpportunityIdeaTypeAttribute", + "PlacementAttribute" => "PlacementAttribute", + "PlacementTypeAttribute" => "PlacementTypeAttribute", + "PlacementTypeSearchParameter" => "PlacementTypeSearchParameter", + "Range" => "Range", + "RelatedToQuerySearchParameter" => "RelatedToQuerySearchParameter", + "RelatedToUrlSearchParameter" => "RelatedToUrlSearchParameter", + "SearchVolumeSearchParameter" => "SearchVolumeSearchParameter", + "StringAttribute" => "StringAttribute", + "TargetingIdea" => "TargetingIdea", + "TargetingIdeaError" => "TargetingIdeaError", + "TargetingIdeaPage" => "TargetingIdeaPage", + "TargetingIdeaSelector" => "TargetingIdeaSelector", + "TextAdSpec" => "TextAdSpec", + "TrafficEstimatorError" => "TrafficEstimatorError", + "Type_AttributeMapEntry" => "Type_AttributeMapEntry", + "WebpageDescriptor" => "WebpageDescriptor", + "WebpageDescriptorAttribute" => "WebpageDescriptorAttribute", + "AttributeType" => "AttributeType", + "CompetitionSearchParameter.Level" => "CompetitionSearchParameterLevel", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "DisplayAdSpec.ActivationOption" => "DisplayAdSpecActivationOption", + "HtmlDisplayType.HtmlOption" => "HtmlDisplayTypeHtmlOption", + "IdeaType" => "IdeaType", + "InStreamAdSpec.InStreamType" => "InStreamAdSpecInStreamType", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "OpportunityIdeaType" => "OpportunityIdeaType", + "RequestType" => "RequestType", + "SiteConstants.AdFormat" => "SiteConstantsAdFormat", + "SiteConstants.PlacementType" => "SiteConstantsPlacementType", + "TargetingIdeaError.Reason" => "TargetingIdeaErrorReason", + "TrafficEstimatorError.Reason" => "TrafficEstimatorErrorReason", + "getBulkKeywordIdeas" => "getBulkKeywordIdeas", + "getBulkKeywordIdeasResponse" => "getBulkKeywordIdeasResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/o/v201309/TargetingIdeaService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TargetingIdeaService::$classmap; + parent::__construct($wsdl, $options, $user, 'TargetingIdeaService', 'https://adwords.google.com/api/adwords/o/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. + * + *

      The selector must specify a {@code paging} value, with {@code numberResults} set to 800 or + * less. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

      Only a relatively small total number of results will be available through this method. + * Much larger result sets may be available using + * {@link #getBulkKeywordIdeas(TargetingIdeaSelector)} at the price of reduced flexibility in + * selector options. + * + * @param selector Query describing the types of results to return when + * finding matches (similar keyword ideas/placement ideas). + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + */ + public function get($selector) { + $arg = new TargetingIdeaServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns a page of ideas that match the query described by the specified + * {@link TargetingIdeaSelector}. This method is specialized for returning + * bulk keyword ideas, and thus the selector must be set for + * {@link com.google.ads.api.services.targetingideas.attributes.RequestType#IDEAS} and + * {@link com.google.ads.api.services.common.optimization.attributes.IdeaType#KEYWORD}. + * A limited, fixed set of attributes will be returned. + * + *

      A single-valued + * {@link com.google.ads.api.services.targetingideas.search.RelatedToUrlSearchParameter} + * must be supplied. Single-valued + * {@link com.google.ads.api.services.targetingideas.search.LanguageSearchParameter} and + * {@link com.google.ads.api.services.targetingideas.search.LocationSearchParameter} are + * both optional. Other search parameters compatible with a keyword query may also be + * supplied. + * + *

      The selector must specify a {@code paging} value, with {@code numberResults} set to 800 + * or less. If a URL based search is performed it will return up to 100 keywords when the site is + * not owned, or up to 800 if it is. Number of keywords returned on a keyword based search is up + * to 800. Large result sets must be composed through multiple calls to this method, advancing the + * paging {@code startIndex} value by {@code numberResults} with each call. + * + *

      This method can make many more results available than {@link #get(TargetingIdeaSelector)}, + * but allows less control over the query. For fine-tuned queries that do not need large numbers + * of results, prefer {@link #get(TargetingIdeaSelector)}. + * + * @param selector Query describing the bulk keyword ideas to return. + * @return A {@link TargetingIdeaPage} of results, that is a subset of the + * list of possible ideas meeting the criteria of the + * {@link TargetingIdeaSelector}. + * @throws ApiException If problems occurred while querying for ideas. + */ + public function getBulkKeywordIdeas($selector) { + $arg = new getBulkKeywordIdeas($selector); + $result = $this->__soapCall("getBulkKeywordIdeas", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/TrafficEstimatorService.php b/src/Google/Api/Ads/AdWords/v201309/TrafficEstimatorService.php new file mode 100755 index 000000000..ddc8008f2 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/TrafficEstimatorService.php @@ -0,0 +1,4858 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * Errors returned when Authentication failed. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationError extends ApiError { + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsError extends ApiError { + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("CollectionSizeError", FALSE)) { +/** + * Errors associated with the size of the given collection being + * out of bounds. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CollectionSizeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CollectionSizeError"; + } + + 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("ComparableValue", FALSE)) { +/** + * Comparable types for constructing ranges with. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ComparableValue { + /** + * @access public + * @var string + */ + public $ComparableValueType; + + private $_parameterMap = array ( + "ComparableValue.Type" => "ComparableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComparableValue"; + } + + public function __construct($ComparableValueType = NULL) { + $this->ComparableValueType = $ComparableValueType; + } +}} + +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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionParameter"; + } + + public function __construct($CriterionParameterType = NULL) { + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("DatabaseError", FALSE)) { +/** + * Errors that are thrown due to a database access problem. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseError extends ApiError { + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError"; + } + + 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("DateError", FALSE)) { +/** + * Errors associated with invalid dates and date ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateError extends ApiError { + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError"; + } + + 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("DistinctError", FALSE)) { +/** + * Errors related to distinct ids or content. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctError extends ApiError { + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError"; + } + + 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("EntityAccessDenied", FALSE)) { +/** + * Reports permission problems trying to access an entity. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDenied extends ApiError { + /** + * @access public + * @var tnsEntityAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied"; + } + + 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("EntityNotFound", FALSE)) { +/** + * An id did not correspond to an entity, or it referred to an entity which does not belong to the + * customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFound extends ApiError { + /** + * @access public + * @var tnsEntityNotFoundReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdError extends ApiError { + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Keyword extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Keyword"; + } + + 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("Language", FALSE)) { +/** + * Represents a Language criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type is only targetable. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Language extends Criterion { + /** + * @access public + * @var string + */ + public $code; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Language"; + } + + public function __construct($code = NULL, $name = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->code = $code; + $this->name = $name; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } +}} + +if (!class_exists("Location", FALSE)) { +/** + * Represents Location criterion. + *

      A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Location extends Criterion { + /** + * @access public + * @var string + */ + public $locationName; + + /** + * @access public + * @var string + */ + public $displayType; + + /** + * @access public + * @var tnsLocationTargetingStatus + */ + public $targetingStatus; + + /** + * @access public + * @var Location[] + */ + public $parentLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($locationName = NULL, $displayType = NULL, $targetingStatus = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) { + parent::__construct(); + $this->locationName = $locationName; + $this->displayType = $displayType; + $this->targetingStatus = $targetingStatus; + $this->parentLocations = $parentLocations; + $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. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileAppCategory extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileAppCategory"; + } + + 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. + * This is a beta feature. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MobileApplication extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileApplication"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Money extends ComparableValue { + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($microAmount = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->microAmount = $microAmount; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("NetworkSetting", FALSE)) { +/** + * Network settings for a Campaign. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NetworkSetting { + /** + * @access public + * @var boolean + */ + public $targetGoogleSearch; + + /** + * @access public + * @var boolean + */ + public $targetSearchNetwork; + + /** + * @access public + * @var boolean + */ + public $targetContentNetwork; + + /** + * @access public + * @var boolean + */ + public $targetPartnerSearchNetwork; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkSetting"; + } + + public function __construct($targetGoogleSearch = NULL, $targetSearchNetwork = NULL, $targetContentNetwork = NULL, $targetPartnerSearchNetwork = NULL) { + $this->targetGoogleSearch = $targetGoogleSearch; + $this->targetSearchNetwork = $targetSearchNetwork; + $this->targetContentNetwork = $targetContentNetwork; + $this->targetPartnerSearchNetwork = $targetPartnerSearchNetwork; + } +}} + +if (!class_exists("NotEmptyError", FALSE)) { +/** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyError extends ApiError { + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedError extends ApiError { + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("NumberValue", FALSE)) { +/** + * Number value types for constructing number valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NumberValue extends ComparableValue { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($ComparableValueType = NULL) { + parent::__construct(); + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("OperationAccessDenied", FALSE)) { +/** + * Operation not permitted due to the invoked service's access policy. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDenied extends ApiError { + /** + * @access public + * @var tnsOperationAccessDeniedReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied"; + } + + 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("OperatorError", FALSE)) { +/** + * Errors due to the use of unsupported operations. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorError extends ApiError { + /** + * @access public + * @var tnsOperatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError"; + } + + 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("Placement", FALSE)) { +/** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Placement extends Criterion { + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + 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("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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Product extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductCondition"; + } + + public function __construct($argument = NULL, $operand = NULL) { + $this->argument = $argument; + $this->operand = $operand; + } +}} + +if (!class_exists("ProductConditionOperand", FALSE)) { +/** + * Attribute for the product condition. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ProductConditionOperand { + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductConditionOperand"; + } + + public function __construct($operand = NULL) { + $this->operand = $operand; + } +}} + +if (!class_exists("QuotaCheckError", FALSE)) { +/** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckError extends ApiError { + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededError extends ApiError { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyError extends ApiError { + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError"; + } + + 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("RegionCodeError", FALSE)) { +/** + * A list of all errors associated with the @RegionCode constraints. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeError extends ApiError { + /** + * @access public + * @var tnsRegionCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedError extends ApiError { + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestError extends ApiError { + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitError extends ApiError { + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $authToken; + + /** + * @access public + * @var string + */ + public $clientCustomerId; + + /** + * @access public + * @var string + */ + public $developerToken; + + /** + * @access public + * @var string + */ + public $userAgent; + + /** + * @access public + * @var boolean + */ + public $validateOnly; + + /** + * @access public + * @var boolean + */ + public $partialFailure; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapHeader"; + } + + public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) { + $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var string + */ + public $serviceName; + + /** + * @access public + * @var string + */ + public $methodName; + + /** + * @access public + * @var integer + */ + public $operations; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL) { + $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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TargetError", FALSE)) { +/** + * A list of all the error codes being used by the common targeting package. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetError extends ApiError { + /** + * @access public + * @var tnsTargetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError"; + } + + 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. + * Targeting UserInterest is currently in a limited beta. If you'd like access + * please speak with your account representative. + * This is enabled for AdX. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserInterest extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserInterest"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserList extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Vertical extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Vertical"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Webpage extends Criterion { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Webpage"; + } + + 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}.

      + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class 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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageCondition"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageParameter extends CriterionParameter { + /** + * @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 "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageParameter"; + } + + public function __construct($criterionName = NULL, $conditions = NULL, $CriterionParameterType = NULL) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } +}} + +if (!class_exists("AdxErrorReason", FALSE)) { +/** + * The reasons for the AdX error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The single reason for the authentication failure. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthorizationErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AuthorizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthorizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClientTermsErrorReason", FALSE)) { +/** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ClientTermsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientTermsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionType", FALSE)) { +/** + * The types of criteria. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Criterion.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("DatabaseErrorReason", FALSE)) { +/** + * The reasons for the database error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DatabaseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DatabaseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DistinctErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DistinctErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DistinctError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityAccessDeniedReason", FALSE)) { +/** + * User did not have read access. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EntityNotFoundReason", FALSE)) { +/** + * The specified id refered to an entity which either doesn't exist or is not accessible to the + * customer. e.g. campaign belongs to another customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EntityNotFoundReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityNotFound.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("IdErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class IdErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IdError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("KeywordMatchType", FALSE)) { +/** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordMatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LocationTargetingStatus", FALSE)) { +/** + * Enum that represents the different Targeting Status values for a Location criterion. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LocationTargetingStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LocationTargetingStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotEmptyErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotEmptyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotEmptyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotWhitelistedErrorReason", FALSE)) { +/** + * The single reason for the whitelist error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NotWhitelistedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotWhitelistedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperationAccessDeniedReason", FALSE)) { +/** + * The reasons for the operation access error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperationAccessDeniedReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperationAccessDenied.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OperatorErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class OperatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatorError.Reason"; + } + + 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. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class QuotaCheckErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaCheckError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateExceededErrorReason", FALSE)) { +/** + * The reason for the rate exceeded error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RateExceededErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateExceededError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReadOnlyErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ReadOnlyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReadOnlyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegionCodeErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RegionCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RejectedErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RejectedErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectedError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequestErrorReason", FALSE)) { +/** + * Error reason is unknown. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequestErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequestError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SizeLimitErrorReason", FALSE)) { +/** + * The reasons for Ad Scheduling errors. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class SizeLimitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SizeLimitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TargetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CriterionUserListMembershipStatus", FALSE)) { +/** + * Membership status of the user list. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CriterionUserListMembershipStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CriterionUserList.MembershipStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("WebpageConditionOperand", FALSE)) { +/** + * Operand value of {@link WebpageCondition}. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class WebpageConditionOperand { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WebpageConditionOperand"; + } + + public function __construct() { + } +}} + +if (!class_exists("CurrencyCodeError", FALSE)) { +/** + * Errors for currency codes. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeError extends ApiError { + /** + * @access public + * @var tnsCurrencyCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError"; + } + + 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("Estimate", FALSE)) { +/** + * Abstract class representing an reply to an {@link EstimateRequest}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class Estimate { + /** + * @access public + * @var string + */ + public $EstimateType; + + private $_parameterMap = array ( + "Estimate.Type" => "EstimateType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Estimate"; + } + + public function __construct($EstimateType = NULL) { + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("EstimateRequest", FALSE)) { +/** + * Abstract class representing a request to estimate stats. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class EstimateRequest { + /** + * @access public + * @var string + */ + public $EstimateRequestType; + + private $_parameterMap = array ( + "EstimateRequest.Type" => "EstimateRequestType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EstimateRequest"; + } + + public function __construct($EstimateRequestType = NULL) { + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("KeywordEstimate", FALSE)) { +/** + * Represents the traffic estimate result for a single keyword. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $criterionId; + + /** + * @access public + * @var StatsEstimate + */ + public $min; + + /** + * @access public + * @var StatsEstimate + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordEstimate"; + } + + public function __construct($criterionId = NULL, $min = NULL, $max = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->criterionId = $criterionId; + $this->min = $min; + $this->max = $max; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("KeywordEstimateRequest", FALSE)) { +/** + * Represents a keyword to be estimated. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class KeywordEstimateRequest extends EstimateRequest { + /** + * @access public + * @var Keyword + */ + public $keyword; + + /** + * @access public + * @var Money + */ + public $maxCpc; + + /** + * @access public + * @var boolean + */ + public $isNegative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "KeywordEstimateRequest"; + } + + public function __construct($keyword = NULL, $maxCpc = NULL, $isNegative = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->keyword = $keyword; + $this->maxCpc = $maxCpc; + $this->isNegative = $isNegative; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("MatchesRegexError", FALSE)) { +/** + * Errors associated with a given string not matching the provided + * regular expression. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexError extends ApiError { + /** + * @access public + * @var tnsMatchesRegexErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError"; + } + + 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("StatsEstimate", FALSE)) { +/** + * Represents a set of stats for a traffic estimate. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class StatsEstimate { + /** + * @access public + * @var Money + */ + public $averageCpc; + + /** + * @access public + * @var double + */ + public $averagePosition; + + /** + * @access public + * @var double + */ + public $clicksPerDay; + + /** + * @access public + * @var double + */ + public $impressionsPerDay; + + /** + * @access public + * @var double + */ + public $clickThroughRate; + + /** + * @access public + * @var Money + */ + public $totalCost; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatsEstimate"; + } + + public function __construct($averageCpc = NULL, $averagePosition = NULL, $clicksPerDay = NULL, $impressionsPerDay = NULL, $clickThroughRate = NULL, $totalCost = NULL) { + $this->averageCpc = $averageCpc; + $this->averagePosition = $averagePosition; + $this->clicksPerDay = $clicksPerDay; + $this->impressionsPerDay = $impressionsPerDay; + $this->clickThroughRate = $clickThroughRate; + $this->totalCost = $totalCost; + } +}} + +if (!class_exists("TrafficEstimatorError", FALSE)) { +/** + * Base error class for + * {@link com.google.ads.api.services.trafficestimator.TrafficEstimatorService}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorError extends ApiError { + /** + * @access public + * @var tnsTrafficEstimatorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError"; + } + + 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("TrafficEstimatorResult", FALSE)) { +/** + * Contains results of traffic estimation request. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorResult { + /** + * @access public + * @var CampaignEstimate[] + */ + public $campaignEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorResult"; + } + + public function __construct($campaignEstimates = NULL) { + $this->campaignEstimates = $campaignEstimates; + } +}} + +if (!class_exists("TrafficEstimatorSelector", FALSE)) { +/** + * Contains a list of campaigns to perform a traffic estimate on. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorSelector { + /** + * @access public + * @var CampaignEstimateRequest[] + */ + public $campaignEstimateRequests; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorSelector"; + } + + public function __construct($campaignEstimateRequests = NULL) { + $this->campaignEstimateRequests = $campaignEstimateRequests; + } +}} + +if (!class_exists("CurrencyCodeErrorReason", FALSE)) { +/** + * Encodes the reason (cause) of a particular {@link CurrencyCodeError}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CurrencyCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CurrencyCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MatchesRegexErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class MatchesRegexErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MatchesRegexError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorErrorReason", FALSE)) { +/** + * When the request with {@code null} campaign ID in + * {@link com.google.ads.api.services.trafficestimator.CampaignEstimateRequest} + * contains an + * {@link com.google.ads.api.services.trafficestimator.AdGroupEstimateRequest} + * with an ID. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrafficEstimatorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TrafficEstimatorServiceGet", FALSE)) { +/** + * This field is required and should not be {@code null}. + * + * + * + * Returns traffic estimates for specified criteria. + * + * @param selector Campaigns, ad groups and keywords for which traffic + * should be estimated. + * @return Traffic estimation results. + * @throws ApiException if problems occurred while retrieving estimates + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorServiceGet { + /** + * @access public + * @var TrafficEstimatorSelector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selector = NULL) { + $this->selector = $selector; + } +}} + +if (!class_exists("TrafficEstimatorServiceGetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class TrafficEstimatorServiceGetResponse { + /** + * @access public + * @var TrafficEstimatorResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdxError", FALSE)) { +/** + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdxError extends ApiError { + /** + * @access public + * @var tnsAdxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdxError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("DoubleValue", FALSE)) { +/** + * Number value type for constructing double valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class DoubleValue extends NumberValue { + /** + * @access public + * @var double + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DoubleValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("LongValue", FALSE)) { +/** + * Number value type for constructing long valued ranges. + * + * + * + * Errors that are thrown when a non-AdX feature is accessed by an AdX customer. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class LongValue extends NumberValue { + /** + * @access public + * @var integer + */ + public $number; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/cm/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongValue"; + } + + public function __construct($number = NULL, $ComparableValueType = NULL) { + parent::__construct(); + $this->number = $number; + $this->ComparableValueType = $ComparableValueType; + } +}} + +if (!class_exists("AdGroupEstimate", FALSE)) { +/** + * Represents the estimate results for a single ad group. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var KeywordEstimate[] + */ + public $keywordEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupEstimate"; + } + + public function __construct($adGroupId = NULL, $keywordEstimates = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->keywordEstimates = $keywordEstimates; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("AdGroupEstimateRequest", FALSE)) { +/** + * Represents an ad group that will be estimated. Ad groups may be all + * new or all existing, or a mixture of new and existing. Only existing + * campaigns can contain estimates for existing ad groups.

      + * + *

      To make a keyword estimates request in which estimates do not consider + * existing account information (e.g. historical ad group performance), set both + * {@link #adGroupId} and the enclosing {@link CampaignEstimateRequest}'s + * {@code campaignId} to {@code null}. + * + *

      For more details on usage, refer to document at + * {@link CampaignEstimateRequest}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class AdGroupEstimateRequest extends EstimateRequest { + /** + * @access public + * @var integer + */ + public $adGroupId; + + /** + * @access public + * @var KeywordEstimateRequest[] + */ + public $keywordEstimateRequests; + + /** + * @access public + * @var Money + */ + public $maxCpc; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdGroupEstimateRequest"; + } + + public function __construct($adGroupId = NULL, $keywordEstimateRequests = NULL, $maxCpc = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->adGroupId = $adGroupId; + $this->keywordEstimateRequests = $keywordEstimateRequests; + $this->maxCpc = $maxCpc; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("CampaignEstimate", FALSE)) { +/** + * Represents the estimate results for a single campaign. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignEstimate extends Estimate { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdGroupEstimate[] + */ + public $adGroupEstimates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignEstimate"; + } + + public function __construct($campaignId = NULL, $adGroupEstimates = NULL, $EstimateType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupEstimates = $adGroupEstimates; + $this->EstimateType = $EstimateType; + } +}} + +if (!class_exists("CampaignEstimateRequest", FALSE)) { +/** + * Represents a campaign that will be estimated.

      + * + * Returns traffic estimates for the requested set of campaigns. + * The campaigns can be all new or all existing, or a mixture of + * new and existing. Only existing campaigns may contain estimates for existing + * ad groups.

      + * + * For existing campaigns, the campaign and optionally the ad group will be + * used as context to produce more accurate estimates. Traffic estimates may + * only be requested on keywords, so regardless of whether campaign and ad group + * IDs are provided or left blank, at least one keyword is required to estimate + * traffic.

      + * + * To make a keyword estimates request in which estimates do not consider + * existing account information (e.g. historical ad group performance), set + * {@link #campaignId} to {@code null}. + * @package GoogleApiAdsAdWords + * @subpackage v201309 + */ +class CampaignEstimateRequest extends EstimateRequest { + /** + * @access public + * @var integer + */ + public $campaignId; + + /** + * @access public + * @var AdGroupEstimateRequest[] + */ + public $adGroupEstimateRequests; + + /** + * @access public + * @var Criterion[] + */ + public $criteria; + + /** + * @access public + * @var NetworkSetting + */ + public $networkSetting; + + /** + * @access public + * @var Money + */ + public $dailyBudget; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://adwords.google.com/api/adwords/o/v201309"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CampaignEstimateRequest"; + } + + public function __construct($campaignId = NULL, $adGroupEstimateRequests = NULL, $criteria = NULL, $networkSetting = NULL, $dailyBudget = NULL, $EstimateRequestType = NULL) { + parent::__construct(); + $this->campaignId = $campaignId; + $this->adGroupEstimateRequests = $adGroupEstimateRequests; + $this->criteria = $criteria; + $this->networkSetting = $networkSetting; + $this->dailyBudget = $dailyBudget; + $this->EstimateRequestType = $EstimateRequestType; + } +}} + +if (!class_exists("TrafficEstimatorService", FALSE)) { +/** + * TrafficEstimatorService + * @package GoogleApiAdsAdWords + * @subpackage v201309 + * @author WSDLInterpreter + */ +class TrafficEstimatorService extends AdWordsSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "getResponse" => "TrafficEstimatorServiceGetResponse", + "get" => "TrafficEstimatorServiceGet", + "mutate" => "TrafficEstimatorServiceMutate", + "mutateResponse" => "TrafficEstimatorServiceMutateResponse", + "mutateCallToAction" => "TrafficEstimatorServiceMutateCallToAction", + "search" => "TrafficEstimatorServiceSearch", + "Function" => "FeedFunction", + "DateTime" => "AdWordsDateTime", + "SoapHeader" => "SoapRequestHeader", + "AdxError" => "AdxError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "CollectionSizeError" => "CollectionSizeError", + "ComparableValue" => "ComparableValue", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "DateError" => "DateError", + "DistinctError" => "DistinctError", + "DoubleValue" => "DoubleValue", + "NumberValue" => "NumberValue", + "EntityAccessDenied" => "EntityAccessDenied", + "EntityNotFound" => "EntityNotFound", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "Language" => "Language", + "Location" => "Location", + "LongValue" => "LongValue", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "Money" => "Money", + "NetworkSetting" => "NetworkSetting", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OperationAccessDenied" => "OperationAccessDenied", + "OperatorError" => "OperatorError", + "Placement" => "Placement", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RegionCodeError" => "RegionCodeError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "SizeLimitError" => "SizeLimitError", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "TargetError" => "TargetError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AdxError.Reason" => "AdxErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "EntityAccessDenied.Reason" => "EntityAccessDeniedReason", + "EntityNotFound.Reason" => "EntityNotFoundReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "LocationTargetingStatus" => "LocationTargetingStatus", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "OperationAccessDenied.Reason" => "OperationAccessDeniedReason", + "OperatorError.Reason" => "OperatorErrorReason", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RegionCodeError.Reason" => "RegionCodeErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetError.Reason" => "TargetErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "AdGroupEstimate" => "AdGroupEstimate", + "Estimate" => "Estimate", + "AdGroupEstimateRequest" => "AdGroupEstimateRequest", + "EstimateRequest" => "EstimateRequest", + "CampaignEstimate" => "CampaignEstimate", + "CampaignEstimateRequest" => "CampaignEstimateRequest", + "CurrencyCodeError" => "CurrencyCodeError", + "KeywordEstimate" => "KeywordEstimate", + "KeywordEstimateRequest" => "KeywordEstimateRequest", + "MatchesRegexError" => "MatchesRegexError", + "StatsEstimate" => "StatsEstimate", + "TrafficEstimatorError" => "TrafficEstimatorError", + "TrafficEstimatorResult" => "TrafficEstimatorResult", + "TrafficEstimatorSelector" => "TrafficEstimatorSelector", + "CurrencyCodeError.Reason" => "CurrencyCodeErrorReason", + "MatchesRegexError.Reason" => "MatchesRegexErrorReason", + "TrafficEstimatorError.Reason" => "TrafficEstimatorErrorReason", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/o/v201309/TrafficEstimatorService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TrafficEstimatorService::$classmap; + parent::__construct($wsdl, $options, $user, 'TrafficEstimatorService', 'https://adwords.google.com/api/adwords/o/v201309'); + } + + /** + * This field is required and should not be {@code null}. + * + * + * + * Returns traffic estimates for specified criteria. + * + * @param selector Campaigns, ad groups and keywords for which traffic + * should be estimated. + * @return Traffic estimation results. + * @throws ApiException if problems occurred while retrieving estimates + */ + public function get($selector) { + $arg = new TrafficEstimatorServiceGet($selector); + $result = $this->__soapCall("get", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php b/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php new file mode 100755 index 000000000..03258e6ec --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php @@ -0,0 +1,607 @@ +NULL if the last request was not proper XML + * @see PrepareRequest() + * @see RemoveSensitiveInfo() + * @access private + */ + private $lastRequestDom; + + /** + * The last SOAP XML response from the server. + * @var string the last SOAP XML response from the server + * @access protected + */ + protected $lastResponse; + + /** + * The last SOAP XML DOMDocument response from the server. + * @var DOMDocument the last SOAP XML response from the server. Can be + * NULL if the last request was not proper XML + * @access private + */ + private $lastResponseDom; + + /** + * The last SOAP fault generated from the server. NULL if none. + * @var SOAPFault the last SOAP fault generated from the server + * @access protected + */ + protected $lastSoapFault; + + /** + * The name of the last method called from this client. + * @var string the name of the last method called from this client + * @access protected + */ + protected $lastMethodName; + + /** + * The last arguments passed to the called SOAP method + * @var array the last arguments passed to the called SOAP method + */ + protected $lastArguments; + + /** + * The last headers used in the request. + * @var array the last headers used in the request + */ + protected $lastHeaders; + + /** + * The transport layer override. + * @var null|SoapClient + */ + protected $transportLayer; + + /** + * The constructor intended to be called by all sub-classes. + * @param string $wsdl URI of the WSDL file or NULL if working in non-WSDL + * mode + * @param array $options the SOAP client options + * @param AdsUser $user the user which is responsible for this client + * @param string $serviceName the name of the service which is making this + * call + * @param string $serviceNamespace the namespace of the service + * @access protected + */ + protected function __construct($wsdl, array $options, AdsUser $user, + $serviceName, $serviceNamespace) { + $this->user = $user; + $this->serviceName = $serviceName; + $this->serviceNamespace = $serviceNamespace; + $options['typemap'] = $this->GetTypemaps(); + $this->options = $options; + parent::__construct($wsdl, $options); + } + + /** + * Overrides the method SoapClient.__doRequest() to + * perform a clean up of the request XML before marshalling. + * @param string $request the request XML + * @param string $location the URL to request + * @param string $action the SOAP action + * @param string $version the SOAP version + * @return string the XML SOAP response + */ + function __doRequest($request , $location , $action , $version, + $one_way = 0) { + $this->lastRequest = $this->PrepareRequest($request, $this->lastArguments, + $this->lastHeaders); + + if (!empty($this->transportLayer)) { + $response = $this->transportLayer->__doRequest($this->lastRequest, + $location, $action, $version); + + return $response; + } + + return parent::__doRequest($this->lastRequest, + $location, $action, $version); + } + + /** + * Overrides the method SoapClient.__soapCall() to process the + * response from the SOAP call. + * @param string $function_name the name of the function being called + * @param array $arguments the arguments to that function + * @param array $options the options for the SOAP call + * @param array $input_headers the optional input headers + * @param array $output_headers the options output headers + * @return mixed the return from the parent __soapCall + * @throws SOAPFault if there was an exception making the request + */ + function __soapCall($function_name, $arguments, $options = NULL, + $input_headers = NULL, &$output_headers = NULL) { + DeprecationUtils::CheckAdsUserUsingOAuth2($this->user); + try { + $input_headers[] = $this->GenerateSoapHeader(); + $this->lastHeaders = $input_headers; + $this->lastArguments = $arguments; + $response = parent::__soapCall($function_name, $arguments, $options, + $input_headers, $output_headers); + $this->ProcessResponse($this->lastRequest, + $this->__getLastResponse(), $function_name); + return $response; + } catch (SoapFault $e) { + $this->ProcessResponse($this->lastRequest, + $this->__getLastResponse(), $function_name, $e); + throw $e; + } + } + + /** + * Processes the response from the __doRequest call. + * @param string $request the request to the server + * @param string $response the response from the server + * @param string $method the method called + * @param SoapFault $e the SOAP fault thrown if any + * @access private + */ + private function ProcessResponse($request, $response, $method, + SoapFault $e = NULL) { + $this->lastSoapFault = $e; + $this->lastRequestDom = NULL; + $this->lastResponseDom = NULL; + $this->lastRequest = $this->RemoveSensitiveInfo($request); + $this->lastResponse = $response; + $this->lastMethodName = $method; + + try { + $this->GetLastResponseDom(); + } catch (DOMException $domException) { + trigger_error('Failed to load response into DOM: ' + . $domException->getMessage(), E_USER_NOTICE); + } + + try { + $this->GetLastRequestDom(); + } catch (DOMException $domException) { + trigger_error('Failed to load request into DOM: ' + . $domException->getMessage(), E_USER_NOTICE); + } + + $level = isset($e) ? Logger::$ERROR : Logger::$INFO; + $this->LogSoapXml($level); + $this->LogRequestInfo($level); + } + + /** + * Logs the SOAP XML to the Logger::$SOAP_XML_LOG log after the request has + * transformed by PrepareRequest() and both the request and response have + * been sanitized by RemoveSensitiveInfo(). + * @param string $level the log level to use + * @see PrepareRequest() + * @see RemoveSensitiveInfo() + * @access private + */ + private function LogSoapXml($level) { + $message = sprintf("%s\n\n%s\n\n%s\n\n%s\n", + trim($this->__getLastRequestHeaders()), + XmlUtils::PrettyPrint($this->lastRequest), + trim($this->__getLastResponseHeaders()), + XmlUtils::PrettyPrint($this->lastResponse)); + Logger::log(Logger::$SOAP_XML_LOG, $message, $level); + } + + /** + * Logs the request info to the Logger::$REQUEST_INFO_LOG log the request has + * transformed by PrepareRequest() and both the request has been sanitized by + * RemoveSensitiveInfo(). + * @param string $level the log level to use + * @see PrepareRequest() + * @see RemoveSensitiveInfo() + * @access private + */ + private function LogRequestInfo($level) { + $message = $this->GenerateRequestInfoMessage($this->lastRequest, + $this->lastResponse, $this->lastSoapFault); + Logger::log(Logger::$REQUEST_INFO_LOG, $message, $level); + } + + /** + * Gets the user for this client. + * @return AdsUser the user for this client. + */ + public function GetAdsUser() { + return $this->user; + } + + /** + * Gets the server that the request was made to. + * @return string the server that the request was made to + */ + public function GetServer() { + preg_match('/^.*Host:\\s(.*)Connection:.*$/s', + $this->__getLastRequestHeaders(), $hostMatches); + if (sizeof($hostMatches) >= 2) { + return trim($hostMatches[1]); + } else { + return NULL; + } + } + + /** + * Gets the email of the user making the request. + * @return string the email of the user making the request + */ + public function GetEmail() { + return $this->user->getEmail(); + } + + /** + * Gets the service name for this client. + * @return string the service name for this client + */ + public function GetServiceName() { + return $this->serviceName; + } + + /** + * Gets the method name for the last method called. + * @return string the name of last method called + */ + public function GetLastMethodName() { + return $this->lastMethodName; + } + + /** + * Gets the response time for the last call + * @return double the response time of the last call + */ + public function GetLastResponseTime() { + try { + $responseTimeElements = + $this->GetLastResponseDom()->getElementsByTagName('responseTime'); + foreach ($responseTimeElements as $responseTimeElement) { + return $responseTimeElement->nodeValue; + } + } catch (DOMException $e) { + trigger_error('Failed to load response into DOM: ' + . $e->getMessage(), E_USER_NOTICE); + return "null"; + } + } + + /** + * Gets the request ID for the last call + * @return string the request ID of the last call + */ + public function GetLastRequestId() { + try { + $requestIdElements = + $this->GetLastResponseDom()->getElementsByTagName('requestId'); + foreach ($requestIdElements as $requestIdElement) { + return $requestIdElement->nodeValue; + } + } catch (DOMException $e) { + trigger_error('Failed to load response into DOM: ' + . $e->getMessage(), E_USER_NOTICE); + return 'null'; + } + } + + /** + * Returns TRUE if there was a SOAP fault during the last call. + * @returns boolean TRUE if there was a SOAP fault during the last + * call + */ + public function IsFault() { + return isset($this->lastSoapFault); + } + + /** + * Returns the SOAP fault message if there was any + * @return string the fault message if there was any + */ + public function GetLastFaultMessage() { + return $this->IsFault() + ? $this->lastSoapFault->getMessage() : 'null'; + } + + /** + * Depending on the version of PHP, the xsi:types need to be added and empty + * tags may need to be removed. The SoapRequestXmlFixer class can facilitate + * these changes. + * @param string $request the request to be modified + * @param array $arguments the arguments passed to the SOAP method + * @param array $headers the headers used in the request + * @return string the XML request ready to be sent to the server + * @access protected + */ + protected function PrepareRequest($request, array $arguments, + array $headers) { + $addXsiTypes = FALSE; + $removeEmptyElements = FALSE; + $replaceReferences = FALSE; + + if (version_compare(PHP_VERSION, '5.2.0', '<')) { + 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; + } + + $removeEmptyElements = version_compare(PHP_VERSION, '5.2.3', '<'); + $replaceReferences = version_compare(PHP_VERSION, '5.2.2', '>='); + + if ($addXsiTypes || $removeEmptyElements || $replaceReferences) { + $fixer = new SoapRequestXmlFixer($addXsiTypes, $removeEmptyElements, + $replaceReferences); + return $fixer->FixXml($request, $arguments, $headers); + } else { + // Empty string is appended to "save" the XML from being deleted. + return $request . ''; + } + } + + /** + * Gets the names of all registered request header elements. + * @return array the names of the request header elements + */ + public function GetHeaderNames() { + return array_keys($this->headers); + } + + /** + * Gets the value for a registered request header element. + * @param string $key the name of the request header element + * @return string the value of the request header element or NULL + * if not found + */ + public function GetHeaderValue($key) { + if (array_key_exists($key, $this->headers)) { + return $this->headers[$key]; + } else { + return NULL; + } + } + + /** + * Sets the value for a request header. + * @param string $key the name of the request header element + * @param string $value the value for the request header element + */ + public function SetHeaderValue($key, $value) { + $this->headers[$key] = $value; + } + + /** + * Generates the SOAP header for the client. + * @return SoapHeader the instantiated SoapHeader ready to set + * @access protected + */ + protected abstract function GenerateSoapHeader(); + + /** + * Removes any sensitive information from the request XML. This method is + * called after the request has been made and before logging any XML. + * @param string $request the request just made to the server + * @return string the request with any sensitive information removed ready to + * be logged. + * @access protected + */ + protected abstract function RemoveSensitiveInfo($request); + + /** + * Generates the request information using the request and response. This + * method is called after the request has been made and RemoveSensitiveInfo() + * has been called as well. + * @return string the request information ready to be logged + * @access protected + * @see RemoveSensitiveInfo + */ + protected abstract function GenerateRequestInfoMessage(); + + /** + * Gets the DOMDocument representing the last response from this client. + * @return DOMDocument the DOMDocument representing the last response + * @throws DOMException if the DOMDocument could not be loaded + */ + public function GetLastResponseDom() { + if (!isset($this->lastResponseDom)) { + $this->lastResponseDom = XmlUtils::GetDomFromXml($this->lastResponse); + } + + return $this->lastResponseDom; + } + + /** + * Get the DOMDocument representing the last request from this client. + * @return DOMDocument the DOMDocument representing the last request + * @throws DOMException if the DOMDocument could not be loaded + */ + public function GetLastRequestDom() { + if (!isset($this->lastRequestDom)) { + $this->lastRequestDom = XmlUtils::GetDomFromXml($this->lastRequest); + } + + return $this->lastRequestDom; + } + + /** + * Returns the typemaps to be used when constructing the SOAP client. + * @return array the typemap entries + */ + protected function GetTypemaps() { + $typemaps = array(); + // Convert longs more intelligently, due to overflow issue in 32 bit + // environments. + $typemaps[] = array( + 'type_ns' => 'http://www.w3.org/2001/XMLSchema', + 'type_name' => 'long', + 'from_xml' => 'AdsSoapClient::TypemapLongFromXml', + 'to_xml' => 'AdsSoapClient::TypemapLongToXml'); + return $typemaps; + } + + /** + * A typemap conversion function for parsing long values in SOAP responses. + * @param string $xml the XML snippet containing the long value. + * @return mixed the inner long value as an integer, float, or string + */ + public static function TypemapLongFromXml($xml) { + $document = XmlUtils::GetDomFromXml($xml); + $tag = $document->documentElement->localName; + $value = $document->documentElement->nodeValue; + $isIdField = preg_match('/^id$|Id$|ID$/', $tag); + if (!$isIdField) { + if (strcmp(strval(intval($value)), $value) === 0) { + return intval($value); + } elseif (strcmp(sprintf('%.0f', floatval($value)), $value) === 0) { + return floatval($value); + } + } + return $value; + } + + /** + * A typemap conversion function for serializing long values in SOAP requests. + * @param mixed $value the long value + * @return string an XML snippet with the serialized value + */ + public static function TypemapLongToXml($value) { + if (is_float($value)) { + $value = sprintf('%.0f', $value); + } + // Any outer XML tag can be used here, as it is later removed by SoapClient. + return sprintf('%s', $value); + } + + /** + * Creates a new object of the given type, using the optional parameters. + * When pseudo-namespace support is enabled class names can become very long, + * and this function provides an alternative way to create objects that is + * more readable. + * @param string $type the type of object to create + * @param array $params parameters to pass into the constructor, as either + * flat array in the correct order for the constructor or as an + * associative array from parameter name to value + * @return mixed a new instance of a class that represents that type + */ + public function Create($type, $params = NULL) { + if (array_key_exists($type, $this->options['classmap'])) { + $class = $this->options['classmap'][$type]; + $reflectionClass = new ReflectionClass($class); + if (isset($params)) { + if (MapUtils::IsMap($params)) { + $params = MapUtils::MapToMethodParameters($params, + $reflectionClass->getConstructor()); + } + return $reflectionClass->newInstanceArgs($params); + } else { + return $reflectionClass->newInstance(); + } + } else { + trigger_error('Unknown type: ' . $type, E_USER_ERROR); + } + } + + /** + * Set the non-default transport layer mechanism. + * + * WARNING: to be used for testing purposes only. + * + * @param SoapClient $client the soap client to use. + * @return AdsSoapClient this prepared client. + */ + public function __SetTransportLayer(SoapClient $client) { + $this->transportLayer = $client; + } +} diff --git a/src/Google/Api/Ads/Common/Lib/AdsUser.php b/src/Google/Api/Ads/Common/Lib/AdsUser.php new file mode 100755 index 000000000..1954bb123 --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/AdsUser.php @@ -0,0 +1,506 @@ +requestHeaderElements = array(); + + $buildIni = parse_ini_file(dirname(__FILE__) . + '/../Lib/build.ini', FALSE); + $this->libVersion = $buildIni['LIB_VERSION']; + $this->libName = $buildIni['LIB_NAME']; + } + + /** + * Gets the authenticaiton value for the $authVar supplied. If + * the $authVar is set, it is is used. Otherwise, the supplied + * $authenticationIni is queired for the variable. If none is found + * NULL is returned. + * @param string $authVar the default value for the authenticaiton variable + * @param string $authVarName the name of the authencation variable + * @param array $authIni the array of authentication variables from + * an INI file + * @return string the authentication variable value + * @access protected + */ + protected function GetAuthVarValue($authVar, $authVarName, + array $authIni) { + if (isset($authVar)) { + return $authVar; + } else { + if (array_key_exists($authVarName, $authIni)) { + return $authIni[$authVarName]; + } else { + return NULL; + } + } + } + + /** + * Gets the names of all registered request header elements. + * @return array the names of the request header elements + */ + public function GetHeaderNames() { + return array_keys($this->requestHeaderElements); + } + + /** + * Gets the value for a registered request header element. + * @param string $key the name of the request header element + * @return string the value of the request header element or NULL if not found + */ + public function GetHeaderValue($key) { + if (array_key_exists($key, $this->requestHeaderElements)) { + return $this->requestHeaderElements[$key]; + } else { + return NULL; + } + } + + /** + * Sets the value for a request header. + * @param string $key the name of the request header element + * @param string $value the value for the request header element + */ + public function SetHeaderValue($key, $value) { + $this->requestHeaderElements[$key] = $value; + } + + /** + * Gets the service by its service name. + * @param string $serviceName the service name + * @param SoapClientFactory $serviceFactory the service factory + * @return SoapClient the instantiated service + */ + public function GetServiceSoapClient($serviceName, + SoapClientFactory $serviceFactory) { + return $serviceFactory->GenerateSoapClient($serviceName); + } + + /** + * Initializes the logging mechanism used by services created by this user. + * HTTP headers and SOAP XML are logged to the soap_xml.log file and all + * request information is logged to the request_info.log file under the logs + * directory. + */ + protected function InitLogs() { + Logger::LogToFile(Logger::$SOAP_XML_LOG, + $this->logsDirectory . "/soap_xml.log"); + Logger::LogToFile(Logger::$REQUEST_INFO_LOG, + $this->logsDirectory . "/request_info.log"); + Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$FATAL); + Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$FATAL); + } + + /** + * Configures the library to log basic information about all requests and + * the full SOAP XML request and response only when an error occurs. + */ + public function LogDefaults() { + Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$ERROR); + Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$INFO); + } + + /** + * Configures the library to only log requests that return an error. + */ + public function LogErrors() { + Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$ERROR); + Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$ERROR); + } + + /** + * Configures the library to log all requests. + */ + public function LogAll() { + Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$INFO); + Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$INFO); + } + + /** + * Loads the settings for this client library. If the settings INI file + * located at $settingsIniPath cannot be loaded, then the + * parameters passed into this method are used. + * @param string $settingsIniPath the path to the settings INI file + * @param string $defaultVersion the default version if the settings INI file + * cannot be loaded + * @param string $defaultServer the default server if the settings INI file + * cannot be loaded + * @param string $defaultLogsDir the default logs directory if the settings + * INI file cannot be loaded + * @param string $logsRelativePathBase the relative path base for the logs + * directory + */ + public function LoadSettings($settingsIniPath, $defaultVersion, + $defaultServer, $defaultLogsDir, $logsRelativePathBase) { + // Set no time limit for PHP operations. + set_time_limit(0); + ini_set('default_socket_timeout', 480); + + $settingsIni = parse_ini_file($settingsIniPath, TRUE); + + // Logging settings. + $pathRelative = $this->GetSetting($settingsIni, 'LOGGING', + 'PATH_RELATIVE', FALSE); + $libLogDirPath = $this->GetSetting($settingsIni, 'LOGGING', + 'LIB_LOG_DIR_PATH', $defaultLogsDir); + $relativePath = realpath($logsRelativePathBase . '/' . $libLogDirPath); + + if ($pathRelative && $relativePath) { + $this->logsDirectory = $relativePath; + } elseif (!$pathRelative && $libLogDirPath) { + $this->logsDirectory = $libLogDirPath; + } else { + $this->logsDirectory = $defaultLogsDir; + } + $this->InitLogs(); + + // Server settings. + $this->defaultVersion = $this->GetSetting($settingsIni, 'SERVER', + 'DEFAULT_VERSION', $defaultVersion); + $this->defaultServer = $this->GetSetting($settingsIni, 'SERVER', + 'DEFAULT_SERVER', $defaultServer); + + // SOAP settings. + $this->soapCompression = (bool) $this->GetSetting($settingsIni, 'SOAP', + 'COMPRESSION', TRUE); + $this->soapCompressionLevel = $this->GetSetting($settingsIni, 'SOAP', + 'COMPRESSION_LEVEL', 1); + if ($this->soapCompressionLevel < 1 || $this->soapCompressionLevel > 9) { + $this->soapCompressionLevel = 1; + } + $this->wsdlCache = (int) $this->GetSetting($settingsIni, 'SOAP', + 'WSDL_CACHE', WSDL_CACHE_NONE); + if ($this->wsdlCache < 0 || $this->wsdlCache > 3) { + $this->wsdlCache = WSDL_CACHE_NONE; + } + + // Proxy settings. + $proxyHost = $this->GetSetting($settingsIni, 'PROXY', 'HOST'); + if (isset($proxyHost)) { + $this->Define('HTTP_PROXY_HOST', $proxyHost); + } + $proxyPort = $this->GetSetting($settingsIni, 'PROXY', 'PORT'); + if (isset($proxyPort)) { + $this->Define('HTTP_PROXY_PORT', (int) $proxyPort); + } + $proxyUser = $this->GetSetting($settingsIni, 'PROXY', 'USER'); + if (isset($proxyUser)) { + $this->Define('HTTP_PROXY_USER', $proxyUser); + } + $proxyPassword = $this->GetSetting($settingsIni, 'PROXY', 'PASSWORD'); + if (isset($proxyPassword)) { + $this->Define('HTTP_PROXY_PASSWORD', $proxyPassword); + } + + // Auth settings. + $this->authServer = $this->GetSetting($settingsIni, 'AUTH', 'AUTH_SERVER', + 'https://accounts.google.com'); + // OAuth2. + $this->oauth2Handler = $this->GetDefaultOAuth2Handler( + $this->GetSetting($settingsIni, 'AUTH', 'OAUTH2_HANDLER_CLASS')); + + // SSL settings. + $sslVerifyPeer = $this->GetSetting($settingsIni, 'SSL', 'VERIFY_PEER'); + if (isset($sslVerifyPeer)) { + $this->Define('SSL_VERIFY_PEER', $sslVerifyPeer); + } + $sslVerifyHost = $this->GetSetting($settingsIni, 'SSL', 'VERIFY_HOST'); + if (isset($sslVerifyHost)) { + $this->Define('SSL_VERIFY_HOST', (int) $sslVerifyHost); + } + $sslCaPath = $this->GetSetting($settingsIni, 'SSL', 'CA_PATH'); + if (isset($sslCaPath)) { + $this->Define('SSL_CA_PATH', $sslCaPath); + } + $sslCaFile = $this->GetSetting($settingsIni, 'SSL', 'CA_FILE'); + if (isset($sslCaFile)) { + $this->Define('SSL_CA_FILE', $sslCaFile); + } + } + + /** + * Gets the value for a given setting based on the contents of the parsed INI + * file. + * @param array $settings the parsed settings INI file + * @param string $section the name of the section containing the setting + * @param string $name the name of the setting + * @param mixed $default the default value of the setting + * @return string the value of the setting + */ + private function GetSetting($settings, $section, $name, $default = NULL) { + if (!$settings || !array_key_exists($section, $settings) + || !array_key_exists($name, $settings[$section]) + || $settings[$section][$name] == NULL + || $settings[$section][$name] == '') { + return $default; + } + return $settings[$section][$name]; + } + + /** + * Define a constant if it isn't already defined. If it is defined but the + * value is different then attempt to redefine it, which will fail and throw + * the appropriate error. + * @param string $name the name of the constant + * @param string $value the value of the constant + */ + private function Define($name, $value) { + if (!defined($name) || (constant($name) != $value)) { + define($name, $value); + } + } + + /** + * Gets the default server. + * @return string the default server + */ + public function GetDefaultServer() { + return $this->defaultServer; + } + + /** + * Sets the default server. + * @param string $defaultServer the default server + */ + public function SetDefaultServer($defaultServer) { + $this->defaultServer = $defaultServer; + } + + /** + * Gets the default version. + * @return string the default version + */ + public function GetDefaultVersion() { + return $this->defaultVersion; + } + + /** + * Sets the default version. + * @param string $defaultVersion the default version + */ + public function SetDefaultVersion($defaultVersion) { + $this->defaultVersion = $defaultVersion; + } + + /** + * Gets the logs directory. + * @return string the logs directory + */ + public function GetLogsDirectory() { + return $this->logsDirectory; + } + + /** + * Is SOAP compression enabled. + * @return bool is SOAP compression enabled + */ + public function IsSoapCompressionEnabled() { + return $this->soapCompression; + } + + /** + * Gets the SOAP compression level. + * @return int the SOAP compression level + */ + public function GetSoapCompressionLevel() { + return $this->soapCompressionLevel; + } + + /** + * Gets the type of WSDL caching in use. + * @return int the type of WSDL caching in use + */ + public function GetWsdlCacheType() { + return $this->wsdlCache; + } + + /** + * Gets the server used for authentication. + * @return string the server used for authentiation + */ + public function GetAuthServer() { + return $this->authServer; + } + + /** + * Gets the OAuth2 info for this user. + * @return array the OAuth2 info for this user + */ + public function GetOAuth2Info() { + return $this->oauth2Info; + } + + /** + * Sets the OAuth2 info for this user. + * @param array $oauth2Info the OAuth2 info for this user + */ + public function SetOAuth2Info($oauth2Info) { + $this->oauth2Info = $oauth2Info; + } + + /** + * Gets the OAuth2 handler for this user. + * @return OAuth2Handler the OAuth2 handler for this user + */ + public function GetOAuth2Handler() { + return $this->oauth2Handler; + } + + /** + * Sets the OAuth2 handler for this user. + * @param array $oauth2Handler the OAuth2 handler for this user + */ + public function SetOAuth2Handler($oauth2Handler) { + $this->oauth2Handler = $oauth2Handler; + } + + /** + * Gets the appropriate user agent header name for the API this client library + * is targeting. + * @return string The user agent header name. + */ + abstract protected function GetUserAgentHeaderName(); + + /** + * Gets the name and version of this client library. + * @return array An array containing the name and version of this client + * library, e.g.: ['DfpApi-PHP', '2.13.0']. + */ + abstract protected function GetClientLibraryNameAndVersion(); + + /** + * Gets common PHP user agent parts for ads client libraries such as PHP + * version, operating system, browser, or if compression is being used or not. + * @return array An array of arrays with each inner array representing a user + * agent parts, e.g.: ['PHP', '5.3.2'] or ['PHP', '5.4.0']. + */ + private function GetCommonClientLibraryUserAgentParts() { + return array(array($this->libName, $this->libVersion), array('PHP', + PHP_VERSION)); + } + + /** + * Gets the user agent string that identifies this library for this user. + * @return string A user agent string. + */ + public function GetClientLibraryUserAgent() { + return $this->GetHeaderValue($this->GetUserAgentHeaderName()); + } + + /** + * Gets all the user agent parts that identify this client library. + * @return array An array of all the user agent parts that identify this + * client library where each user agent part has been joined by a '/' + * (forward slash). + */ + private function GetAllClientLibraryUserAgentParts() { + $allUserAgentParts[] = implode('/', + $this->GetClientLibraryNameAndVersion()); + + foreach ($this->GetCommonClientLibraryUserAgentParts() as $userAgentPart) { + $allUserAgentParts[] = implode('/', $userAgentPart); + } + + return $allUserAgentParts; + } + + /** + * Sets the user agent string that identifies this library for this user. + * + * TODO(vtsao): The current contract requires that subclasses call this method + * in their constructor. + * + * @param $applicationName The application name that will appear in this + * header. + */ + public function SetClientLibraryUserAgent($applicationName) { + $this->SetHeaderValue($this->GetUserAgentHeaderName(), sprintf("%s (%s)", + $applicationName, implode(', ', + $this->GetAllClientLibraryUserAgentParts()))); + } + + /** + * Get the default OAuth2 Handler for this user. + * @param NULL|string $className the name of the oauth2Handler class or NULL + * @return mixed the configured OAuth2Handler class + */ + public abstract function GetDefaultOAuth2Handler($className = NULL); + + /** + * Validates that the OAuth2 info is complete. + * @throws ValidationException if there are any validation errors + * @access protected + */ + protected function ValidateOAuth2Info() { + $requiredFields = array('client_id', 'client_secret'); + foreach ($requiredFields as $field) { + if (empty($this->oauth2Info[$field])) { + throw new ValidationException($field, NULL, + sprintf('%s is required.', $field)); + } + } + if (empty($this->oauth2Info['access_token']) + && empty($this->oauth2Info['refresh_token'])) { + throw new ValidationException('refresh_token', NULL, + 'Either the refresh_token or the access_token is required.'); + } + } +} + diff --git a/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php b/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php new file mode 100755 index 000000000..eb7f1ae96 --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php @@ -0,0 +1,231 @@ +user = $user; + $this->version = $version; + $this->server = $server; + $this->productName = $productName; + $this->headerOverrides = $headerOverrides; + } + + /** + * Initiates a require_once for the service. + * @param string $serviceName the service to instantiate + */ + abstract public function DoRequireOnce($serviceName); + + /** + * Generates a SOAP client for the given service name. Generates a user level + * error if this instalation of PHP does not have the extension for SOAP + * installed. + * @param string $serviceName the name of the service to generate a client for + * @return AdsSoapClient an instantiated SOAP client + */ + public function GenerateSoapClient($serviceName) { + if (extension_loaded('soap')) { + $this->DoRequireOnce($serviceName); + $soapClient = $this->GenerateServiceClient($serviceName); + return $soapClient; + } else { + trigger_error('This client library requires the SOAP extension to be' + . ' activated. See http://php.net/manual/en/soap.installation.php for' + . ' details.', E_USER_ERROR); + } + } + + /** + * Generates the SOAP service client without the proper headers set yet. + * @param string $serviceName the service to create a client for + * @return AdsSoapClient the SOAP service client + * @access protected + */ + protected function GenerateServiceClient($serviceName) { + $location = $this->GetServiceLocation($serviceName); + $wsdl = $location . '?wsdl'; + $options = array( + 'trace' => TRUE, + 'encoding' => 'utf-8', + 'connection_timeout' => 0, + 'features' => SOAP_SINGLE_ELEMENT_ARRAYS); + $contextOptions = array(); + + // Compression settings. + if ($this->GetAdsUser()->IsSoapCompressionEnabled()) { + $options['compression'] = SOAP_COMPRESSION_ACCEPT | + self::GetCompressionKind() | + $this->GetAdsUser()->GetSoapCompressionLevel(); + // The User-Agent HTTP header must contain the string 'gzip'. + $options['user_agent'] = 'PHP-SOAP/'. phpversion() . ', gzip'; + } + + // WSDL caching settings. + $options['cache_wsdl'] = $this->GetAdsUser()->GetWsdlCacheType(); + + // Proxy settings. + if (defined('HTTP_PROXY_HOST') && HTTP_PROXY_HOST != '') { + $options['proxy_host'] = HTTP_PROXY_HOST; + } + if (defined('HTTP_PROXY_PORT') && HTTP_PROXY_PORT != '') { + $options['proxy_port'] = HTTP_PROXY_PORT; + } + if (defined('HTTP_PROXY_USER') && HTTP_PROXY_USER != '') { + $options['proxy_login'] = HTTP_PROXY_USER; + } + if (defined('HTTP_PROXY_PASSWORD') && HTTP_PROXY_PASSWORD != '') { + $options['proxy_password'] = HTTP_PROXY_PASSWORD; + } + + // SSL settings. + if (defined('SSL_VERIFY_PEER') && SSL_VERIFY_PEER != '') { + $contextOptions['ssl']['verify_peer'] = SSL_VERIFY_PEER; + } + if (defined('SSL_VERIFY_HOST') && SSL_VERIFY_HOST) { + $contextOptions['ssl']['CN_match'] = parse_url($location, PHP_URL_HOST); + } + if (defined('SSL_CA_PATH') && SSL_CA_PATH != '') { + $contextOptions['ssl']['capath'] = SSL_CA_PATH; + } + if (defined('SSL_CA_FILE') && SSL_CA_FILE != '') { + $contextOptions['ssl']['cafile'] = SSL_CA_FILE; + } + + $options['stream_context'] = stream_context_create($contextOptions); + + $soapClient = new $serviceName($wsdl, $options, $this->GetAdsUser()); + $soapClient->__setLocation($location); + + // Copy headers from user. + foreach($this->GetAdsUser()->GetHeaderNames() as $key) { + $soapClient->SetHeaderValue( + $key, $this->GetAdsUser()->GetHeaderValue($key)); + } + + // Copy headers from overrides. + if (isset($this->headerOverrides)) { + foreach($this->headerOverrides as $key => $value) { + $soapClient->SetHeaderValue($key, $value); + } + } + + return $soapClient; + } + + /** + * Gets the end-point location of the service. + * @param string $serviceName the service to instantiate + * @return string the end-point location of the service. + * @access protected + */ + protected function GetServiceLocation($serviceName) { + $classVars = get_class_vars($serviceName); + $endpoint = $classVars['endpoint']; + return preg_replace(SoapClientFactory::$SERVER_REGEX, $this->GetServer(), + $endpoint); + } + + /** + * Gets the user associated with this factory. + * @return AdsUser the user associated with this factory + */ + public function GetAdsUser() { + return $this->user; + } + + /** + * Gets the version associated with this factory. + * @return string the version associated with this factory + */ + public function GetVersion() { + return $this->version; + } + + /** + * Gets the server associated with this factory. + * @return string the server associated with this factory + */ + public function GetServer() { + return $this->server; + } + + /** + * Gets the product name associated with this factory. + * @return string the product name associated with this factory + */ + public function GetProductName() { + return $this->productName; + } + + /** + * Get the compression flag + * @return int Get the compression flag value + */ + protected static function GetCompressionKind() { + if (!isset(self::$COMPRESSION_KIND)) { + if (version_compare(PHP_VERSION, '5.4.0', '>=') + && version_compare(PHP_VERSION, '5.4.4', '<') + ) { + self::$COMPRESSION_KIND = SOAP_COMPRESSION_DEFLATE; + } else { + self::$COMPRESSION_KIND = SOAP_COMPRESSION_GZIP; + } + } + + return self::$COMPRESSION_KIND; + } +} + diff --git a/src/Google/Api/Ads/Common/Lib/ValidationException.php b/src/Google/Api/Ads/Common/Lib/ValidationException.php new file mode 100755 index 000000000..c8da0e462 --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/ValidationException.php @@ -0,0 +1,68 @@ +trigger = $trigger; + parent::__construct(sprintf(self::EXCEPTION_FORMAT, $trigger, $value, + $message)); + } + + /** + * Get the trigger for the validation error. + * @return string the trigger for the validation error. + */ + public function GetTrigger() { + return $this->trigger; + } +} + diff --git a/src/Google/Api/Ads/Common/Lib/build.ini b/src/Google/Api/Ads/Common/Lib/build.ini new file mode 100755 index 000000000..f004ff684 --- /dev/null +++ b/src/Google/Api/Ads/Common/Lib/build.ini @@ -0,0 +1,3 @@ +LIB_VERSION = 5.1.0 +LIB_NAME = "Common-PHP" + diff --git a/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php b/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php new file mode 100755 index 000000000..c69b9d142 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php @@ -0,0 +1,43 @@ +email = $email; + $this->password = $password; + $this->accountType = is_null($accountType) + ? self::DEFAULT_ACCOUNT_TYPE : $accountType; + $this->service = $service; + $this->source = $source; + $this->server = is_null($server) ? self::DEFAULT_SERVER : $server; + $this->captchaToken = $captchaToken; + $this->captchaResponse = $captchaResponse; + + $this->curlUtils = is_null($curlUtils) ? new CurlUtils() : $curlUtils; + } + + /** + * Peforms a POST to get the auth token and then parses the result. + * @return string the auth token + * @throws AuthTokenException if an error occurs during authentication + */ + public function GetAuthToken() { + $response = $this->Login(); + $fields = $this->ParseResponse($response); + if (array_key_exists('Error', $fields)) { + $error = $fields['Error']; + if (array_key_exists('Info', $fields)) { + $error .= ': ' . $fields['Info']; + } + $url = array_key_exists('Url', $fields) ? $fields['Url'] : NULL; + $captchaToken = array_key_exists('CaptchaToken', $fields) ? + $fields['CaptchaToken'] : NULL; + $captchaUrl = array_key_exists('CaptchaUrl', $fields) ? + $fields['CaptchaUrl'] : NULL; + throw new AuthTokenException($error, $url, $captchaToken, $captchaUrl); + } else if (!array_key_exists('Auth', $fields)) { + throw new AuthTokenException('Unknown'); + } else { + return $fields['Auth']; + } + } + + /** + * Makes the client login request and stores the result. + * @return string the response from the ClientLogin API + * @throws AuthTokenException if an error occurs during authentication + */ + private function Login() { + $postUrl = $this->server . '/accounts/ClientLogin'; + $postVars = http_build_query(array( + 'accountType' => $this->accountType, + 'Email' => $this->email, + 'Passwd' => $this->password, + 'service' => $this->service, + 'source' => $this->source, + 'logintoken' => $this->captchaToken, + 'logincaptcha' => $this->captchaResponse + ), NULL, '&'); + + $ch = $this->curlUtils->CreateSession($postUrl); + $this->curlUtils->SetOpt($ch, CURLOPT_POST, 1); + $this->curlUtils->SetOpt($ch, CURLOPT_POSTFIELDS, $postVars); + + $response = $this->curlUtils->Exec($ch); + $httpCode = $this->curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE); + $error = $this->curlUtils->Error($ch); + $this->curlUtils->Close($ch); + + if (!empty($error)) { + throw new AuthTokenException($error); + } else if ($httpCode != 200 && $httpCode != 403) { + throw new AuthTokenException($httpCode); + } + + return $response; + } + + /** + * Parses the response into a map of field name to value. + * @param string $response the response from the ClientLogin API + * @return array a map of field name to value + */ + private function ParseResponse($response) { + $result = array(); + $lines = explode("\n", $response); + foreach ($lines as $line) { + $parts = explode('=', $line, 2); + $key = isset($parts[0]) ? $parts[0] : NULL; + $value = isset($parts[1]) ? $parts[1] : NULL; + $result[$key] = $value; + } + return $result; + } + + /** + * Returns the server to make requests to. + * @return string the server to make requests to + */ + public function GetServer() { + return $this->server; + } +} + diff --git a/src/Google/Api/Ads/Common/Util/AuthTokenException.php b/src/Google/Api/Ads/Common/Util/AuthTokenException.php new file mode 100755 index 000000000..d53f80d23 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/AuthTokenException.php @@ -0,0 +1,92 @@ +error = $error; + $this->url = $url; + $this->captchaToken = $captchaToken; + $this->captchaUrl = $captchaUrl; + parent::__construct('Failed to get authToken. Reason: ' . $error); + } + + /** + * Gets the error that caused the exception. + * @return string the error that caused the exception + */ + public function GetError() { + return $this->error; + } + + /** + * Gets the URL associated with the error. + * @return string the URL associated with the error + */ + public function GetUrl() { + return $this->url; + } + + /** + * Gets the CATPCHA token for the error. + * @return string the CATPCHA token for the error + */ + public function GetCaptchaToken() { + return $this->captchaToken; + } + + /** + * Gets the CAPTCHA URL for the error. + * @return string the CAPTCHA URL for the error + */ + public function GetCaptchaUrl() { + return $this->captchaUrl; + } +} + diff --git a/src/Google/Api/Ads/Common/Util/ChoiceUtils.php b/src/Google/Api/Ads/Common/Util/ChoiceUtils.php new file mode 100755 index 000000000..40ece6e23 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/ChoiceUtils.php @@ -0,0 +1,62 @@ + $value) { + if (isset($value)) { + return $value; + } + } + return NULL; + } +} + diff --git a/src/Google/Api/Ads/Common/Util/CurlUtils.php b/src/Google/Api/Ads/Common/Util/CurlUtils.php new file mode 100755 index 000000000..dcccc6763 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/CurlUtils.php @@ -0,0 +1,142 @@ +Init($url); + + // Default options. + $this->SetOpt($ch, CURLOPT_FOLLOWLOCATION, TRUE); + $this->SetOpt($ch, CURLOPT_HEADER, FALSE); + $this->SetOpt($ch, CURLOPT_RETURNTRANSFER, TRUE); + $this->SetOpt($ch, CURLOPT_ENCODING, 'gzip'); + $this->SetOpt($ch, CURLOPT_USERAGENT, 'curl, gzip'); + + // Proxy options. + if (defined('HTTP_PROXY_HOST') && HTTP_PROXY_HOST != '') { + $this->SetOpt($ch, CURLOPT_PROXY, HTTP_PROXY_HOST); + } + if (defined('HTTP_PROXY_PORT') && HTTP_PROXY_PORT != '') { + $this->SetOpt($ch, CURLOPT_PROXYPORT, HTTP_PROXY_PORT); + } + if (defined('HTTP_PROXY_USER') && defined('HTTP_PROXY_PASSWORD') + && HTTP_PROXY_USER != '' && HTTP_PROXY_PASSWORD != '') { + $this->SetOpt($ch, CURLOPT_PROXYUSERPWD, HTTP_PROXY_USER . ':' + . HTTP_PROXY_PASSWORD); + } + + // SSL options. + if (defined('SSL_VERIFY_PEER') && SSL_VERIFY_PEER != '') { + $this->SetOpt($ch, CURLOPT_SSL_VERIFYPEER, SSL_VERIFY_PEER); + } else { + // Default to disabled, for backwards compatibility. + $this->SetOpt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); + } + if (defined('SSL_VERIFY_HOST') && SSL_VERIFY_HOST != '') { + if (SSL_VERIFY_HOST) { + // Verify that the host exists in the certificate and matches the + // host in the request. + $this->SetOpt($ch, CURLOPT_SSL_VERIFYHOST, 2); + } else { + $this->SetOpt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); + } + } else { + $this->SetOpt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); + } + if (defined('SSL_CA_PATH') && SSL_CA_PATH != '') { + $this->SetOpt($ch, CURLOPT_CAPATH, SSL_CA_PATH); + } + if (defined('SSL_CA_FILE') && SSL_CA_FILE != '') { + $this->SetOpt($ch, CURLOPT_CAINFO, SSL_CA_FILE); + } + + return $ch; + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-init.php}. + */ + public function Init($url = NULL) { + return curl_init($url); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-setopt.php}. + */ + public function SetOpt($ch, $option, $value) { + return curl_setopt($ch, $option, $value); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-exec.php}. + */ + public function Exec($ch) { + return curl_exec($ch); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-getinfo.php}. + */ + public function GetInfo($ch, $opt = 0) { + return curl_getinfo($ch, $opt); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-error.php}. + */ + public function Error($ch) { + return curl_error($ch); + } + + /** + * Wraps the global curl function + * {@link http://php.net/manual/en/function.curl-close.php}. + */ + public function Close($ch) { + curl_close($ch); + } +} + diff --git a/src/Google/Api/Ads/Common/Util/DeprecationUtils.php b/src/Google/Api/Ads/Common/Util/DeprecationUtils.php new file mode 100755 index 000000000..15744eb95 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/DeprecationUtils.php @@ -0,0 +1,78 @@ +GetOAuth2Info(); + return (empty($credentials['refresh_token']) + && empty($credentials['access_token']) + && (empty($credentials['client_id']) + || empty($credentials['client_secret']))); + } + + /** + * Log messages to the relevant message sources. + * + * @param string $message is the message to log + * @param string $level is the message level to log + */ + protected static function Log($message, $level = NULL) { + Logger::log(Logger::$SOAP_XML_LOG, $message, $level); + Logger::log(Logger::$REQUEST_INFO_LOG, $message, $level); + } +} + diff --git a/src/Google/Api/Ads/Common/Util/ErrorUtils.php b/src/Google/Api/Ads/Common/Util/ErrorUtils.php new file mode 100755 index 000000000..6c660cc55 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/ErrorUtils.php @@ -0,0 +1,91 @@ +detail)) { + foreach (get_object_vars($fault->detail) as $fieldName => $fieldValue) { + if ($fieldName == ErrorUtils::$API_EXCEPTION_FIELD_NAME) { + $errors = $fieldValue->errors; + if (!is_array($errors)) { + $errors = array($errors); + } + foreach ($errors as $error) { + if ($error instanceof SoapVar) { + $error = $error->enc_value; + } + $results[] = $error; + } + } + } + } + return $results; + } + + /** + * Gets the index of the operation that was the source of an error. + * @param mixed $error the error returned in the response + * @return int the index of the operation that caused the error, or NULL if + * no operation was referenced by the error + */ + public static function GetSourceOperationIndex($error) { + $matches = array(); + if (preg_match(ErrorUtils::$OPERATION_INDEX_OGNL_REGEX, $error->fieldPath, + $matches)) { + return $matches[1]; + } else { + // Invalid fieldPath. + return NULL; + } + } +} + diff --git a/src/Google/Api/Ads/Common/Util/Logger.php b/src/Google/Api/Ads/Common/Util/Logger.php new file mode 100755 index 000000000..d4d0a054b --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/Logger.php @@ -0,0 +1,242 @@ +SOAP_XML_LOG and + * all records of requests to REQUEST_INFO_LOG. + * + * Currently, levels are only used as indicators (there is no filtering + * mechanism as of yet). + * + * A list of supported appenders (file handles) can be found here: + * {@link http://us2.php.net/manual/en/wrappers.php} + * + * @package GoogleApiAdsCommon + * @subpackage Util + */ +class Logger { + + /** + * Logs all incomming and outgoing SOAP XML. + * @var string log for all incomming and outgoing SOAP XML + */ + public static $SOAP_XML_LOG = 'soap_xml'; + + /** + * Logs all information about requests. + * @var string log for all information about requests + */ + public static $REQUEST_INFO_LOG = 'request_info'; + + /** + * Standard out stream for use with the LogToStream method. + * @see self::LogToStream() + * @var string stream for stdout + */ + public static $STD_OUT_STREAM = 'php://stdout'; + + /** + * Standard error stream for use with the LogToStream method. + * @see self::LogToStream() + * @var string stream for stderr + */ + public static $STD_ERR_STREAM = 'php://stderr'; + + /** + * INFO level. + * @var string the info level + */ + public static $INFO = 'INFO'; + + /** + * DEBUG level. + * @var string the debug level + */ + public static $DEBUG = 'DEBUG'; + + /** + * ERROR level. + * @var string the error level + */ + public static $ERROR = 'ERROR'; + + /** + * FATAL level. + * @var string the fatal level + */ + public static $FATAL = 'FATAL'; + + private static $logToMap = array(); + private static $logLevelMap = array(); + private static $timeFormat = 'M d Y H:i:s.u'; + + /** + * The Logger class is not meant to have any instances. + * @access private + */ + private function __construct() {} + + /** + * Logs the given log to a file at the file path. + * @param string $log the unique name of the log + * @param string $filePath the location of the file to append the log to + */ + public static function LogToFile($log, $filePath) { + self::LogTo($log, $filePath); + } + + /** + * Logs the given log to a stream represented by $phpIoStream. The + * availble streams are listed here: + * + * {@link http://us3.php.net/manual/en/wrappers.php.php} + * + * The variables $STD_OUT_STREAM and $STD_ERR_STREAM are + * provided for your convenience. + * @param string $log the unique name of the log + * @param string $phpIoStream the php I/O stream of the form php://* + * @see self::$STD_OUT_STREAM + * @see self::$STD_ERR_STREAM + */ + public static function LogToStream($log, $phpIoStream) { + self::LogTo($log, $phpIoStream); + } + + /** + * Logs the log to a handle location which can be any writable stream. + * @param string $log the unique name of the log + * @param string $handleLocation the location of the handle to fopen + * @access private + */ + private static function LogTo($log, $handleLocation) { + if (!array_key_exists($log, self::$logToMap)) { + self::$logToMap[$log] = array(); + } + + $appenders = self::$logToMap[$log]; + + if (array_search($handleLocation, $appenders) === FALSE) { + array_push($appenders, $handleLocation); + } + + self::$logToMap[$log] = $appenders; + } + + /** + * Sets the logging level for a given log. Only messages at that log level + * or higher will be written to the log. + * @param string $log the unique name of the log + * @param string $level the level to filter for + */ + public static function SetLogLevel($log, $level) { + self::$logLevelMap[$log] = $level; + } + + /** + * Logs a message to the log at a specific level. + * @param string $log the unique name of the log + * @param string $message the message to write + * @param string $level the level at which to write the message + */ + public static function Log($log, $message, $level = NULL) { + if (!isset($level)) { + $level = self::$INFO; + } + + self::LogToAllAppenders($log, $message, $level); + } + + /** + * Logs the message at a specific level to all appenders for that log. + * @param string $log the unique name of the log + * @param string $message the message to write + * @param string $level the level at which to write the message + * @access private + */ + private static function LogToAllAppenders($log, $message, $level) { + if (array_key_exists($log, self::$logToMap)) { + $logLevel = array_key_exists($log, self::$logLevelMap) ? + self::$logLevelMap[$log] : self::$INFO; + if (self::ShouldLog($logLevel, $level)) { + $appenders = self::$logToMap[$log]; + self::LogToAppenders($appenders, $message, $level); + } + } + } + + /** + * Determines if a message of a given level should be written to a log of a + * given level. + * @param string $logLevel the level of the log + * @param string $messageLevel the level of the message + */ + private static function ShouldLog($logLevel, $messageLevel) { + $levelPriority = + array(self::$DEBUG, self::$INFO, self::$ERROR, self::$FATAL); + return array_search($logLevel, $levelPriority) <= + array_search($messageLevel, $levelPriority); + } + + /** + * Writes the message to all appenders (any writable handle location that + * can be fopen'ed) at a specific level. + * @param array $appenders the appenders to write to + * @param string $message the message to write + * @param string $level the level at which to write the message + * @access private + */ + private static function LogToAppenders(array $appenders, $message, $level) { + foreach ($appenders as $handle) { + self::WriteMessage($handle, $message, $level); + } + } + + /** + * Writes a message with the prepended time and level to the handle + * location. The handle will be opened, written to and then closed. + * @param string $handleLocation the location of the handle that will be + * fopen'ed + * @param string $message the message to write + * @param string $level the level of the message + * @access private + */ + private static function WriteMessage($handleLocation, $message, $level) { + $fp = fopen($handleLocation, 'a'); + $line = '[' . date(self::$timeFormat, time()) . ' - ' . $level . '] ' + . $message . "\n"; + fwrite($fp, $line); + fclose($fp); + } +} + diff --git a/src/Google/Api/Ads/Common/Util/MapUtils.php b/src/Google/Api/Ads/Common/Util/MapUtils.php new file mode 100755 index 000000000..62d37fdc6 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/MapUtils.php @@ -0,0 +1,113 @@ +key] = $mapEntry->value; + } + return $result; + } + + /** + * Gets an array of map entries from a map (associative array). A map entry + * is any object that has a key and value field. An optional map entry class + * name can be specified for constructing the entries, otherise the stdClass + * is used. + * @param array $map a map from key to value + * @param string $mapEntryClassName an optional class name to use when + * constructing the map entries + * @return array an array of map entries built from the key-value pairs in + * the map + */ + public static function GetMapEntries(array $map, $mapEntryClassName = NULL) { + $result = array(); + foreach($map as $key => $value) { + if (isset($mapEntryClassName)) { + $entry = new $mapEntryClassName(); + } else { + $entry = (object) array(); + } + $entry->key = $key; + $entry->value = $value; + $result[] = $entry; + } + return $result; + } + + /** + * Determines if an array is a map (associative array) vs. a flat, + * numerically indexed array. + * @param array $array the array to evaluate + * @return bool true if the array is a map, false otherwise + */ + public static function IsMap(array $array) { + return (bool) sizeof(array_filter(array_keys($array), 'is_string')); + } + + /** + * Converts a map (associative array) to a flat, numerically indexed array + * of method parameters. The method is used to determine the order of the + * parameters, and NULL values are using for missing parameters. + * @param array $map the map of parameter names to values + * @param ReflectionMethod $method the method to use for the mapping + * @return array the parameter values as a flat array + */ + public static function MapToMethodParameters($map, $method) { + $params = $method->getParameters(); + $result = array_fill(0, sizeof($params), NULL); + foreach ($params as $param) { + if (isset($map[$param->getName()])) { + $result[$param->getPosition()] = $map[$param->getName()]; + } + } + return $result; + } +} + diff --git a/src/Google/Api/Ads/Common/Util/MediaUtils.php b/src/Google/Api/Ads/Common/Util/MediaUtils.php new file mode 100755 index 000000000..4bc9d08d7 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/MediaUtils.php @@ -0,0 +1,65 @@ +path for + * use with the API where Data is needed. + * @param string $path the path of the file or URL of the asset + * @param boolean $useIncludePath use include path (optional) + * @param resource $context a context resource (optional) + * @return string the base64 encoded data of the file + * @see http://us2.php.net/file_get_contents + */ + public static function GetBase64Data($path, $useIncludePath = NULL, + $context = NULL) { + if ($useIncludePath) { + return file_get_contents($path, FILE_USE_INCLUDE_PATH, $context); + } else { + return file_get_contents($path, 0, $context); + } + } +} + diff --git a/src/Google/Api/Ads/Common/Util/OAuth2Handler.php b/src/Google/Api/Ads/Common/Util/OAuth2Handler.php new file mode 100755 index 000000000..f01d8e5d8 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/OAuth2Handler.php @@ -0,0 +1,282 @@ +server = $server; + $this->scope = $scope; + } + + /** + * Gets the authorization URL to redirect to. + * @param array $credentials the credentials, including client_id + * @param string $redirectUri optional callback URL + * @param boolean $offline whether or not to request offline access (aka a + * refresh token), false by default + * @param array $params optional array of additional parameters to include + * in the URL + * @return string an authorization URL to redirect the user to + * @see https://developers.google.com/accounts/docs/OAuth2WebServer#formingtheurl + */ + public function GetAuthorizationUrl(array $credentials, + $redirectUri = NULL, $offline = NULL, array $params = NULL) { + if (empty($credentials['client_id'])) { + throw new OAuth2Exception('client_id required.'); + } + $params = is_null($params) ? array() : $params; + $redirectUri = is_null($redirectUri) ? + self::DEFAULT_REDIRECT_URI : $redirectUri; + + $params = array_merge($params, array( + 'response_type' => 'code', + 'client_id' => $credentials['client_id'], + 'redirect_uri' => $redirectUri, + 'scope' => $this->scope, + 'access_type' => $offline ? 'offline' : 'online' + )); + return $this->GetAuthorizeEndpoint($params); + } + + /** + * Gets the access token for an authorized request token. + * @param array $credentials the credentials, including client_id and + * client_secret + * @param string $code the authorization code returned in the response + * @param string $redirectUri optional callback URL + * @return array the credentials passed in plus access_token, expires_in, + * timestamp and optionally refresh_token if offline mode was requested + * @see https://developers.google.com/accounts/docs/OAuth2WebServer#handlingtheresponse + */ + public abstract function GetAccessToken(array $credentials, $code, + $redirectUri = NULL); + + /** + * Get the valid access token or the token if needed and possible. + * @param array $credentials the credentials, including client_id and + * client_secret + * @return array the credentials passed in plus any refreshed credentials + * if they were refreshed + */ + public function GetOrRefreshAccessToken(array $credentials) { + if ($this->ShouldRefreshAccessToken($credentials) && + $this->CanRefreshAccessToken($credentials)) { + $credentials = $this->RefreshAccessToken($credentials); + } + return $credentials; + } + + /** + * Determines if the access token should be refreshed. + * @param array $credentials the credentials, including client_id and + * client_secret + * @return boolean TRUE if the Access Token should be refreshed + */ + public function ShouldRefreshAccessToken(array $credentials) { + return (!$this->IsAccessTokenValid($credentials) || + $this->IsAccessTokenExpiring($credentials)); + } + + /** + * Determines if the access token is still valid. If expiry information isn't + * available then this function will assume it is. + * @param array $credentials the credentials, including access_token, + * timestamp and expires_in + * @return boolean TRUE if the access token is valid or if expiring + * information isn't available + */ + public function IsAccessTokenValid(array $credentials) { + if (empty($credentials['access_token'])) { + return FALSE; + } + $expiry = $this->GetExpiryTimestamp($credentials); + if ($expiry) { + // Test if expiry hasn't passed. + return $expiry > time(); + } + + // No expiry information, assume valid. + return TRUE; + } + + /** + * Tests if the access token is about to expire or has expired. + * @param array $credentials the credentials, including access_token, + * timestamp and expires_in + * @return boolean TRUE if the token has expired + **/ + public function IsAccessTokenExpiring(array $credentials) { + $expiry = $this->GetExpiryTimestamp($credentials); + if ($expiry) { + // Subtract the refresh buffer. + $expiry -= self::REFRESH_BUFFER; + + // Test if expiry has passed. + return $expiry < time(); + } + + return FALSE; + } + + /** + * Get the expiry of a given credential, or false if none is found. + * @param array $credentials the credentials, including access_token, + * timestamp and expires_in + * @return int|boolean utc timestamp if exists or FALSE if none found + */ + private function GetExpiryTimestamp(array $credentials) { + if (empty($credentials['timestamp']) + || empty($credentials['expires_in'])) { + return FALSE; + } + + // Set to refreshed time. + $expires = intval($credentials['timestamp']); + + // Add the expiry value. + $expires += intval($credentials['expires_in']); + + return $expires; + } + + /** + * Determines if the access token can be refreshed. + * @param array $credentials the credentials + * @return boolean TRUE if the credentials can be refreshed + */ + public function CanRefreshAccessToken(array $credentials) { + return !empty($credentials['refresh_token']); + } + + /** + * Refreshes the access token. + * @param array $credentials the credentials, including the client_id, + * client_secret, refresh_token + * @return array the credentials + * @see https://developers.google.com/accounts/docs/OAuth2WebServer#offline + */ + public abstract function RefreshAccessToken(array $credentials); + + /** + * Formats OAuth2 credentials for use in a URL. + * For example: access_token=token. + * @param array $credentials the OAuth2 credentials + * @return string the credentials formatted for use in a URL + */ + public function FormatCredentialsForUrl($credentials) { + if (empty($credentials['access_token'])) { + throw new OAuth2Exception('access_token required.'); + } + $params = array('access_token' => $credentials['access_token']); + return http_build_query($params, NULL, '&'); + } + + /** + * Formats OAuth2 credentials for use in an HTTP header. + * For example: Bearer token + * @param array $credentials the OAuth2 credentials + * @return string the credentials formatted for use in an HTTP header + */ + public function FormatCredentialsForHeader($credentials) { + if (empty($credentials['access_token'])) { + throw new OAuth2Exception('access_token required.'); + } + $tokenType = !empty($credentials['token_type']) ? + $credentials['token_type'] : 'Bearer'; + return sprintf('%s %s', $tokenType, + urlencode($credentials['access_token'])); + } + + /** + * Gets the authorization endpoint using the given server and parameters. + * @param array $params the parameters to include in the endpoint + * @return string the authorization endpoint + */ + protected function GetAuthorizeEndpoint($params = NULL) { + return $this->GetEndpoint(self::AUTHORIZE_ENDPOINT, $params); + } + + /** + * Gets the access endpoint using the given server and parameters. + * @param array $params the parameters to include in the endpoint + * @return string the access endpoint + */ + protected function GetAccessEndpoint($params = NULL) { + return $this->GetEndpoint(self::ACCESS_ENDPOINT, $params); + } + + /** + * Gets an endpoint using the given server and parameters. + * @param string $endpoint the base endpoint URL to use + * @param array $params the parameters to include in the endpoint + * @return string the endpoint + */ + private function GetEndpoint($endpoint, $params = NULL) { + $endpoint = UrlUtils::AddParamsToUrl($endpoint, $params); + if (!empty($this->server)) { + $endpoint = UrlUtils::ReplaceServerInUrl($endpoint, $this->server); + } + return $endpoint; + } +} + +/** + * Exception thrown when OAuth2 flow fails. + * @package GoogleApiAdsCommon + * @subpackage Util + */ +class OAuth2Exception extends Exception { + public function __construct($message, $code = NULL) { + parent::__construct($message, $code); + } +} + diff --git a/src/Google/Api/Ads/Common/Util/OgnlUtils.php b/src/Google/Api/Ads/Common/Util/OgnlUtils.php new file mode 100755 index 000000000..1fd39d12c --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/OgnlUtils.php @@ -0,0 +1,107 @@ + 0) { + $matches = array(); + if (preg_match(self::$OGNL_TOKEN_REGEX, $expression, $matches)) { + $token = array_shift($matches); + $expression = substr($expression, strlen($token)); + // Remove empty matches. + $matches = array_filter($matches, 'strlen'); + foreach ($matches as $field) { + if (is_object($context) && property_exists($context, $field)) { + $context = $context->$field; + } else if (is_array($context) && array_key_exists($field, $context)) { + $context = $context[$field]; + } else { + // Field doesn't evaluate in the context. + return NULL; + } + } + } else { + // Invalid expression. + return NULL; + } + } + return $context; + } + + /** + * Retrieves the operation index from an OGNL expression that references an + * operation. + * @param string $expression the OGNL expression + * @return int the operation index referenced, or NULL if no operation was + * references + */ + public static function GetOperationIndex($expression) { + $matches = array(); + if (preg_match(self::$OPERATION_INDEX_REGEX, $expression, $matches)) { + return $matches[1]; + } else { + return NULL; + } + } +} + diff --git a/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php b/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php new file mode 100755 index 000000000..9bb1dab65 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php @@ -0,0 +1,125 @@ +curlUtils = is_null($curlUtils) ? new CurlUtils() : $curlUtils; + } + + /** + * @see OAuth2Hanlder::GetAccessToken() + */ + public function GetAccessToken(array $credentials, $code, + $redirectUri = NULL) { + if (empty($credentials['client_id'])) { + throw new OAuth2Exception('client_id required.'); + } + if (empty($credentials['client_secret'])) { + throw new OAuth2Exception('client_secret required.'); + } + $redirectUri = !empty($redirectUri) ? + $redirectUri : self::DEFAULT_REDIRECT_URI; + $params = array( + 'code' => $code, + 'client_id' => $credentials['client_id'], + 'client_secret' => $credentials['client_secret'], + 'redirect_uri' => $redirectUri, + 'grant_type' => 'authorization_code' + ); + $endpoint = $this->GetAccessEndpoint(); + $response = $this->MakeRequest($endpoint, $params); + return array_merge($credentials, $response, array('timestamp' => time())); + } + + /** + * @see OAuth2Hanlder::RefreshAccessToken() + */ + public function RefreshAccessToken(array $credentials) { + if (empty($credentials['refresh_token'])) { + throw new OAuth2Exception('Offline access (refresh_token) required.'); + } + if (empty($credentials['client_id'])) { + throw new OAuth2Exception('client_id required.'); + } + if (empty($credentials['client_secret'])) { + throw new OAuth2Exception('client_secret required.'); + } + $params = array( + 'refresh_token' => $credentials['refresh_token'], + 'client_id' => $credentials['client_id'], + 'client_secret' => $credentials['client_secret'], + 'grant_type' => 'refresh_token' + ); + $endpoint = $this->GetAccessEndpoint(); + $response = $this->MakeRequest($endpoint, $params); + return array_merge($credentials, $response, array('timestamp' => time())); + } + + /** + * Makes an HTTP request to the given URL and extracts the returned OAuth2 + * response. + * @param string $url the URL to make the request to + * @param array $params the parameters to include in the POST body + * @return OAuthToken the returned token + */ + protected function MakeRequest($url, $params) { + $ch = $this->curlUtils->CreateSession($url); + $this->curlUtils->SetOpt($ch, CURLOPT_POSTFIELDS, $params); + $response = $this->curlUtils->Exec($ch); + $error = $this->curlUtils->Error($ch); + $httpCode = $this->curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE); + $this->curlUtils->Close($ch); + + if (!empty($error)) { + throw new OAuth2Exception($error, $httpCode); + } + if ($httpCode != 200) { + throw new OAuth2Exception($response, $httpCode); + } + return json_decode($response, TRUE); + } +} diff --git a/src/Google/Api/Ads/Common/Util/SoapRequestXmlFixer.php b/src/Google/Api/Ads/Common/Util/SoapRequestXmlFixer.php new file mode 100755 index 000000000..2c4ce8037 --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/SoapRequestXmlFixer.php @@ -0,0 +1,234 @@ +TRUE if xsi:types should be added + * to all complex type elements + * @param boolean $removeEmptyElements TRUE if all empty elements + * should be removed from the XML request + * @param boolean $replaceReferences TRUE if element references + * should be replaced with a copy of the element. + */ + public function __construct($addXsiTypes, $removeEmptyElements, + $replaceReferences) { + $this->addXsiTypes = $addXsiTypes; + $this->removeEmptyElements = $removeEmptyElements; + $this->replaceReferences = $replaceReferences; + } + + /** + * Fixes the XML based on the parameters specified in the constructor. + * @param string $request the raw request produced by the SOAP client + * @param array $arguments the arguments passed to the SOAP method + * @param array $headers the headers used in the request + * @return string the prepared request ready to be sent to the server + */ + public function FixXml($request, array $arguments, array $headers) { + $requestDom = XmlUtils::GetDomFromXml($request); + $xpath = new DOMXPath($requestDom); + + // Fix headers. + $headersDomNodes = $xpath->query( + "//*[local-name()='Envelope']/*[local-name()='Header']/*"); + $this->FixXmlNodes($headersDomNodes, $headers, $xpath); + + // Fix body. + $argumentsDomNodes = $xpath->query( + "//*[local-name()='Envelope']/*[local-name()='Body']/*"); + $this->FixXmlNodes($argumentsDomNodes, $arguments, $xpath); + + // Remove empty headers. + if ($this->removeEmptyElements) { + $this->RemoveEmptyHeaderElements($xpath); + } + + // Remove id attributes. + if ($this->replaceReferences) { + $this->RemoveIdAttributes($xpath); + } + + return $requestDom->saveXML(); + } + + /** + * Fix a list of nodes corresponding to an array of objects. + * @param DOMNodeList $nodeList the node list matching $objects + * @param array $objects the objects array matching $nodeList + * @param DOMXPath $xpath the xpath object representing the DOM + */ + private function FixXmlNodes(DOMNodeList $nodeList, array $objects, + DOMXPath $xpath) { + if ($nodeList->length == sizeof($objects)) { + $i = 0; + foreach ($objects as $object) { + $this->FixXmlNode($nodeList->item($i), $object, $xpath); + $i++; + } + } + } + + /** + * Fix a node corresponding to an objects. + * @param DOMNode $node the node matching $object + * @param mixed $object the object matching $node + * @param DOMXPath $xpath the xpath object representing the DOM + */ + private function FixXmlNode(DOMNode $node, $object, DOMXPath $xpath) { + if ($object instanceof SoapHeader) { + $this->FixXmlNode($node, $object->data, $xpath); + } elseif ($object instanceof SoapVar) { + $this->FixXmlNode($node, $object->enc_value, $xpath); + } else { + if ($this->addXsiTypes && is_object($object)) { + $this->AddXsiType($node, $object); + } + + // Remove empty elements. + if ($this->removeEmptyElements && !isset($object)) { + $node->parentNode->removeChild($node); + } + + // Replace element references. + if ($this->replaceReferences && $node->hasAttribute('href')) { + $this->ReplaceElementReference($node, $xpath); + } + + if (is_object($object)) { + foreach (get_object_vars($object) as $varName => $varValue) { + $nodeList = + $xpath->query("*[local-name() = '" . $varName . "']", $node); + + if (is_array($varValue)) { + $this->FixXmlNodes($nodeList, $varValue, $xpath); + } else if ($nodeList->length == 1) { + $this->FixXmlNode($nodeList->item(0), $varValue, $xpath); + } + } + } + } + } + + /** + * Adds the xsi:type to the DOMNode generated from the corresponding object. + * @param DOMNode $domNode the DOM node corresponding to the object + * @param $object the object used to determine the xsi:type + * @access private + */ + private function AddXsiType(DOMNode $domNode, $object) { + $xsiType = $domNode->getAttributeNS(self::$XSI_NAMESPACE, 'xsi:type'); + if (method_exists($object, 'getXsiTypeName') + && method_exists($object, 'getNamespace') + && empty($xsiType)) { + $xsiTypeName = $object->getXsiTypeName(); + if (isset($xsiTypeName) && $xsiTypeName != '') { + $prefix = $domNode->lookupPrefix($object->getNamespace()); + $domNode->setAttributeNS(self::$XSI_NAMESPACE, 'xsi:type', + (isset($prefix) ? $prefix . ':' : '') . $xsiTypeName); + } + } + } + + /** + * Replaces an element reference with a copy of the element it references. + * @param DOMElement $elementReference the element reference to replace + * @param DOMXPath $xpath the xpath object representing the DOM + * @access private + */ + private function ReplaceElementReference(DOMElement $elementReference, + DOMXPath $xpath) { + $href = $elementReference->getAttribute('href'); + if (version_compare(PHP_VERSION, '5.2.2', '>=') + && version_compare(PHP_VERSION, '5.2.4', '<')) { + // These versions have a bug where href is generated without the # symbol. + $href = '#' . $href; + } + $id = substr($href, 1); + $referencedElements = $xpath->query('//*[@id="' . $id . '"]'); + if ($referencedElements->length > 0) { + $referencedElement = $referencedElements->item(0); + for ($i = 0; $i < $referencedElement->childNodes->length; $i++) { + $childNode = $referencedElement->childNodes->item($i); + $elementReference->appendChild($childNode->cloneNode(true)); + } + $elementReference->removeAttribute('href'); + } + } + + /** + * Removed id attributes leftover after reference replacement. + * @param DOMXPath $xpath the xpath object representing the DOM + * @access private + */ + private function RemoveIdAttributes(DOMXPath $xpath) { + $elements = $xpath->query('//*[@id]'); + for ($i = 0; $i < $elements->length; $i++) { + $element = $elements->item($i); + $element->removeAttribute('id'); + } + } + + /** + * Removes empty header elements from the request. + * @param DOMXPath $xpath the xpath object representing the DOM + * @access private + */ + private function RemoveEmptyHeaderElements(DOMXPath $xpath) { + $requestHeaderDom = $xpath->query( + "//*[local-name()='Envelope']/*[local-name()='Header']" + . "/*[local-name()='RequestHeader']")->item(0); + + $childNodes = $requestHeaderDom->childNodes; + + foreach ($childNodes as $childNode) { + if ($childNode->nodeValue == NULL) { + $requestHeaderDom->removeChild($childNode); + } + } + } +} + diff --git a/src/Google/Api/Ads/Common/Util/UrlUtils.php b/src/Google/Api/Ads/Common/Util/UrlUtils.php new file mode 100755 index 000000000..e04009f2d --- /dev/null +++ b/src/Google/Api/Ads/Common/Util/UrlUtils.php @@ -0,0 +1,79 @@ +$xml. + * @param string $xml the XML to create a DOMDocument from + * @return DOMDocument the DOMDocument of the XML + * @throws DOMException if the DOM could not be loaded + */ + public static function GetDomFromXml($xml) { + set_error_handler(array('XmlUtils', 'HandleXmlError')); + $dom = new DOMDocument(); + $dom->loadXML($xml, + LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_NOENT | LIBXML_XINCLUDE); + restore_error_handler(); + return $dom; + } + + /** + * Gets the XML represenation of the document. + * @param DOMDocument $document the document to convert + * @return string the XML represenation of the document + */ + public static function GetXmlFromDom($document) { + return trim($document->saveXml()); + } + + /** + * Returns a pretty printed XML. If the XML cannot be loaded a string + * stripped of any newlines is returned. + * @param string $xml the XML to pretty print + * @return string a pretty printed string + */ + public static function PrettyPrint($xml) { + try { + $dom = self::GetDomFromXml($xml); + $dom->formatOutput = true; + return self::GetXmlFromDom($dom); + } catch (DOMException $e) { + restore_error_handler(); + return str_replace(array("\r\n", "\n", "\r"), '', $xml); + } + } + + /** + * Converts a DOMDocument to a stdClass object, where each element under + * the root node is a field. Atribute values are ignored. + * @param DOMDocument $document the document to convert + * @returns Object the converted object + */ + public static function ConvertDocumentToObject($document) { + return self::ConvertElementToObject($document->documentElement); + } + + /** + * Converts a DOMElement to a stdClass object, where each child element is + * a field. Attribute values are ignored. + * @param DOMElement $element the element to convert + * @returns Object the converted object + */ + private static function ConvertElementToObject($element) { + $result = array(); + if ($element->hasChildNodes()) { + $numChildNodes = $element->childNodes->length; + for ($i = 0; $i < $numChildNodes; $i++) { + $childNode = $element->childNodes->item($i); + if ($childNode instanceof DOMElement) { + $name = $childNode->tagName; + $value = self::ConvertElementToObject($childNode); + if (isset($result[$name])) { + if (!is_array($result[$name])) { + $result[$name] = array($result[$name]); + } + $result[$name][] = $value; + } else { + $result[$name] = $value; + } + } + } + } + if (sizeof($result) > 0) { + return (Object) $result; + } else { + return self::ConvertNodeValueToObject($element->nodeValue); + } + } + + /** + * Converts a node value to a PHP value of the appropriate type. + * @param string $value the value of the node + * @return mixed the PHP value as the appropriate type + */ + private static function ConvertNodeValueToObject($value) { + if (is_numeric($value)) { + if (strcmp(strval(intval($value)), $value) === 0) { + return intval($value); + } elseif (strcmp(sprintf('%.0f', floatval($value)), $value) === 0) { + return floatval($value); + } else { + return $value; + } + } else if (strtolower($value) == 'true' || strtolower($value) == 'false') { + return filter_var($value, FILTER_VALIDATE_BOOLEAN); + } else { + return $value; + } + } + + /** + * Converts an object to a DOMDocument. The root element name is passed in as + * a parameter, and each field of the object becomes a child element. Array + * values are represented by multiples instances of that element. Methods on + * the object are ignored. There is no support for XML attributes. + * @param Object $object the object to serialize + * @param string $rootElementName the name of the root element + * @return DOMDocument the document representing the object + */ + public static function ConvertObjectToDocument($object, $rootElementName) { + $document = new DOMDocument(); + $document->appendChild( + self::ConvertObjectToElement($object, $rootElementName, $document)); + return $document; + } + + /** + * Converts an object to an DOMElement. + * @param Object $object the object to serialize + * @param string $elementName the name of the element to serialize + * @param DOMDocument $document the document that the element will be added to + * @return DOMElement the element representing the object + */ + private static function ConvertObjectToElement($object, $elementName, + $document) { + if (!isset($object)) { + return NULL; + } + $element = $document->createElement($elementName); + $children = array(); + if (is_array($object) && MapUtils::IsMap($object)) { + $object = (Object) $object; + } + if (is_object($object)) { + foreach(get_object_vars($object) as $field => $value) { + if (is_array($value) && !MapUtils::IsMap($value)) { + foreach($value as $item) { + $children[] = + self::ConvertObjectToElement($item, $field, $document); + } + } else { + $children[] = + self::ConvertObjectToElement($value, $field, $document); + } + } + foreach ($children as $child) { + if (isset($child)) { + $element->appendChild($child); + } + } + } else { + $element->nodeValue = self::ConvertObjectToNodeValue($object); + } + return $element; + } + + /** + * Converts a PHP value to a string for use in an XML node value. + * @param mixed $object the PHP value + * @returns string the string value of the object + */ + private static function ConvertObjectToNodeValue($object) { + if (is_float($object)) { + if (floatval(strval($object)) == $object) { + return strval($object); + } else { + return sprintf('%.0f', $object); + } + } else if (is_bool($object)) { + return $object ? 'true': 'false'; + } else { + return strval($object); + } + } + + /** + * Caputures the warnings thrown by the loadXML function to create a proper + * DOMException. + * @param string $errno contains the level of the error raised, as an integer + * @param string $errstr contains the error message, as a string + * @param string $errfile contains the filename that the error was raised in, + * as a string + * @param integer $errline contains the line number the error was raised at, + * as an integer + * @return boolean FALSE if the normal error handler should + * continue + */ + public static function HandleXmlError($errno, $errstr, $errfile, $errline) { + if ($errno == E_WARNING + && substr_count($errstr, 'DOMDocument::loadXML()') > 0) { + throw new DOMException($errstr); + } else { + return FALSE; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php new file mode 100755 index 000000000..b9e666619 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php @@ -0,0 +1,136 @@ +NULL if working in + * non-WSDL mode + * @param array $options the SOAP client options + * @param AdsUser $user the user which is responsible for this client + * @param string $serviceName the name of the service which is making this + * call + * @param string $serviceNamespace the namespace of the service + */ + public function __construct($wsdl, array $options, AdsUser $user, + $serviceName, $serviceNamespace) { + parent::__construct($wsdl, $options, $user, $serviceName, + $serviceNamespace); + } + + /** + * Generates the SOAP header for the client. + * @return SoapHeader the instantiated SoapHeader ready to set + * @access protected + */ + protected function GenerateSoapHeader() { + $headerObject = $this->Create('SoapRequestHeader'); + foreach (get_object_vars($headerObject) as $var => $value) { + switch ($var) { + case 'authentication': + $oAuth2Info = $this->user->GetOAuth2Info(); + $oAuth2Handler = $this->user->GetOAuth2Handler(); + if (!empty($oAuth2Info)) { + $oAuth2Info = $oAuth2Handler->GetOrRefreshAccessToken($oAuth2Info); + $this->user->SetOAuth2Info($oAuth2Info); + if ($oAuth2Handler->IsAccessTokenValid($oAuth2Info)) { + $authentication = $this->Create('OAuth'); + $authentication->parameters = + $oAuth2Handler->FormatCredentialsForHeader($oAuth2Info); + } + } else { + $authentication = $this->Create('ClientLogin'); + $authentication->token = $this->GetHeaderValue('authToken'); + } + $headerObject->$var = $authentication; + break; + default: + $headerObject->$var = $this->GetHeaderValue($var); + } + } + return new SoapHeader($this->serviceNamespace, 'RequestHeader', + $headerObject, FALSE); + } + + /** + * Removes the authentication information from the request before being + * logged. + * @param string $request the request with sensitive data to remove + * @return string the request with the authentication token removed + * @access protected + */ + protected function RemoveSensitiveInfo($request) { + $tags = array('authToken', 'authentication'); + $regexFormat = '/(<(?:[^:]+:)?%s(?:\s[^>]*)?>).*(<\/(?:[^:]+:)?%s\s*>)/sU'; + $result = $request; + foreach ($tags as $tag) { + $regex = sprintf($regexFormat, $tag, $tag); + $result = preg_replace($regex, '\1*****\2', $result); + } + return isset($result) ? $result : $request; + } + + /** + * Generates the request info message containing: + *

        + *
      • email
      • + *
      • service
      • + *
      • method
      • + *
      • responseTime
      • + *
      • requestId
      • + *
      • server
      • + *
      • isFault
      • + *
      • faultMessage
      • + *
      + * @return string the request info message to log + * @access protected + */ + protected function GenerateRequestInfoMessage() { + return 'email=' . $this->GetEmail() . ' service=' . $this->GetServiceName() + . ' method=' . $this->GetLastMethodName() . ' responseTime=' + . $this->GetLastResponseTime() . ' requestId=' + . $this->GetLastRequestId() . ' server=' . $this->GetServer() + . ' isFault=' . $this->IsFault() . ' faultMessage=' + . $this->GetLastFaultMessage(); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Lib/DfpSoapClientFactory.php b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClientFactory.php new file mode 100755 index 000000000..5a0412f32 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClientFactory.php @@ -0,0 +1,62 @@ +GetVersion(), $serviceName . '.php')); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Lib/DfpUser.php b/src/Google/Api/Ads/Dfp/Lib/DfpUser.php new file mode 100755 index 000000000..b96f9f5e2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/DfpUser.php @@ -0,0 +1,362 @@ +The DfpUser class can be configured in one of two ways: + *
        + *
      1. Using an authenitcation INI file
      2. + *
      3. Using supplied credentials
      4. + *

      + *

      If an authentication INI file is provided and successfully loaded, those + * values will be used unless a corresponding parameter overwrites it. + * If the authentication INI file is not provided (e.g. it is NULL) + * the class will attempt to load the default authentication file at the path + * of "../auth.ini" relative to this file's directory. Any corresponding + * parameter, which is not NULL will however, overwrite any + * parameter loaded from the default INI.

      + *

      Likewise, if a custom settings INI file is not provided, the default + * settings INI file will be loaded from the path of "../settings.ini" + * relative to this file's directory.

      + * @param string $authenticationIniPath the absolute path to the + * authentication INI or relative to the current directory (cwd). If + * NULL, the default authentication INI file will attempt to be + * loaded + * @param string $email the email of the user (required header). Will + * overwrite the email entry loaded from any INI file + * @param string $password the password of the user (required header). Will + * overwrite the password entry loaded from any INI file + * @param string $applicationName the application name (required header). Will + * be prepended with the library name and version. Will also overwrite the + * applicationName entry in any INI file + * @param string $networkCode the network code the user belongs to + * (optional header). Can be left NULL if the user only belongs + * to one network. Will overwrite the networkCode entry in any INI + * file + * @param string $settingsIniPath the path to the settings INI file. If + * NULL, the default settings INI file will be loaded + * @param string $authToken the authToken to use for requests + * @param array $oauth2Info the OAuth 2.0 information to use for requests + */ + public function __construct($authenticationIniPath = NULL, $email = NULL, + $password = NULL, $applicationName = NULL, $networkCode = NULL, + $settingsIniPath = NULL, $authToken = NULL, $oauth2Info = NULL) { + parent::__construct(); + + $buildIniDfp = parse_ini_file(dirname(__FILE__) . '/build.ini', + false); + $buildIniCommon = parse_ini_file(dirname(__FILE__) . + '/../../Common/Lib/build.ini', false); + $this->libName = $buildIniDfp['LIB_NAME']; + $this->libVersion = $buildIniCommon['LIB_VERSION']; + + $apiProps = ApiPropertiesUtils::ParseApiPropertiesFile(dirname(__FILE__) . + '/api.properties'); + $versions = explode(',', $apiProps['api.versions']); + $this->defaultVersion = $versions[count($versions) - 1]; + $this->defaultServer = $apiProps['api.server']; + + if (isset($authenticationIniPath)) { + $authenticationIni = + parse_ini_file(realpath($authenticationIniPath), TRUE); + } else { + $authenticationIni = + parse_ini_file(dirname(__FILE__) . '/../auth.ini', TRUE); + } + + $email = $this->GetAuthVarValue($email, 'email', $authenticationIni); + $password = $this->GetAuthVarValue($password, 'password', + $authenticationIni); + $applicationName = $this->GetAuthVarValue($applicationName, + self::USER_AGENT_HEADER_NAME, $authenticationIni); + $networkCode = $this->GetAuthVarValue($networkCode, 'networkCode', + $authenticationIni); + $authToken = $this->GetAuthVarValue($authToken, 'authToken', + $authenticationIni); + $oauth2Info = $this->GetAuthVarValue($oauth2Info, 'OAUTH2', + $authenticationIni); + + $this->SetEmail($email); + $this->SetPassword($password); + $this->SetAuthToken($authToken); + $this->SetOAuth2Info($oauth2Info); + $this->SetApplicationName($applicationName); + $this->SetClientLibraryUserAgent($applicationName); + $this->SetNetworkCode($networkCode); + + if (!isset($settingsIniPath)) { + $settingsIniPath = dirname(__FILE__) . '/../settings.ini'; + } + + $this->loadSettings($settingsIniPath, + $this->defaultVersion, + $this->defaultServer, + getcwd(), dirname(__FILE__)); + } + + /** + * Gets the service by its service name. + * @param $serviceName the service name + * @param string $version the version of the service to get. If + * NULL, then the default version will be used + * @param string $server the server to make the request to. If + * NULL, then the default server will be used + * @param SoapClientFactory $serviceFactory the factory to create the client. + * If NULL, then the built-in SOAP client factory will be used + * @return SoapClient the instantiated service + */ + public function GetService($serviceName, $version = NULL, $server = NULL, + SoapClientFactory $serviceFactory = NULL) { + $this->ValidateUser(); + if (!isset($serviceFactory)) { + if (!isset($version)) { + $version = $this->GetDefaultVersion(); + } + + if (!isset($server)) { + $server = $this->GetDefaultServer(); + } + + $serviceFactory = new DfpSoapClientFactory($this, $version, $server); + } + + return parent::GetServiceSoapClient($serviceName, $serviceFactory); + } + + /** + * Regenerates the authentication token and sets it for this user. + * @param string $server The server to retrieve the token from. + * @return string The newly generated auth token. + */ + public function RegenerateAuthToken($server = NULL) { + if (!isset($server)) { + $server = $this->GetAuthServer(); + } + $authTokenClient = new AuthToken($this->email, $this->password, 'gam', + $this->GetClientLibraryUserAgent(), 'GOOGLE', $server); + $authToken = $authTokenClient->GetAuthToken(); + $this->SetAuthToken($authToken); + return $authToken; + } + + /** + * Gets the authentication token. + * @return string the auth token + */ + public function GetAuthToken() { + $authToken = $this->GetHeaderValue('authToken'); + if (!isset($authToken) && isset($this->email) && isset($this->password)) { + $authToken = $this->RegenerateAuthToken(); + } + return $authToken; + } + + /** + * Sets the authentication token. + * @param string $authToken the auth token to set + */ + public function SetAuthToken($authToken) { + $this->SetHeaderValue('authToken', $authToken); + } + + /** + * Gets the code for the network that this user belongs to. + * @return string the network code + */ + public function GetNetworkCode() { + return $this->GetHeaderValue('networkCode'); + } + + /** + * Sets the code for the network that this user belongs to. + * @param string $networkCode the network code + */ + public function SetNetworkCode($networkCode) { + $this->SetHeaderValue('networkCode', $networkCode); + } + + /** + * Gets the raw application name for this user. + * @return string The raw application name. + */ + public function GetApplicationName() { + return $this->applicationName; + } + + /** + * Sets the raw application name for this user. + * @param string $applicationName The raw application name. + */ + public function SetApplicationName($applicationName) { + $this->applicationName = $applicationName; + } + + /** + * @see AdsUser::GetUserAgentHeaderName() + */ + public function GetUserAgentHeaderName() { + return self::USER_AGENT_HEADER_NAME; + } + + /** + * @see AdsUser::GetClientLibraryNameAndVersion() + */ + public function GetClientLibraryNameAndVersion() { + return array($this->libName, $this->libVersion); + } + + /** + * Gets the email address of the user login. + * @return string the user login email + */ + public function GetEmail() { + return $this->email; + } + + /** + * Sets the email address of the user login. + * @param string $email the user login email + */ + public function SetEmail($email) { + $this->email = $email; + } + + /** + * Gets the password for this user. + * @return string the password for this user + */ + public function GetPassword() { + return $this->password; + } + + /** + * Sets the password for this user. + * @param string $password the password for this user + */ + public function SetPassword($password) { + $this->password = $password; + } + + /** + * Get the default OAuth2 Handler for this user. + * @param NULL|string $className the name of the oauth2Handler class or NULL + * @return mixed the configured OAuth2Handler class + */ + public function GetDefaultOAuth2Handler($className = NULL) { + $className = !empty($className) ? $className : self::OAUTH2_HANDLER_CLASS; + return new $className($this->GetAuthServer(), self::OAUTH2_SCOPE); + } + + /** + * Validates the user and throws a validation error if there are any errors. + * @throws ValidationException if there are any validation errors + */ + public function ValidateUser() { + if ($this->GetOAuth2Info() !== NULL) { + parent::ValidateOAuth2Info(); + } else if ($this->GetAuthToken() == NULL) { + if (!isset($this->email)) { + throw new ValidationException('email', NULL, + 'email is required and cannot be NULL.'); + } + + if (!isset($this->password)) { + throw new ValidationException('password', NULL, + 'password is required and cannot be NULL.'); + } + // Generate an authToken. + $this->RegenerateAuthToken(); + } + + if ($this->GetApplicationName() === NULL + || trim($this->GetApplicationName()) === '' + || strpos($this->GetApplicationName(), + self::DEFAULT_APPLICATION_NAME) !== false) { + throw new ValidationException('applicationName', NULL, + sprintf("The property applicationName is required and cannot be " + . "NULL, the empty string, or the default [%s]", + self::DEFAULT_APPLICATION_NAME)); + } + } + + /** + * Handles calls to undefined methods. + * @param string $name the name of the method being called + * @param array $arguments the arguments passed to the method + * @return mixed the result of the correct method call, or nothing if there + * is no correct method + */ + public function __call($name, $arguments) { + // Handle calls to legacy Get*Service() methods. + if (preg_match('/^Get(\w+Service)$/i', $name, $matches)) { + $serviceName = $matches[1]; + array_unshift($arguments, $serviceName); + return call_user_func_array(array($this, 'GetService'), $arguments); + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/Lib/api.properties b/src/Google/Api/Ads/Dfp/Lib/api.properties new file mode 100755 index 000000000..e3667a343 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/api.properties @@ -0,0 +1,239 @@ +;; Library +lib.product=Dfp +lib.package=GoogleApiAdsDfp +lib.author= + +;; WSDL2PHP +;; Optionally specify a proxy to use when processing the WSDLs in the format +;; tcp://host:port. +wsdl2php.proxy= +;; If enabled, class names (but not service names) will be prefixed with the +;; package name. Ex) GoogleApiAdsAdWords_Campaign +wsdl2php.enablePseudoNamespaces=false +;; Class map to be used if pseudo-namespace support is not enabled, to work +;; around common conflicts, in JSON format. +wsdl2php.conflictClassmap={"DateTime":"DfpDateTime", "Location":"DfpLocation", "OAuth":"DfpOAuth"} +;; Other class fixes. +wsdl2php.classmap= +wsdl2php.skipClassNameCheckTypes= + +;; API +api.server=https://www.google.com +api.versions=v201208,v201211,v201302,v201306,v201308,v201311 + +;; v201208 +api.versions.v201208.services=AudienceSegmentService,CompanyService,ContentService,CreativeService,CreativeSetService,CreativeTemplateService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,NetworkService,OrderService,PlacementService,PublisherQueryLanguageService,ReportService,SuggestedAdUnitService,TeamService,ThirdPartySlotService,UserService,UserTeamAssociationService +api.versions.v201208.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201208/AudienceSegmentService?wsdl +api.versions.v201208.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201208/CompanyService?wsdl +api.versions.v201208.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201208/ContentService?wsdl +api.versions.v201208.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201208/CreativeService?wsdl +api.versions.v201208.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201208/CreativeSetService?wsdl +api.versions.v201208.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201208/CreativeTemplateService?wsdl +api.versions.v201208.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201208/CustomFieldService?wsdl +api.versions.v201208.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201208/CustomTargetingService?wsdl +api.versions.v201208.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201208/ForecastService?wsdl +api.versions.v201208.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201208/InventoryService?wsdl +api.versions.v201208.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201208/LabelService?wsdl +api.versions.v201208.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201208/LineItemService?wsdl +api.versions.v201208.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201208/LineItemCreativeAssociationService?wsdl +api.versions.v201208.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201208/NetworkService?wsdl +api.versions.v201208.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201208/OrderService?wsdl +api.versions.v201208.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201208/PlacementService?wsdl +api.versions.v201208.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201208/PublisherQueryLanguageService?wsdl +api.versions.v201208.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201208/ReportService?wsdl +api.versions.v201208.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201208/SuggestedAdUnitService?wsdl +api.versions.v201208.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201208/TeamService?wsdl +api.versions.v201208.services.ThirdPartySlotService.wsdl=${api.server}/apis/ads/publisher/v201208/ThirdPartySlotService?wsdl +api.versions.v201208.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201208/UserService?wsdl +api.versions.v201208.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201208/UserTeamAssociationService?wsdl + +;; v201211 +api.versions.v201211.services=AudienceSegmentService,CompanyService,ContentService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,NetworkService,OrderService,PlacementService,PublisherQueryLanguageService,ReportService,SuggestedAdUnitService,TeamService,ThirdPartySlotService,UserService,UserTeamAssociationService +api.versions.v201211.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201211/AudienceSegmentService?wsdl +api.versions.v201211.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201211/CompanyService?wsdl +api.versions.v201211.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201211/ContentService?wsdl +api.versions.v201211.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201211/CreativeService?wsdl +api.versions.v201211.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201211/CreativeSetService?wsdl +api.versions.v201211.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201211/CreativeTemplateService?wsdl +api.versions.v201211.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201211/CreativeWrapperService?wsdl +api.versions.v201211.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201211/CustomFieldService?wsdl +api.versions.v201211.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201211/CustomTargetingService?wsdl +api.versions.v201211.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201211/ForecastService?wsdl +api.versions.v201211.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201211/InventoryService?wsdl +api.versions.v201211.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201211/LabelService?wsdl +api.versions.v201211.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201211/LineItemService?wsdl +api.versions.v201211.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201211/LineItemCreativeAssociationService?wsdl +api.versions.v201211.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201211/NetworkService?wsdl +api.versions.v201211.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201211/OrderService?wsdl +api.versions.v201211.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201211/PlacementService?wsdl +api.versions.v201211.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201211/PublisherQueryLanguageService?wsdl +api.versions.v201211.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201211/ReportService?wsdl +api.versions.v201211.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201211/SuggestedAdUnitService?wsdl +api.versions.v201211.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201211/TeamService?wsdl +api.versions.v201211.services.ThirdPartySlotService.wsdl=${api.server}/apis/ads/publisher/v201211/ThirdPartySlotService?wsdl +api.versions.v201211.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201211/UserService?wsdl +api.versions.v201211.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201211/UserTeamAssociationService?wsdl + +;; v201302 +api.versions.v201302.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,CompanyService,ContactService,ContentService,ContentBundleService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,NetworkService,OrderService,PlacementService,PublisherQueryLanguageService,ReportService,SuggestedAdUnitService,TeamService,ThirdPartySlotService,UserService,UserTeamAssociationService +api.versions.v201302.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201302/ActivityService?wsdl +api.versions.v201302.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201302/ActivityGroupService?wsdl +api.versions.v201302.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201302/AdRuleService?wsdl +api.versions.v201302.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201302/AudienceSegmentService?wsdl +api.versions.v201302.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201302/CompanyService?wsdl +api.versions.v201302.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201302/ContactService?wsdl +api.versions.v201302.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201302/ContentService?wsdl +api.versions.v201302.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201302/ContentBundleService?wsdl +api.versions.v201302.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201302/CreativeService?wsdl +api.versions.v201302.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201302/CreativeSetService?wsdl +api.versions.v201302.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201302/CreativeTemplateService?wsdl +api.versions.v201302.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201302/CreativeWrapperService?wsdl +api.versions.v201302.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201302/CustomFieldService?wsdl +api.versions.v201302.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201302/CustomTargetingService?wsdl +api.versions.v201302.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201302/ForecastService?wsdl +api.versions.v201302.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201302/InventoryService?wsdl +api.versions.v201302.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201302/LabelService?wsdl +api.versions.v201302.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201302/LineItemService?wsdl +api.versions.v201302.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201302/LineItemCreativeAssociationService?wsdl +api.versions.v201302.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201302/NetworkService?wsdl +api.versions.v201302.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201302/OrderService?wsdl +api.versions.v201302.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201302/PlacementService?wsdl +api.versions.v201302.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201302/PublisherQueryLanguageService?wsdl +api.versions.v201302.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201302/ReportService?wsdl +api.versions.v201302.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201302/SuggestedAdUnitService?wsdl +api.versions.v201302.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201302/TeamService?wsdl +api.versions.v201302.services.ThirdPartySlotService.wsdl=${api.server}/apis/ads/publisher/v201302/ThirdPartySlotService?wsdl +api.versions.v201302.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201302/UserService?wsdl +api.versions.v201302.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201302/UserTeamAssociationService?wsdl + +;; v201306 +api.versions.v201306.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,NetworkService,OrderService,PlacementService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,RateCardCustomizationService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowActionService +api.versions.v201306.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201306/ActivityService?wsdl +api.versions.v201306.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201306/ActivityGroupService?wsdl +api.versions.v201306.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201306/AdRuleService?wsdl +api.versions.v201306.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201306/AudienceSegmentService?wsdl +api.versions.v201306.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201306/BaseRateService?wsdl +api.versions.v201306.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201306/CompanyService?wsdl +api.versions.v201306.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201306/ContactService?wsdl +api.versions.v201306.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201306/ContentService?wsdl +api.versions.v201306.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201306/ContentBundleService?wsdl +api.versions.v201306.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201306/CreativeService?wsdl +api.versions.v201306.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201306/CreativeSetService?wsdl +api.versions.v201306.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201306/CreativeTemplateService?wsdl +api.versions.v201306.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201306/CreativeWrapperService?wsdl +api.versions.v201306.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201306/CustomFieldService?wsdl +api.versions.v201306.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201306/CustomTargetingService?wsdl +api.versions.v201306.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201306/ForecastService?wsdl +api.versions.v201306.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201306/InventoryService?wsdl +api.versions.v201306.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201306/LabelService?wsdl +api.versions.v201306.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201306/LineItemService?wsdl +api.versions.v201306.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201306/LineItemCreativeAssociationService?wsdl +api.versions.v201306.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201306/LineItemTemplateService?wsdl +api.versions.v201306.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201306/NetworkService?wsdl +api.versions.v201306.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201306/OrderService?wsdl +api.versions.v201306.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201306/PlacementService?wsdl +api.versions.v201306.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201306/ProductService?wsdl +api.versions.v201306.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201306/ProductTemplateService?wsdl +api.versions.v201306.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201306/ProposalService?wsdl +api.versions.v201306.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201306/ProposalLineItemService?wsdl +api.versions.v201306.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201306/PublisherQueryLanguageService?wsdl +api.versions.v201306.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201306/RateCardService?wsdl +api.versions.v201306.services.RateCardCustomizationService.wsdl=${api.server}/apis/ads/publisher/v201306/RateCardCustomizationService?wsdl +api.versions.v201306.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201306/ReconciliationOrderReportService?wsdl +api.versions.v201306.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201306/ReconciliationReportService?wsdl +api.versions.v201306.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201306/ReconciliationReportRowService?wsdl +api.versions.v201306.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201306/ReportService?wsdl +api.versions.v201306.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201306/SuggestedAdUnitService?wsdl +api.versions.v201306.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201306/TeamService?wsdl +api.versions.v201306.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201306/UserService?wsdl +api.versions.v201306.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201306/UserTeamAssociationService?wsdl +api.versions.v201306.services.WorkflowActionService.wsdl=${api.server}/apis/ads/publisher/v201306/WorkflowActionService?wsdl + +;; v201308 +api.versions.v201308.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,NetworkService,OrderService,PlacementService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,RateCardCustomizationService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowActionService +api.versions.v201308.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201308/ActivityService?wsdl +api.versions.v201308.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201308/ActivityGroupService?wsdl +api.versions.v201308.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201308/AdRuleService?wsdl +api.versions.v201308.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201308/AudienceSegmentService?wsdl +api.versions.v201308.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201308/BaseRateService?wsdl +api.versions.v201308.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201308/CompanyService?wsdl +api.versions.v201308.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201308/ContactService?wsdl +api.versions.v201308.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201308/ContentService?wsdl +api.versions.v201308.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201308/ContentBundleService?wsdl +api.versions.v201308.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201308/CreativeService?wsdl +api.versions.v201308.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201308/CreativeSetService?wsdl +api.versions.v201308.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201308/CreativeTemplateService?wsdl +api.versions.v201308.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201308/CreativeWrapperService?wsdl +api.versions.v201308.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201308/CustomFieldService?wsdl +api.versions.v201308.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201308/CustomTargetingService?wsdl +api.versions.v201308.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201308/ForecastService?wsdl +api.versions.v201308.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201308/InventoryService?wsdl +api.versions.v201308.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201308/LabelService?wsdl +api.versions.v201308.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201308/LineItemService?wsdl +api.versions.v201308.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201308/LineItemCreativeAssociationService?wsdl +api.versions.v201308.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201308/LineItemTemplateService?wsdl +api.versions.v201308.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201308/NetworkService?wsdl +api.versions.v201308.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201308/OrderService?wsdl +api.versions.v201308.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201308/PlacementService?wsdl +api.versions.v201308.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201308/ProductService?wsdl +api.versions.v201308.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201308/ProductTemplateService?wsdl +api.versions.v201308.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201308/ProposalService?wsdl +api.versions.v201308.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201308/ProposalLineItemService?wsdl +api.versions.v201308.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201308/PublisherQueryLanguageService?wsdl +api.versions.v201308.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201308/RateCardService?wsdl +api.versions.v201308.services.RateCardCustomizationService.wsdl=${api.server}/apis/ads/publisher/v201308/RateCardCustomizationService?wsdl +api.versions.v201308.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201308/ReconciliationOrderReportService?wsdl +api.versions.v201308.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201308/ReconciliationReportService?wsdl +api.versions.v201308.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201308/ReconciliationReportRowService?wsdl +api.versions.v201308.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201308/ReportService?wsdl +api.versions.v201308.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201308/SuggestedAdUnitService?wsdl +api.versions.v201308.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201308/TeamService?wsdl +api.versions.v201308.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201308/UserService?wsdl +api.versions.v201308.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201308/UserTeamAssociationService?wsdl +api.versions.v201308.services.WorkflowActionService.wsdl=${api.server}/apis/ads/publisher/v201308/WorkflowActionService?wsdl + +;; v201311 +api.versions.v201311.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,ContentMetadataKeyHierarchyService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ExchangeRateService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,NetworkService,OrderService,PlacementService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,RateCardCustomizationService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowRequestService +api.versions.v201311.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201311/ActivityService?wsdl +api.versions.v201311.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201311/ActivityGroupService?wsdl +api.versions.v201311.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201311/AdRuleService?wsdl +api.versions.v201311.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201311/AudienceSegmentService?wsdl +api.versions.v201311.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201311/BaseRateService?wsdl +api.versions.v201311.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201311/CompanyService?wsdl +api.versions.v201311.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201311/ContactService?wsdl +api.versions.v201311.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201311/ContentService?wsdl +api.versions.v201311.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201311/ContentBundleService?wsdl +api.versions.v201311.services.ContentMetadataKeyHierarchyService.wsdl=${api.server}/apis/ads/publisher/v201311/ContentMetadataKeyHierarchyService?wsdl +api.versions.v201311.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201311/CreativeService?wsdl +api.versions.v201311.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201311/CreativeSetService?wsdl +api.versions.v201311.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201311/CreativeTemplateService?wsdl +api.versions.v201311.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201311/CreativeWrapperService?wsdl +api.versions.v201311.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201311/CustomFieldService?wsdl +api.versions.v201311.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201311/CustomTargetingService?wsdl +api.versions.v201311.services.ExchangeRateService.wsdl=${api.server}/apis/ads/publisher/v201311/ExchangeRateService?wsdl +api.versions.v201311.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201311/ForecastService?wsdl +api.versions.v201311.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201311/InventoryService?wsdl +api.versions.v201311.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201311/LabelService?wsdl +api.versions.v201311.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201311/LineItemService?wsdl +api.versions.v201311.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201311/LineItemCreativeAssociationService?wsdl +api.versions.v201311.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201311/LineItemTemplateService?wsdl +api.versions.v201311.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201311/NetworkService?wsdl +api.versions.v201311.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201311/OrderService?wsdl +api.versions.v201311.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201311/PlacementService?wsdl +api.versions.v201311.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201311/ProductService?wsdl +api.versions.v201311.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201311/ProductTemplateService?wsdl +api.versions.v201311.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201311/ProposalService?wsdl +api.versions.v201311.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201311/ProposalLineItemService?wsdl +api.versions.v201311.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201311/PublisherQueryLanguageService?wsdl +api.versions.v201311.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201311/RateCardService?wsdl +api.versions.v201311.services.RateCardCustomizationService.wsdl=${api.server}/apis/ads/publisher/v201311/RateCardCustomizationService?wsdl +api.versions.v201311.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201311/ReconciliationOrderReportService?wsdl +api.versions.v201311.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201311/ReconciliationReportService?wsdl +api.versions.v201311.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201311/ReconciliationReportRowService?wsdl +api.versions.v201311.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201311/ReportService?wsdl +api.versions.v201311.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201311/SuggestedAdUnitService?wsdl +api.versions.v201311.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201311/TeamService?wsdl +api.versions.v201311.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201311/UserService?wsdl +api.versions.v201311.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201311/UserTeamAssociationService?wsdl +api.versions.v201311.services.WorkflowRequestService.wsdl=${api.server}/apis/ads/publisher/v201311/WorkflowRequestService?wsdl + diff --git a/src/Google/Api/Ads/Dfp/Lib/build.ini b/src/Google/Api/Ads/Dfp/Lib/build.ini new file mode 100755 index 000000000..c91dff31d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Lib/build.ini @@ -0,0 +1,2 @@ +LIB_NAME = "DfpApi-PHP" + diff --git a/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php new file mode 100755 index 000000000..ede172d4a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php @@ -0,0 +1,183 @@ +date = new Date(); + $result->date->year = (int) $dateTime->format('Y'); + $result->date->month = (int) $dateTime->format('m'); + $result->date->day = (int) $dateTime->format('d'); + $result->hour = (int) $dateTime->format('H'); + $result->minute = (int) $dateTime->format('i'); + $result->second = (int) $dateTime->format('s'); + $result->timeZoneID = $dateTime->format('e'); + return $result; + } + + /** + * Converts a string in the form of {@code yyyy-MM-dd'T'HH:mm:ss±HH:mm} to a + * DfpDateTime. + */ + public static function ToDfpDateTimeFromString($dateTime) { + return self::ToDfpDateTime(DateTime::createFromFormat(self::ISO8601, + $dateTime)); + } + + /** + * Converts a string in the form of {@code yyyy-MM-dd'T'HH:mm:ss±HH:mm} to a + * DfpDateTime in the time zone supplied. + */ + public static function ToDfpDateTimeFromStringWithTimeZone($dateTime, + $timeZoneId) { + return self::ToDfpDateTime( + (new DateTime($dateTime, new DateTimeZone($timeZoneId)))); + } + + /** + * Converts a DfpDateTime to a PHP DateTime. + * + * @param DfpDateTime $dfpDateTime a DfpDateTime object + * @return DateTime a PHP DateTime object + */ + public static function FromDfpDateTime(DfpDateTime $dfpDateTime) { + $dateTimeString = sprintf("%d-%d-%dT%d:%d:%d", $dfpDateTime->date->year, + $dfpDateTime->date->month, $dfpDateTime->date->day, $dfpDateTime->hour, + $dfpDateTime->minute, $dfpDateTime->second); + return new DateTime($dateTimeString, + new DateTimeZone($dfpDateTime->timeZoneID)); + } + + /** + * Returns string representation of the specified DFP date. + * + * @param Date $dfpDate the DFP date to stringify + * @return string a string representation of the DFP {@code Date} in + * {@code yyyy-MM-dd} + */ + public static function ToString(Date $dfpDate) { + return sprintf(self::DFP_DATE_PATTERN, $dfpDate->year, $dfpDate->month, + $dfpDate->day); + } + + /** + * Returns string representation of this DFP date time with time zone. If you + * need to convert the DFP date time into another time zone before filtering + * on it, please use {@link #ToStringForTimeZone()} instead. + * + * @param DfpDateTime $dfpDateTime the DFP date time to stringify + * @return string a string representation of the DFP {@code DateTime} in + * {@code yyyy-MM-dd'T'HH:mm:ss±HH:mm}, e.g., + * {@code 2013-09-013T12:02:03+08:00} or + * {@code 2013-09-013T12:02:03Z} for Etc/GMT. + */ + public static function ToStringWithTimeZone(DfpDateTime $dfpDateTime) { + return self::FromDfpDateTime($dfpDateTime)->format(self::ISO8601); + } + + /** + * Returns string representation of this DFP date time with the specified time + * zone, preserving the millisecond instant. + *

      + * This function is useful for finding the local time in another time zone, + * especially for filtering. + *

      + * For example, if this date time holds 12:30 in Europe/London, the result + * from this method with Europe/Paris would be 13:30. You may also want to use + * this with your network's time zone, i.e., + *

      
      +   * $timeZoneId = $networkService->getCurrentNetwork()->timeZone;
      +   * $pqlFilterStatement = "... WHERE startDateTime >
      +   *     DateTimeUtils::ToString($apiDateTime, $timeZoneId)"
      +   * 
      + * + * @param DfpDateTime $dfpDateTime the DFP date time to stringify into a new + * time zone + * @param string $newZoneId the time zone ID of the new zone + * @return string a string representation of the DFP {@code DateTime} in + * {@code yyyy-MM-dd'T'HH:mm:ss} + */ + public static function ToStringForTimeZone(DfpDateTime $dfpDateTime, + $newZoneId) { + return self::FromDfpDateTime($dfpDateTime)-> + setTimezone(new DateTimeZone($newZoneId))-> + format(substr(self::ISO8601, 0, -1)); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/Pql.php b/src/Google/Api/Ads/Dfp/Util/Pql.php new file mode 100755 index 000000000..7cb164e22 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/Pql.php @@ -0,0 +1,117 @@ +value) ? 'true' : 'false'; + } else if ($value instanceof NumberValue || $value instanceof TextValue) { + return strval($value->value); + } else if ($value instanceof DateTimeValue) { + return (isset($value->value)) + ? DateTimeUtils::ToStringWithTimeZone($value->value) : ''; + } else if ($value instanceof DateValue) { + return DateTimeUtils::ToString($value->value); + } else { + throw new InvalidArgumentException(sprintf("Unsupported Value type [%s]", + get_class($value))); + } + } + + /** + * Gets the column labels for the result set. + * + * @param ResultSet $resultSet the result set to get the column labels for + * @return array the string list of column labels + */ + public static function GetColumnLabels(ResultSet $resultSet) { + $columnLabels = array(); + foreach ($resultSet->columnTypes as $columnType) { + $columnLabels[] = $columnType->labelName; + } + return $columnLabels; + } + + /** + * Gets the values in a row of the result set in the form of a string list. + * + * @param Row $row the row to get the values for + * @return array the string list of row labels + */ + public static function GetRowStringValues(Row $row) { + return array_map(array('Pql', 'ToString'), $row->values); + } + + /** + * Combines the first and second result sets, if and only if, the columns + * of both result sets match. + * + * @throws InvalidArgumentException if the result sets to combine do not have + * identical column headers + */ + public static function CombineResultSets(ResultSet $first, + ResultSet $second) { + $firstColumns = self::GetColumnLabels($first); + $secondColumns = self::GetColumnLabels($second); + + if ($firstColumns !== $secondColumns) { + throw new InvalidArgumentException(sprintf("First result set columns " + . "[%s] do not match second result set columns [%s]", implode(', ', + $firstColumns), implode(', ', $secondColumns))); + } + + $combinedRows = $first->rows; + if (isset($second->rows)) { + $combinedRows = array_merge($combinedRows, $second->rows); + } + + return new ResultSet($first->columnTypes, $combinedRows); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/ReportUtils.php b/src/Google/Api/Ads/Dfp/Util/ReportUtils.php new file mode 100755 index 000000000..3fbe6121a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/ReportUtils.php @@ -0,0 +1,90 @@ +CreateSession($downloadUrl); + + if (isset($filePath)) { + $file = fopen($filePath, 'w'); + $curlUtils->SetOpt($ch, CURLOPT_FILE, $file); + } else { + $curlUtils->SetOpt($ch, CURLOPT_RETURNTRANSFER, 1); + } + + $result = $curlUtils->Exec($ch); + $httpCode = $curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE); + $error = $curlUtils->Error($ch); + $downloadSize = $curlUtils->GetInfo($ch, CURLINFO_SIZE_DOWNLOAD); + + $curlUtils->Close($ch); + if (isset($file)) { + fclose($file); + } + + if ($httpCode != 200) { + $message = sprintf('Invalid report download URL: %s', $downloadUrl); + throw new InvalidArgumentException($message, $httpCode); + } + + if (isset($filePath)) { + return $downloadSize; + } else { + return $result; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php b/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php new file mode 100755 index 000000000..a12e906c1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php @@ -0,0 +1,135 @@ +$methodName is not a + * get*ByStatement method or the filterText contains the LIMIT or + * OFFSET options + */ + public static function GetAllObjects(DfpSoapClient $service, + $methodName, $filterText = NULL) { + if (!isset($filterText)) { + $filterText = ''; + } + if (!preg_match(self::GET_BY_STATEMENT_METHOD_NAME_REGEX, $methodName)) { + throw new InvalidArgumentException( + 'The method name must be in the format a "get*ByStatement".'); + } + $matches = array(); + if (preg_match(self::INCOMPATIBLE_FILTER_TEXT_REGEX, $filterText, + $matches)) { + throw new InvalidArgumentException( + 'The filter text contains an option that is incompatible with this ' + .'method: ' . $matches[0]); + } + + $allObjects = array(); + $filterStatement = new Statement(); + $offset = 0; + $page = NULL; + + do { + $filterStatement->query = $filterText . ' LIMIT ' . self::PAGE_SIZE + . ' OFFSET ' . $offset; + $page = $service->$methodName($filterStatement); + if (isset($page->results)) { + $allObjects = array_merge($allObjects, $page->results); + } + $offset += self::PAGE_SIZE; + } while (isset($page->results) + && sizeof($page->results) == self::PAGE_SIZE); + + return $allObjects; + } + + /** + * Returns some of the objects from an account, using the service and method + * name provided. + * @param DfpSoapClient $service the service to use + * @param string $methodName the name of the method + * @param string $filterText filter text + * @return array the objects retrieved from the service using the method + * @throws InvalidArgumentException if $methodName is not a + * get*ByStatement method or the filterText contains the LIMIT or + * OFFSET options + */ + public static function GetSomeObjects(DfpSoapClient $service, + $methodName, $filterText) { + if (!preg_match(self::GET_BY_STATEMENT_METHOD_NAME_REGEX, $methodName)) { + throw new InvalidArgumentException( + 'The method name must be in the format a "get*ByStatement".'); + } + $filterStatement = new Statement(); + $filterStatement->query = $filterText; + $page = $service->$methodName($filterStatement); + return $page->results; + } +} + diff --git a/src/Google/Api/Ads/Dfp/auth.ini b/src/Google/Api/Ads/Dfp/auth.ini new file mode 100755 index 000000000..2991c18d3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/auth.ini @@ -0,0 +1,32 @@ +; Detailed descriptions of these properties can be found at: +; https://developers.google.com/doubleclick-publishers/docs/soap_xml + +; The header networkCode is needed for every request except +; NetworkService.makeTestNetwork and NetworkService.getAllNetworks. +; Comment out the line below when calling either of those methods. +networkCode = "INSERT_NETWORK_CODE_HERE" + +; Any string of your choosing to identify your application to DFP. +applicationName = "INSERT_APPLICATION_NAME_HERE" + +[OAUTH2] + +; If you do not have a client ID or secret, please create one of type +; "installed application" in the Google API console: +; https://cloud.google.com/console +client_id = "INSERT_OAUTH2_CLIENT_ID_HERE" +client_secret = "INSERT_OAUTH2_CLIENT_SECRET_HERE" + +; If you already have a refresh token, enter it below. Otherwise, run +; GetRefreshToken.php. +refresh_token = "INSERT_OAUTH2_REFRESH_TOKEN_HERE" + +; (DEPRECATED) Uncomment the following to use ClientLogin. +; For more information, see: +; https://developers.google.com/accounts/docs/AuthForInstalledApps + +; email = "INSERT_EMAIL_ADDRESS_HERE" +; password = "INSERT_PASSWORD_HERE" +; Uncomment the following to use an existing ClientLogin AuthToken (optional). +; authToken = "INSERT_AUTH_TOKEN_HERE" + diff --git a/src/Google/Api/Ads/Dfp/settings.ini b/src/Google/Api/Ads/Dfp/settings.ini new file mode 100755 index 000000000..030f93dd4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/settings.ini @@ -0,0 +1,58 @@ +[LOGGING] +; Log directory is either an absolute path, or relative path from the +; DfpUser.php file. +; PATH_RELATIVE = "0" +; LIB_LOG_DIR_PATH = "path/to/logs" + +[SERVER] +DEFAULT_VERSION = "v201311" +DEFAULT_SERVER = "https://www.google.com" + +[SOAP] +; Enable/disable gzip compression on SOAP requests and responses. +COMPRESSION = 1 + +; The level of gzip compression to use, from 1 to 9. The higher the level the +; greater the compression and time needed to perform the compression. The +; recommended and default value is 1. +COMPRESSION_LEVEL = 1 + +; The type of WSDL caching to use. The possible values are 0 (none), 1 (disk), +; 2 (memory), or 3 (disk and memory). The default value is 0. +WSDL_CACHE = 0 + +; Other WSDL caching settings can be set in php.ini. See the following page for +; the complete list: http://www.php.net/manual/en/soap.configuration.php + +[PROXY] +; Proxy settings to be used by HTTP (and therefore SOAP) requests. +; HOST = "" +; PORT = "" +; USER = "" +; PASSWORD = "" + +[AUTH] +; The server to use when making ClientLogin or OAuth2 requests. +; This normally doesn't need to be changed from the default value +; "https://accounts.google.com". +; AUTH_SERVER = "" + +; The OAuth2Handler class to use for OAuth2 flow. +; OAUTH2_HANDLER_CLASS = "SimpleOAuth2Handler" + +[SSL] +; Enable/disable peer verification of SSL certificates. If enabled, specify +; either CA_PATH or CA_FILE. +VERIFY_PEER = 0 + +; Enable/disable host verification of SSL certificates. This option requires +; that VERIFY_PEER is enabled. +VERIFY_HOST = 0 + +; The certificate authority directory to search in when performing peer +; validation. For example: /etc/ssl/certs +; CA_PATH = "" + +; The certificate authority file to use when performing peer validation. +; CA_FILE = "" + diff --git a/src/Google/Api/Ads/Dfp/v201208/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201208/AudienceSegmentService.php new file mode 100755 index 000000000..beda737f3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/AudienceSegmentService.php @@ -0,0 +1,2212 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AudienceSegment[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAudienceSegmentStatus + */ + public $status; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var string + */ + public $AudienceSegmentType; + + private $_parameterMap = array ( + "AudienceSegment.Type" => "AudienceSegmentType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $AudienceSegmentType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAudienceSegmentsByStatement", FALSE)) { +/** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAudienceSegmentsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAudienceSegmentsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAudienceSegmentsByStatementResponse { + /** + * @access public + * @var AudienceSegmentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class AudienceSegmentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "AudienceSegment" => "AudienceSegment", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getAudienceSegmentsByStatement" => "getAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "getAudienceSegmentsByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/AudienceSegmentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AudienceSegmentService::$classmap; + parent::__construct($wsdl, $options, $user, 'AudienceSegmentService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + */ + public function getAudienceSegmentsByStatement($filterStatement) { + $arg = new getAudienceSegmentsByStatement($filterStatement); + $result = $this->__soapCall("getAudienceSegmentsByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CompanyService.php b/src/Google/Api/Ads/Dfp/v201208/CompanyService.php new file mode 100755 index 000000000..f539ab1db --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CompanyService.php @@ -0,0 +1,3263 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("Company", FALSE)) { +/** + * A {@code Company} represents an agency, a single advertiser or an entire + * advertising network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Company { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCompanyType + */ + public $type; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $primaryPhone; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var tnsCompanyCreditStatus + */ + public $creditStatus; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var boolean + */ + public $enableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var integer + */ + public $thirdPartyCompanyId; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $address = NULL, $email = NULL, $faxPhone = NULL, $primaryPhone = NULL, $externalId = NULL, $comment = NULL, $creditStatus = NULL, $appliedLabels = NULL, $enableSameAdvertiserCompetitiveExclusion = NULL, $appliedTeamIds = NULL, $thirdPartyCompanyId = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->address = $address; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->primaryPhone = $primaryPhone; + $this->externalId = $externalId; + $this->comment = $comment; + $this->creditStatus = $creditStatus; + $this->appliedLabels = $appliedLabels; + $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; + $this->appliedTeamIds = $appliedTeamIds; + $this->thirdPartyCompanyId = $thirdPartyCompanyId; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CompanyError", FALSE)) { +/** + * A list of all errors associated with companies. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyError extends ApiError { + /** + * @access public + * @var tnsCompanyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError"; + } + + 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("CompanyPage", FALSE)) { +/** + * Captures a page of {@link Company} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Company[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatus", FALSE)) { +/** + * Specifies the credit-worthiness of the company for which the publisher runs + * an order. By doing so, the publisher can control the running of campaigns + * for the company. A publisher can choose between Basic and Advanced Credit + * Status settings. This feature needs to be enabled in the DoubleClick For + * Publishers web site. Also the kind of setting you need - Basic or Advanced + * must be configured. If Basic is enabled then, the values allowed are + * {@code ACTIVE} and {@code INACTIVE}. If Advanced is chosen, then all values + * are allowed. Choosing an Advanced setting when only the Basic feature has + * been enabled, or using the Basic setting without turning the feature on + * will result in an error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.CreditStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyType", FALSE)) { +/** + * The type of the company. Once a company is created, it is not possible to + * change its type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyErrorReason", FALSE)) { +/** + * Enumerates all possible company specific errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCompanies", FALSE)) { +/** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("createCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCompany", FALSE)) { +/** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("createCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompaniesByStatement", FALSE)) { +/** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCompaniesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCompaniesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCompaniesByStatementResponse { + /** + * @access public + * @var CompanyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompany", FALSE)) { +/** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCompany { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companyId = NULL) { + $this->companyId = $companyId; + } +}} + +if (!class_exists("getCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompanies", FALSE)) { +/** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("updateCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompany", FALSE)) { +/** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("updateCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CompanyService", FALSE)) { +/** + * CompanyService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class CompanyService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "Company" => "Company", + "CompanyError" => "CompanyError", + "CompanyPage" => "CompanyPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "Company.CreditStatus" => "CompanyCreditStatus", + "Company.Type" => "CompanyType", + "CompanyError.Reason" => "CompanyErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createCompanies" => "createCompanies", + "createCompaniesResponse" => "createCompaniesResponse", + "createCompany" => "createCompany", + "createCompanyResponse" => "createCompanyResponse", + "getCompaniesByStatement" => "getCompaniesByStatement", + "getCompaniesByStatementResponse" => "getCompaniesByStatementResponse", + "getCompany" => "getCompany", + "getCompanyResponse" => "getCompanyResponse", + "updateCompanies" => "updateCompanies", + "updateCompaniesResponse" => "updateCompaniesResponse", + "updateCompany" => "updateCompany", + "updateCompanyResponse" => "updateCompanyResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/CompanyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CompanyService::$classmap; + parent::__construct($wsdl, $options, $user, 'CompanyService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + */ + public function createCompanies($companies) { + $arg = new createCompanies($companies); + $result = $this->__soapCall("createCompanies", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + */ + public function createCompany($company) { + $arg = new createCompany($company); + $result = $this->__soapCall("createCompany", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + */ + public function getCompaniesByStatement($filterStatement) { + $arg = new getCompaniesByStatement($filterStatement); + $result = $this->__soapCall("getCompaniesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + */ + public function getCompany($companyId) { + $arg = new getCompany($companyId); + $result = $this->__soapCall("getCompany", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + */ + public function updateCompanies($companies) { + $arg = new updateCompanies($companies); + $result = $this->__soapCall("updateCompanies", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + */ + public function updateCompany($company) { + $arg = new updateCompany($company); + $result = $this->__soapCall("updateCompany", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/ContentService.php b/src/Google/Api/Ads/Dfp/v201208/ContentService.php new file mode 100755 index 000000000..cb1148742 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/ContentService.php @@ -0,0 +1,2690 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("Content", FALSE)) { +/** + * A {@code Content} represents video metadata from a publisher's + * Content Management System (CMS) that has been synced to DFP. + *

      + * Video line items can be targeted to {@code Content} + * to indicate what ads should match when the {@code Content} is being played. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Content { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsContentStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Content"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + } +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ContentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Content[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ContentPartnerError", FALSE)) { +/** + * The content partner related validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ContentPartnerError extends ApiError { + /** + * @access public + * @var tnsContentPartnerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentPartnerErrorReason", FALSE)) { +/** + * Describes reason for {@code ContentPartnerError}s. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ContentPartnerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatus", FALSE)) { +/** + * Describes the status of a {@link Content} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ContentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getContentByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getContentByStatementResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValue", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getContentByStatementAndCustomTargetingValue { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL, $customTargetingValueId = NULL) { + $this->filterStatement = $filterStatement; + $this->customTargetingValueId = $customTargetingValueId; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValueResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getContentByStatementAndCustomTargetingValueResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUncategorizedContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that are not + * associated with the {@link Network}'s + * {@link Network#contentBrowseCustomTargetingKeyId}. This content is + * considered uncategorized. This method also satisfies the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * This method is no longer supported as of version 201211 + * @params filterStatement a Publisher Query Language statement used to filter + * a set of content + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUncategorizedContentByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUncategorizedContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUncategorizedContentByStatementResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentService", FALSE)) { +/** + * ContentService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class ContentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentPartnerError.Reason" => "ContentPartnerErrorReason", + "ContentStatus" => "ContentStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getContentByStatement" => "getContentByStatement", + "getContentByStatementResponse" => "getContentByStatementResponse", + "getContentByStatementAndCustomTargetingValue" => "getContentByStatementAndCustomTargetingValue", + "getContentByStatementAndCustomTargetingValueResponse" => "getContentByStatementAndCustomTargetingValueResponse", + "getUncategorizedContentByStatement" => "getUncategorizedContentByStatement", + "getUncategorizedContentByStatementResponse" => "getUncategorizedContentByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/ContentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + */ + public function getContentByStatement($statement) { + $arg = new getContentByStatement($statement); + $result = $this->__soapCall("getContentByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + */ + public function getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId) { + $arg = new getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); + $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentPage} of {@link Content} objects that are not + * associated with the {@link Network}'s + * {@link Network#contentBrowseCustomTargetingKeyId}. This content is + * considered uncategorized. This method also satisfies the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * This method is no longer supported as of version 201211 + * @params filterStatement a Publisher Query Language statement used to filter + * a set of content + * @return the content that matches the given filter + */ + public function getUncategorizedContentByStatement($filterStatement) { + $arg = new getUncategorizedContentByStatement($filterStatement); + $result = $this->__soapCall("getUncategorizedContentByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CreativeService.php b/src/Google/Api/Ads/Dfp/v201208/CreativeService.php new file mode 100755 index 000000000..2cc57eb58 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CreativeService.php @@ -0,0 +1,7742 @@ + "BaseCreativeTemplateVariableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCreativeTemplateVariableValue"; + } + + public function __construct($uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AssetCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariableValue"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Asset", FALSE)) { +/** + * Base asset properties. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Asset { + /** + * @access public + * @var string + */ + public $AssetType; + + private $_parameterMap = array ( + "Asset.Type" => "AssetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Asset"; + } + + public function __construct($AssetType = NULL) { + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ConversionEvent_TrackingUrlsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type ConversionEvent + * and value of type TrackingUrls. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ConversionEvent_TrackingUrlsMapEntry { + /** + * @access public + * @var tnsConversionEvent + */ + public $key; + + /** + * @access public + * @var TrackingUrls + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent_TrackingUrlsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CreativeAsset", FALSE)) { +/** + * A {@code CreativeAsset} is an asset that can be used in creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeAsset { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAsset"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } +}} + +if (!class_exists("CustomCreativeAsset", FALSE)) { +/** + * A {@code CustomCreativeAsset} is an association between a + * {@link CustomCreative} and an asset. Any assets that are associated with a + * creative can be inserted into its HTML snippet. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCreativeAsset { + /** + * @access public + * @var string + */ + public $macroName; + + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeAsset"; + } + + public function __construct($macroName = NULL, $assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL) { + $this->macroName = $macroName; + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } +}} + +if (!class_exists("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("Creative", FALSE)) { +/** + * A {@code Creative} represents the media for the ad being served. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Creative { + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var string + */ + public $previewUrl; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $CreativeType; + + private $_parameterMap = array ( + "Creative.Type" => "CreativeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Creative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativePage", FALSE)) { +/** + * Captures a page of {@link Creative} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Creative[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("HasDestinationUrlCreative", FALSE)) { +/** + * A {@code Creative} that has a destination url + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class HasDestinationUrlCreative extends Creative { + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasDestinationUrlCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InternalRedirectCreative", FALSE)) { +/** + * A {@code Creative} hosted by either DoubleClick for Advertisers (DFA) or DART + * for Publishers. + *

      + * Similar to third-party creatives, a DoubleClick tag is used to retrieve a + * creative asset. However, DoubleClick tags are not sent to the user's browser. + * Instead, they are processed internally within the DoubleClick system.. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalRedirectCreative extends Creative { + /** + * @access public + * @var string + */ + public $internalRedirectUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalRedirectCreative"; + } + + public function __construct($internalRedirectUrl = NULL, $overrideSize = NULL, $isInterstitial = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->internalRedirectUrl = $internalRedirectUrl; + $this->overrideSize = $overrideSize; + $this->isInterstitial = $isInterstitial; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LegacyDfpCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by Google DFP, but was migrated + * from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LegacyDfpCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LongCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RedirectAsset", FALSE)) { +/** + * An externally hosted asset. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RedirectAsset extends Asset { + /** + * @access public + * @var string + */ + public $redirectUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioChildAssetProperty", FALSE)) { +/** + * Represents a child asset in {@code RichMediaStudioCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioChildAssetProperty { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsRichMediaStudioChildAssetPropertyType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty"; + } + + public function __construct($name = NULL, $type = NULL, $totalFileSize = NULL, $width = NULL, $height = NULL, $url = NULL) { + $this->name = $name; + $this->type = $type; + $this->totalFileSize = $totalFileSize; + $this->width = $width; + $this->height = $height; + $this->url = $url; + } +}} + +if (!class_exists("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of + * {@link VariableType#STRING} and {@link VariableType#LIST}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateCreative extends Creative { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var BaseCreativeTemplateVariableValue[] + */ + public $creativeTemplateVariableValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateCreative"; + } + + public function __construct($creativeTemplateId = NULL, $isInterstitial = NULL, $creativeTemplateVariableValues = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->creativeTemplateId = $creativeTemplateId; + $this->isInterstitial = $isInterstitial; + $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TextAdCreative", FALSE)) { +/** + * A simple plain text-based {@code Creative}. This creative is only available to small business + * networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000440}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextAdCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $hoverText; + + /** + * @access public + * @var tnsTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var string + */ + public $linkColor; + + /** + * @access public + * @var string + */ + public $linkTitle; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var string + */ + public $textColor; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAdCreative"; + } + + public function __construct($hoverText = NULL, $targetWindow = NULL, $linkColor = NULL, $linkTitle = NULL, $text = NULL, $textColor = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->hoverText = $hoverText; + $this->targetWindow = $targetWindow; + $this->linkColor = $linkColor; + $this->linkTitle = $linkTitle; + $this->text = $text; + $this->textColor = $textColor; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartyCreative extends Creative { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $expandedSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyCreative"; + } + + public function __construct($snippet = NULL, $expandedSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->expandedSnippet = $expandedSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TrackingUrls", FALSE)) { +/** + * A list of URLs that should be pinged for a conversion event. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TrackingUrls { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingUrls"; + } + + public function __construct($urls = NULL) { + $this->urls = $urls; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnsupportedCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by this version of the API. + * This object is readonly and when encountered should be reported + * on the DFP API forum. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UnsupportedCreative extends Creative { + /** + * @access public + * @var string + */ + public $unsupportedCreativeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnsupportedCreative"; + } + + public function __construct($unsupportedCreativeType = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->unsupportedCreativeType = $unsupportedCreativeType; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VastRedirectCreative", FALSE)) { +/** + * A {@code Creative} that points to an externally hosted VAST ad and is + * served via VAST 2.0 XML as a VAST Wrapper. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VastRedirectCreative extends Creative { + /** + * @access public + * @var string + */ + public $vastXmlUrl; + + /** + * @access public + * @var tnsVastRedirectType + */ + public $vastRedirectType; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectCreative"; + } + + public function __construct($vastXmlUrl = NULL, $vastRedirectType = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->vastXmlUrl = $vastXmlUrl; + $this->vastRedirectType = $vastRedirectType; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectAsset", FALSE)) { +/** + * An externally-hosted video asset. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoRedirectAsset extends RedirectAsset { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("VpaidLinearCreative", FALSE)) { +/** + * A {@code Creative} that displays a DFP-hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $overrideSize = NULL, $flashAssetSize = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->overrideSize = $overrideSize; + $this->flashAssetSize = $flashAssetSize; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VpaidLinearRedirectCreative", FALSE)) { +/** + * A {@code Creative} that displays an externally hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearRedirectCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $flashUrl = NULL, $flashAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->flashUrl = $flashUrl; + $this->flashAssetSize = $flashAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiFramework", FALSE)) { +/** + * The various ApiFramework types. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiFramework { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiFramework"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionEvent", FALSE)) { +/** + * All possible tracking event types. Not all events are supported by every + * kind of creative. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ConversionEvent { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FlashExpandableCreativeExpandDirection", FALSE)) { +/** + * The possible expand directions + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashExpandableCreativeExpandDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashExpandableCreative.ExpandDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioChildAssetPropertyType", FALSE)) { +/** + * Type of {@code RichMediaStudioChildAssetProperty} + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioChildAssetPropertyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeArtworkType", FALSE)) { +/** + * Rich Media Studio creative artwork types. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioCreativeArtworkType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeArtworkType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeBillingAttribute", FALSE)) { +/** + * Rich Media Studio creative supported billing attributes. + *

      + * This is determined by Rich Media Studio based on the content + * of the creative and is not updateable. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioCreativeBillingAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeBillingAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeFormat", FALSE)) { +/** + * Different creative format supported by Rich Media Studio creative. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioCreativeFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetWindow", FALSE)) { +/** + * The different values for target window, corresponds to an HTML link's + * {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VastRedirectType", FALSE)) { +/** + * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VastRedirectType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreative", FALSE)) { +/** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("createCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreatives", FALSE)) { +/** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("createCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreative", FALSE)) { +/** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreative { + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeId = NULL) { + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativesByStatement", FALSE)) { +/** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativesByStatementResponse { + /** + * @access public + * @var CreativePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreative", FALSE)) { +/** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("updateCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreatives", FALSE)) { +/** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("updateCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BaseDynamicAllocationCreative", FALSE)) { +/** + * A base class for dynamic allocation creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseDynamicAllocationCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseDynamicAllocationCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AspectRatioImageCreative", FALSE)) { +/** + * A {@code Creative} intended for mobile platforms that displays an image, + * whose {@link LineItem#creativePlaceholders size} is defined as an + * {@link CreativeSizeType#ASPECT_RATIO aspect ratio}, i.e. + * {@link Size#isAspectRatio}. It can have multiple images whose dimensions + * conform to that aspect ratio. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @access public + * @var string + */ + public $fallbackText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AspectRatioImageCreative"; + } + + public function __construct($imageAssets = NULL, $fallbackText = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->fallbackText = $fallbackText; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashCreative", FALSE)) { +/** + * A base type for creatives that display a Flash-based ad. If the Flash ad + * cannot load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $clickTagRequired; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var Size + */ + public $fallbackAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashRedirectCreative", FALSE)) { +/** + * The base type for creatives that load a Flash asset from a specified URL. + * If the remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var string + */ + public $fallbackUrl; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageCreative", FALSE)) { +/** + * The base type for creatives that display an image. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $imageName; + + /** + * @access public + * @var base64Binary + */ + public $imageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageCreative"; + } + + public function __construct($imageName = NULL, $imageByteArray = NULL, $overrideSize = NULL, $assetSize = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageRedirectCreative", FALSE)) { +/** + * The base type for creatives that load an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageRedirectCreative"; + } + + public function __construct($imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseRichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseRichMediaStudioCreative extends Creative { + /** + * @access public + * @var integer + */ + public $studioCreativeId; + + /** + * @access public + * @var tnsRichMediaStudioCreativeFormat + */ + public $creativeFormat; + + /** + * @access public + * @var tnsRichMediaStudioCreativeArtworkType + */ + public $artworkType; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var string[] + */ + public $adTagKeys; + + /** + * @access public + * @var string[] + */ + public $customKeyValues; + + /** + * @access public + * @var string + */ + public $surveyUrl; + + /** + * @access public + * @var string + */ + public $allImpressionsUrl; + + /** + * @access public + * @var string + */ + public $richMediaImpressionsUrl; + + /** + * @access public + * @var string + */ + public $backupImageImpressionsUrl; + + /** + * @access public + * @var string + */ + public $overrideCss; + + /** + * @access public + * @var string + */ + public $requiredFlashPluginVersion; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var tnsRichMediaStudioCreativeBillingAttribute + */ + public $billingAttribute; + + /** + * @access public + * @var RichMediaStudioChildAssetProperty[] + */ + public $richMediaStudioChildAssetProperties; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRichMediaStudioCreative"; + } + + public function __construct($studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseVideoCreative", FALSE)) { +/** + * A base type for video creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var boolean + */ + public $allowDurationOverride; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseVideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ClickTrackingCreative", FALSE)) { +/** + * A creative that is used for tracking clicks on ads that are served directly + * from the customers' web servers or media servers. + * NOTE: The size attribute is not used for click tracking creative and it will + * not be persisted upon save. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClickTrackingCreative extends Creative { + /** + * @access public + * @var string + */ + public $clickTrackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingCreative"; + } + + public function __construct($clickTrackingUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->clickTrackingUrl = $clickTrackingUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CustomCreative", FALSE)) { +/** + * A {@code Creative} that contains an arbitrary HTML snippet and file assets. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * @access public + * @var CustomCreativeAsset[] + */ + public $customCreativeAssets; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreative"; + } + + public function __construct($htmlSnippet = NULL, $customCreativeAssets = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->htmlSnippet = $htmlSnippet; + $this->customCreativeAssets = $customCreativeAssets; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LegacyDfpMobileCreative", FALSE)) { +/** + * A mobile {@code Creative} that isn't supported by Google DFP, but was + * migrated from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpMobileCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashCreative", FALSE)) { +/** + * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot + * load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashCreative extends BaseFlashCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashExpandableCreative", FALSE)) { +/** + * An expandable {@code Creative} where the collapsed size is a Flash SWF file and + * the expanded size is another Flash SWF file. If Flash isn't supported in the browser, + * the fallback image will be used. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001160}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashExpandableCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $collapsedWidth; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedWidth; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var tnsFlashExpandableCreativeExpandDirection + */ + public $expandDirection; + + /** + * @access public + * @var boolean + */ + public $expandOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForExpand; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashExpandableCreative"; + } + + public function __construct($collapsedFlashAssetId = NULL, $collapsedFlashAssetByteArray = NULL, $collapsedFlashFileName = NULL, $collapsedFallbackImageAssetId = NULL, $collapsedFallbackImageAssetByteArray = NULL, $collapsedFallbackImageFileName = NULL, $expandedFlashAssetId = NULL, $expandedFlashAssetByteArray = NULL, $expandedFlashFileName = NULL, $requiredFlashVersion = NULL, $collapsedWidth = NULL, $collapsedHeight = NULL, $expandedWidth = NULL, $expandedHeight = NULL, $expandDirection = NULL, $expandOnMouseOver = NULL, $javascriptFunctionForExpand = NULL, $collapseOnMouseOut = NULL, $javascriptFunctionForCollapse = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->collapsedWidth = $collapsedWidth; + $this->collapsedHeight = $collapsedHeight; + $this->expandedWidth = $expandedWidth; + $this->expandedHeight = $expandedHeight; + $this->expandDirection = $expandDirection; + $this->expandOnMouseOver = $expandOnMouseOver; + $this->javascriptFunctionForExpand = $javascriptFunctionForExpand; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays a Flash-based ad and is + * served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashOverlayCreative extends BaseFlashCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashPushdownCreative", FALSE)) { +/** + * {@code Creative} that pushes page content down when the creative expands. + * The collapsed size is one Flash SWF file and the expanded size is another Flash SWF file. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001400}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashPushdownCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var boolean + */ + public $pushdownOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForPushdown; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashPushdownCreative"; + } + + public function __construct($collapsedFlashAssetId = NULL, $collapsedFlashAssetByteArray = NULL, $collapsedFlashFileName = NULL, $collapsedFallbackImageAssetId = NULL, $collapsedFallbackImageAssetByteArray = NULL, $collapsedFallbackImageFileName = NULL, $expandedFlashAssetId = NULL, $expandedFlashAssetByteArray = NULL, $expandedFlashFileName = NULL, $requiredFlashVersion = NULL, $width = NULL, $collapsedHeight = NULL, $expandedHeight = NULL, $pushdownOnMouseOver = NULL, $javascriptFunctionForPushdown = NULL, $collapseOnMouseOut = NULL, $javascriptFunctionForCollapse = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->collapsedHeight = $collapsedHeight; + $this->expandedHeight = $expandedHeight; + $this->pushdownOnMouseOver = $pushdownOnMouseOver; + $this->javascriptFunctionForPushdown = $javascriptFunctionForPushdown; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads a Flash asset from a specified URL. If the + * remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads a Flash asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashAssetSize = NULL, $flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashAssetSize = $flashAssetSize; + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FloatingFlashCreative", FALSE)) { +/** + * A floating flash creative. This creative is an interstitial creative, + * and its {@link #size} must be 1x1. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000560}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FloatingFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var integer + */ + public $flashAssetId; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var integer + */ + public $fallbackImageAssetId; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $topPosition; + + /** + * @access public + * @var string + */ + public $leftPosition; + + /** + * @access public + * @var integer + */ + public $displayTimeInSecond; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionTracker; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FloatingFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $flashAssetId = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $fallbackImageAssetId = NULL, $requiredFlashVersion = NULL, $width = NULL, $height = NULL, $topPosition = NULL, $leftPosition = NULL, $displayTimeInSecond = NULL, $thirdPartyImpressionTracker = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->flashAssetId = $flashAssetId; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->fallbackImageAssetId = $fallbackImageAssetId; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->height = $height; + $this->topPosition = $topPosition; + $this->leftPosition = $leftPosition; + $this->displayTimeInSecond = $displayTimeInSecond; + $this->thirdPartyImpressionTracker = $thirdPartyImpressionTracker; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + /** + * @access public + * @var string + */ + public $codeSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasHtmlSnippetDynamicAllocationCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageCreative", FALSE)) { +/** + * A {@code Creative} that displays an image. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageCreative extends BaseImageCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageCreative"; + } + + public function __construct($imageName = NULL, $imageByteArray = NULL, $overrideSize = NULL, $assetSize = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays an image and is served via VAST + * 2.0 XML. Overlays cover part of the video content they are displayed on + * top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageOverlayCreative extends BaseImageCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $imageName = NULL, $imageByteArray = NULL, $overrideSize = NULL, $assetSize = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectCreative"; + } + + public function __construct($imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads an image asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectOverlayCreative"; + } + + public function __construct($assetSize = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, + * but you can update some fields of this creative. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreative"; + } + + public function __construct($isInterstitial = NULL, $studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->isInterstitial = $isInterstitial; + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoCreative", FALSE)) { +/** + * A {@code Creative} that contains DFP-hosted video ads and is served + * via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoCreative extends BaseVideoCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectCreative", FALSE)) { +/** + * A {@code Creative} that contains externally hosted video ads and + * is served via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoRedirectCreative extends BaseVideoCreative { + /** + * @access public + * @var VideoRedirectAsset[] + */ + public $videoAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectCreative"; + } + + public function __construct($videoAssets = NULL, $duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExchangeCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdSenseCreative", FALSE)) { +/** + * An AdSense dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeService", FALSE)) { +/** + * CreativeService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class CreativeService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "Creative" => "Creative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "AdExchangeCreative" => "AdExchangeCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "AdSenseCreative" => "AdSenseCreative", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AspectRatioImageCreative" => "AspectRatioImageCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", + "Asset" => "Asset", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseFlashCreative" => "BaseFlashCreative", + "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", + "BaseImageCreative" => "BaseImageCreative", + "BaseImageRedirectCreative" => "BaseImageRedirectCreative", + "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", + "BaseVideoCreative" => "BaseVideoCreative", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingCreative" => "ClickTrackingCreative", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", + "CreativeAsset" => "CreativeAsset", + "CustomCreativeAsset" => "CustomCreativeAsset", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativePage" => "CreativePage", + "CreativeSetError" => "CreativeSetError", + "CustomCreative" => "CustomCreative", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValue" => "CustomFieldValue", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashExpandableCreative" => "FlashExpandableCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashPushdownCreative" => "FlashPushdownCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "FloatingFlashCreative" => "FloatingFlashCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LegacyDfpCreative" => "LegacyDfpCreative", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RedirectAsset" => "RedirectAsset", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", + "RichMediaStudioCreative" => "RichMediaStudioCreative", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringCreativeTemplateVariableValue" => "StringCreativeTemplateVariableValue", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextAdCreative" => "TextAdCreative", + "TextValue" => "TextValue", + "ThirdPartyCreative" => "ThirdPartyCreative", + "TrackingUrls" => "TrackingUrls", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UnsupportedCreative" => "UnsupportedCreative", + "UrlCreativeTemplateVariableValue" => "UrlCreativeTemplateVariableValue", + "VastRedirectCreative" => "VastRedirectCreative", + "VideoCreative" => "VideoCreative", + "VideoRedirectAsset" => "VideoRedirectAsset", + "VideoRedirectCreative" => "VideoRedirectCreative", + "VpaidLinearCreative" => "VpaidLinearCreative", + "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", + "ApiFramework" => "ApiFramework", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ConversionEvent" => "ConversionEvent", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "FlashExpandableCreative.ExpandDirection" => "FlashExpandableCreativeExpandDirection", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", + "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", + "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetWindow" => "TargetWindow", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "VastRedirectType" => "VastRedirectType", + "createCreative" => "createCreative", + "createCreativeResponse" => "createCreativeResponse", + "createCreatives" => "createCreatives", + "createCreativesResponse" => "createCreativesResponse", + "getCreative" => "getCreative", + "getCreativeResponse" => "getCreativeResponse", + "getCreativesByStatement" => "getCreativesByStatement", + "getCreativesByStatementResponse" => "getCreativesByStatementResponse", + "updateCreative" => "updateCreative", + "updateCreativeResponse" => "updateCreativeResponse", + "updateCreatives" => "updateCreatives", + "updateCreativesResponse" => "updateCreativesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/CreativeService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + */ + public function createCreative($creative) { + $arg = new createCreative($creative); + $result = $this->__soapCall("createCreative", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + */ + public function createCreatives($creatives) { + $arg = new createCreatives($creatives); + $result = $this->__soapCall("createCreatives", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + */ + public function getCreative($creativeId) { + $arg = new getCreative($creativeId); + $result = $this->__soapCall("getCreative", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + */ + public function getCreativesByStatement($filterStatement) { + $arg = new getCreativesByStatement($filterStatement); + $result = $this->__soapCall("getCreativesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + */ + public function updateCreative($creative) { + $arg = new updateCreative($creative); + $result = $this->__soapCall("updateCreative", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + */ + public function updateCreatives($creatives) { + $arg = new updateCreatives($creatives); + $result = $this->__soapCall("updateCreatives", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201208/CreativeSetService.php new file mode 100755 index 000000000..8e81c7735 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CreativeSetService.php @@ -0,0 +1,3300 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSet", FALSE)) { +/** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSet { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $masterCreativeId; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSet"; + } + + public function __construct($id = NULL, $name = NULL, $masterCreativeId = NULL, $companionCreativeIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->masterCreativeId = $masterCreativeId; + $this->companionCreativeIds = $companionCreativeIds; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CreativeSetPage", FALSE)) { +/** + * Captures a page of {@link CreativeSet} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSetPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeSet[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeSet", FALSE)) { +/** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("createCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSet", FALSE)) { +/** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeSet { + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSetId = NULL) { + $this->creativeSetId = $creativeSetId; + } +}} + +if (!class_exists("getCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSetsByStatement", FALSE)) { +/** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeSetsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getCreativeSetsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeSetsByStatementResponse { + /** + * @access public + * @var CreativeSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeSet", FALSE)) { +/** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("updateCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeSetService", FALSE)) { +/** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class CreativeSetService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSet" => "CreativeSet", + "CreativeSetError" => "CreativeSetError", + "CreativeSetPage" => "CreativeSetPage", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCreativeSet" => "createCreativeSet", + "createCreativeSetResponse" => "createCreativeSetResponse", + "getCreativeSet" => "getCreativeSet", + "getCreativeSetResponse" => "getCreativeSetResponse", + "getCreativeSetsByStatement" => "getCreativeSetsByStatement", + "getCreativeSetsByStatementResponse" => "getCreativeSetsByStatementResponse", + "updateCreativeSet" => "updateCreativeSet", + "updateCreativeSetResponse" => "updateCreativeSetResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/CreativeSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeSetService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + */ + public function createCreativeSet($creativeSet) { + $arg = new createCreativeSet($creativeSet); + $result = $this->__soapCall("createCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + */ + public function getCreativeSet($creativeSetId) { + $arg = new getCreativeSet($creativeSetId); + $result = $this->__soapCall("getCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + */ + public function getCreativeSetsByStatement($statement) { + $arg = new getCreativeSetsByStatement($statement); + $result = $this->__soapCall("getCreativeSetsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + */ + public function updateCreativeSet($creativeSet) { + $arg = new updateCreativeSet($creativeSet); + $result = $this->__soapCall("updateCreativeSet", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201208/CreativeTemplateService.php new file mode 100755 index 000000000..430030266 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CreativeTemplateService.php @@ -0,0 +1,3155 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeTemplate", FALSE)) { +/** + * A template upon which a creative can be created. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var CreativeTemplateVariable[] + */ + public $variables; + + /** + * @access public + * @var tnsCreativeTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsCreativeTemplateType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $variables = NULL, $status = NULL, $type = NULL, $isInterstitial = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->variables = $variables; + $this->status = $status; + $this->type = $type; + $this->isInterstitial = $isInterstitial; + } +}} + +if (!class_exists("CreativeTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeTemplateError extends ApiError { + /** + * @access public + * @var tnsCreativeTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError"; + } + + 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("ListStringCreativeTemplateVariableVariableChoice", FALSE)) { +/** + * Stores variable choices that users can select from + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ListStringCreativeTemplateVariableVariableChoice { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable.VariableChoice"; + } + + public function __construct($label = NULL, $value = NULL) { + $this->label = $label; + $this->value = $value; + } +}} + +if (!class_exists("CreativeTemplatePage", FALSE)) { +/** + * Captures a page of {@link CreativeTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeTemplateVariable", FALSE)) { +/** + * Represents a variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isRequired; + + /** + * @access public + * @var string + */ + public $CreativeTemplateVariableType; + + private $_parameterMap = array ( + "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateVariable"; + } + + public function __construct($label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetCreativeTemplateVariableMimeType", FALSE)) { +/** + * Different mime type that the asset variable supports. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetCreativeTemplateVariableMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateStatus", FALSE)) { +/** + * Describes status of the creative template + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateType", FALSE)) { +/** + * Describes type of the creative template. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeTemplateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getCreativeTemplate", FALSE)) { +/** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeTemplate { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeTemplateId = NULL) { + $this->creativeTemplateId = $creativeTemplateId; + } +}} + +if (!class_exists("getCreativeTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeTemplateResponse { + /** + * @access public + * @var CreativeTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeTemplatesByStatement", FALSE)) { +/** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCreativeTemplatesByStatementResponse { + /** + * @access public + * @var CreativeTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AssetCreativeTemplateVariable", FALSE)) { +/** + * Represents a file asset variable defined in a creative template. + *

      + * Use {@link AssetCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var tnsAssetCreativeTemplateVariableMimeType[] + */ + public $mimeTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable"; + } + + public function __construct($mimeTypes = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->mimeTypes = $mimeTypes; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("LongCreativeTemplateVariable", FALSE)) { +/** + * Represents a long variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var integer + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("StringCreativeTemplateVariable", FALSE)) { +/** + * Represents a string variable defined in a creative template. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariable", FALSE)) { +/** + * Represents a url variable defined in a creative template. + *

      + * Use {@link UrlCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ListStringCreativeTemplateVariable", FALSE)) { +/** + * Represents a list variable defined in a creative template. This is similar to + * {@link StringCreativeTemplateVariable}, except that there are possible choices to + * choose from. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + /** + * @access public + * @var ListStringCreativeTemplateVariableVariableChoice[] + */ + public $choices; + + /** + * @access public + * @var boolean + */ + public $allowOtherChoice; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable"; + } + + public function __construct($choices = NULL, $allowOtherChoice = NULL, $defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->choices = $choices; + $this->allowOtherChoice = $allowOtherChoice; + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("CreativeTemplateService", FALSE)) { +/** + * CreativeTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class CreativeTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", + "CreativeTemplateVariable" => "CreativeTemplateVariable", + "CreativeTemplate" => "CreativeTemplate", + "CreativeTemplateError" => "CreativeTemplateError", + "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", + "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", + "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", + "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", + "CreativeTemplatePage" => "CreativeTemplatePage", + "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", + "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", + "CreativeTemplateStatus" => "CreativeTemplateStatus", + "CreativeTemplateType" => "CreativeTemplateType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getCreativeTemplate" => "getCreativeTemplate", + "getCreativeTemplateResponse" => "getCreativeTemplateResponse", + "getCreativeTemplatesByStatement" => "getCreativeTemplatesByStatement", + "getCreativeTemplatesByStatementResponse" => "getCreativeTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/CreativeTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeTemplateService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + */ + public function getCreativeTemplate($creativeTemplateId) { + $arg = new getCreativeTemplate($creativeTemplateId); + $result = $this->__soapCall("getCreativeTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + */ + public function getCreativeTemplatesByStatement($filterStatement) { + $arg = new getCreativeTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getCreativeTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201208/CustomFieldService.php new file mode 100755 index 000000000..0cf06101d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CustomFieldService.php @@ -0,0 +1,3819 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldAction { + /** + * @access public + * @var string + */ + public $CustomFieldActionType; + + private $_parameterMap = array ( + "CustomFieldAction.Type" => "CustomFieldActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldAction"; + } + + public function __construct($CustomFieldActionType = NULL) { + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("CustomField", FALSE)) { +/** + * An additional, user-created field on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomField { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsCustomFieldEntityType + */ + public $entityType; + + /** + * @access public + * @var tnsCustomFieldDataType + */ + public $dataType; + + /** + * @access public + * @var tnsCustomFieldVisibility + */ + public $visibility; + + /** + * @access public + * @var string + */ + public $CustomFieldType; + + private $_parameterMap = array ( + "CustomField.Type" => "CustomFieldType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomField"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("CustomFieldError", FALSE)) { +/** + * Errors specific to editing custom fields + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldError extends ApiError { + /** + * @access public + * @var tnsCustomFieldErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError"; + } + + 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("CustomFieldOption", FALSE)) { +/** + * An option represents a permitted value for a custom field that + * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldOption { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldOption"; + } + + public function __construct($id = NULL, $customFieldId = NULL, $displayName = NULL) { + $this->id = $id; + $this->customFieldId = $customFieldId; + $this->displayName = $displayName; + } +}} + +if (!class_exists("CustomFieldPage", FALSE)) { +/** + * Captures a page of {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomField[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCustomFields", FALSE)) { +/** + * The action used for deactivating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("DropDownCustomField", FALSE)) { +/** + * A custom field that has the drop-down data type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DropDownCustomField extends CustomField { + /** + * @access public + * @var CustomFieldOption[] + */ + public $options; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomField"; + } + + public function __construct($options = NULL, $id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + parent::__construct(); + $this->options = $options; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldDataType", FALSE)) { +/** + * The data types allowed for {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldDataType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldDataType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldEntityType", FALSE)) { +/** + * Entity types recognized by custom fields + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldEntityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldEntityType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldVisibility", FALSE)) { +/** + * The visibility levels of a custom field. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldVisibility { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldVisibility"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomField", FALSE)) { +/** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("createCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOption", FALSE)) { +/** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("createCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOptions", FALSE)) { +/** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("createCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFields", FALSE)) { +/** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("createCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomField", FALSE)) { +/** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomField { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldId = NULL) { + $this->customFieldId = $customFieldId; + } +}} + +if (!class_exists("getCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldOption", FALSE)) { +/** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomFieldOption { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptionId = NULL) { + $this->customFieldOptionId = $customFieldOptionId; + } +}} + +if (!class_exists("getCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldsByStatement", FALSE)) { +/** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomFieldsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomFieldsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomFieldsByStatementResponse { + /** + * @access public + * @var CustomFieldPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomFieldAction", FALSE)) { +/** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performCustomFieldAction { + /** + * @access public + * @var CustomFieldAction + */ + public $customFieldAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldAction = NULL, $filterStatement = NULL) { + $this->customFieldAction = $customFieldAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomFieldActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performCustomFieldActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomField", FALSE)) { +/** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("updateCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOption", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("updateCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOptions", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("updateCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFields", FALSE)) { +/** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("updateCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCustomFields", FALSE)) { +/** + * The action used for activating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomFieldService", FALSE)) { +/** + * CustomFieldService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class CustomFieldService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCustomFields" => "ActivateCustomFields", + "CustomFieldAction" => "CustomFieldAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomField" => "CustomField", + "CustomFieldError" => "CustomFieldError", + "CustomFieldOption" => "CustomFieldOption", + "CustomFieldPage" => "CustomFieldPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateCustomFields" => "DeactivateCustomFields", + "DropDownCustomField" => "DropDownCustomField", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldDataType" => "CustomFieldDataType", + "CustomFieldEntityType" => "CustomFieldEntityType", + "CustomFieldError.Reason" => "CustomFieldErrorReason", + "CustomFieldVisibility" => "CustomFieldVisibility", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomField" => "createCustomField", + "createCustomFieldResponse" => "createCustomFieldResponse", + "createCustomFieldOption" => "createCustomFieldOption", + "createCustomFieldOptionResponse" => "createCustomFieldOptionResponse", + "createCustomFieldOptions" => "createCustomFieldOptions", + "createCustomFieldOptionsResponse" => "createCustomFieldOptionsResponse", + "createCustomFields" => "createCustomFields", + "createCustomFieldsResponse" => "createCustomFieldsResponse", + "getCustomField" => "getCustomField", + "getCustomFieldResponse" => "getCustomFieldResponse", + "getCustomFieldOption" => "getCustomFieldOption", + "getCustomFieldOptionResponse" => "getCustomFieldOptionResponse", + "getCustomFieldsByStatement" => "getCustomFieldsByStatement", + "getCustomFieldsByStatementResponse" => "getCustomFieldsByStatementResponse", + "performCustomFieldAction" => "performCustomFieldAction", + "performCustomFieldActionResponse" => "performCustomFieldActionResponse", + "updateCustomField" => "updateCustomField", + "updateCustomFieldResponse" => "updateCustomFieldResponse", + "updateCustomFieldOption" => "updateCustomFieldOption", + "updateCustomFieldOptionResponse" => "updateCustomFieldOptionResponse", + "updateCustomFieldOptions" => "updateCustomFieldOptions", + "updateCustomFieldOptionsResponse" => "updateCustomFieldOptionsResponse", + "updateCustomFields" => "updateCustomFields", + "updateCustomFieldsResponse" => "updateCustomFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/CustomFieldService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomFieldService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomFieldService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + */ + public function createCustomField($customField) { + $arg = new createCustomField($customField); + $result = $this->__soapCall("createCustomField", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + */ + public function createCustomFieldOption($customFieldOption) { + $arg = new createCustomFieldOption($customFieldOption); + $result = $this->__soapCall("createCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + */ + public function createCustomFieldOptions($customFieldOptions) { + $arg = new createCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("createCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + */ + public function createCustomFields($customFields) { + $arg = new createCustomFields($customFields); + $result = $this->__soapCall("createCustomFields", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + */ + public function getCustomField($customFieldId) { + $arg = new getCustomField($customFieldId); + $result = $this->__soapCall("getCustomField", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + */ + public function getCustomFieldOption($customFieldOptionId) { + $arg = new getCustomFieldOption($customFieldOptionId); + $result = $this->__soapCall("getCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + */ + public function getCustomFieldsByStatement($filterStatement) { + $arg = new getCustomFieldsByStatement($filterStatement); + $result = $this->__soapCall("getCustomFieldsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + */ + public function performCustomFieldAction($customFieldAction, $filterStatement) { + $arg = new performCustomFieldAction($customFieldAction, $filterStatement); + $result = $this->__soapCall("performCustomFieldAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + */ + public function updateCustomField($customField) { + $arg = new updateCustomField($customField); + $result = $this->__soapCall("updateCustomField", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + */ + public function updateCustomFieldOption($customFieldOption) { + $arg = new updateCustomFieldOption($customFieldOption); + $result = $this->__soapCall("updateCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + */ + public function updateCustomFieldOptions($customFieldOptions) { + $arg = new updateCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("updateCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + */ + public function updateCustomFields($customFields) { + $arg = new updateCustomFields($customFields); + $result = $this->__soapCall("updateCustomFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201208/CustomTargetingService.php new file mode 100755 index 000000000..8d5e2d9b7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/CustomTargetingService.php @@ -0,0 +1,3519 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomTargetingKeyAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingKey} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingKeyAction { + /** + * @access public + * @var string + */ + public $CustomTargetingKeyActionType; + + private $_parameterMap = array ( + "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyAction"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("CustomTargetingKey", FALSE)) { +/** + * {@code CustomTargetingKey} represents a key used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingKey { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingKeyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey"; + } + + public function __construct($id = NULL, $name = NULL, $displayName = NULL, $type = NULL) { + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->type = $type; + } +}} + +if (!class_exists("CustomTargetingKeyPage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingKeyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomTargetingValueAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingValue} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingValueAction { + /** + * @access public + * @var string + */ + public $CustomTargetingValueActionType; + + private $_parameterMap = array ( + "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValueAction"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("CustomTargetingValue", FALSE)) { +/** + * {@code CustomTargetingValue} represents a value used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingValue { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingValueMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue"; + } + + public function __construct($customTargetingKeyId = NULL, $id = NULL, $name = NULL, $displayName = NULL, $matchType = NULL) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->matchType = $matchType; + } +}} + +if (!class_exists("CustomTargetingValuePage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingValuePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValuePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeleteCustomTargetingKeys", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingKey} objects. Deleting a key will not delete the + * {@link CustomTargetingValue} objects associated with it. Also, if a custom + * targeting key that has been deleted is recreated, any previous custom + * targeting values associated with it that were not deleted will continue to + * exist. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingKeys"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + parent::__construct(); + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("DeleteCustomTargetingValues", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingValues"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + parent::__construct(); + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingKeyType", FALSE)) { +/** + * Specifies the types for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingKeyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingValueMatchType", FALSE)) { +/** + * Represents the ways in which {@link CustomTargetingValue#name} strings will + * be matched with ad requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingValueMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue.MatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomTargetingKeys", FALSE)) { +/** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("createCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomTargetingValues", FALSE)) { +/** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("createCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomTargetingKeysByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomTargetingKeysByStatementResponse { + /** + * @access public + * @var CustomTargetingKeyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomTargetingValuesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCustomTargetingValuesByStatementResponse { + /** + * @access public + * @var CustomTargetingValuePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingKeyAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performCustomTargetingKeyAction { + /** + * @access public + * @var CustomTargetingKeyAction + */ + public $customTargetingKeyAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingKeyAction = NULL, $filterStatement = NULL) { + $this->customTargetingKeyAction = $customTargetingKeyAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingKeyActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performCustomTargetingKeyActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingValueAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performCustomTargetingValueAction { + /** + * @access public + * @var CustomTargetingValueAction + */ + public $customTargetingValueAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingValueAction = NULL, $filterStatement = NULL) { + $this->customTargetingValueAction = $customTargetingValueAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingValueActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performCustomTargetingValueActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingKeys", FALSE)) { +/** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("updateCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingValues", FALSE)) { +/** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("updateCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomTargetingService", FALSE)) { +/** + * CustomTargetingService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class CustomTargetingService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", + "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "CustomTargetingKey.Type" => "CustomTargetingKeyType", + "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomTargetingKeys" => "createCustomTargetingKeys", + "createCustomTargetingKeysResponse" => "createCustomTargetingKeysResponse", + "createCustomTargetingValues" => "createCustomTargetingValues", + "createCustomTargetingValuesResponse" => "createCustomTargetingValuesResponse", + "getCustomTargetingKeysByStatement" => "getCustomTargetingKeysByStatement", + "getCustomTargetingKeysByStatementResponse" => "getCustomTargetingKeysByStatementResponse", + "getCustomTargetingValuesByStatement" => "getCustomTargetingValuesByStatement", + "getCustomTargetingValuesByStatementResponse" => "getCustomTargetingValuesByStatementResponse", + "performCustomTargetingKeyAction" => "performCustomTargetingKeyAction", + "performCustomTargetingKeyActionResponse" => "performCustomTargetingKeyActionResponse", + "performCustomTargetingValueAction" => "performCustomTargetingValueAction", + "performCustomTargetingValueActionResponse" => "performCustomTargetingValueActionResponse", + "updateCustomTargetingKeys" => "updateCustomTargetingKeys", + "updateCustomTargetingKeysResponse" => "updateCustomTargetingKeysResponse", + "updateCustomTargetingValues" => "updateCustomTargetingValues", + "updateCustomTargetingValuesResponse" => "updateCustomTargetingValuesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/CustomTargetingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomTargetingService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomTargetingService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingKeys($keys) { + $arg = new createCustomTargetingKeys($keys); + $result = $this->__soapCall("createCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingValues($values) { + $arg = new createCustomTargetingValues($values); + $result = $this->__soapCall("createCustomTargetingValues", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + */ + public function getCustomTargetingKeysByStatement($filterStatement) { + $arg = new getCustomTargetingKeysByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + */ + public function getCustomTargetingValuesByStatement($filterStatement) { + $arg = new getCustomTargetingValuesByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + */ + public function performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement) { + $arg = new performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingKeyAction", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performCustomTargetingValueAction($customTargetingValueAction, $filterStatement) { + $arg = new performCustomTargetingValueAction($customTargetingValueAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingValueAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function updateCustomTargetingKeys($keys) { + $arg = new updateCustomTargetingKeys($keys); + $result = $this->__soapCall("updateCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + */ + public function updateCustomTargetingValues($values) { + $arg = new updateCustomTargetingValues($values); + $result = $this->__soapCall("updateCustomTargetingValues", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/ForecastService.php b/src/Google/Api/Ads/Dfp/v201208/ForecastService.php new file mode 100755 index 000000000..c9c2cddce --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/ForecastService.php @@ -0,0 +1,8309 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("Forecast", FALSE)) { +/** + * Describes predicted inventory availability for a line item with the specified + * properties. + * + *

      Inventory has three threshold values along a line of possible inventory. + * From least to most, these are: + * + *

        + *
      • Available units -- How many units can be booked without affecting any + * other line items. Booking more than this number can overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because if more impressions are + * served than are predicted, the extra available inventory might enable all + * inventory guarantees to be met without overbooking. + * + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Forecast { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $deliveredUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var integer + */ + public $possibleUnits; + + /** + * @access public + * @var integer + */ + public $reservedUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Forecast"; + } + + public function __construct($id = NULL, $orderId = NULL, $unitType = NULL, $availableUnits = NULL, $deliveredUnits = NULL, $matchedUnits = NULL, $possibleUnits = NULL, $reservedUnits = NULL) { + $this->id = $id; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->availableUnits = $availableUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + $this->possibleUnits = $possibleUnits; + $this->reservedUnits = $reservedUnits; + } +}} + +if (!class_exists("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoPositionTargeting { + /** + * @access public + * @var tnsVideoPositionTargetingType[] + */ + public $targetedVideoPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedVideoPositions = NULL) { + $this->targetedVideoPositions = $targetedVideoPositions; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionTargetingType", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoPositionTargetingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargetingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("getForecast", FALSE)) { +/** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getForecast { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("getForecastResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getForecastResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getForecastById", FALSE)) { +/** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getForecastById { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getForecastByIdResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getForecastByIdResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ForecastService", FALSE)) { +/** + * ForecastService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class ForecastService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "Forecast" => "Forecast", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPositionTargeting" => "VideoPositionTargeting", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoPositionTargetingType" => "VideoPositionTargetingType", + "getForecast" => "getForecast", + "getForecastResponse" => "getForecastResponse", + "getForecastById" => "getForecastById", + "getForecastByIdResponse" => "getForecastByIdResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/ForecastService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ForecastService::$classmap; + parent::__construct($wsdl, $options, $user, 'ForecastService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + */ + public function getForecast($lineItem) { + $arg = new getForecast($lineItem); + $result = $this->__soapCall("getForecast", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + */ + public function getForecastById($lineItemId) { + $arg = new getForecastById($lineItemId); + $result = $this->__soapCall("getForecastById", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/InventoryService.php b/src/Google/Api/Ads/Dfp/v201208/InventoryService.php new file mode 100755 index 000000000..6934c20e8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/InventoryService.php @@ -0,0 +1,5081 @@ +adSenseEnabled = $adSenseEnabled; + $this->borderColor = $borderColor; + $this->titleColor = $titleColor; + $this->backgroundColor = $backgroundColor; + $this->textColor = $textColor; + $this->urlColor = $urlColor; + $this->adType = $adType; + $this->borderStyle = $borderStyle; + $this->fontFamily = $fontFamily; + $this->fontSize = $fontSize; + $this->afcFormats = $afcFormats; + } +}} + +if (!class_exists("AdSenseSettingsInheritedProperty", FALSE)) { +/** + * The property of the AdUnit that specifies how and from where the + * AdSenseSettings are inherited. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseSettingsInheritedProperty { + /** + * @access public + * @var AdSenseSettings + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettingsInheritedProperty"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("AdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitAction { + /** + * @access public + * @var string + */ + public $AdUnitActionType; + + private $_parameterMap = array ( + "AdUnitAction.Type" => "AdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAction"; + } + + public function __construct($AdUnitActionType = NULL) { + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdUnit", FALSE)) { +/** + * An {@code AdUnit} represents a chunk of identified inventory for the + * publisher. It contains all the settings that need to be associated with + * inventory in order to serve ads to it. An {@code AdUnit} can also be the + * parent of other ad units in the inventory hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $parentId; + + /** + * @access public + * @var boolean + */ + public $hasChildren; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $adUnitCode; + + /** + * @access public + * @var AdUnitSize[] + */ + public $adUnitSizes; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsMobilePlatform + */ + public $mobilePlatform; + + /** + * @access public + * @var boolean + */ + public $explicitlyTargeted; + + /** + * @access public + * @var AdSenseSettingsInheritedProperty + */ + public $inheritedAdSenseSettings; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $appliedLabelFrequencyCaps; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $effectiveLabelFrequencyCaps; + + /** + * @access public + * @var integer[] + */ + public $effectiveTeamIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit"; + } + + public function __construct($id = NULL, $parentId = NULL, $hasChildren = NULL, $parentPath = NULL, $name = NULL, $description = NULL, $targetWindow = NULL, $status = NULL, $adUnitCode = NULL, $adUnitSizes = NULL, $targetPlatform = NULL, $mobilePlatform = NULL, $explicitlyTargeted = NULL, $inheritedAdSenseSettings = NULL, $appliedLabelFrequencyCaps = NULL, $effectiveLabelFrequencyCaps = NULL, $effectiveTeamIds = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->parentId = $parentId; + $this->hasChildren = $hasChildren; + $this->parentPath = $parentPath; + $this->name = $name; + $this->description = $description; + $this->targetWindow = $targetWindow; + $this->status = $status; + $this->adUnitCode = $adUnitCode; + $this->adUnitSizes = $adUnitSizes; + $this->targetPlatform = $targetPlatform; + $this->mobilePlatform = $mobilePlatform; + $this->explicitlyTargeted = $explicitlyTargeted; + $this->inheritedAdSenseSettings = $inheritedAdSenseSettings; + $this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; + $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; + $this->effectiveTeamIds = $effectiveTeamIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("AdUnitParent", FALSE)) { +/** + * The summary of a parent {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitParent { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitParent"; + } + + public function __construct($id = NULL, $name = NULL) { + $this->id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveAdUnits", FALSE)) { +/** + * The action used for archiving {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ArchiveAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AssignAdUnitsToPlacement", FALSE)) { +/** + * The action used for assigning a group of {@link AdUnit} objects to a + * {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssignAdUnitsToPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateAdUnits", FALSE)) { +/** + * The action used for deactivating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidColorError", FALSE)) { +/** + * A list of all errors associated with a color attribute. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidColorError extends ApiError { + /** + * @access public + * @var tnsInvalidColorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("InventoryUnitPartnerAssociationError", FALSE)) { +/** + * Errors relating to the association of partner companies with inventory units. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitPartnerAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("InventoryUnitSizesError", FALSE)) { +/** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitSizesError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError"; + } + + 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("AdUnitTypeError", FALSE)) { +/** + * Lists the errors associated with the type of {@link AdUnit} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitTypeError extends ApiError { + /** + * @access public + * @var tnsAdUnitTypeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError"; + } + + 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("LabelFrequencyCap", FALSE)) { +/** + * A {@code LabelFrequencyCap} assigns a frequency cap to a label. The + * frequency cap will limit the cumulative number of impressions of any ad + * units with this label that may be shown to a particular user over a time + * unit. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelFrequencyCap { + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelFrequencyCap"; + } + + public function __construct($frequencyCap = NULL, $labelId = NULL) { + $this->frequencyCap = $frequencyCap; + $this->labelId = $labelId; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size_StringMapEntry { + /** + * @access public + * @var Size + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsAdType", FALSE)) { +/** + * Specifies the type of ads that can be served through this {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseSettingsAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.AdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsBorderStyle", FALSE)) { +/** + * Describes the border of the HTML elements used to surround an ad + * displayed by the {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseSettingsBorderStyle { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.BorderStyle"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontFamily", FALSE)) { +/** + * List of all possible font families. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseSettingsFontFamily { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontFamily"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontSize", FALSE)) { +/** + * List of all possible font sizes the user can choose. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseSettingsFontSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontSize"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidColorErrorReason", FALSE)) { +/** + * The provided value is not a valid hexadecimal color. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidColorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitPartnerAssociationErrorReason", FALSE)) { +/** + * Partner association error reason types. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitPartnerAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitSizesErrorReason", FALSE)) { +/** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitSizesErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTypeErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitTypeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobilePlatform", FALSE)) { +/** + * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit + * appears in a mobile application or in a mobile web site. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobilePlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobilePlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdUnit", FALSE)) { +/** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("createAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdUnits", FALSE)) { +/** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("createAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnit", FALSE)) { +/** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAdUnit { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitId = NULL) { + $this->adUnitId = $adUnitId; + } +}} + +if (!class_exists("getAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitSizesByStatement", FALSE)) { +/** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAdUnitSizesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitSizesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAdUnitSizesByStatementResponse { + /** + * @access public + * @var AdUnitSize[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAdUnitsByStatementResponse { + /** + * @access public + * @var AdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdUnitAction", FALSE)) { +/** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performAdUnitAction { + /** + * @access public + * @var AdUnitAction + */ + public $adUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitAction = NULL, $filterStatement = NULL) { + $this->adUnitAction = $adUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performAdUnitActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnit", FALSE)) { +/** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("updateAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnits", FALSE)) { +/** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("updateAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdUnits", FALSE)) { +/** + * The action used for activating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("InventoryService", FALSE)) { +/** + * InventoryService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class InventoryService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdUnits" => "ActivateAdUnits", + "AdUnitAction" => "AdUnitAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "AdSenseSettings" => "AdSenseSettings", + "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnit" => "AdUnit", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "AdUnitPage" => "AdUnitPage", + "AdUnitParent" => "AdUnitParent", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchiveAdUnits" => "ArchiveAdUnits", + "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateAdUnits" => "DeactivateAdUnits", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "InternalApiError" => "InternalApiError", + "InvalidColorError" => "InvalidColorError", + "InventoryUnitError" => "InventoryUnitError", + "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", + "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", + "AdUnitTypeError" => "AdUnitTypeError", + "LabelFrequencyCap" => "LabelFrequencyCap", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "Size_StringMapEntry" => "Size_StringMapEntry", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "AdSenseSettings.AdType" => "AdSenseSettingsAdType", + "AdSenseSettings.BorderStyle" => "AdSenseSettingsBorderStyle", + "AdSenseSettings.FontFamily" => "AdSenseSettingsFontFamily", + "AdSenseSettings.FontSize" => "AdSenseSettingsFontSize", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidColorError.Reason" => "InvalidColorErrorReason", + "InventoryStatus" => "InventoryStatus", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", + "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", + "MobilePlatform" => "MobilePlatform", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TimeUnit" => "TimeUnit", + "createAdUnit" => "createAdUnit", + "createAdUnitResponse" => "createAdUnitResponse", + "createAdUnits" => "createAdUnits", + "createAdUnitsResponse" => "createAdUnitsResponse", + "getAdUnit" => "getAdUnit", + "getAdUnitResponse" => "getAdUnitResponse", + "getAdUnitSizesByStatement" => "getAdUnitSizesByStatement", + "getAdUnitSizesByStatementResponse" => "getAdUnitSizesByStatementResponse", + "getAdUnitsByStatement" => "getAdUnitsByStatement", + "getAdUnitsByStatementResponse" => "getAdUnitsByStatementResponse", + "performAdUnitAction" => "performAdUnitAction", + "performAdUnitActionResponse" => "performAdUnitActionResponse", + "updateAdUnit" => "updateAdUnit", + "updateAdUnitResponse" => "updateAdUnitResponse", + "updateAdUnits" => "updateAdUnits", + "updateAdUnitsResponse" => "updateAdUnitsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/InventoryService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = InventoryService::$classmap; + parent::__construct($wsdl, $options, $user, 'InventoryService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + */ + public function createAdUnit($adUnit) { + $arg = new createAdUnit($adUnit); + $result = $this->__soapCall("createAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + */ + public function createAdUnits($adUnits) { + $arg = new createAdUnits($adUnits); + $result = $this->__soapCall("createAdUnits", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + */ + public function getAdUnit($adUnitId) { + $arg = new getAdUnit($adUnitId); + $result = $this->__soapCall("getAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + */ + public function getAdUnitSizesByStatement($filterStatement) { + $arg = new getAdUnitSizesByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitSizesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + */ + public function getAdUnitsByStatement($filterStatement) { + $arg = new getAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performAdUnitAction($adUnitAction, $filterStatement) { + $arg = new performAdUnitAction($adUnitAction, $filterStatement); + $result = $this->__soapCall("performAdUnitAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + */ + public function updateAdUnit($adUnit) { + $arg = new updateAdUnit($adUnit); + $result = $this->__soapCall("updateAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + */ + public function updateAdUnits($adUnits) { + $arg = new updateAdUnits($adUnits); + $result = $this->__soapCall("updateAdUnits", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/LabelService.php b/src/Google/Api/Ads/Dfp/v201208/LabelService.php new file mode 100755 index 000000000..0c76e2712 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/LabelService.php @@ -0,0 +1,3244 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelAction { + /** + * @access public + * @var string + */ + public $LabelActionType; + + private $_parameterMap = array ( + "LabelAction.Type" => "LabelActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelAction"; + } + + public function __construct($LabelActionType = NULL) { + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Label { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Label"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $types = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLabel", FALSE)) { +/** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("createLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLabels", FALSE)) { +/** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("createLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabel", FALSE)) { +/** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelId = NULL) { + $this->labelId = $labelId; + } +}} + +if (!class_exists("getLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabelsByStatement", FALSE)) { +/** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLabelsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLabelsByStatementResponse { + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performLabelAction { + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelAction = NULL, $filterStatement = NULL) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performLabelActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("updateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("updateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class LabelService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLabels" => "ActivateLabels", + "LabelAction" => "LabelAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createLabel" => "createLabel", + "createLabelResponse" => "createLabelResponse", + "createLabels" => "createLabels", + "createLabelsResponse" => "createLabelsResponse", + "getLabel" => "getLabel", + "getLabelResponse" => "getLabelResponse", + "getLabelsByStatement" => "getLabelsByStatement", + "getLabelsByStatementResponse" => "getLabelsByStatementResponse", + "performLabelAction" => "performLabelAction", + "performLabelActionResponse" => "performLabelActionResponse", + "updateLabel" => "updateLabel", + "updateLabelResponse" => "updateLabelResponse", + "updateLabels" => "updateLabels", + "updateLabelsResponse" => "updateLabelsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/LabelService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LabelService::$classmap; + parent::__construct($wsdl, $options, $user, 'LabelService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + */ + public function createLabel($label) { + $arg = new createLabel($label); + $result = $this->__soapCall("createLabel", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + */ + public function createLabels($labels) { + $arg = new createLabels($labels); + $result = $this->__soapCall("createLabels", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + */ + public function getLabel($labelId) { + $arg = new getLabel($labelId); + $result = $this->__soapCall("getLabel", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $arg = new getLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performLabelAction($labelAction, $filterStatement) { + $arg = new performLabelAction($labelAction, $filterStatement); + $result = $this->__soapCall("performLabelAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + */ + public function updateLabel($label) { + $arg = new updateLabel($label); + $result = $this->__soapCall("updateLabel", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $arg = new updateLabels($labels); + $result = $this->__soapCall("updateLabels", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201208/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..4ff5f93b3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/LineItemCreativeAssociationService.php @@ -0,0 +1,4775 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on + * {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationAction { + /** + * @access public + * @var string + */ + public $LineItemCreativeAssociationActionType; + + private $_parameterMap = array ( + "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationAction"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociation", FALSE)) { +/** + * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a + * {@link LineItem} so that the creative can be served in ad units targeted by the line item. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * @access public + * @var double + */ + public $manualCreativeRotationWeight; + + /** + * @access public + * @var integer + */ + public $sequentialCreativeRotationIndex; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var Size[] + */ + public $sizes; + + /** + * @access public + * @var tnsLineItemCreativeAssociationStatus + */ + public $status; + + /** + * @access public + * @var LineItemCreativeAssociationStats + */ + public $stats; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation"; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $creativeSetId = NULL, $manualCreativeRotationWeight = NULL, $sequentialCreativeRotationIndex = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $destinationUrl = NULL, $sizes = NULL, $status = NULL, $stats = NULL, $lastModifiedDateTime = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->creativeSetId = $creativeSetId; + $this->manualCreativeRotationWeight = $manualCreativeRotationWeight; + $this->sequentialCreativeRotationIndex = $sequentialCreativeRotationIndex; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->destinationUrl = $destinationUrl; + $this->sizes = $sizes; + $this->status = $status; + $this->stats = $stats; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemCreativeAssociationOperationError", FALSE)) { +/** + * Lists all errors for executing operations on + * line item-to-creative associations + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError"; + } + + 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("LineItemCreativeAssociationPage", FALSE)) { +/** + * Captures a page of {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemCreativeAssociationStats", FALSE)) { +/** + * Contains statistics such as impressions, clicks delivered and cost + * for {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationStats { + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var Money + */ + public $costInOrderCurrency; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationStats"; + } + + public function __construct($stats = NULL, $costInOrderCurrency = NULL) { + $this->stats = $stats; + $this->costInOrderCurrency = $costInOrderCurrency; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationStatus", FALSE)) { +/** + * Describes the status of the association. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItemCreativeAssociation", FALSE)) { +/** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("createLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItemCreativeAssociations", FALSE)) { +/** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("createLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociation", FALSE)) { +/** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatement", FALSE)) { +/** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLineItemCreativeAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLineItemCreativeAssociationsByStatementResponse { + /** + * @access public + * @var LineItemCreativeAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPreviewUrl", FALSE)) { +/** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getPreviewUrl { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var string + */ + public $siteUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $siteUrl = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->siteUrl = $siteUrl; + } +}} + +if (!class_exists("getPreviewUrlResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getPreviewUrlResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemCreativeAssociationAction", FALSE)) { +/** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performLineItemCreativeAssociationAction { + /** + * @access public + * @var LineItemCreativeAssociationAction + */ + public $lineItemCreativeAssociationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociationAction = NULL, $filterStatement = NULL) { + $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemCreativeAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performLineItemCreativeAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociation", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociations", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for activating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemCreativeAssociationService", FALSE)) { +/** + * LineItemCreativeAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", + "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSetError" => "CreativeSetError", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociation" => "LineItemCreativeAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", + "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", + "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createLineItemCreativeAssociation" => "createLineItemCreativeAssociation", + "createLineItemCreativeAssociationResponse" => "createLineItemCreativeAssociationResponse", + "createLineItemCreativeAssociations" => "createLineItemCreativeAssociations", + "createLineItemCreativeAssociationsResponse" => "createLineItemCreativeAssociationsResponse", + "getLineItemCreativeAssociation" => "getLineItemCreativeAssociation", + "getLineItemCreativeAssociationResponse" => "getLineItemCreativeAssociationResponse", + "getLineItemCreativeAssociationsByStatement" => "getLineItemCreativeAssociationsByStatement", + "getLineItemCreativeAssociationsByStatementResponse" => "getLineItemCreativeAssociationsByStatementResponse", + "getPreviewUrl" => "getPreviewUrl", + "getPreviewUrlResponse" => "getPreviewUrlResponse", + "performLineItemCreativeAssociationAction" => "performLineItemCreativeAssociationAction", + "performLineItemCreativeAssociationActionResponse" => "performLineItemCreativeAssociationActionResponse", + "updateLineItemCreativeAssociation" => "updateLineItemCreativeAssociation", + "updateLineItemCreativeAssociationResponse" => "updateLineItemCreativeAssociationResponse", + "updateLineItemCreativeAssociations" => "updateLineItemCreativeAssociations", + "updateLineItemCreativeAssociationsResponse" => "updateLineItemCreativeAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/LineItemCreativeAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemCreativeAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemCreativeAssociationService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + */ + public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new createLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("createLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + */ + public function createLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new createLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("createLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + */ + public function getLineItemCreativeAssociation($lineItemId, $creativeId) { + $arg = new getLineItemCreativeAssociation($lineItemId, $creativeId); + $result = $this->__soapCall("getLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + */ + public function getLineItemCreativeAssociationsByStatement($filterStatement) { + $arg = new getLineItemCreativeAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + */ + public function getPreviewUrl($lineItemId, $creativeId, $siteUrl) { + $arg = new getPreviewUrl($lineItemId, $creativeId, $siteUrl); + $result = $this->__soapCall("getPreviewUrl", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + */ + public function performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement) { + $arg = new performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); + $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + */ + public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new updateLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("updateLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + */ + public function updateLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new updateLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("updateLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/LineItemService.php b/src/Google/Api/Ads/Dfp/v201208/LineItemService.php new file mode 100755 index 000000000..1ce583632 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/LineItemService.php @@ -0,0 +1,9051 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemAction { + /** + * @access public + * @var string + */ + public $LineItemActionType; + + private $_parameterMap = array ( + "LineItemAction.Type" => "LineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemAction"; + } + + public function __construct($LineItemActionType = NULL) { + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemPage", FALSE)) { +/** + * Captures a page of {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItem[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseLineItems", FALSE)) { +/** + * The action used for pausing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PauseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ReleaseLineItems", FALSE)) { +/** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReleaseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReleaseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ReserveLineItems", FALSE)) { +/** + * The action used for reserving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReserveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ResumeLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveLineItems", FALSE)) { +/** + * The action used for unarchiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UnarchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoPositionTargeting { + /** + * @access public + * @var tnsVideoPositionTargetingType[] + */ + public $targetedVideoPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedVideoPositions = NULL) { + $this->targetedVideoPositions = $targetedVideoPositions; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionTargetingType", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class VideoPositionTargetingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargetingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItem", FALSE)) { +/** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("createLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItems", FALSE)) { +/** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("createLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItem", FALSE)) { +/** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLineItem { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemsByStatement", FALSE)) { +/** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getLineItemsByStatementResponse { + /** + * @access public + * @var LineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemAction", FALSE)) { +/** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performLineItemAction { + /** + * @access public + * @var LineItemAction + */ + public $lineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemAction = NULL, $filterStatement = NULL) { + $this->lineItemAction = $lineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItem", FALSE)) { +/** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("updateLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItems", FALSE)) { +/** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("updateLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItems", FALSE)) { +/** + * The action used for activating {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveLineItems", FALSE)) { +/** + * The action used for archiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ArchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteLineItems", FALSE)) { +/** + * The action used for deleting {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeleteLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("ReserveAndOverbookLineItems", FALSE)) { +/** + * The action used for reserving and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveAndOverbookLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("LineItemService", FALSE)) { +/** + * LineItemService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class LineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItems" => "ActivateLineItems", + "LineItemAction" => "LineItemAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveLineItems" => "ArchiveLineItems", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeleteLineItems" => "DeleteLineItems", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemPage" => "LineItemPage", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PauseLineItems" => "PauseLineItems", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "ReleaseLineItems" => "ReleaseLineItems", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", + "ReserveLineItems" => "ReserveLineItems", + "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", + "ResumeLineItems" => "ResumeLineItems", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UnarchiveLineItems" => "UnarchiveLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPositionTargeting" => "VideoPositionTargeting", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoPositionTargetingType" => "VideoPositionTargetingType", + "createLineItem" => "createLineItem", + "createLineItemResponse" => "createLineItemResponse", + "createLineItems" => "createLineItems", + "createLineItemsResponse" => "createLineItemsResponse", + "getLineItem" => "getLineItem", + "getLineItemResponse" => "getLineItemResponse", + "getLineItemsByStatement" => "getLineItemsByStatement", + "getLineItemsByStatementResponse" => "getLineItemsByStatementResponse", + "performLineItemAction" => "performLineItemAction", + "performLineItemActionResponse" => "performLineItemActionResponse", + "updateLineItem" => "updateLineItem", + "updateLineItemResponse" => "updateLineItemResponse", + "updateLineItems" => "updateLineItems", + "updateLineItemsResponse" => "updateLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/LineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + */ + public function createLineItem($lineItem) { + $arg = new createLineItem($lineItem); + $result = $this->__soapCall("createLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + */ + public function createLineItems($lineItems) { + $arg = new createLineItems($lineItems); + $result = $this->__soapCall("createLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + */ + public function getLineItem($lineItemId) { + $arg = new getLineItem($lineItemId); + $result = $this->__soapCall("getLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + */ + public function getLineItemsByStatement($filterStatement) { + $arg = new getLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + */ + public function performLineItemAction($lineItemAction, $filterStatement) { + $arg = new performLineItemAction($lineItemAction, $filterStatement); + $result = $this->__soapCall("performLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + */ + public function updateLineItem($lineItem) { + $arg = new updateLineItem($lineItem); + $result = $this->__soapCall("updateLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + */ + public function updateLineItems($lineItems) { + $arg = new updateLineItems($lineItems); + $result = $this->__soapCall("updateLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/NetworkService.php b/src/Google/Api/Ads/Dfp/v201208/NetworkService.php new file mode 100755 index 000000000..d2df21d16 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/NetworkService.php @@ -0,0 +1,2173 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("Network", FALSE)) { +/** + * {@code Network} represents a network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Network { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $propertyCode; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $effectiveRootAdUnitId; + + /** + * @access public + * @var integer + */ + public $contentBrowseCustomTargetingKeyId; + + /** + * @access public + * @var boolean + */ + public $isTest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Network"; + } + + public function __construct($id = NULL, $displayName = NULL, $networkCode = NULL, $propertyCode = NULL, $timeZone = NULL, $currencyCode = NULL, $effectiveRootAdUnitId = NULL, $contentBrowseCustomTargetingKeyId = NULL, $isTest = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->networkCode = $networkCode; + $this->propertyCode = $propertyCode; + $this->timeZone = $timeZone; + $this->currencyCode = $currencyCode; + $this->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworks", FALSE)) { +/** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAllNetworks { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworksResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAllNetworksResponse { + /** + * @access public + * @var Network[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentNetwork", FALSE)) { +/** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCurrentNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCurrentNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("makeTestNetwork", FALSE)) { +/** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class makeTestNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("makeTestNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class makeTestNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateNetwork", FALSE)) { +/** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateNetwork { + /** + * @access public + * @var Network + */ + public $network; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($network = NULL) { + $this->network = $network; + } +}} + +if (!class_exists("updateNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NetworkService", FALSE)) { +/** + * NetworkService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class NetworkService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "Network" => "Network", + "NotNullError" => "NotNullError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getAllNetworks" => "getAllNetworks", + "getAllNetworksResponse" => "getAllNetworksResponse", + "getCurrentNetwork" => "getCurrentNetwork", + "getCurrentNetworkResponse" => "getCurrentNetworkResponse", + "makeTestNetwork" => "makeTestNetwork", + "makeTestNetworkResponse" => "makeTestNetworkResponse", + "updateNetwork" => "updateNetwork", + "updateNetworkResponse" => "updateNetworkResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/NetworkService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = NetworkService::$classmap; + parent::__construct($wsdl, $options, $user, 'NetworkService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + */ + public function getAllNetworks() { + $arg = new getAllNetworks(); + $result = $this->__soapCall("getAllNetworks", array($arg)); + return $result->rval; + } + + + /** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + */ + public function getCurrentNetwork() { + $arg = new getCurrentNetwork(); + $result = $this->__soapCall("getCurrentNetwork", array($arg)); + return $result->rval; + } + + + /** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + */ + public function makeTestNetwork() { + $arg = new makeTestNetwork(); + $result = $this->__soapCall("makeTestNetwork", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + */ + public function updateNetwork($network) { + $arg = new updateNetwork($network); + $result = $this->__soapCall("updateNetwork", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/OrderService.php b/src/Google/Api/Ads/Dfp/v201208/OrderService.php new file mode 100755 index 000000000..d13741d10 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/OrderService.php @@ -0,0 +1,4889 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderAction { + /** + * @access public + * @var string + */ + public $OrderActionType; + + private $_parameterMap = array ( + "OrderAction.Type" => "OrderActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderAction"; + } + + public function __construct($OrderActionType = NULL) { + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("Order", FALSE)) { +/** + * An {@code Order} represents a grouping of individual {@link LineItem} + * objects, each of which fulfill an ad request from a particular advertiser. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Order { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsOrderStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var integer + */ + public $externalOrderId; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer + */ + public $agencyId; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var integer + */ + public $traffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer + */ + public $salespersonId; + + /** + * @access public + * @var integer[] + */ + public $secondarySalespersonIds; + + /** + * @access public + * @var integer + */ + public $totalImpressionsDelivered; + + /** + * @access public + * @var integer + */ + public $totalClicksDelivered; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Order"; + } + + public function __construct($id = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $isArchived = NULL, $notes = NULL, $externalOrderId = NULL, $poNumber = NULL, $currencyCode = NULL, $advertiserId = NULL, $agencyId = NULL, $creatorId = NULL, $traffickerId = NULL, $secondaryTraffickerIds = NULL, $salespersonId = NULL, $secondarySalespersonIds = NULL, $totalImpressionsDelivered = NULL, $totalClicksDelivered = NULL, $totalBudget = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $lastModifiedByApp = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->notes = $notes; + $this->externalOrderId = $externalOrderId; + $this->poNumber = $poNumber; + $this->currencyCode = $currencyCode; + $this->advertiserId = $advertiserId; + $this->agencyId = $agencyId; + $this->creatorId = $creatorId; + $this->traffickerId = $traffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->salespersonId = $salespersonId; + $this->secondarySalespersonIds = $secondarySalespersonIds; + $this->totalImpressionsDelivered = $totalImpressionsDelivered; + $this->totalClicksDelivered = $totalClicksDelivered; + $this->totalBudget = $totalBudget; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("OrderPage", FALSE)) { +/** + * Captures a page of {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Order[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseOrders", FALSE)) { +/** + * The action used for pausing {@link Order} objects. All {@link LineItem} + * objects within the order will be paused as well. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PauseOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ResumeOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RetractOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for retracting {@link Order} objects. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitOrdersForApproval", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SubmitOrdersForApproval extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApproval"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalAndOverbook"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalWithoutReservationChanges", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. This + * action does not make any changes to the {@link LineItem#reservationStatus} + * of the line items within the order. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveOrders", FALSE)) { +/** + * The action used for unarchiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UnarchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderStatus", FALSE)) { +/** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createOrder", FALSE)) { +/** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("createOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createOrders", FALSE)) { +/** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("createOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrder", FALSE)) { +/** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getOrder { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderId = NULL) { + $this->orderId = $orderId; + } +}} + +if (!class_exists("getOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrdersByStatement", FALSE)) { +/** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getOrdersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getOrdersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getOrdersByStatementResponse { + /** + * @access public + * @var OrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performOrderAction", FALSE)) { +/** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performOrderAction { + /** + * @access public + * @var OrderAction + */ + public $orderAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderAction = NULL, $filterStatement = NULL) { + $this->orderAction = $orderAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performOrderActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performOrderActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrder", FALSE)) { +/** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("updateOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrders", FALSE)) { +/** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("updateOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveOrders", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ApproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line + * items within the order. If there are reservable line items that have not + * been reserved the operation will not succeed. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ArchiveOrders", FALSE)) { +/** + * The action used for archiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ArchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteOrders", FALSE)) { +/** + * The action used for deleting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeleteOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrders", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DisapproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ResumeAndOverbookOrders", FALSE)) { +/** + * The action used for resuming and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApproveAndOverbookOrders", FALSE)) { +/** + * The action used for approving and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveAndOverbookOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class OrderService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", + "ApproveOrders" => "ApproveOrders", + "OrderAction" => "OrderAction", + "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", + "ArchiveOrders" => "ArchiveOrders", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "Order" => "Order", + "OrderError" => "OrderError", + "OrderPage" => "OrderPage", + "ParseError" => "ParseError", + "PauseOrders" => "PauseOrders", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "OrderStatus" => "OrderStatus", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createOrder" => "createOrder", + "createOrderResponse" => "createOrderResponse", + "createOrders" => "createOrders", + "createOrdersResponse" => "createOrdersResponse", + "getOrder" => "getOrder", + "getOrderResponse" => "getOrderResponse", + "getOrdersByStatement" => "getOrdersByStatement", + "getOrdersByStatementResponse" => "getOrdersByStatementResponse", + "performOrderAction" => "performOrderAction", + "performOrderActionResponse" => "performOrderActionResponse", + "updateOrder" => "updateOrder", + "updateOrderResponse" => "updateOrderResponse", + "updateOrders" => "updateOrders", + "updateOrdersResponse" => "updateOrdersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/OrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = OrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'OrderService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + */ + public function createOrder($order) { + $arg = new createOrder($order); + $result = $this->__soapCall("createOrder", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + */ + public function createOrders($orders) { + $arg = new createOrders($orders); + $result = $this->__soapCall("createOrders", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + */ + public function getOrder($orderId) { + $arg = new getOrder($orderId); + $result = $this->__soapCall("getOrder", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + */ + public function getOrdersByStatement($filterStatement) { + $arg = new getOrdersByStatement($filterStatement); + $result = $this->__soapCall("getOrdersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + */ + public function performOrderAction($orderAction, $filterStatement) { + $arg = new performOrderAction($orderAction, $filterStatement); + $result = $this->__soapCall("performOrderAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + */ + public function updateOrder($order) { + $arg = new updateOrder($order); + $result = $this->__soapCall("updateOrder", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + */ + public function updateOrders($orders) { + $arg = new updateOrders($orders); + $result = $this->__soapCall("updateOrders", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/PlacementService.php b/src/Google/Api/Ads/Dfp/v201208/PlacementService.php new file mode 100755 index 000000000..ed76f8654 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/PlacementService.php @@ -0,0 +1,3588 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PlacementAction { + /** + * @access public + * @var string + */ + public $PlacementActionType; + + private $_parameterMap = array ( + "PlacementAction.Type" => "PlacementActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAction"; + } + + public function __construct($PlacementActionType = NULL) { + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PlacementPage", FALSE)) { +/** + * Captures a page of {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PlacementPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Placement[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("SiteTargetingInfo", FALSE)) { +/** + * Contains information required for AdWords advertisers to place their ads. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SiteTargetingInfo { + /** + * @access public + * @var string + */ + public $targetingDescription; + + /** + * @access public + * @var string + */ + public $targetingSiteName; + + /** + * @access public + * @var string + */ + public $targetingAdLocation; + + /** + * @access public + * @var string + */ + public $SiteTargetingInfoType; + + private $_parameterMap = array ( + "SiteTargetingInfo.Type" => "SiteTargetingInfoType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteTargetingInfo"; + } + + public function __construct($targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createPlacement", FALSE)) { +/** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createPlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("createPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createPlacements", FALSE)) { +/** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createPlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("createPlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createPlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacement", FALSE)) { +/** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getPlacement { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementId = NULL) { + $this->placementId = $placementId; + } +}} + +if (!class_exists("getPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacementsByStatement", FALSE)) { +/** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getPlacementsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getPlacementsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getPlacementsByStatementResponse { + /** + * @access public + * @var PlacementPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performPlacementAction", FALSE)) { +/** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performPlacementAction { + /** + * @access public + * @var PlacementAction + */ + public $placementAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementAction = NULL, $filterStatement = NULL) { + $this->placementAction = $placementAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performPlacementActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performPlacementActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacement", FALSE)) { +/** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updatePlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("updatePlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updatePlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacements", FALSE)) { +/** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updatePlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("updatePlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updatePlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivatePlacements", FALSE)) { +/** + * The action used for activating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchivePlacements", FALSE)) { +/** + * The action used for archiving {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ArchivePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchivePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A {@code Placement} groups related {@code AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Placement extends SiteTargetingInfo { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $placementCode; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isAdSenseTargetingEnabled; + + /** + * @access public + * @var boolean + */ + public $isAdPlannerTargetingEnabled; + + /** + * @access public + * @var string + */ + public $adSenseTargetingLocale; + + /** + * @access public + * @var string[] + */ + public $targetedAdUnitIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $placementCode = NULL, $status = NULL, $isAdSenseTargetingEnabled = NULL, $isAdPlannerTargetingEnabled = NULL, $adSenseTargetingLocale = NULL, $targetedAdUnitIds = NULL, $lastModifiedDateTime = NULL, $targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->placementCode = $placementCode; + $this->status = $status; + $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; + $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; + $this->adSenseTargetingLocale = $adSenseTargetingLocale; + $this->targetedAdUnitIds = $targetedAdUnitIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PlacementService", FALSE)) { +/** + * PlacementService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class PlacementService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivatePlacements" => "ActivatePlacements", + "PlacementAction" => "PlacementAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchivePlacements" => "ArchivePlacements", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivatePlacements" => "DeactivatePlacements", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "Placement" => "Placement", + "SiteTargetingInfo" => "SiteTargetingInfo", + "PlacementError" => "PlacementError", + "PlacementPage" => "PlacementPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryStatus" => "InventoryStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createPlacement" => "createPlacement", + "createPlacementResponse" => "createPlacementResponse", + "createPlacements" => "createPlacements", + "createPlacementsResponse" => "createPlacementsResponse", + "getPlacement" => "getPlacement", + "getPlacementResponse" => "getPlacementResponse", + "getPlacementsByStatement" => "getPlacementsByStatement", + "getPlacementsByStatementResponse" => "getPlacementsByStatementResponse", + "performPlacementAction" => "performPlacementAction", + "performPlacementActionResponse" => "performPlacementActionResponse", + "updatePlacement" => "updatePlacement", + "updatePlacementResponse" => "updatePlacementResponse", + "updatePlacements" => "updatePlacements", + "updatePlacementsResponse" => "updatePlacementsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/PlacementService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PlacementService::$classmap; + parent::__construct($wsdl, $options, $user, 'PlacementService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + */ + public function createPlacement($placement) { + $arg = new createPlacement($placement); + $result = $this->__soapCall("createPlacement", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + */ + public function createPlacements($placements) { + $arg = new createPlacements($placements); + $result = $this->__soapCall("createPlacements", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + */ + public function getPlacement($placementId) { + $arg = new getPlacement($placementId); + $result = $this->__soapCall("getPlacement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + */ + public function getPlacementsByStatement($filterStatement) { + $arg = new getPlacementsByStatement($filterStatement); + $result = $this->__soapCall("getPlacementsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + */ + public function performPlacementAction($placementAction, $filterStatement) { + $arg = new performPlacementAction($placementAction, $filterStatement); + $result = $this->__soapCall("performPlacementAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + */ + public function updatePlacement($placement) { + $arg = new updatePlacement($placement); + $result = $this->__soapCall("updatePlacement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + */ + public function updatePlacements($placements) { + $arg = new updatePlacements($placements); + $result = $this->__soapCall("updatePlacements", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201208/PublisherQueryLanguageService.php new file mode 100755 index 000000000..6cb92bd9a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/PublisherQueryLanguageService.php @@ -0,0 +1,3560 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ColumnType", FALSE)) { +/** + * Contains information about a column in a {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ColumnType { + /** + * @access public + * @var string + */ + public $labelName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ColumnType"; + } + + public function __construct($labelName = NULL) { + $this->labelName = $labelName; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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)) { +/** + * Caused by supplying a non-null value for an attribute that should be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ResultSet", FALSE)) { +/** + * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link + * Statement}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ResultSet { + /** + * @access public + * @var ColumnType[] + */ + public $columnTypes; + + /** + * @access public + * @var Row[] + */ + public $rows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResultSet"; + } + + public function __construct($columnTypes = NULL, $rows = NULL) { + $this->columnTypes = $columnTypes; + $this->rows = $rows; + } +}} + +if (!class_exists("Row", FALSE)) { +/** + * Each {@link Row} object represents data about one entity in a + * {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Row { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Row"; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("select", FALSE)) { +/** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class select { + /** + * @access public + * @var Statement + */ + public $selectStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selectStatement = NULL) { + $this->selectStatement = $selectStatement; + } +}} + +if (!class_exists("selectResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class selectResponse { + /** + * @access public + * @var ResultSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PublisherQueryLanguageService", FALSE)) { +/** + * PublisherQueryLanguageService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class PublisherQueryLanguageService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "ColumnType" => "ColumnType", + "CommonError" => "CommonError", + "CreativeError" => "CreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResultSet" => "ResultSet", + "Row" => "Row", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "select" => "select", + "selectResponse" => "selectResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/PublisherQueryLanguageService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PublisherQueryLanguageService::$classmap; + parent::__construct($wsdl, $options, $user, 'PublisherQueryLanguageService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + */ + public function select($selectStatement) { + $arg = new select($selectStatement); + $result = $this->__soapCall("select", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/ReportService.php b/src/Google/Api/Ads/Dfp/v201208/ReportService.php new file mode 100755 index 000000000..9c8b123d5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/ReportService.php @@ -0,0 +1,2812 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ReportDownloadOptions", FALSE)) { +/** + * Represents the options for an API report download request. + * See {@link ReportService#getReportDownloadUrlWithOptions}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReportDownloadOptions { + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * @access public + * @var boolean + */ + public $includeReportProperties; + + /** + * @access public + * @var boolean + */ + public $includeTotalsRow; + + /** + * @access public + * @var boolean + */ + public $useGzipCompression; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDownloadOptions"; + } + + public function __construct($exportFormat = NULL, $includeReportProperties = NULL, $includeTotalsRow = NULL, $useGzipCompression = NULL) { + $this->exportFormat = $exportFormat; + $this->includeReportProperties = $includeReportProperties; + $this->includeTotalsRow = $includeTotalsRow; + $this->useGzipCompression = $useGzipCompression; + } +}} + +if (!class_exists("ReportError", FALSE)) { +/** + * An error for an exception that occurred while running the report. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReportError extends ApiError { + /** + * @access public + * @var tnsReportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError"; + } + + 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("ReportJob", FALSE)) { +/** + * Represents a report job that will be run to retrieve performance and + * statistics information about ad campaigns, networks, inventory and sales. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReportJob { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var ReportQuery + */ + public $reportQuery; + + /** + * @access public + * @var tnsReportJobStatus + */ + public $reportJobStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJob"; + } + + public function __construct($id = NULL, $reportQuery = NULL, $reportJobStatus = NULL) { + $this->id = $id; + $this->reportQuery = $reportQuery; + $this->reportJobStatus = $reportJobStatus; + } +}} + +if (!class_exists("ReportQuery", FALSE)) { +/** + * A {@code ReportQuery} object allows you to specify the selection criteria for + * generating a report. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReportQuery { + /** + * @access public + * @var tnsDimension[] + */ + public $dimensions; + + /** + * @access public + * @var tnsReportQueryAdUnitView + */ + public $adUnitView; + + /** + * @access public + * @var tnsColumn[] + */ + public $columns; + + /** + * @access public + * @var tnsDimensionAttribute[] + */ + public $dimensionAttributes; + + /** + * @access public + * @var integer[] + */ + public $customFieldIds; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var Date + */ + public $endDate; + + /** + * @access public + * @var tnsDateRangeType + */ + public $dateRangeType; + + /** + * @access public + * @var tnsDimensionFilter[] + */ + public $dimensionFilters; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery"; + } + + public function __construct($dimensions = NULL, $adUnitView = NULL, $columns = NULL, $dimensionAttributes = NULL, $customFieldIds = NULL, $startDate = NULL, $endDate = NULL, $dateRangeType = NULL, $dimensionFilters = NULL, $statement = NULL) { + $this->dimensions = $dimensions; + $this->adUnitView = $adUnitView; + $this->columns = $columns; + $this->dimensionAttributes = $dimensionAttributes; + $this->customFieldIds = $customFieldIds; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->dateRangeType = $dateRangeType; + $this->dimensionFilters = $dimensionFilters; + $this->statement = $statement; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportQueryAdUnitView", FALSE)) { +/** + * A view for an ad unit report. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReportQueryAdUnitView { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery.AdUnitView"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Column", FALSE)) { +/** + * {@code Column} provides all the trafficking statistics and revenue + * information available for the chosen {@link Dimension} objects. + *

      + * Columns with {@code INVENTORY_LEVEL} should not be used with dimensions + * relating to line items, orders, companies and creatives, such as {@link Dimension#LINE_ITEM}. + * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level + * dynamic allocation enabled on your network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Column { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Column"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateRangeType", FALSE)) { +/** + * Represents a period of time. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Dimension", FALSE)) { +/** + * {@code Dimension} provides the break-down and filterable types available for + * running a {@link ReportJob}. Aggregate and percentage columns will be + * calculated based on these groupings. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Dimension { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimension"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionAttribute", FALSE)) { +/** + * {@code DimensionAttribute} provides additional fields associated with a + * {@link Dimension}. It can only be selected with its corresponding + * {@link Dimension}. For example, {@link DimensionAttribute#ORDER_PO_NUMBER} + * can only be used if the {@link ReportQuery#dimensions} contains + * {@link Dimension#ORDER_NAME}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DimensionAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionFilter", FALSE)) { +/** + * {@code DimensionFilter} filters the data used during report creation. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DimensionFilter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionFilter"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExportFormat", FALSE)) { +/** + * The file formats available for creating the report. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ExportFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExportFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportErrorReason", FALSE)) { +/** + * Default {@code ReportError} when the reason is not among any already + * defined. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportJobStatus", FALSE)) { +/** + * Represents the status of a {@link ReportJob} running on the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ReportJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportDownloadURL", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getReportDownloadURL { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $exportFormat = NULL) { + $this->reportJobId = $reportJobId; + $this->exportFormat = $exportFormat; + } +}} + +if (!class_exists("getReportDownloadURLResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getReportDownloadURLResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptions", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getReportDownloadUrlWithOptions { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var ReportDownloadOptions + */ + public $reportDownloadOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $reportDownloadOptions = NULL) { + $this->reportJobId = $reportJobId; + $this->reportDownloadOptions = $reportDownloadOptions; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getReportDownloadUrlWithOptionsResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportJob", FALSE)) { +/** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getReportJob { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL) { + $this->reportJobId = $reportJobId; + } +}} + +if (!class_exists("getReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("runReportJob", FALSE)) { +/** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class runReportJob { + /** + * @access public + * @var ReportJob + */ + public $reportJob; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJob = NULL) { + $this->reportJob = $reportJob; + } +}} + +if (!class_exists("runReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class runReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportService", FALSE)) { +/** + * ReportService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class ReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ReportDownloadOptions" => "ReportDownloadOptions", + "ReportError" => "ReportError", + "ReportJob" => "ReportJob", + "ReportQuery" => "ReportQuery", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "Column" => "Column", + "CommonError.Reason" => "CommonErrorReason", + "DateRangeType" => "DateRangeType", + "Dimension" => "Dimension", + "DimensionAttribute" => "DimensionAttribute", + "DimensionFilter" => "DimensionFilter", + "ExportFormat" => "ExportFormat", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ReportError.Reason" => "ReportErrorReason", + "ReportJobStatus" => "ReportJobStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReportDownloadURL" => "getReportDownloadURL", + "getReportDownloadURLResponse" => "getReportDownloadURLResponse", + "getReportDownloadUrlWithOptions" => "getReportDownloadUrlWithOptions", + "getReportDownloadUrlWithOptionsResponse" => "getReportDownloadUrlWithOptionsResponse", + "getReportJob" => "getReportJob", + "getReportJobResponse" => "getReportJobResponse", + "runReportJob" => "runReportJob", + "runReportJobResponse" => "runReportJobResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/ReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + */ + public function getReportDownloadURL($reportJobId, $exportFormat) { + $arg = new getReportDownloadURL($reportJobId, $exportFormat); + $result = $this->__soapCall("getReportDownloadURL", array($arg)); + return $result->rval; + } + + + /** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + */ + public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions) { + $arg = new getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); + $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + */ + public function getReportJob($reportJobId) { + $arg = new getReportJob($reportJobId); + $result = $this->__soapCall("getReportJob", array($arg)); + return $result->rval; + } + + + /** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + */ + public function runReportJob($reportJob) { + $arg = new runReportJob($reportJob); + $result = $this->__soapCall("runReportJob", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201208/SuggestedAdUnitService.php new file mode 100755 index 000000000..8126c080c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/SuggestedAdUnitService.php @@ -0,0 +1,2842 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SuggestedAdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SuggestedAdUnitAction { + /** + * @access public + * @var string + */ + public $SuggestedAdUnitActionType; + + private $_parameterMap = array ( + "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitAction"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("SuggestedAdUnit", FALSE)) { +/** + * A {@code SuggestedAdUnit} represents a suggestion for a new ad unit, based on an ad tag that has + * been served at least ten times in the past week, but which does not correspond to a defined ad + * unit. This type is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SuggestedAdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var integer + */ + public $numRequests; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var AdUnitSize[] + */ + public $suggestedAdUnitSizes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnit"; + } + + public function __construct($id = NULL, $numRequests = NULL, $path = NULL, $targetWindow = NULL, $targetPlatform = NULL, $suggestedAdUnitSizes = NULL) { + $this->id = $id; + $this->numRequests = $numRequests; + $this->path = $path; + $this->targetWindow = $targetWindow; + $this->targetPlatform = $targetPlatform; + $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; + } +}} + +if (!class_exists("SuggestedAdUnitPage", FALSE)) { +/** + * Contains a page of {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SuggestedAdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var SuggestedAdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("SuggestedAdUnitUpdateResult", FALSE)) { +/** + * Represents the result of performing an action on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SuggestedAdUnitUpdateResult { + /** + * @access public + * @var string[] + */ + public $newAdUnitIds; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitUpdateResult"; + } + + public function __construct($newAdUnitIds = NULL, $numChanges = NULL) { + $this->newAdUnitIds = $newAdUnitIds; + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("getSuggestedAdUnit", FALSE)) { +/** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getSuggestedAdUnit { + /** + * @access public + * @var string + */ + public $suggestedAdUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitId = NULL) { + $this->suggestedAdUnitId = $suggestedAdUnitId; + } +}} + +if (!class_exists("getSuggestedAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getSuggestedAdUnitResponse { + /** + * @access public + * @var SuggestedAdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getSuggestedAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getSuggestedAdUnitsByStatementResponse { + /** + * @access public + * @var SuggestedAdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performSuggestedAdUnitAction", FALSE)) { +/** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performSuggestedAdUnitAction { + /** + * @access public + * @var SuggestedAdUnitAction + */ + public $suggestedAdUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitAction = NULL, $filterStatement = NULL) { + $this->suggestedAdUnitAction = $suggestedAdUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performSuggestedAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performSuggestedAdUnitActionResponse { + /** + * @access public + * @var SuggestedAdUnitUpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveSuggestedAdUnit", FALSE)) { +/** + * Action to approve {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveSuggestedAdUnit"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + parent::__construct(); + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SuggestedAdUnitService", FALSE)) { +/** + * SuggestedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class SuggestedAdUnitService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", + "SuggestedAdUnitAction" => "SuggestedAdUnitAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SuggestedAdUnit" => "SuggestedAdUnit", + "SuggestedAdUnitPage" => "SuggestedAdUnitPage", + "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TargetPlatform" => "TargetPlatform", + "getSuggestedAdUnit" => "getSuggestedAdUnit", + "getSuggestedAdUnitResponse" => "getSuggestedAdUnitResponse", + "getSuggestedAdUnitsByStatement" => "getSuggestedAdUnitsByStatement", + "getSuggestedAdUnitsByStatementResponse" => "getSuggestedAdUnitsByStatementResponse", + "performSuggestedAdUnitAction" => "performSuggestedAdUnitAction", + "performSuggestedAdUnitActionResponse" => "performSuggestedAdUnitActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/SuggestedAdUnitService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SuggestedAdUnitService::$classmap; + parent::__construct($wsdl, $options, $user, 'SuggestedAdUnitService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + */ + public function getSuggestedAdUnit($suggestedAdUnitId) { + $arg = new getSuggestedAdUnit($suggestedAdUnitId); + $result = $this->__soapCall("getSuggestedAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + */ + public function getSuggestedAdUnitsByStatement($filterStatement) { + $arg = new getSuggestedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + */ + public function performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement) { + $arg = new performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSuggestedAdUnitAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/TeamService.php b/src/Google/Api/Ads/Dfp/v201208/TeamService.php new file mode 100755 index 000000000..1556d8bde --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/TeamService.php @@ -0,0 +1,2791 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Team", FALSE)) { +/** + * A {@code Team} defines a grouping of users and what entities they have access + * to. Users are added to teams with {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Team { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $hasAllCompanies; + + /** + * @access public + * @var boolean + */ + public $hasAllInventory; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $teamAccessType; + + /** + * @access public + * @var integer[] + */ + public $companyIds; + + /** + * @access public + * @var string[] + */ + public $adUnitIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Team"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $hasAllCompanies = NULL, $hasAllInventory = NULL, $teamAccessType = NULL, $companyIds = NULL, $adUnitIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->hasAllCompanies = $hasAllCompanies; + $this->hasAllInventory = $hasAllInventory; + $this->teamAccessType = $teamAccessType; + $this->companyIds = $companyIds; + $this->adUnitIds = $adUnitIds; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TeamPage", FALSE)) { +/** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Team[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createTeam", FALSE)) { +/** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("createTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createTeams", FALSE)) { +/** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("createTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeam", FALSE)) { +/** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getTeam { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL) { + $this->teamId = $teamId; + } +}} + +if (!class_exists("getTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeamsByStatement", FALSE)) { +/** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getTeamsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getTeamsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getTeamsByStatementResponse { + /** + * @access public + * @var TeamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeam", FALSE)) { +/** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("updateTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeams", FALSE)) { +/** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("updateTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TeamService", FALSE)) { +/** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class TeamService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Team" => "Team", + "TeamError" => "TeamError", + "TeamPage" => "TeamPage", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "TeamError.Reason" => "TeamErrorReason", + "createTeam" => "createTeam", + "createTeamResponse" => "createTeamResponse", + "createTeams" => "createTeams", + "createTeamsResponse" => "createTeamsResponse", + "getTeam" => "getTeam", + "getTeamResponse" => "getTeamResponse", + "getTeamsByStatement" => "getTeamsByStatement", + "getTeamsByStatementResponse" => "getTeamsByStatementResponse", + "updateTeam" => "updateTeam", + "updateTeamResponse" => "updateTeamResponse", + "updateTeams" => "updateTeams", + "updateTeamsResponse" => "updateTeamsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/TeamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TeamService::$classmap; + parent::__construct($wsdl, $options, $user, 'TeamService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + */ + public function createTeam($team) { + $arg = new createTeam($team); + $result = $this->__soapCall("createTeam", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + */ + public function createTeams($teams) { + $arg = new createTeams($teams); + $result = $this->__soapCall("createTeams", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + */ + public function getTeam($teamId) { + $arg = new getTeam($teamId); + $result = $this->__soapCall("getTeam", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + */ + public function getTeamsByStatement($filterStatement) { + $arg = new getTeamsByStatement($filterStatement); + $result = $this->__soapCall("getTeamsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + */ + public function updateTeam($team) { + $arg = new updateTeam($team); + $result = $this->__soapCall("updateTeam", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + */ + public function updateTeams($teams) { + $arg = new updateTeams($teams); + $result = $this->__soapCall("updateTeams", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/ThirdPartySlotService.php b/src/Google/Api/Ads/Dfp/v201208/ThirdPartySlotService.php new file mode 100755 index 000000000..96c14e302 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/ThirdPartySlotService.php @@ -0,0 +1,2713 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("ThirdPartySlotAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlotAction { + /** + * @access public + * @var string + */ + public $ThirdPartySlotActionType; + + private $_parameterMap = array ( + "ThirdPartySlotAction.Type" => "ThirdPartySlotActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlotAction"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("ThirdPartySlot", FALSE)) { +/** + * A {@code ThirdPartySlot} represents how third-party creatives are + * uniquely identified in a third-party ad network, yield manager, or + * ad exchange's system. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlot { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer[] + */ + public $creativeIds; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var string + */ + public $externalUniqueId; + + /** + * @access public + * @var string + */ + public $externalUniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsThirdPartySlotStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlot"; + } + + public function __construct($id = NULL, $creativeIds = NULL, $companyId = NULL, $externalUniqueId = NULL, $externalUniqueName = NULL, $description = NULL, $status = NULL) { + $this->id = $id; + $this->creativeIds = $creativeIds; + $this->companyId = $companyId; + $this->externalUniqueId = $externalUniqueId; + $this->externalUniqueName = $externalUniqueName; + $this->description = $description; + $this->status = $status; + } +}} + +if (!class_exists("ThirdPartySlotPage", FALSE)) { +/** + * Captures a page of {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlotPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ThirdPartySlot[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlotPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartySlotStatus", FALSE)) { +/** + * The status of a {@code ThirdPartySlot}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ThirdPartySlotStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlot.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("createThirdPartySlot", FALSE)) { +/** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createThirdPartySlot { + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlot = NULL) { + $this->thirdPartySlot = $thirdPartySlot; + } +}} + +if (!class_exists("createThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createThirdPartySlotResponse { + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getThirdPartySlotsByStatement", FALSE)) { +/** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getThirdPartySlotsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getThirdPartySlotsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getThirdPartySlotsByStatementResponse { + /** + * @access public + * @var ThirdPartySlotPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performThirdPartySlotAction", FALSE)) { +/** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performThirdPartySlotAction { + /** + * @access public + * @var ThirdPartySlotAction + */ + public $thirdPartySlotAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlotAction = NULL, $filterStatement = NULL) { + $this->thirdPartySlotAction = $thirdPartySlotAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performThirdPartySlotActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performThirdPartySlotActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateThirdPartySlot", FALSE)) { +/** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateThirdPartySlot { + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlot = NULL) { + $this->thirdPartySlot = $thirdPartySlot; + } +}} + +if (!class_exists("updateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateThirdPartySlotResponse { + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateThirdPartySlots", FALSE)) { +/** + * Action to activate {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateThirdPartySlots extends ThirdPartySlotAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateThirdPartySlots"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveThirdPartySlots", FALSE)) { +/** + * Action to archive {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ArchiveThirdPartySlots extends ThirdPartySlotAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveThirdPartySlots"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ThirdPartySlotService", FALSE)) { +/** + * ThirdPartySlotService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class ThirdPartySlotService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateThirdPartySlots" => "ActivateThirdPartySlots", + "ThirdPartySlotAction" => "ThirdPartySlotAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchiveThirdPartySlots" => "ArchiveThirdPartySlots", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ThirdPartySlot" => "ThirdPartySlot", + "ThirdPartySlotPage" => "ThirdPartySlotPage", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ThirdPartySlot.Status" => "ThirdPartySlotStatus", + "createThirdPartySlot" => "createThirdPartySlot", + "createThirdPartySlotResponse" => "createThirdPartySlotResponse", + "getThirdPartySlotsByStatement" => "getThirdPartySlotsByStatement", + "getThirdPartySlotsByStatementResponse" => "getThirdPartySlotsByStatementResponse", + "performThirdPartySlotAction" => "performThirdPartySlotAction", + "performThirdPartySlotActionResponse" => "performThirdPartySlotActionResponse", + "updateThirdPartySlot" => "updateThirdPartySlot", + "updateThirdPartySlotResponse" => "updateThirdPartySlotResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/ThirdPartySlotService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ThirdPartySlotService::$classmap; + parent::__construct($wsdl, $options, $user, 'ThirdPartySlotService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + */ + public function createThirdPartySlot($thirdPartySlot) { + $arg = new createThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("createThirdPartySlot", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + */ + public function getThirdPartySlotsByStatement($filterStatement) { + $arg = new getThirdPartySlotsByStatement($filterStatement); + $result = $this->__soapCall("getThirdPartySlotsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + */ + public function performThirdPartySlotAction($thirdPartySlotAction, $filterStatement) { + $arg = new performThirdPartySlotAction($thirdPartySlotAction, $filterStatement); + $result = $this->__soapCall("performThirdPartySlotAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + */ + public function updateThirdPartySlot($thirdPartySlot) { + $arg = new updateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("updateThirdPartySlot", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/UserService.php b/src/Google/Api/Ads/Dfp/v201208/UserService.php new file mode 100755 index 000000000..83b63148b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/UserService.php @@ -0,0 +1,3470 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("Role", FALSE)) { +/** + * Each {@code Role} provides a user with permissions to perform specific + * operations in the system. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Role { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Role"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserAction { + /** + * @access public + * @var string + */ + public $UserActionType; + + private $_parameterMap = array ( + "UserAction.Type" => "UserActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserAction"; + } + + public function __construct($UserActionType = NULL) { + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("UserPage", FALSE)) { +/** + * Captures a page of {@link User} objects + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var User[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UserRecord", FALSE)) { +/** + * The {@code UserRecord} represents the base class from which a {@code User} is + * derived. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserRecord { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var integer + */ + public $roleId; + + /** + * @access public + * @var string + */ + public $roleName; + + /** + * @access public + * @var string + */ + public $preferredLocale; + + /** + * @access public + * @var string + */ + public $UserRecordType; + + private $_parameterMap = array ( + "UserRecord.Type" => "UserRecordType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecord"; + } + + public function __construct($id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUser", FALSE)) { +/** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("createUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUsers", FALSE)) { +/** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("createUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAllRoles", FALSE)) { +/** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAllRoles { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllRolesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getAllRolesResponse { + /** + * @access public + * @var Role[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentUser", FALSE)) { +/** + * Returns the current {@link User}. + * + * @return the current user + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCurrentUser { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getCurrentUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUser", FALSE)) { +/** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUser { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userId = NULL) { + $this->userId = $userId; + } +}} + +if (!class_exists("getUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUsersByStatement", FALSE)) { +/** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUsersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUsersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUsersByStatementResponse { + /** + * @access public + * @var UserPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserAction", FALSE)) { +/** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performUserAction { + /** + * @access public + * @var UserAction + */ + public $userAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userAction = NULL, $filterStatement = NULL) { + $this->userAction = $userAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performUserActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performUserActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUser", FALSE)) { +/** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("updateUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUsers", FALSE)) { +/** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("updateUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateUsers", FALSE)) { +/** + * The action used for activating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ActivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeactivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("User", FALSE)) { +/** + * Represents a user of the system. + *

      + * Users may be assigned at most one {@link Role} per network. Each role + * provides a user with permissions to perform specific operations. Without a + * role, they will not be able to perform any actions. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class User extends UserRecord { + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $ordersUiLocalTimeZoneId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "User"; + } + + public function __construct($isActive = NULL, $isEmailNotificationAllowed = NULL, $ordersUiLocalTimeZoneId = NULL, $id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("UserService", FALSE)) { +/** + * UserService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class UserService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateUsers" => "ActivateUsers", + "UserAction" => "UserAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateUsers" => "DeactivateUsers", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "Role" => "Role", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "User" => "User", + "UserRecord" => "UserRecord", + "UserPage" => "UserPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createUser" => "createUser", + "createUserResponse" => "createUserResponse", + "createUsers" => "createUsers", + "createUsersResponse" => "createUsersResponse", + "getAllRoles" => "getAllRoles", + "getAllRolesResponse" => "getAllRolesResponse", + "getCurrentUser" => "getCurrentUser", + "getCurrentUserResponse" => "getCurrentUserResponse", + "getUser" => "getUser", + "getUserResponse" => "getUserResponse", + "getUsersByStatement" => "getUsersByStatement", + "getUsersByStatementResponse" => "getUsersByStatementResponse", + "performUserAction" => "performUserAction", + "performUserActionResponse" => "performUserActionResponse", + "updateUser" => "updateUser", + "updateUserResponse" => "updateUserResponse", + "updateUsers" => "updateUsers", + "updateUsersResponse" => "updateUsersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/UserService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + */ + public function createUser($user) { + $arg = new createUser($user); + $result = $this->__soapCall("createUser", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + */ + public function createUsers($users) { + $arg = new createUsers($users); + $result = $this->__soapCall("createUsers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + */ + public function getAllRoles() { + $arg = new getAllRoles(); + $result = $this->__soapCall("getAllRoles", array($arg)); + return $result->rval; + } + + + /** + * Returns the current {@link User}. + * + * @return the current user + */ + public function getCurrentUser() { + $arg = new getCurrentUser(); + $result = $this->__soapCall("getCurrentUser", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + */ + public function getUser($userId) { + $arg = new getUser($userId); + $result = $this->__soapCall("getUser", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + */ + public function getUsersByStatement($filterStatement) { + $arg = new getUsersByStatement($filterStatement); + $result = $this->__soapCall("getUsersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + */ + public function performUserAction($userAction, $filterStatement) { + $arg = new performUserAction($userAction, $filterStatement); + $result = $this->__soapCall("performUserAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + */ + public function updateUser($user) { + $arg = new updateUser($user); + $result = $this->__soapCall("updateUser", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + */ + public function updateUsers($users) { + $arg = new updateUsers($users); + $result = $this->__soapCall("updateUsers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201208/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201208/UserTeamAssociationService.php new file mode 100755 index 000000000..f38c1e4df --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201208/UserTeamAssociationService.php @@ -0,0 +1,2863 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserRecordTeamAssociation", FALSE)) { +/** + * {@code UserRecordTeamAssociation} represents the association between a + * {@link UserRecord} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $overriddenTeamAccessType; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $defaultTeamAccessType; + + /** + * @access public + * @var string + */ + public $UserRecordTeamAssociationType; + + private $_parameterMap = array ( + "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecordTeamAssociation"; + } + + public function __construct($teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link UserTeamAssociation} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserTeamAssociationAction { + /** + * @access public + * @var string + */ + public $UserTeamAssociationActionType; + + private $_parameterMap = array ( + "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationAction"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("UserTeamAssociation", FALSE)) { +/** + * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} + * to provide the user access to the entities that belong to the team. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociation"; + } + + public function __construct($userId = NULL, $teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + parent::__construct(); + $this->userId = $userId; + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationPage", FALSE)) { +/** + * Captures a page of {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class UserTeamAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUserTeamAssociation", FALSE)) { +/** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("createUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUserTeamAssociations", FALSE)) { +/** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("createUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class createUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociation", FALSE)) { +/** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUserTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL, $userId = NULL) { + $this->teamId = $teamId; + $this->userId = $userId; + } +}} + +if (!class_exists("getUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatement", FALSE)) { +/** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUserTeamAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class getUserTeamAssociationsByStatementResponse { + /** + * @access public + * @var UserTeamAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserTeamAssociationAction", FALSE)) { +/** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performUserTeamAssociationAction { + /** + * @access public + * @var UserTeamAssociationAction + */ + public $userTeamAssociationAction; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociationAction = NULL, $statement = NULL) { + $this->userTeamAssociationAction = $userTeamAssociationAction; + $this->statement = $statement; + } +}} + +if (!class_exists("performUserTeamAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class performUserTeamAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociation", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("updateUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociations", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("updateUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class updateUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteUserTeamAssociations"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + parent::__construct(); + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201208 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201208"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("UserTeamAssociationService", FALSE)) { +/** + * UserTeamAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201208 + * @author WSDLInterpreter + */ +class UserTeamAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", + "UserTeamAssociationAction" => "UserTeamAssociationAction", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "UserRecordTeamAssociation" => "UserRecordTeamAssociation", + "UserTeamAssociation" => "UserTeamAssociation", + "UserTeamAssociationPage" => "UserTeamAssociationPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "createUserTeamAssociation" => "createUserTeamAssociation", + "createUserTeamAssociationResponse" => "createUserTeamAssociationResponse", + "createUserTeamAssociations" => "createUserTeamAssociations", + "createUserTeamAssociationsResponse" => "createUserTeamAssociationsResponse", + "getUserTeamAssociation" => "getUserTeamAssociation", + "getUserTeamAssociationResponse" => "getUserTeamAssociationResponse", + "getUserTeamAssociationsByStatement" => "getUserTeamAssociationsByStatement", + "getUserTeamAssociationsByStatementResponse" => "getUserTeamAssociationsByStatementResponse", + "performUserTeamAssociationAction" => "performUserTeamAssociationAction", + "performUserTeamAssociationActionResponse" => "performUserTeamAssociationActionResponse", + "updateUserTeamAssociation" => "updateUserTeamAssociation", + "updateUserTeamAssociationResponse" => "updateUserTeamAssociationResponse", + "updateUserTeamAssociations" => "updateUserTeamAssociations", + "updateUserTeamAssociationsResponse" => "updateUserTeamAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201208/UserTeamAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserTeamAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserTeamAssociationService', 'https://www.google.com/apis/ads/publisher/v201208'); + } + + /** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + */ + public function createUserTeamAssociation($userTeamAssociation) { + $arg = new createUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("createUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + */ + public function createUserTeamAssociations($userTeamAssociations) { + $arg = new createUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("createUserTeamAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + */ + public function getUserTeamAssociation($teamId, $userId) { + $arg = new getUserTeamAssociation($teamId, $userId); + $result = $this->__soapCall("getUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + */ + public function getUserTeamAssociationsByStatement($filterStatement) { + $arg = new getUserTeamAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + */ + public function performUserTeamAssociationAction($userTeamAssociationAction, $statement) { + $arg = new performUserTeamAssociationAction($userTeamAssociationAction, $statement); + $result = $this->__soapCall("performUserTeamAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + */ + public function updateUserTeamAssociation($userTeamAssociation) { + $arg = new updateUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("updateUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + */ + public function updateUserTeamAssociations($userTeamAssociations) { + $arg = new updateUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("updateUserTeamAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201211/AudienceSegmentService.php new file mode 100755 index 000000000..b7e061977 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/AudienceSegmentService.php @@ -0,0 +1,2212 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AudienceSegment[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAudienceSegmentStatus + */ + public $status; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var string + */ + public $AudienceSegmentType; + + private $_parameterMap = array ( + "AudienceSegment.Type" => "AudienceSegmentType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $AudienceSegmentType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAudienceSegmentsByStatement", FALSE)) { +/** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAudienceSegmentsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAudienceSegmentsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAudienceSegmentsByStatementResponse { + /** + * @access public + * @var AudienceSegmentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class AudienceSegmentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "AudienceSegment" => "AudienceSegment", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getAudienceSegmentsByStatement" => "getAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "getAudienceSegmentsByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/AudienceSegmentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AudienceSegmentService::$classmap; + parent::__construct($wsdl, $options, $user, 'AudienceSegmentService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + */ + public function getAudienceSegmentsByStatement($filterStatement) { + $arg = new getAudienceSegmentsByStatement($filterStatement); + $result = $this->__soapCall("getAudienceSegmentsByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CompanyService.php b/src/Google/Api/Ads/Dfp/v201211/CompanyService.php new file mode 100755 index 000000000..ac3f8aad9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CompanyService.php @@ -0,0 +1,3263 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("Company", FALSE)) { +/** + * A {@code Company} represents an agency, a single advertiser or an entire + * advertising network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Company { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCompanyType + */ + public $type; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $primaryPhone; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var tnsCompanyCreditStatus + */ + public $creditStatus; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var boolean + */ + public $enableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var integer + */ + public $thirdPartyCompanyId; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $address = NULL, $email = NULL, $faxPhone = NULL, $primaryPhone = NULL, $externalId = NULL, $comment = NULL, $creditStatus = NULL, $appliedLabels = NULL, $enableSameAdvertiserCompetitiveExclusion = NULL, $appliedTeamIds = NULL, $thirdPartyCompanyId = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->address = $address; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->primaryPhone = $primaryPhone; + $this->externalId = $externalId; + $this->comment = $comment; + $this->creditStatus = $creditStatus; + $this->appliedLabels = $appliedLabels; + $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; + $this->appliedTeamIds = $appliedTeamIds; + $this->thirdPartyCompanyId = $thirdPartyCompanyId; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CompanyError", FALSE)) { +/** + * A list of all errors associated with companies. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyError extends ApiError { + /** + * @access public + * @var tnsCompanyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError"; + } + + 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("CompanyPage", FALSE)) { +/** + * Captures a page of {@link Company} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Company[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatus", FALSE)) { +/** + * Specifies the credit-worthiness of the company for which the publisher runs + * an order. By doing so, the publisher can control the running of campaigns + * for the company. A publisher can choose between Basic and Advanced Credit + * Status settings. This feature needs to be enabled in the DoubleClick For + * Publishers web site. Also the kind of setting you need - Basic or Advanced + * must be configured. If Basic is enabled then, the values allowed are + * {@code ACTIVE} and {@code INACTIVE}. If Advanced is chosen, then all values + * are allowed. Choosing an Advanced setting when only the Basic feature has + * been enabled, or using the Basic setting without turning the feature on + * will result in an error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.CreditStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyType", FALSE)) { +/** + * The type of the company. Once a company is created, it is not possible to + * change its type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyErrorReason", FALSE)) { +/** + * Enumerates all possible company specific errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCompanies", FALSE)) { +/** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("createCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCompany", FALSE)) { +/** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("createCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompaniesByStatement", FALSE)) { +/** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCompaniesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCompaniesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCompaniesByStatementResponse { + /** + * @access public + * @var CompanyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompany", FALSE)) { +/** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCompany { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companyId = NULL) { + $this->companyId = $companyId; + } +}} + +if (!class_exists("getCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompanies", FALSE)) { +/** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("updateCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompany", FALSE)) { +/** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("updateCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CompanyService", FALSE)) { +/** + * CompanyService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class CompanyService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "Company" => "Company", + "CompanyError" => "CompanyError", + "CompanyPage" => "CompanyPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "Company.CreditStatus" => "CompanyCreditStatus", + "Company.Type" => "CompanyType", + "CompanyError.Reason" => "CompanyErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createCompanies" => "createCompanies", + "createCompaniesResponse" => "createCompaniesResponse", + "createCompany" => "createCompany", + "createCompanyResponse" => "createCompanyResponse", + "getCompaniesByStatement" => "getCompaniesByStatement", + "getCompaniesByStatementResponse" => "getCompaniesByStatementResponse", + "getCompany" => "getCompany", + "getCompanyResponse" => "getCompanyResponse", + "updateCompanies" => "updateCompanies", + "updateCompaniesResponse" => "updateCompaniesResponse", + "updateCompany" => "updateCompany", + "updateCompanyResponse" => "updateCompanyResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/CompanyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CompanyService::$classmap; + parent::__construct($wsdl, $options, $user, 'CompanyService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + */ + public function createCompanies($companies) { + $arg = new createCompanies($companies); + $result = $this->__soapCall("createCompanies", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + */ + public function createCompany($company) { + $arg = new createCompany($company); + $result = $this->__soapCall("createCompany", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + */ + public function getCompaniesByStatement($filterStatement) { + $arg = new getCompaniesByStatement($filterStatement); + $result = $this->__soapCall("getCompaniesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + */ + public function getCompany($companyId) { + $arg = new getCompany($companyId); + $result = $this->__soapCall("getCompany", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + */ + public function updateCompanies($companies) { + $arg = new updateCompanies($companies); + $result = $this->__soapCall("updateCompanies", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + */ + public function updateCompany($company) { + $arg = new updateCompany($company); + $result = $this->__soapCall("updateCompany", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/ContentService.php b/src/Google/Api/Ads/Dfp/v201211/ContentService.php new file mode 100755 index 000000000..08f7c216d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/ContentService.php @@ -0,0 +1,2725 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("Content", FALSE)) { +/** + * A {@code Content} represents video metadata from a publisher's + * Content Management System (CMS) that has been synced to DFP. + *

      + * Video line items can be targeted to {@code Content} + * to indicate what ads should match when the {@code Content} is being played. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Content { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsContentStatus + */ + public $status; + + /** + * @access public + * @var tnsContentStatusDefinedBy + */ + public $statusDefinedBy; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Content"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $statusDefinedBy = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->statusDefinedBy = $statusDefinedBy; + } +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ContentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Content[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ContentPartnerError", FALSE)) { +/** + * The content partner related validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ContentPartnerError extends ApiError { + /** + * @access public + * @var tnsContentPartnerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentPartnerErrorReason", FALSE)) { +/** + * Describes reason for {@code ContentPartnerError}s. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ContentPartnerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatus", FALSE)) { +/** + * Describes the status of a {@link Content} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ContentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatusDefinedBy", FALSE)) { +/** + * Describes who defined the effective status of the {@code Content}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ContentStatusDefinedBy { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatusDefinedBy"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getContentByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getContentByStatementResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValue", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getContentByStatementAndCustomTargetingValue { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL, $customTargetingValueId = NULL) { + $this->filterStatement = $filterStatement; + $this->customTargetingValueId = $customTargetingValueId; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValueResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getContentByStatementAndCustomTargetingValueResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUncategorizedContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that are not + * associated with the {@link Network}'s + * {@link Network#contentBrowseCustomTargetingKeyId}. This content is + * considered uncategorized. This method also satisfies the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * This method is no longer supported as of version 201211 + * @params filterStatement a Publisher Query Language statement used to filter + * a set of content + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUncategorizedContentByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUncategorizedContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUncategorizedContentByStatementResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentService", FALSE)) { +/** + * ContentService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class ContentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentPartnerError.Reason" => "ContentPartnerErrorReason", + "ContentStatus" => "ContentStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ContentStatusDefinedBy" => "ContentStatusDefinedBy", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getContentByStatement" => "getContentByStatement", + "getContentByStatementResponse" => "getContentByStatementResponse", + "getContentByStatementAndCustomTargetingValue" => "getContentByStatementAndCustomTargetingValue", + "getContentByStatementAndCustomTargetingValueResponse" => "getContentByStatementAndCustomTargetingValueResponse", + "getUncategorizedContentByStatement" => "getUncategorizedContentByStatement", + "getUncategorizedContentByStatementResponse" => "getUncategorizedContentByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/ContentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + */ + public function getContentByStatement($statement) { + $arg = new getContentByStatement($statement); + $result = $this->__soapCall("getContentByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + */ + public function getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId) { + $arg = new getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); + $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentPage} of {@link Content} objects that are not + * associated with the {@link Network}'s + * {@link Network#contentBrowseCustomTargetingKeyId}. This content is + * considered uncategorized. This method also satisfies the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * This method is no longer supported as of version 201211 + * @params filterStatement a Publisher Query Language statement used to filter + * a set of content + * @return the content that matches the given filter + */ + public function getUncategorizedContentByStatement($filterStatement) { + $arg = new getUncategorizedContentByStatement($filterStatement); + $result = $this->__soapCall("getUncategorizedContentByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CreativeService.php b/src/Google/Api/Ads/Dfp/v201211/CreativeService.php new file mode 100755 index 000000000..e25b5c78b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CreativeService.php @@ -0,0 +1,7749 @@ + "BaseCreativeTemplateVariableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCreativeTemplateVariableValue"; + } + + public function __construct($uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AssetCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariableValue"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Asset", FALSE)) { +/** + * Base asset properties. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Asset { + /** + * @access public + * @var string + */ + public $AssetType; + + private $_parameterMap = array ( + "Asset.Type" => "AssetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Asset"; + } + + public function __construct($AssetType = NULL) { + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ConversionEvent_TrackingUrlsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type ConversionEvent + * and value of type TrackingUrls. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ConversionEvent_TrackingUrlsMapEntry { + /** + * @access public + * @var tnsConversionEvent + */ + public $key; + + /** + * @access public + * @var TrackingUrls + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent_TrackingUrlsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CreativeAsset", FALSE)) { +/** + * A {@code CreativeAsset} is an asset that can be used in creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeAsset { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAsset"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } +}} + +if (!class_exists("CustomCreativeAsset", FALSE)) { +/** + * A {@code CustomCreativeAsset} is an association between a + * {@link CustomCreative} and an asset. Any assets that are associated with a + * creative can be inserted into its HTML snippet. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCreativeAsset { + /** + * @access public + * @var string + */ + public $macroName; + + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeAsset"; + } + + public function __construct($macroName = NULL, $assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL) { + $this->macroName = $macroName; + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } +}} + +if (!class_exists("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("Creative", FALSE)) { +/** + * A {@code Creative} represents the media for the ad being served. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Creative { + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var string + */ + public $previewUrl; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $CreativeType; + + private $_parameterMap = array ( + "Creative.Type" => "CreativeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Creative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativePage", FALSE)) { +/** + * Captures a page of {@link Creative} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Creative[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("HasDestinationUrlCreative", FALSE)) { +/** + * A {@code Creative} that has a destination url + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class HasDestinationUrlCreative extends Creative { + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasDestinationUrlCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InternalRedirectCreative", FALSE)) { +/** + * A {@code Creative} hosted by either DoubleClick for Advertisers (DFA) or DART + * for Publishers. + *

      + * Similar to third-party creatives, a DoubleClick tag is used to retrieve a + * creative asset. However, DoubleClick tags are not sent to the user's browser. + * Instead, they are processed internally within the DoubleClick system.. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalRedirectCreative extends Creative { + /** + * @access public + * @var string + */ + public $internalRedirectUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalRedirectCreative"; + } + + public function __construct($internalRedirectUrl = NULL, $overrideSize = NULL, $isInterstitial = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->internalRedirectUrl = $internalRedirectUrl; + $this->overrideSize = $overrideSize; + $this->isInterstitial = $isInterstitial; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LegacyDfpCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by Google DFP, but was migrated + * from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LegacyDfpCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LongCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RedirectAsset", FALSE)) { +/** + * An externally hosted asset. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RedirectAsset extends Asset { + /** + * @access public + * @var string + */ + public $redirectUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioChildAssetProperty", FALSE)) { +/** + * Represents a child asset in {@code RichMediaStudioCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioChildAssetProperty { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsRichMediaStudioChildAssetPropertyType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty"; + } + + public function __construct($name = NULL, $type = NULL, $totalFileSize = NULL, $width = NULL, $height = NULL, $url = NULL) { + $this->name = $name; + $this->type = $type; + $this->totalFileSize = $totalFileSize; + $this->width = $width; + $this->height = $height; + $this->url = $url; + } +}} + +if (!class_exists("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of + * {@link VariableType#STRING} and {@link VariableType#LIST}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateCreative extends Creative { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var BaseCreativeTemplateVariableValue[] + */ + public $creativeTemplateVariableValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateCreative"; + } + + public function __construct($creativeTemplateId = NULL, $isInterstitial = NULL, $creativeTemplateVariableValues = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->creativeTemplateId = $creativeTemplateId; + $this->isInterstitial = $isInterstitial; + $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TextAdCreative", FALSE)) { +/** + * A simple plain text-based {@code Creative}. This creative is only available to small business + * networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000440}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextAdCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $hoverText; + + /** + * @access public + * @var tnsTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var string + */ + public $linkColor; + + /** + * @access public + * @var string + */ + public $linkTitle; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var string + */ + public $textColor; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAdCreative"; + } + + public function __construct($hoverText = NULL, $targetWindow = NULL, $linkColor = NULL, $linkTitle = NULL, $text = NULL, $textColor = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->hoverText = $hoverText; + $this->targetWindow = $targetWindow; + $this->linkColor = $linkColor; + $this->linkTitle = $linkTitle; + $this->text = $text; + $this->textColor = $textColor; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartyCreative extends Creative { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $expandedSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyCreative"; + } + + public function __construct($snippet = NULL, $expandedSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->expandedSnippet = $expandedSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TrackingUrls", FALSE)) { +/** + * A list of URLs that should be pinged for a conversion event. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TrackingUrls { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingUrls"; + } + + public function __construct($urls = NULL) { + $this->urls = $urls; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnsupportedCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by this version of the API. + * This object is readonly and when encountered should be reported + * on the DFP API forum. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UnsupportedCreative extends Creative { + /** + * @access public + * @var string + */ + public $unsupportedCreativeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnsupportedCreative"; + } + + public function __construct($unsupportedCreativeType = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->unsupportedCreativeType = $unsupportedCreativeType; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VastRedirectCreative", FALSE)) { +/** + * A {@code Creative} that points to an externally hosted VAST ad and is + * served via VAST 2.0 XML as a VAST Wrapper. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VastRedirectCreative extends Creative { + /** + * @access public + * @var string + */ + public $vastXmlUrl; + + /** + * @access public + * @var tnsVastRedirectType + */ + public $vastRedirectType; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectCreative"; + } + + public function __construct($vastXmlUrl = NULL, $vastRedirectType = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->vastXmlUrl = $vastXmlUrl; + $this->vastRedirectType = $vastRedirectType; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectAsset", FALSE)) { +/** + * An externally-hosted video asset. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoRedirectAsset extends RedirectAsset { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("VpaidLinearCreative", FALSE)) { +/** + * A {@code Creative} that displays a DFP-hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $overrideSize = NULL, $flashAssetSize = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->overrideSize = $overrideSize; + $this->flashAssetSize = $flashAssetSize; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VpaidLinearRedirectCreative", FALSE)) { +/** + * A {@code Creative} that displays an externally hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearRedirectCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $flashUrl = NULL, $flashAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->flashUrl = $flashUrl; + $this->flashAssetSize = $flashAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiFramework", FALSE)) { +/** + * The various ApiFramework types. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiFramework { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiFramework"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionEvent", FALSE)) { +/** + * All possible tracking event types. Not all events are supported by every + * kind of creative. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ConversionEvent { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FlashExpandableCreativeExpandDirection", FALSE)) { +/** + * The possible expand directions + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashExpandableCreativeExpandDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashExpandableCreative.ExpandDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioChildAssetPropertyType", FALSE)) { +/** + * Type of {@code RichMediaStudioChildAssetProperty} + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioChildAssetPropertyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeArtworkType", FALSE)) { +/** + * Rich Media Studio creative artwork types. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioCreativeArtworkType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeArtworkType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeBillingAttribute", FALSE)) { +/** + * Rich Media Studio creative supported billing attributes. + *

      + * This is determined by Rich Media Studio based on the content + * of the creative and is not updateable. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioCreativeBillingAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeBillingAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeFormat", FALSE)) { +/** + * Different creative format supported by Rich Media Studio creative. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioCreativeFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetWindow", FALSE)) { +/** + * The different values for target window, corresponds to an HTML link's + * {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VastRedirectType", FALSE)) { +/** + * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VastRedirectType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreative", FALSE)) { +/** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("createCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreatives", FALSE)) { +/** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("createCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreative", FALSE)) { +/** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreative { + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeId = NULL) { + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativesByStatement", FALSE)) { +/** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativesByStatementResponse { + /** + * @access public + * @var CreativePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreative", FALSE)) { +/** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("updateCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreatives", FALSE)) { +/** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("updateCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BaseDynamicAllocationCreative", FALSE)) { +/** + * A base class for dynamic allocation creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseDynamicAllocationCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseDynamicAllocationCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AspectRatioImageCreative", FALSE)) { +/** + * A {@code Creative} intended for mobile platforms that displays an image, + * whose {@link LineItem#creativePlaceholders size} is defined as an + * {@link CreativeSizeType#ASPECT_RATIO aspect ratio}, i.e. + * {@link Size#isAspectRatio}. It can have multiple images whose dimensions + * conform to that aspect ratio. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @access public + * @var string + */ + public $fallbackText; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AspectRatioImageCreative"; + } + + public function __construct($imageAssets = NULL, $fallbackText = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->fallbackText = $fallbackText; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashCreative", FALSE)) { +/** + * A base type for creatives that display a Flash-based ad. If the Flash ad + * cannot load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $clickTagRequired; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var Size + */ + public $fallbackAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashRedirectCreative", FALSE)) { +/** + * The base type for creatives that load a Flash asset from a specified URL. + * If the remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var string + */ + public $fallbackUrl; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageCreative", FALSE)) { +/** + * The base type for creatives that display an image. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $imageName; + + /** + * @access public + * @var base64Binary + */ + public $imageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageCreative"; + } + + public function __construct($imageName = NULL, $imageByteArray = NULL, $overrideSize = NULL, $assetSize = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageRedirectCreative", FALSE)) { +/** + * The base type for creatives that load an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageRedirectCreative"; + } + + public function __construct($imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseRichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseRichMediaStudioCreative extends Creative { + /** + * @access public + * @var integer + */ + public $studioCreativeId; + + /** + * @access public + * @var tnsRichMediaStudioCreativeFormat + */ + public $creativeFormat; + + /** + * @access public + * @var tnsRichMediaStudioCreativeArtworkType + */ + public $artworkType; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var string[] + */ + public $adTagKeys; + + /** + * @access public + * @var string[] + */ + public $customKeyValues; + + /** + * @access public + * @var string + */ + public $surveyUrl; + + /** + * @access public + * @var string + */ + public $allImpressionsUrl; + + /** + * @access public + * @var string + */ + public $richMediaImpressionsUrl; + + /** + * @access public + * @var string + */ + public $backupImageImpressionsUrl; + + /** + * @access public + * @var string + */ + public $overrideCss; + + /** + * @access public + * @var string + */ + public $requiredFlashPluginVersion; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var tnsRichMediaStudioCreativeBillingAttribute + */ + public $billingAttribute; + + /** + * @access public + * @var RichMediaStudioChildAssetProperty[] + */ + public $richMediaStudioChildAssetProperties; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRichMediaStudioCreative"; + } + + public function __construct($studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseVideoCreative", FALSE)) { +/** + * A base type for video creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var boolean + */ + public $allowDurationOverride; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseVideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ClickTrackingCreative", FALSE)) { +/** + * A creative that is used for tracking clicks on ads that are served directly + * from the customers' web servers or media servers. + * NOTE: The size attribute is not used for click tracking creative and it will + * not be persisted upon save. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClickTrackingCreative extends Creative { + /** + * @access public + * @var string + */ + public $clickTrackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingCreative"; + } + + public function __construct($clickTrackingUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->clickTrackingUrl = $clickTrackingUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CustomCreative", FALSE)) { +/** + * A {@code Creative} that contains an arbitrary HTML snippet and file assets. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * @access public + * @var CustomCreativeAsset[] + */ + public $customCreativeAssets; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreative"; + } + + public function __construct($htmlSnippet = NULL, $customCreativeAssets = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->htmlSnippet = $htmlSnippet; + $this->customCreativeAssets = $customCreativeAssets; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LegacyDfpMobileCreative", FALSE)) { +/** + * A mobile {@code Creative} that isn't supported by Google DFP, but was + * migrated from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpMobileCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashCreative", FALSE)) { +/** + * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot + * load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashCreative extends BaseFlashCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashExpandableCreative", FALSE)) { +/** + * An expandable {@code Creative} where the collapsed size is a Flash SWF file and + * the expanded size is another Flash SWF file. If Flash isn't supported in the browser, + * the fallback image will be used. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001160}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashExpandableCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $collapsedWidth; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedWidth; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var tnsFlashExpandableCreativeExpandDirection + */ + public $expandDirection; + + /** + * @access public + * @var boolean + */ + public $expandOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForExpand; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashExpandableCreative"; + } + + public function __construct($collapsedFlashAssetId = NULL, $collapsedFlashAssetByteArray = NULL, $collapsedFlashFileName = NULL, $collapsedFallbackImageAssetId = NULL, $collapsedFallbackImageAssetByteArray = NULL, $collapsedFallbackImageFileName = NULL, $expandedFlashAssetId = NULL, $expandedFlashAssetByteArray = NULL, $expandedFlashFileName = NULL, $requiredFlashVersion = NULL, $collapsedWidth = NULL, $collapsedHeight = NULL, $expandedWidth = NULL, $expandedHeight = NULL, $expandDirection = NULL, $expandOnMouseOver = NULL, $javascriptFunctionForExpand = NULL, $collapseOnMouseOut = NULL, $javascriptFunctionForCollapse = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->collapsedWidth = $collapsedWidth; + $this->collapsedHeight = $collapsedHeight; + $this->expandedWidth = $expandedWidth; + $this->expandedHeight = $expandedHeight; + $this->expandDirection = $expandDirection; + $this->expandOnMouseOver = $expandOnMouseOver; + $this->javascriptFunctionForExpand = $javascriptFunctionForExpand; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays a Flash-based ad and is + * served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashOverlayCreative extends BaseFlashCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashPushdownCreative", FALSE)) { +/** + * {@code Creative} that pushes page content down when the creative expands. + * The collapsed size is one Flash SWF file and the expanded size is another Flash SWF file. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001400}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashPushdownCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var boolean + */ + public $pushdownOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForPushdown; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashPushdownCreative"; + } + + public function __construct($collapsedFlashAssetId = NULL, $collapsedFlashAssetByteArray = NULL, $collapsedFlashFileName = NULL, $collapsedFallbackImageAssetId = NULL, $collapsedFallbackImageAssetByteArray = NULL, $collapsedFallbackImageFileName = NULL, $expandedFlashAssetId = NULL, $expandedFlashAssetByteArray = NULL, $expandedFlashFileName = NULL, $requiredFlashVersion = NULL, $width = NULL, $collapsedHeight = NULL, $expandedHeight = NULL, $pushdownOnMouseOver = NULL, $javascriptFunctionForPushdown = NULL, $collapseOnMouseOut = NULL, $javascriptFunctionForCollapse = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->collapsedHeight = $collapsedHeight; + $this->expandedHeight = $expandedHeight; + $this->pushdownOnMouseOver = $pushdownOnMouseOver; + $this->javascriptFunctionForPushdown = $javascriptFunctionForPushdown; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads a Flash asset from a specified URL. If the + * remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads a Flash asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashAssetSize = NULL, $flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashAssetSize = $flashAssetSize; + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FloatingFlashCreative", FALSE)) { +/** + * A floating flash creative. This creative is an interstitial creative, + * and its {@link #size} must be 1x1. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000560}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FloatingFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var integer + */ + public $flashAssetId; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var integer + */ + public $fallbackImageAssetId; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $topPosition; + + /** + * @access public + * @var string + */ + public $leftPosition; + + /** + * @access public + * @var integer + */ + public $displayTimeInSecond; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionTracker; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FloatingFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $flashAssetId = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $fallbackImageAssetId = NULL, $requiredFlashVersion = NULL, $width = NULL, $height = NULL, $topPosition = NULL, $leftPosition = NULL, $displayTimeInSecond = NULL, $thirdPartyImpressionTracker = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->flashAssetId = $flashAssetId; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->fallbackImageAssetId = $fallbackImageAssetId; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->height = $height; + $this->topPosition = $topPosition; + $this->leftPosition = $leftPosition; + $this->displayTimeInSecond = $displayTimeInSecond; + $this->thirdPartyImpressionTracker = $thirdPartyImpressionTracker; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + /** + * @access public + * @var string + */ + public $codeSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasHtmlSnippetDynamicAllocationCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageCreative", FALSE)) { +/** + * A {@code Creative} that displays an image. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageCreative extends BaseImageCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageCreative"; + } + + public function __construct($imageName = NULL, $imageByteArray = NULL, $overrideSize = NULL, $assetSize = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays an image and is served via VAST + * 2.0 XML. Overlays cover part of the video content they are displayed on + * top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageOverlayCreative extends BaseImageCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $imageName = NULL, $imageByteArray = NULL, $overrideSize = NULL, $assetSize = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->imageName = $imageName; + $this->imageByteArray = $imageByteArray; + $this->overrideSize = $overrideSize; + $this->assetSize = $assetSize; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectCreative"; + } + + public function __construct($imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads an image asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectOverlayCreative"; + } + + public function __construct($assetSize = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, + * but you can update some fields of this creative. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreative"; + } + + public function __construct($isInterstitial = NULL, $studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->isInterstitial = $isInterstitial; + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoCreative", FALSE)) { +/** + * A {@code Creative} that contains DFP-hosted video ads and is served + * via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoCreative extends BaseVideoCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectCreative", FALSE)) { +/** + * A {@code Creative} that contains externally hosted video ads and + * is served via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoRedirectCreative extends BaseVideoCreative { + /** + * @access public + * @var VideoRedirectAsset[] + */ + public $videoAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectCreative"; + } + + public function __construct($videoAssets = NULL, $duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExchangeCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdSenseCreative", FALSE)) { +/** + * An AdSense dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeService", FALSE)) { +/** + * CreativeService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class CreativeService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "Creative" => "Creative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "AdExchangeCreative" => "AdExchangeCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "AdSenseCreative" => "AdSenseCreative", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AspectRatioImageCreative" => "AspectRatioImageCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", + "Asset" => "Asset", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseFlashCreative" => "BaseFlashCreative", + "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", + "BaseImageCreative" => "BaseImageCreative", + "BaseImageRedirectCreative" => "BaseImageRedirectCreative", + "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", + "BaseVideoCreative" => "BaseVideoCreative", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingCreative" => "ClickTrackingCreative", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", + "CreativeAsset" => "CreativeAsset", + "CustomCreativeAsset" => "CustomCreativeAsset", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativePage" => "CreativePage", + "CreativeSetError" => "CreativeSetError", + "CustomCreative" => "CustomCreative", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValue" => "CustomFieldValue", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashExpandableCreative" => "FlashExpandableCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashPushdownCreative" => "FlashPushdownCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "FloatingFlashCreative" => "FloatingFlashCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LegacyDfpCreative" => "LegacyDfpCreative", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RedirectAsset" => "RedirectAsset", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", + "RichMediaStudioCreative" => "RichMediaStudioCreative", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringCreativeTemplateVariableValue" => "StringCreativeTemplateVariableValue", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextAdCreative" => "TextAdCreative", + "TextValue" => "TextValue", + "ThirdPartyCreative" => "ThirdPartyCreative", + "TrackingUrls" => "TrackingUrls", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UnsupportedCreative" => "UnsupportedCreative", + "UrlCreativeTemplateVariableValue" => "UrlCreativeTemplateVariableValue", + "VastRedirectCreative" => "VastRedirectCreative", + "VideoCreative" => "VideoCreative", + "VideoRedirectAsset" => "VideoRedirectAsset", + "VideoRedirectCreative" => "VideoRedirectCreative", + "VpaidLinearCreative" => "VpaidLinearCreative", + "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", + "ApiFramework" => "ApiFramework", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ConversionEvent" => "ConversionEvent", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "FlashExpandableCreative.ExpandDirection" => "FlashExpandableCreativeExpandDirection", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", + "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", + "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetWindow" => "TargetWindow", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "VastRedirectType" => "VastRedirectType", + "createCreative" => "createCreative", + "createCreativeResponse" => "createCreativeResponse", + "createCreatives" => "createCreatives", + "createCreativesResponse" => "createCreativesResponse", + "getCreative" => "getCreative", + "getCreativeResponse" => "getCreativeResponse", + "getCreativesByStatement" => "getCreativesByStatement", + "getCreativesByStatementResponse" => "getCreativesByStatementResponse", + "updateCreative" => "updateCreative", + "updateCreativeResponse" => "updateCreativeResponse", + "updateCreatives" => "updateCreatives", + "updateCreativesResponse" => "updateCreativesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/CreativeService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + */ + public function createCreative($creative) { + $arg = new createCreative($creative); + $result = $this->__soapCall("createCreative", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + */ + public function createCreatives($creatives) { + $arg = new createCreatives($creatives); + $result = $this->__soapCall("createCreatives", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + */ + public function getCreative($creativeId) { + $arg = new getCreative($creativeId); + $result = $this->__soapCall("getCreative", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + */ + public function getCreativesByStatement($filterStatement) { + $arg = new getCreativesByStatement($filterStatement); + $result = $this->__soapCall("getCreativesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + */ + public function updateCreative($creative) { + $arg = new updateCreative($creative); + $result = $this->__soapCall("updateCreative", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + */ + public function updateCreatives($creatives) { + $arg = new updateCreatives($creatives); + $result = $this->__soapCall("updateCreatives", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201211/CreativeSetService.php new file mode 100755 index 000000000..4276cc115 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CreativeSetService.php @@ -0,0 +1,3307 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSet", FALSE)) { +/** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSet { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $masterCreativeId; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSet"; + } + + public function __construct($id = NULL, $name = NULL, $masterCreativeId = NULL, $companionCreativeIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->masterCreativeId = $masterCreativeId; + $this->companionCreativeIds = $companionCreativeIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CreativeSetPage", FALSE)) { +/** + * Captures a page of {@link CreativeSet} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSetPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeSet[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeSet", FALSE)) { +/** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("createCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSet", FALSE)) { +/** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeSet { + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSetId = NULL) { + $this->creativeSetId = $creativeSetId; + } +}} + +if (!class_exists("getCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSetsByStatement", FALSE)) { +/** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeSetsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getCreativeSetsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeSetsByStatementResponse { + /** + * @access public + * @var CreativeSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeSet", FALSE)) { +/** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("updateCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeSetService", FALSE)) { +/** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class CreativeSetService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSet" => "CreativeSet", + "CreativeSetError" => "CreativeSetError", + "CreativeSetPage" => "CreativeSetPage", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCreativeSet" => "createCreativeSet", + "createCreativeSetResponse" => "createCreativeSetResponse", + "getCreativeSet" => "getCreativeSet", + "getCreativeSetResponse" => "getCreativeSetResponse", + "getCreativeSetsByStatement" => "getCreativeSetsByStatement", + "getCreativeSetsByStatementResponse" => "getCreativeSetsByStatementResponse", + "updateCreativeSet" => "updateCreativeSet", + "updateCreativeSetResponse" => "updateCreativeSetResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/CreativeSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeSetService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + */ + public function createCreativeSet($creativeSet) { + $arg = new createCreativeSet($creativeSet); + $result = $this->__soapCall("createCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + */ + public function getCreativeSet($creativeSetId) { + $arg = new getCreativeSet($creativeSetId); + $result = $this->__soapCall("getCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + */ + public function getCreativeSetsByStatement($statement) { + $arg = new getCreativeSetsByStatement($statement); + $result = $this->__soapCall("getCreativeSetsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + */ + public function updateCreativeSet($creativeSet) { + $arg = new updateCreativeSet($creativeSet); + $result = $this->__soapCall("updateCreativeSet", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201211/CreativeTemplateService.php new file mode 100755 index 000000000..98cc1bffe --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CreativeTemplateService.php @@ -0,0 +1,3155 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeTemplate", FALSE)) { +/** + * A template upon which a creative can be created. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var CreativeTemplateVariable[] + */ + public $variables; + + /** + * @access public + * @var tnsCreativeTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsCreativeTemplateType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $variables = NULL, $status = NULL, $type = NULL, $isInterstitial = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->variables = $variables; + $this->status = $status; + $this->type = $type; + $this->isInterstitial = $isInterstitial; + } +}} + +if (!class_exists("CreativeTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeTemplateError extends ApiError { + /** + * @access public + * @var tnsCreativeTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError"; + } + + 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("ListStringCreativeTemplateVariableVariableChoice", FALSE)) { +/** + * Stores variable choices that users can select from + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ListStringCreativeTemplateVariableVariableChoice { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable.VariableChoice"; + } + + public function __construct($label = NULL, $value = NULL) { + $this->label = $label; + $this->value = $value; + } +}} + +if (!class_exists("CreativeTemplatePage", FALSE)) { +/** + * Captures a page of {@link CreativeTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeTemplateVariable", FALSE)) { +/** + * Represents a variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isRequired; + + /** + * @access public + * @var string + */ + public $CreativeTemplateVariableType; + + private $_parameterMap = array ( + "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateVariable"; + } + + public function __construct($label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetCreativeTemplateVariableMimeType", FALSE)) { +/** + * Different mime type that the asset variable supports. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetCreativeTemplateVariableMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateStatus", FALSE)) { +/** + * Describes status of the creative template + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateType", FALSE)) { +/** + * Describes type of the creative template. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeTemplateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getCreativeTemplate", FALSE)) { +/** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeTemplate { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeTemplateId = NULL) { + $this->creativeTemplateId = $creativeTemplateId; + } +}} + +if (!class_exists("getCreativeTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeTemplateResponse { + /** + * @access public + * @var CreativeTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeTemplatesByStatement", FALSE)) { +/** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeTemplatesByStatementResponse { + /** + * @access public + * @var CreativeTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AssetCreativeTemplateVariable", FALSE)) { +/** + * Represents a file asset variable defined in a creative template. + *

      + * Use {@link AssetCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var tnsAssetCreativeTemplateVariableMimeType[] + */ + public $mimeTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable"; + } + + public function __construct($mimeTypes = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->mimeTypes = $mimeTypes; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("LongCreativeTemplateVariable", FALSE)) { +/** + * Represents a long variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var integer + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("StringCreativeTemplateVariable", FALSE)) { +/** + * Represents a string variable defined in a creative template. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariable", FALSE)) { +/** + * Represents a url variable defined in a creative template. + *

      + * Use {@link UrlCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ListStringCreativeTemplateVariable", FALSE)) { +/** + * Represents a list variable defined in a creative template. This is similar to + * {@link StringCreativeTemplateVariable}, except that there are possible choices to + * choose from. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + /** + * @access public + * @var ListStringCreativeTemplateVariableVariableChoice[] + */ + public $choices; + + /** + * @access public + * @var boolean + */ + public $allowOtherChoice; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable"; + } + + public function __construct($choices = NULL, $allowOtherChoice = NULL, $defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->choices = $choices; + $this->allowOtherChoice = $allowOtherChoice; + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("CreativeTemplateService", FALSE)) { +/** + * CreativeTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class CreativeTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", + "CreativeTemplateVariable" => "CreativeTemplateVariable", + "CreativeTemplate" => "CreativeTemplate", + "CreativeTemplateError" => "CreativeTemplateError", + "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", + "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", + "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", + "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", + "CreativeTemplatePage" => "CreativeTemplatePage", + "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", + "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", + "CreativeTemplateStatus" => "CreativeTemplateStatus", + "CreativeTemplateType" => "CreativeTemplateType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getCreativeTemplate" => "getCreativeTemplate", + "getCreativeTemplateResponse" => "getCreativeTemplateResponse", + "getCreativeTemplatesByStatement" => "getCreativeTemplatesByStatement", + "getCreativeTemplatesByStatementResponse" => "getCreativeTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/CreativeTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeTemplateService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + */ + public function getCreativeTemplate($creativeTemplateId) { + $arg = new getCreativeTemplate($creativeTemplateId); + $result = $this->__soapCall("getCreativeTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + */ + public function getCreativeTemplatesByStatement($filterStatement) { + $arg = new getCreativeTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getCreativeTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201211/CreativeWrapperService.php new file mode 100755 index 000000000..074d7c867 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CreativeWrapperService.php @@ -0,0 +1,3348 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CreativeWrapper} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperAction { + /** + * @access public + * @var string + */ + public $CreativeWrapperActionType; + + private $_parameterMap = array ( + "CreativeWrapperAction.Type" => "CreativeWrapperActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperAction"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("CreativeWrapper", FALSE)) { +/** + * A {@code CreativeWrapper} allows the wrapping of HTML snippets to be + * served along with {@code Creative} objects. + *

      + * Creative wrappers must be associated with a + * {@link LabelType#CREATIVE_WRAPPER} label and applied to ad units by + * {@link AdUnit#appliedLabels}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapper { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $header; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $footer; + + /** + * @access public + * @var tnsCreativeWrapperOrdering + */ + public $ordering; + + /** + * @access public + * @var tnsCreativeWrapperStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapper"; + } + + public function __construct($id = NULL, $labelId = NULL, $header = NULL, $footer = NULL, $ordering = NULL, $status = NULL) { + $this->id = $id; + $this->labelId = $labelId; + $this->header = $header; + $this->footer = $footer; + $this->ordering = $ordering; + $this->status = $status; + } +}} + +if (!class_exists("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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("CreativeWrapperPage", FALSE)) { +/** + * Captures a page of {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCreativeWrappers", FALSE)) { +/** + * The action used for deactivating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("CreativeWrapperHtmlSnippet", FALSE)) { +/** + * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is + * delivered as the header or footer. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperHtmlSnippet { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperHtmlSnippet"; + } + + public function __construct($htmlSnippet = NULL) { + $this->htmlSnippet = $htmlSnippet; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperOrdering", FALSE)) { +/** + * Defines the order in which the header and footer HTML snippets will be + * wrapped around the served creative. {@code INNER} snippets will be wrapped + * first, followed by {@code NO_PREFERENCE} and finally {@code OUTER}. If the + * creative needs to be wrapped with more than one snippet with the same + * {@link CreativeWrapperOrdering}, then the order is unspecified. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperOrdering { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperOrdering"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperStatus", FALSE)) { +/** + * Indicates whether the {@code CreativeWrapper} is active. HTML snippets + * are served to creatives only when the creative wrapper is active. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeWrapper", FALSE)) { +/** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("createCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreativeWrappers", FALSE)) { +/** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("createCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrapper", FALSE)) { +/** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeWrapper { + /** + * @access public + * @var integer + */ + public $creativeWrapperId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperId = NULL) { + $this->creativeWrapperId = $creativeWrapperId; + } +}} + +if (!class_exists("getCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrappersByStatement", FALSE)) { +/** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeWrappersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeWrappersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCreativeWrappersByStatementResponse { + /** + * @access public + * @var CreativeWrapperPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCreativeWrapperAction", FALSE)) { +/** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performCreativeWrapperAction { + /** + * @access public + * @var CreativeWrapperAction + */ + public $creativeWrapperAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperAction = NULL, $filterStatement = NULL) { + $this->creativeWrapperAction = $creativeWrapperAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCreativeWrapperActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performCreativeWrapperActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrapper", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("updateCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrappers", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("updateCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCreativeWrappers", FALSE)) { +/** + * The action used for activating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeWrapperService", FALSE)) { +/** + * CreativeWrapperService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class CreativeWrapperService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCreativeWrappers" => "ActivateCreativeWrappers", + "CreativeWrapperAction" => "CreativeWrapperAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapper" => "CreativeWrapper", + "CreativeWrapperError" => "CreativeWrapperError", + "CreativeWrapperPage" => "CreativeWrapperPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateCreativeWrappers" => "DeactivateCreativeWrappers", + "FeatureError" => "FeatureError", + "CreativeWrapperHtmlSnippet" => "CreativeWrapperHtmlSnippet", + "InternalApiError" => "InternalApiError", + "LabelError" => "LabelError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "CreativeWrapperOrdering" => "CreativeWrapperOrdering", + "CreativeWrapperStatus" => "CreativeWrapperStatus", + "LabelError.Reason" => "LabelErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createCreativeWrapper" => "createCreativeWrapper", + "createCreativeWrapperResponse" => "createCreativeWrapperResponse", + "createCreativeWrappers" => "createCreativeWrappers", + "createCreativeWrappersResponse" => "createCreativeWrappersResponse", + "getCreativeWrapper" => "getCreativeWrapper", + "getCreativeWrapperResponse" => "getCreativeWrapperResponse", + "getCreativeWrappersByStatement" => "getCreativeWrappersByStatement", + "getCreativeWrappersByStatementResponse" => "getCreativeWrappersByStatementResponse", + "performCreativeWrapperAction" => "performCreativeWrapperAction", + "performCreativeWrapperActionResponse" => "performCreativeWrapperActionResponse", + "updateCreativeWrapper" => "updateCreativeWrapper", + "updateCreativeWrapperResponse" => "updateCreativeWrapperResponse", + "updateCreativeWrappers" => "updateCreativeWrappers", + "updateCreativeWrappersResponse" => "updateCreativeWrappersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/CreativeWrapperService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeWrapperService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeWrapperService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + */ + public function createCreativeWrapper($creativeWrapper) { + $arg = new createCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("createCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + */ + public function createCreativeWrappers($creativeWrappers) { + $arg = new createCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("createCreativeWrappers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + */ + public function getCreativeWrapper($creativeWrapperId) { + $arg = new getCreativeWrapper($creativeWrapperId); + $result = $this->__soapCall("getCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + */ + public function getCreativeWrappersByStatement($filterStatement) { + $arg = new getCreativeWrappersByStatement($filterStatement); + $result = $this->__soapCall("getCreativeWrappersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performCreativeWrapperAction($creativeWrapperAction, $filterStatement) { + $arg = new performCreativeWrapperAction($creativeWrapperAction, $filterStatement); + $result = $this->__soapCall("performCreativeWrapperAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + */ + public function updateCreativeWrapper($creativeWrapper) { + $arg = new updateCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("updateCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + */ + public function updateCreativeWrappers($creativeWrappers) { + $arg = new updateCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("updateCreativeWrappers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201211/CustomFieldService.php new file mode 100755 index 000000000..e6572ec9e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CustomFieldService.php @@ -0,0 +1,3819 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldAction { + /** + * @access public + * @var string + */ + public $CustomFieldActionType; + + private $_parameterMap = array ( + "CustomFieldAction.Type" => "CustomFieldActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldAction"; + } + + public function __construct($CustomFieldActionType = NULL) { + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("CustomField", FALSE)) { +/** + * An additional, user-created field on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomField { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsCustomFieldEntityType + */ + public $entityType; + + /** + * @access public + * @var tnsCustomFieldDataType + */ + public $dataType; + + /** + * @access public + * @var tnsCustomFieldVisibility + */ + public $visibility; + + /** + * @access public + * @var string + */ + public $CustomFieldType; + + private $_parameterMap = array ( + "CustomField.Type" => "CustomFieldType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomField"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("CustomFieldError", FALSE)) { +/** + * Errors specific to editing custom fields + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldError extends ApiError { + /** + * @access public + * @var tnsCustomFieldErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError"; + } + + 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("CustomFieldOption", FALSE)) { +/** + * An option represents a permitted value for a custom field that + * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldOption { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldOption"; + } + + public function __construct($id = NULL, $customFieldId = NULL, $displayName = NULL) { + $this->id = $id; + $this->customFieldId = $customFieldId; + $this->displayName = $displayName; + } +}} + +if (!class_exists("CustomFieldPage", FALSE)) { +/** + * Captures a page of {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomField[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCustomFields", FALSE)) { +/** + * The action used for deactivating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("DropDownCustomField", FALSE)) { +/** + * A custom field that has the drop-down data type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DropDownCustomField extends CustomField { + /** + * @access public + * @var CustomFieldOption[] + */ + public $options; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomField"; + } + + public function __construct($options = NULL, $id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + parent::__construct(); + $this->options = $options; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldDataType", FALSE)) { +/** + * The data types allowed for {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldDataType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldDataType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldEntityType", FALSE)) { +/** + * Entity types recognized by custom fields + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldEntityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldEntityType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldVisibility", FALSE)) { +/** + * The visibility levels of a custom field. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldVisibility { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldVisibility"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomField", FALSE)) { +/** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("createCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOption", FALSE)) { +/** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("createCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOptions", FALSE)) { +/** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("createCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFields", FALSE)) { +/** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("createCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomField", FALSE)) { +/** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomField { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldId = NULL) { + $this->customFieldId = $customFieldId; + } +}} + +if (!class_exists("getCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldOption", FALSE)) { +/** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomFieldOption { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptionId = NULL) { + $this->customFieldOptionId = $customFieldOptionId; + } +}} + +if (!class_exists("getCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldsByStatement", FALSE)) { +/** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomFieldsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomFieldsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomFieldsByStatementResponse { + /** + * @access public + * @var CustomFieldPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomFieldAction", FALSE)) { +/** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performCustomFieldAction { + /** + * @access public + * @var CustomFieldAction + */ + public $customFieldAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldAction = NULL, $filterStatement = NULL) { + $this->customFieldAction = $customFieldAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomFieldActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performCustomFieldActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomField", FALSE)) { +/** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("updateCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOption", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("updateCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOptions", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("updateCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFields", FALSE)) { +/** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("updateCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCustomFields", FALSE)) { +/** + * The action used for activating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomFieldService", FALSE)) { +/** + * CustomFieldService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class CustomFieldService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCustomFields" => "ActivateCustomFields", + "CustomFieldAction" => "CustomFieldAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomField" => "CustomField", + "CustomFieldError" => "CustomFieldError", + "CustomFieldOption" => "CustomFieldOption", + "CustomFieldPage" => "CustomFieldPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateCustomFields" => "DeactivateCustomFields", + "DropDownCustomField" => "DropDownCustomField", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldDataType" => "CustomFieldDataType", + "CustomFieldEntityType" => "CustomFieldEntityType", + "CustomFieldError.Reason" => "CustomFieldErrorReason", + "CustomFieldVisibility" => "CustomFieldVisibility", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomField" => "createCustomField", + "createCustomFieldResponse" => "createCustomFieldResponse", + "createCustomFieldOption" => "createCustomFieldOption", + "createCustomFieldOptionResponse" => "createCustomFieldOptionResponse", + "createCustomFieldOptions" => "createCustomFieldOptions", + "createCustomFieldOptionsResponse" => "createCustomFieldOptionsResponse", + "createCustomFields" => "createCustomFields", + "createCustomFieldsResponse" => "createCustomFieldsResponse", + "getCustomField" => "getCustomField", + "getCustomFieldResponse" => "getCustomFieldResponse", + "getCustomFieldOption" => "getCustomFieldOption", + "getCustomFieldOptionResponse" => "getCustomFieldOptionResponse", + "getCustomFieldsByStatement" => "getCustomFieldsByStatement", + "getCustomFieldsByStatementResponse" => "getCustomFieldsByStatementResponse", + "performCustomFieldAction" => "performCustomFieldAction", + "performCustomFieldActionResponse" => "performCustomFieldActionResponse", + "updateCustomField" => "updateCustomField", + "updateCustomFieldResponse" => "updateCustomFieldResponse", + "updateCustomFieldOption" => "updateCustomFieldOption", + "updateCustomFieldOptionResponse" => "updateCustomFieldOptionResponse", + "updateCustomFieldOptions" => "updateCustomFieldOptions", + "updateCustomFieldOptionsResponse" => "updateCustomFieldOptionsResponse", + "updateCustomFields" => "updateCustomFields", + "updateCustomFieldsResponse" => "updateCustomFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/CustomFieldService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomFieldService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomFieldService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + */ + public function createCustomField($customField) { + $arg = new createCustomField($customField); + $result = $this->__soapCall("createCustomField", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + */ + public function createCustomFieldOption($customFieldOption) { + $arg = new createCustomFieldOption($customFieldOption); + $result = $this->__soapCall("createCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + */ + public function createCustomFieldOptions($customFieldOptions) { + $arg = new createCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("createCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + */ + public function createCustomFields($customFields) { + $arg = new createCustomFields($customFields); + $result = $this->__soapCall("createCustomFields", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + */ + public function getCustomField($customFieldId) { + $arg = new getCustomField($customFieldId); + $result = $this->__soapCall("getCustomField", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + */ + public function getCustomFieldOption($customFieldOptionId) { + $arg = new getCustomFieldOption($customFieldOptionId); + $result = $this->__soapCall("getCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + */ + public function getCustomFieldsByStatement($filterStatement) { + $arg = new getCustomFieldsByStatement($filterStatement); + $result = $this->__soapCall("getCustomFieldsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + */ + public function performCustomFieldAction($customFieldAction, $filterStatement) { + $arg = new performCustomFieldAction($customFieldAction, $filterStatement); + $result = $this->__soapCall("performCustomFieldAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + */ + public function updateCustomField($customField) { + $arg = new updateCustomField($customField); + $result = $this->__soapCall("updateCustomField", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + */ + public function updateCustomFieldOption($customFieldOption) { + $arg = new updateCustomFieldOption($customFieldOption); + $result = $this->__soapCall("updateCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + */ + public function updateCustomFieldOptions($customFieldOptions) { + $arg = new updateCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("updateCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + */ + public function updateCustomFields($customFields) { + $arg = new updateCustomFields($customFields); + $result = $this->__soapCall("updateCustomFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201211/CustomTargetingService.php new file mode 100755 index 000000000..d2fc05a13 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/CustomTargetingService.php @@ -0,0 +1,3519 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomTargetingKeyAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingKey} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingKeyAction { + /** + * @access public + * @var string + */ + public $CustomTargetingKeyActionType; + + private $_parameterMap = array ( + "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyAction"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("CustomTargetingKey", FALSE)) { +/** + * {@code CustomTargetingKey} represents a key used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingKey { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingKeyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey"; + } + + public function __construct($id = NULL, $name = NULL, $displayName = NULL, $type = NULL) { + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->type = $type; + } +}} + +if (!class_exists("CustomTargetingKeyPage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingKeyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomTargetingValueAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingValue} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingValueAction { + /** + * @access public + * @var string + */ + public $CustomTargetingValueActionType; + + private $_parameterMap = array ( + "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValueAction"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("CustomTargetingValue", FALSE)) { +/** + * {@code CustomTargetingValue} represents a value used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingValue { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingValueMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue"; + } + + public function __construct($customTargetingKeyId = NULL, $id = NULL, $name = NULL, $displayName = NULL, $matchType = NULL) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->matchType = $matchType; + } +}} + +if (!class_exists("CustomTargetingValuePage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingValuePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValuePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeleteCustomTargetingKeys", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingKey} objects. Deleting a key will not delete the + * {@link CustomTargetingValue} objects associated with it. Also, if a custom + * targeting key that has been deleted is recreated, any previous custom + * targeting values associated with it that were not deleted will continue to + * exist. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingKeys"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + parent::__construct(); + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("DeleteCustomTargetingValues", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingValues"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + parent::__construct(); + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingKeyType", FALSE)) { +/** + * Specifies the types for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingKeyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingValueMatchType", FALSE)) { +/** + * Represents the ways in which {@link CustomTargetingValue#name} strings will + * be matched with ad requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingValueMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue.MatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomTargetingKeys", FALSE)) { +/** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("createCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomTargetingValues", FALSE)) { +/** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("createCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomTargetingKeysByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomTargetingKeysByStatementResponse { + /** + * @access public + * @var CustomTargetingKeyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomTargetingValuesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCustomTargetingValuesByStatementResponse { + /** + * @access public + * @var CustomTargetingValuePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingKeyAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performCustomTargetingKeyAction { + /** + * @access public + * @var CustomTargetingKeyAction + */ + public $customTargetingKeyAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingKeyAction = NULL, $filterStatement = NULL) { + $this->customTargetingKeyAction = $customTargetingKeyAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingKeyActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performCustomTargetingKeyActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingValueAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performCustomTargetingValueAction { + /** + * @access public + * @var CustomTargetingValueAction + */ + public $customTargetingValueAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingValueAction = NULL, $filterStatement = NULL) { + $this->customTargetingValueAction = $customTargetingValueAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingValueActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performCustomTargetingValueActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingKeys", FALSE)) { +/** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("updateCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingValues", FALSE)) { +/** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("updateCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomTargetingService", FALSE)) { +/** + * CustomTargetingService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class CustomTargetingService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", + "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "CustomTargetingKey.Type" => "CustomTargetingKeyType", + "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomTargetingKeys" => "createCustomTargetingKeys", + "createCustomTargetingKeysResponse" => "createCustomTargetingKeysResponse", + "createCustomTargetingValues" => "createCustomTargetingValues", + "createCustomTargetingValuesResponse" => "createCustomTargetingValuesResponse", + "getCustomTargetingKeysByStatement" => "getCustomTargetingKeysByStatement", + "getCustomTargetingKeysByStatementResponse" => "getCustomTargetingKeysByStatementResponse", + "getCustomTargetingValuesByStatement" => "getCustomTargetingValuesByStatement", + "getCustomTargetingValuesByStatementResponse" => "getCustomTargetingValuesByStatementResponse", + "performCustomTargetingKeyAction" => "performCustomTargetingKeyAction", + "performCustomTargetingKeyActionResponse" => "performCustomTargetingKeyActionResponse", + "performCustomTargetingValueAction" => "performCustomTargetingValueAction", + "performCustomTargetingValueActionResponse" => "performCustomTargetingValueActionResponse", + "updateCustomTargetingKeys" => "updateCustomTargetingKeys", + "updateCustomTargetingKeysResponse" => "updateCustomTargetingKeysResponse", + "updateCustomTargetingValues" => "updateCustomTargetingValues", + "updateCustomTargetingValuesResponse" => "updateCustomTargetingValuesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/CustomTargetingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomTargetingService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomTargetingService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingKeys($keys) { + $arg = new createCustomTargetingKeys($keys); + $result = $this->__soapCall("createCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingValues($values) { + $arg = new createCustomTargetingValues($values); + $result = $this->__soapCall("createCustomTargetingValues", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + */ + public function getCustomTargetingKeysByStatement($filterStatement) { + $arg = new getCustomTargetingKeysByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + */ + public function getCustomTargetingValuesByStatement($filterStatement) { + $arg = new getCustomTargetingValuesByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + */ + public function performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement) { + $arg = new performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingKeyAction", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performCustomTargetingValueAction($customTargetingValueAction, $filterStatement) { + $arg = new performCustomTargetingValueAction($customTargetingValueAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingValueAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function updateCustomTargetingKeys($keys) { + $arg = new updateCustomTargetingKeys($keys); + $result = $this->__soapCall("updateCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + */ + public function updateCustomTargetingValues($values) { + $arg = new updateCustomTargetingValues($values); + $result = $this->__soapCall("updateCustomTargetingValues", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/ForecastService.php b/src/Google/Api/Ads/Dfp/v201211/ForecastService.php new file mode 100755 index 000000000..70a714596 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/ForecastService.php @@ -0,0 +1,8309 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("Forecast", FALSE)) { +/** + * Describes predicted inventory availability for a line item with the specified + * properties. + * + *

      Inventory has three threshold values along a line of possible inventory. + * From least to most, these are: + * + *

        + *
      • Available units -- How many units can be booked without affecting any + * other line items. Booking more than this number can overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because if more impressions are + * served than are predicted, the extra available inventory might enable all + * inventory guarantees to be met without overbooking. + * + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Forecast { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $deliveredUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var integer + */ + public $possibleUnits; + + /** + * @access public + * @var integer + */ + public $reservedUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Forecast"; + } + + public function __construct($id = NULL, $orderId = NULL, $unitType = NULL, $availableUnits = NULL, $deliveredUnits = NULL, $matchedUnits = NULL, $possibleUnits = NULL, $reservedUnits = NULL) { + $this->id = $id; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->availableUnits = $availableUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + $this->possibleUnits = $possibleUnits; + $this->reservedUnits = $reservedUnits; + } +}} + +if (!class_exists("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoPositionTargeting { + /** + * @access public + * @var tnsVideoPositionTargetingType[] + */ + public $targetedVideoPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedVideoPositions = NULL) { + $this->targetedVideoPositions = $targetedVideoPositions; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionTargetingType", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoPositionTargetingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargetingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("getForecast", FALSE)) { +/** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getForecast { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("getForecastResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getForecastResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getForecastById", FALSE)) { +/** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getForecastById { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getForecastByIdResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getForecastByIdResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ForecastService", FALSE)) { +/** + * ForecastService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class ForecastService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "Forecast" => "Forecast", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPositionTargeting" => "VideoPositionTargeting", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoPositionTargetingType" => "VideoPositionTargetingType", + "getForecast" => "getForecast", + "getForecastResponse" => "getForecastResponse", + "getForecastById" => "getForecastById", + "getForecastByIdResponse" => "getForecastByIdResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/ForecastService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ForecastService::$classmap; + parent::__construct($wsdl, $options, $user, 'ForecastService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + */ + public function getForecast($lineItem) { + $arg = new getForecast($lineItem); + $result = $this->__soapCall("getForecast", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + */ + public function getForecastById($lineItemId) { + $arg = new getForecastById($lineItemId); + $result = $this->__soapCall("getForecastById", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/InventoryService.php b/src/Google/Api/Ads/Dfp/v201211/InventoryService.php new file mode 100755 index 000000000..8ea0e4466 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/InventoryService.php @@ -0,0 +1,5139 @@ +adSenseEnabled = $adSenseEnabled; + $this->borderColor = $borderColor; + $this->titleColor = $titleColor; + $this->backgroundColor = $backgroundColor; + $this->textColor = $textColor; + $this->urlColor = $urlColor; + $this->adType = $adType; + $this->borderStyle = $borderStyle; + $this->fontFamily = $fontFamily; + $this->fontSize = $fontSize; + $this->afcFormats = $afcFormats; + } +}} + +if (!class_exists("AdSenseSettingsInheritedProperty", FALSE)) { +/** + * The property of the AdUnit that specifies how and from where the + * AdSenseSettings are inherited. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseSettingsInheritedProperty { + /** + * @access public + * @var AdSenseSettings + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettingsInheritedProperty"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("AdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitAction { + /** + * @access public + * @var string + */ + public $AdUnitActionType; + + private $_parameterMap = array ( + "AdUnitAction.Type" => "AdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAction"; + } + + public function __construct($AdUnitActionType = NULL) { + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdUnit", FALSE)) { +/** + * An {@code AdUnit} represents a chunk of identified inventory for the + * publisher. It contains all the settings that need to be associated with + * inventory in order to serve ads to it. An {@code AdUnit} can also be the + * parent of other ad units in the inventory hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $parentId; + + /** + * @access public + * @var boolean + */ + public $hasChildren; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $adUnitCode; + + /** + * @access public + * @var AdUnitSize[] + */ + public $adUnitSizes; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsMobilePlatform + */ + public $mobilePlatform; + + /** + * @access public + * @var boolean + */ + public $explicitlyTargeted; + + /** + * @access public + * @var AdSenseSettingsInheritedProperty + */ + public $inheritedAdSenseSettings; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $appliedLabelFrequencyCaps; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $effectiveLabelFrequencyCaps; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer[] + */ + public $effectiveTeamIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit"; + } + + public function __construct($id = NULL, $parentId = NULL, $hasChildren = NULL, $parentPath = NULL, $name = NULL, $description = NULL, $targetWindow = NULL, $status = NULL, $adUnitCode = NULL, $adUnitSizes = NULL, $targetPlatform = NULL, $mobilePlatform = NULL, $explicitlyTargeted = NULL, $inheritedAdSenseSettings = NULL, $appliedLabelFrequencyCaps = NULL, $effectiveLabelFrequencyCaps = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $effectiveTeamIds = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->parentId = $parentId; + $this->hasChildren = $hasChildren; + $this->parentPath = $parentPath; + $this->name = $name; + $this->description = $description; + $this->targetWindow = $targetWindow; + $this->status = $status; + $this->adUnitCode = $adUnitCode; + $this->adUnitSizes = $adUnitSizes; + $this->targetPlatform = $targetPlatform; + $this->mobilePlatform = $mobilePlatform; + $this->explicitlyTargeted = $explicitlyTargeted; + $this->inheritedAdSenseSettings = $inheritedAdSenseSettings; + $this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; + $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->effectiveTeamIds = $effectiveTeamIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("AdUnitParent", FALSE)) { +/** + * The summary of a parent {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitParent { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitParent"; + } + + public function __construct($id = NULL, $name = NULL) { + $this->id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("ArchiveAdUnits", FALSE)) { +/** + * The action used for archiving {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ArchiveAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AssignAdUnitsToPlacement", FALSE)) { +/** + * The action used for assigning a group of {@link AdUnit} objects to a + * {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssignAdUnitsToPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateAdUnits", FALSE)) { +/** + * The action used for deactivating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidColorError", FALSE)) { +/** + * A list of all errors associated with a color attribute. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidColorError extends ApiError { + /** + * @access public + * @var tnsInvalidColorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("InventoryUnitPartnerAssociationError", FALSE)) { +/** + * Errors relating to the association of partner companies with inventory units. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitPartnerAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("InventoryUnitSizesError", FALSE)) { +/** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitSizesError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError"; + } + + 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("AdUnitTypeError", FALSE)) { +/** + * Lists the errors associated with the type of {@link AdUnit} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitTypeError extends ApiError { + /** + * @access public + * @var tnsAdUnitTypeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError"; + } + + 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("LabelFrequencyCap", FALSE)) { +/** + * A {@code LabelFrequencyCap} assigns a frequency cap to a label. The + * frequency cap will limit the cumulative number of impressions of any ad + * units with this label that may be shown to a particular user over a time + * unit. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelFrequencyCap { + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelFrequencyCap"; + } + + public function __construct($frequencyCap = NULL, $labelId = NULL) { + $this->frequencyCap = $frequencyCap; + $this->labelId = $labelId; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size_StringMapEntry { + /** + * @access public + * @var Size + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsAdType", FALSE)) { +/** + * Specifies the type of ads that can be served through this {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseSettingsAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.AdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsBorderStyle", FALSE)) { +/** + * Describes the border of the HTML elements used to surround an ad + * displayed by the {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseSettingsBorderStyle { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.BorderStyle"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontFamily", FALSE)) { +/** + * List of all possible font families. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseSettingsFontFamily { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontFamily"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontSize", FALSE)) { +/** + * List of all possible font sizes the user can choose. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseSettingsFontSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontSize"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidColorErrorReason", FALSE)) { +/** + * The provided value is not a valid hexadecimal color. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidColorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitPartnerAssociationErrorReason", FALSE)) { +/** + * Partner association error reason types. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitPartnerAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitSizesErrorReason", FALSE)) { +/** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitSizesErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTypeErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitTypeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobilePlatform", FALSE)) { +/** + * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit + * appears in a mobile application or in a mobile web site. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobilePlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobilePlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdUnit", FALSE)) { +/** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("createAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdUnits", FALSE)) { +/** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("createAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnit", FALSE)) { +/** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAdUnit { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitId = NULL) { + $this->adUnitId = $adUnitId; + } +}} + +if (!class_exists("getAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitSizesByStatement", FALSE)) { +/** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAdUnitSizesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitSizesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAdUnitSizesByStatementResponse { + /** + * @access public + * @var AdUnitSize[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAdUnitsByStatementResponse { + /** + * @access public + * @var AdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdUnitAction", FALSE)) { +/** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performAdUnitAction { + /** + * @access public + * @var AdUnitAction + */ + public $adUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitAction = NULL, $filterStatement = NULL) { + $this->adUnitAction = $adUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performAdUnitActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnit", FALSE)) { +/** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("updateAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnits", FALSE)) { +/** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("updateAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdUnits", FALSE)) { +/** + * The action used for activating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("InventoryService", FALSE)) { +/** + * InventoryService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class InventoryService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdUnits" => "ActivateAdUnits", + "AdUnitAction" => "AdUnitAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "AdSenseSettings" => "AdSenseSettings", + "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnit" => "AdUnit", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "AdUnitPage" => "AdUnitPage", + "AdUnitParent" => "AdUnitParent", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveAdUnits" => "ArchiveAdUnits", + "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateAdUnits" => "DeactivateAdUnits", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "InternalApiError" => "InternalApiError", + "InvalidColorError" => "InvalidColorError", + "InventoryUnitError" => "InventoryUnitError", + "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", + "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", + "AdUnitTypeError" => "AdUnitTypeError", + "LabelFrequencyCap" => "LabelFrequencyCap", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "Size_StringMapEntry" => "Size_StringMapEntry", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "AdSenseSettings.AdType" => "AdSenseSettingsAdType", + "AdSenseSettings.BorderStyle" => "AdSenseSettingsBorderStyle", + "AdSenseSettings.FontFamily" => "AdSenseSettingsFontFamily", + "AdSenseSettings.FontSize" => "AdSenseSettingsFontSize", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidColorError.Reason" => "InvalidColorErrorReason", + "InventoryStatus" => "InventoryStatus", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", + "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", + "MobilePlatform" => "MobilePlatform", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TimeUnit" => "TimeUnit", + "createAdUnit" => "createAdUnit", + "createAdUnitResponse" => "createAdUnitResponse", + "createAdUnits" => "createAdUnits", + "createAdUnitsResponse" => "createAdUnitsResponse", + "getAdUnit" => "getAdUnit", + "getAdUnitResponse" => "getAdUnitResponse", + "getAdUnitSizesByStatement" => "getAdUnitSizesByStatement", + "getAdUnitSizesByStatementResponse" => "getAdUnitSizesByStatementResponse", + "getAdUnitsByStatement" => "getAdUnitsByStatement", + "getAdUnitsByStatementResponse" => "getAdUnitsByStatementResponse", + "performAdUnitAction" => "performAdUnitAction", + "performAdUnitActionResponse" => "performAdUnitActionResponse", + "updateAdUnit" => "updateAdUnit", + "updateAdUnitResponse" => "updateAdUnitResponse", + "updateAdUnits" => "updateAdUnits", + "updateAdUnitsResponse" => "updateAdUnitsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/InventoryService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = InventoryService::$classmap; + parent::__construct($wsdl, $options, $user, 'InventoryService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + */ + public function createAdUnit($adUnit) { + $arg = new createAdUnit($adUnit); + $result = $this->__soapCall("createAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + */ + public function createAdUnits($adUnits) { + $arg = new createAdUnits($adUnits); + $result = $this->__soapCall("createAdUnits", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + */ + public function getAdUnit($adUnitId) { + $arg = new getAdUnit($adUnitId); + $result = $this->__soapCall("getAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + */ + public function getAdUnitSizesByStatement($filterStatement) { + $arg = new getAdUnitSizesByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitSizesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + */ + public function getAdUnitsByStatement($filterStatement) { + $arg = new getAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performAdUnitAction($adUnitAction, $filterStatement) { + $arg = new performAdUnitAction($adUnitAction, $filterStatement); + $result = $this->__soapCall("performAdUnitAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + */ + public function updateAdUnit($adUnit) { + $arg = new updateAdUnit($adUnit); + $result = $this->__soapCall("updateAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + */ + public function updateAdUnits($adUnits) { + $arg = new updateAdUnits($adUnits); + $result = $this->__soapCall("updateAdUnits", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/LabelService.php b/src/Google/Api/Ads/Dfp/v201211/LabelService.php new file mode 100755 index 000000000..c8326661c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/LabelService.php @@ -0,0 +1,3244 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelAction { + /** + * @access public + * @var string + */ + public $LabelActionType; + + private $_parameterMap = array ( + "LabelAction.Type" => "LabelActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelAction"; + } + + public function __construct($LabelActionType = NULL) { + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Label { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Label"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $types = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLabel", FALSE)) { +/** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("createLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLabels", FALSE)) { +/** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("createLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabel", FALSE)) { +/** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelId = NULL) { + $this->labelId = $labelId; + } +}} + +if (!class_exists("getLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabelsByStatement", FALSE)) { +/** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLabelsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLabelsByStatementResponse { + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performLabelAction { + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelAction = NULL, $filterStatement = NULL) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performLabelActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("updateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("updateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class LabelService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLabels" => "ActivateLabels", + "LabelAction" => "LabelAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createLabel" => "createLabel", + "createLabelResponse" => "createLabelResponse", + "createLabels" => "createLabels", + "createLabelsResponse" => "createLabelsResponse", + "getLabel" => "getLabel", + "getLabelResponse" => "getLabelResponse", + "getLabelsByStatement" => "getLabelsByStatement", + "getLabelsByStatementResponse" => "getLabelsByStatementResponse", + "performLabelAction" => "performLabelAction", + "performLabelActionResponse" => "performLabelActionResponse", + "updateLabel" => "updateLabel", + "updateLabelResponse" => "updateLabelResponse", + "updateLabels" => "updateLabels", + "updateLabelsResponse" => "updateLabelsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/LabelService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LabelService::$classmap; + parent::__construct($wsdl, $options, $user, 'LabelService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + */ + public function createLabel($label) { + $arg = new createLabel($label); + $result = $this->__soapCall("createLabel", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + */ + public function createLabels($labels) { + $arg = new createLabels($labels); + $result = $this->__soapCall("createLabels", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + */ + public function getLabel($labelId) { + $arg = new getLabel($labelId); + $result = $this->__soapCall("getLabel", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $arg = new getLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performLabelAction($labelAction, $filterStatement) { + $arg = new performLabelAction($labelAction, $filterStatement); + $result = $this->__soapCall("performLabelAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + */ + public function updateLabel($label) { + $arg = new updateLabel($label); + $result = $this->__soapCall("updateLabel", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $arg = new updateLabels($labels); + $result = $this->__soapCall("updateLabels", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201211/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..3dd8abda9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/LineItemCreativeAssociationService.php @@ -0,0 +1,4825 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on + * {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationAction { + /** + * @access public + * @var string + */ + public $LineItemCreativeAssociationActionType; + + private $_parameterMap = array ( + "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationAction"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociation", FALSE)) { +/** + * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a + * {@link LineItem} so that the creative can be served in ad units targeted by the line item. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * @access public + * @var double + */ + public $manualCreativeRotationWeight; + + /** + * @access public + * @var integer + */ + public $sequentialCreativeRotationIndex; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var Size[] + */ + public $sizes; + + /** + * @access public + * @var tnsLineItemCreativeAssociationStatus + */ + public $status; + + /** + * @access public + * @var LineItemCreativeAssociationStats + */ + public $stats; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation"; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $creativeSetId = NULL, $manualCreativeRotationWeight = NULL, $sequentialCreativeRotationIndex = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $destinationUrl = NULL, $sizes = NULL, $status = NULL, $stats = NULL, $lastModifiedDateTime = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->creativeSetId = $creativeSetId; + $this->manualCreativeRotationWeight = $manualCreativeRotationWeight; + $this->sequentialCreativeRotationIndex = $sequentialCreativeRotationIndex; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->destinationUrl = $destinationUrl; + $this->sizes = $sizes; + $this->status = $status; + $this->stats = $stats; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemCreativeAssociationOperationError", FALSE)) { +/** + * Lists all errors for executing operations on + * line item-to-creative associations + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError"; + } + + 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("LineItemCreativeAssociationPage", FALSE)) { +/** + * Captures a page of {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemCreativeAssociationStats", FALSE)) { +/** + * Contains statistics such as impressions, clicks delivered and cost + * for {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationStats { + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var Long_StatsMapEntry[] + */ + public $creativeSetStats; + + /** + * @access public + * @var Money + */ + public $costInOrderCurrency; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationStats"; + } + + public function __construct($stats = NULL, $creativeSetStats = NULL, $costInOrderCurrency = NULL) { + $this->stats = $stats; + $this->creativeSetStats = $creativeSetStats; + $this->costInOrderCurrency = $costInOrderCurrency; + } +}} + +if (!class_exists("Long_StatsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Long + * and value of type Stats. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Long_StatsMapEntry { + /** + * @access public + * @var integer + */ + public $key; + + /** + * @access public + * @var Stats + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Long_StatsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationStatus", FALSE)) { +/** + * Describes the status of the association. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItemCreativeAssociation", FALSE)) { +/** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("createLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItemCreativeAssociations", FALSE)) { +/** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("createLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociation", FALSE)) { +/** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatement", FALSE)) { +/** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLineItemCreativeAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLineItemCreativeAssociationsByStatementResponse { + /** + * @access public + * @var LineItemCreativeAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPreviewUrl", FALSE)) { +/** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getPreviewUrl { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var string + */ + public $siteUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $siteUrl = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->siteUrl = $siteUrl; + } +}} + +if (!class_exists("getPreviewUrlResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getPreviewUrlResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemCreativeAssociationAction", FALSE)) { +/** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performLineItemCreativeAssociationAction { + /** + * @access public + * @var LineItemCreativeAssociationAction + */ + public $lineItemCreativeAssociationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociationAction = NULL, $filterStatement = NULL) { + $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemCreativeAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performLineItemCreativeAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociation", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociations", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for activating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemCreativeAssociationService", FALSE)) { +/** + * LineItemCreativeAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", + "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSetError" => "CreativeSetError", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociation" => "LineItemCreativeAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", + "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", + "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", + "Long_StatsMapEntry" => "Long_StatsMapEntry", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createLineItemCreativeAssociation" => "createLineItemCreativeAssociation", + "createLineItemCreativeAssociationResponse" => "createLineItemCreativeAssociationResponse", + "createLineItemCreativeAssociations" => "createLineItemCreativeAssociations", + "createLineItemCreativeAssociationsResponse" => "createLineItemCreativeAssociationsResponse", + "getLineItemCreativeAssociation" => "getLineItemCreativeAssociation", + "getLineItemCreativeAssociationResponse" => "getLineItemCreativeAssociationResponse", + "getLineItemCreativeAssociationsByStatement" => "getLineItemCreativeAssociationsByStatement", + "getLineItemCreativeAssociationsByStatementResponse" => "getLineItemCreativeAssociationsByStatementResponse", + "getPreviewUrl" => "getPreviewUrl", + "getPreviewUrlResponse" => "getPreviewUrlResponse", + "performLineItemCreativeAssociationAction" => "performLineItemCreativeAssociationAction", + "performLineItemCreativeAssociationActionResponse" => "performLineItemCreativeAssociationActionResponse", + "updateLineItemCreativeAssociation" => "updateLineItemCreativeAssociation", + "updateLineItemCreativeAssociationResponse" => "updateLineItemCreativeAssociationResponse", + "updateLineItemCreativeAssociations" => "updateLineItemCreativeAssociations", + "updateLineItemCreativeAssociationsResponse" => "updateLineItemCreativeAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/LineItemCreativeAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemCreativeAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemCreativeAssociationService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + */ + public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new createLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("createLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + */ + public function createLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new createLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("createLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + */ + public function getLineItemCreativeAssociation($lineItemId, $creativeId) { + $arg = new getLineItemCreativeAssociation($lineItemId, $creativeId); + $result = $this->__soapCall("getLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + */ + public function getLineItemCreativeAssociationsByStatement($filterStatement) { + $arg = new getLineItemCreativeAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + */ + public function getPreviewUrl($lineItemId, $creativeId, $siteUrl) { + $arg = new getPreviewUrl($lineItemId, $creativeId, $siteUrl); + $result = $this->__soapCall("getPreviewUrl", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + */ + public function performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement) { + $arg = new performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); + $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + */ + public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new updateLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("updateLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + */ + public function updateLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new updateLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("updateLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/LineItemService.php b/src/Google/Api/Ads/Dfp/v201211/LineItemService.php new file mode 100755 index 000000000..a282e43f5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/LineItemService.php @@ -0,0 +1,9051 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemAction { + /** + * @access public + * @var string + */ + public $LineItemActionType; + + private $_parameterMap = array ( + "LineItemAction.Type" => "LineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemAction"; + } + + public function __construct($LineItemActionType = NULL) { + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemPage", FALSE)) { +/** + * Captures a page of {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItem[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseLineItems", FALSE)) { +/** + * The action used for pausing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PauseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ReleaseLineItems", FALSE)) { +/** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReleaseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReleaseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ReserveLineItems", FALSE)) { +/** + * The action used for reserving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReserveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ResumeLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveLineItems", FALSE)) { +/** + * The action used for unarchiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UnarchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoPositionTargeting { + /** + * @access public + * @var tnsVideoPositionTargetingType[] + */ + public $targetedVideoPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedVideoPositions = NULL) { + $this->targetedVideoPositions = $targetedVideoPositions; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionTargetingType", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class VideoPositionTargetingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargetingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItem", FALSE)) { +/** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("createLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItems", FALSE)) { +/** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("createLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItem", FALSE)) { +/** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLineItem { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemsByStatement", FALSE)) { +/** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getLineItemsByStatementResponse { + /** + * @access public + * @var LineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemAction", FALSE)) { +/** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performLineItemAction { + /** + * @access public + * @var LineItemAction + */ + public $lineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemAction = NULL, $filterStatement = NULL) { + $this->lineItemAction = $lineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItem", FALSE)) { +/** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("updateLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItems", FALSE)) { +/** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("updateLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItems", FALSE)) { +/** + * The action used for activating {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveLineItems", FALSE)) { +/** + * The action used for archiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ArchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteLineItems", FALSE)) { +/** + * The action used for deleting {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeleteLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("ReserveAndOverbookLineItems", FALSE)) { +/** + * The action used for reserving and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveAndOverbookLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("LineItemService", FALSE)) { +/** + * LineItemService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class LineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItems" => "ActivateLineItems", + "LineItemAction" => "LineItemAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveLineItems" => "ArchiveLineItems", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeleteLineItems" => "DeleteLineItems", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemPage" => "LineItemPage", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PauseLineItems" => "PauseLineItems", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "ReleaseLineItems" => "ReleaseLineItems", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", + "ReserveLineItems" => "ReserveLineItems", + "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", + "ResumeLineItems" => "ResumeLineItems", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UnarchiveLineItems" => "UnarchiveLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPositionTargeting" => "VideoPositionTargeting", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoPositionTargetingType" => "VideoPositionTargetingType", + "createLineItem" => "createLineItem", + "createLineItemResponse" => "createLineItemResponse", + "createLineItems" => "createLineItems", + "createLineItemsResponse" => "createLineItemsResponse", + "getLineItem" => "getLineItem", + "getLineItemResponse" => "getLineItemResponse", + "getLineItemsByStatement" => "getLineItemsByStatement", + "getLineItemsByStatementResponse" => "getLineItemsByStatementResponse", + "performLineItemAction" => "performLineItemAction", + "performLineItemActionResponse" => "performLineItemActionResponse", + "updateLineItem" => "updateLineItem", + "updateLineItemResponse" => "updateLineItemResponse", + "updateLineItems" => "updateLineItems", + "updateLineItemsResponse" => "updateLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/LineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + */ + public function createLineItem($lineItem) { + $arg = new createLineItem($lineItem); + $result = $this->__soapCall("createLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + */ + public function createLineItems($lineItems) { + $arg = new createLineItems($lineItems); + $result = $this->__soapCall("createLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + */ + public function getLineItem($lineItemId) { + $arg = new getLineItem($lineItemId); + $result = $this->__soapCall("getLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + */ + public function getLineItemsByStatement($filterStatement) { + $arg = new getLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + */ + public function performLineItemAction($lineItemAction, $filterStatement) { + $arg = new performLineItemAction($lineItemAction, $filterStatement); + $result = $this->__soapCall("performLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + */ + public function updateLineItem($lineItem) { + $arg = new updateLineItem($lineItem); + $result = $this->__soapCall("updateLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + */ + public function updateLineItems($lineItems) { + $arg = new updateLineItems($lineItems); + $result = $this->__soapCall("updateLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/NetworkService.php b/src/Google/Api/Ads/Dfp/v201211/NetworkService.php new file mode 100755 index 000000000..3fc2d716e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/NetworkService.php @@ -0,0 +1,2173 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("Network", FALSE)) { +/** + * {@code Network} represents a network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Network { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $propertyCode; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $effectiveRootAdUnitId; + + /** + * @access public + * @var integer + */ + public $contentBrowseCustomTargetingKeyId; + + /** + * @access public + * @var boolean + */ + public $isTest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Network"; + } + + public function __construct($id = NULL, $displayName = NULL, $networkCode = NULL, $propertyCode = NULL, $timeZone = NULL, $currencyCode = NULL, $effectiveRootAdUnitId = NULL, $contentBrowseCustomTargetingKeyId = NULL, $isTest = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->networkCode = $networkCode; + $this->propertyCode = $propertyCode; + $this->timeZone = $timeZone; + $this->currencyCode = $currencyCode; + $this->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworks", FALSE)) { +/** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAllNetworks { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworksResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAllNetworksResponse { + /** + * @access public + * @var Network[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentNetwork", FALSE)) { +/** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCurrentNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCurrentNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("makeTestNetwork", FALSE)) { +/** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class makeTestNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("makeTestNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class makeTestNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateNetwork", FALSE)) { +/** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateNetwork { + /** + * @access public + * @var Network + */ + public $network; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($network = NULL) { + $this->network = $network; + } +}} + +if (!class_exists("updateNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NetworkService", FALSE)) { +/** + * NetworkService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class NetworkService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "Network" => "Network", + "NotNullError" => "NotNullError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getAllNetworks" => "getAllNetworks", + "getAllNetworksResponse" => "getAllNetworksResponse", + "getCurrentNetwork" => "getCurrentNetwork", + "getCurrentNetworkResponse" => "getCurrentNetworkResponse", + "makeTestNetwork" => "makeTestNetwork", + "makeTestNetworkResponse" => "makeTestNetworkResponse", + "updateNetwork" => "updateNetwork", + "updateNetworkResponse" => "updateNetworkResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/NetworkService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = NetworkService::$classmap; + parent::__construct($wsdl, $options, $user, 'NetworkService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + */ + public function getAllNetworks() { + $arg = new getAllNetworks(); + $result = $this->__soapCall("getAllNetworks", array($arg)); + return $result->rval; + } + + + /** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + */ + public function getCurrentNetwork() { + $arg = new getCurrentNetwork(); + $result = $this->__soapCall("getCurrentNetwork", array($arg)); + return $result->rval; + } + + + /** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + */ + public function makeTestNetwork() { + $arg = new makeTestNetwork(); + $result = $this->__soapCall("makeTestNetwork", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + */ + public function updateNetwork($network) { + $arg = new updateNetwork($network); + $result = $this->__soapCall("updateNetwork", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/OrderService.php b/src/Google/Api/Ads/Dfp/v201211/OrderService.php new file mode 100755 index 000000000..17b774343 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/OrderService.php @@ -0,0 +1,4889 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderAction { + /** + * @access public + * @var string + */ + public $OrderActionType; + + private $_parameterMap = array ( + "OrderAction.Type" => "OrderActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderAction"; + } + + public function __construct($OrderActionType = NULL) { + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("Order", FALSE)) { +/** + * An {@code Order} represents a grouping of individual {@link LineItem} + * objects, each of which fulfill an ad request from a particular advertiser. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Order { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsOrderStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var integer + */ + public $externalOrderId; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer + */ + public $agencyId; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var integer + */ + public $traffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer + */ + public $salespersonId; + + /** + * @access public + * @var integer[] + */ + public $secondarySalespersonIds; + + /** + * @access public + * @var integer + */ + public $totalImpressionsDelivered; + + /** + * @access public + * @var integer + */ + public $totalClicksDelivered; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Order"; + } + + public function __construct($id = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $isArchived = NULL, $notes = NULL, $externalOrderId = NULL, $poNumber = NULL, $currencyCode = NULL, $advertiserId = NULL, $agencyId = NULL, $creatorId = NULL, $traffickerId = NULL, $secondaryTraffickerIds = NULL, $salespersonId = NULL, $secondarySalespersonIds = NULL, $totalImpressionsDelivered = NULL, $totalClicksDelivered = NULL, $totalBudget = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $lastModifiedByApp = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->notes = $notes; + $this->externalOrderId = $externalOrderId; + $this->poNumber = $poNumber; + $this->currencyCode = $currencyCode; + $this->advertiserId = $advertiserId; + $this->agencyId = $agencyId; + $this->creatorId = $creatorId; + $this->traffickerId = $traffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->salespersonId = $salespersonId; + $this->secondarySalespersonIds = $secondarySalespersonIds; + $this->totalImpressionsDelivered = $totalImpressionsDelivered; + $this->totalClicksDelivered = $totalClicksDelivered; + $this->totalBudget = $totalBudget; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("OrderPage", FALSE)) { +/** + * Captures a page of {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Order[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseOrders", FALSE)) { +/** + * The action used for pausing {@link Order} objects. All {@link LineItem} + * objects within the order will be paused as well. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PauseOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ResumeOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RetractOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for retracting {@link Order} objects. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitOrdersForApproval", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SubmitOrdersForApproval extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApproval"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalAndOverbook"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalWithoutReservationChanges", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. This + * action does not make any changes to the {@link LineItem#reservationStatus} + * of the line items within the order. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveOrders", FALSE)) { +/** + * The action used for unarchiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UnarchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderStatus", FALSE)) { +/** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createOrder", FALSE)) { +/** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("createOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createOrders", FALSE)) { +/** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("createOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrder", FALSE)) { +/** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getOrder { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderId = NULL) { + $this->orderId = $orderId; + } +}} + +if (!class_exists("getOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrdersByStatement", FALSE)) { +/** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getOrdersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getOrdersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getOrdersByStatementResponse { + /** + * @access public + * @var OrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performOrderAction", FALSE)) { +/** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performOrderAction { + /** + * @access public + * @var OrderAction + */ + public $orderAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderAction = NULL, $filterStatement = NULL) { + $this->orderAction = $orderAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performOrderActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performOrderActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrder", FALSE)) { +/** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("updateOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrders", FALSE)) { +/** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("updateOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveOrders", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ApproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line + * items within the order. If there are reservable line items that have not + * been reserved the operation will not succeed. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ArchiveOrders", FALSE)) { +/** + * The action used for archiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ArchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteOrders", FALSE)) { +/** + * The action used for deleting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeleteOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrders", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DisapproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ResumeAndOverbookOrders", FALSE)) { +/** + * The action used for resuming and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApproveAndOverbookOrders", FALSE)) { +/** + * The action used for approving and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveAndOverbookOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class OrderService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", + "ApproveOrders" => "ApproveOrders", + "OrderAction" => "OrderAction", + "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", + "ArchiveOrders" => "ArchiveOrders", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "Order" => "Order", + "OrderError" => "OrderError", + "OrderPage" => "OrderPage", + "ParseError" => "ParseError", + "PauseOrders" => "PauseOrders", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "OrderStatus" => "OrderStatus", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createOrder" => "createOrder", + "createOrderResponse" => "createOrderResponse", + "createOrders" => "createOrders", + "createOrdersResponse" => "createOrdersResponse", + "getOrder" => "getOrder", + "getOrderResponse" => "getOrderResponse", + "getOrdersByStatement" => "getOrdersByStatement", + "getOrdersByStatementResponse" => "getOrdersByStatementResponse", + "performOrderAction" => "performOrderAction", + "performOrderActionResponse" => "performOrderActionResponse", + "updateOrder" => "updateOrder", + "updateOrderResponse" => "updateOrderResponse", + "updateOrders" => "updateOrders", + "updateOrdersResponse" => "updateOrdersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/OrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = OrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'OrderService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + */ + public function createOrder($order) { + $arg = new createOrder($order); + $result = $this->__soapCall("createOrder", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + */ + public function createOrders($orders) { + $arg = new createOrders($orders); + $result = $this->__soapCall("createOrders", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + */ + public function getOrder($orderId) { + $arg = new getOrder($orderId); + $result = $this->__soapCall("getOrder", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + */ + public function getOrdersByStatement($filterStatement) { + $arg = new getOrdersByStatement($filterStatement); + $result = $this->__soapCall("getOrdersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + */ + public function performOrderAction($orderAction, $filterStatement) { + $arg = new performOrderAction($orderAction, $filterStatement); + $result = $this->__soapCall("performOrderAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + */ + public function updateOrder($order) { + $arg = new updateOrder($order); + $result = $this->__soapCall("updateOrder", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + */ + public function updateOrders($orders) { + $arg = new updateOrders($orders); + $result = $this->__soapCall("updateOrders", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/PlacementService.php b/src/Google/Api/Ads/Dfp/v201211/PlacementService.php new file mode 100755 index 000000000..78d77fc65 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/PlacementService.php @@ -0,0 +1,3588 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PlacementAction { + /** + * @access public + * @var string + */ + public $PlacementActionType; + + private $_parameterMap = array ( + "PlacementAction.Type" => "PlacementActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAction"; + } + + public function __construct($PlacementActionType = NULL) { + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PlacementPage", FALSE)) { +/** + * Captures a page of {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PlacementPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Placement[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("SiteTargetingInfo", FALSE)) { +/** + * Contains information required for AdWords advertisers to place their ads. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SiteTargetingInfo { + /** + * @access public + * @var string + */ + public $targetingDescription; + + /** + * @access public + * @var string + */ + public $targetingSiteName; + + /** + * @access public + * @var string + */ + public $targetingAdLocation; + + /** + * @access public + * @var string + */ + public $SiteTargetingInfoType; + + private $_parameterMap = array ( + "SiteTargetingInfo.Type" => "SiteTargetingInfoType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteTargetingInfo"; + } + + public function __construct($targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createPlacement", FALSE)) { +/** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createPlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("createPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createPlacements", FALSE)) { +/** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createPlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("createPlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createPlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacement", FALSE)) { +/** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getPlacement { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementId = NULL) { + $this->placementId = $placementId; + } +}} + +if (!class_exists("getPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacementsByStatement", FALSE)) { +/** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getPlacementsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getPlacementsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getPlacementsByStatementResponse { + /** + * @access public + * @var PlacementPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performPlacementAction", FALSE)) { +/** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performPlacementAction { + /** + * @access public + * @var PlacementAction + */ + public $placementAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementAction = NULL, $filterStatement = NULL) { + $this->placementAction = $placementAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performPlacementActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performPlacementActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacement", FALSE)) { +/** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updatePlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("updatePlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updatePlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacements", FALSE)) { +/** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updatePlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("updatePlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updatePlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivatePlacements", FALSE)) { +/** + * The action used for activating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchivePlacements", FALSE)) { +/** + * The action used for archiving {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ArchivePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchivePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A {@code Placement} groups related {@code AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Placement extends SiteTargetingInfo { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $placementCode; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isAdSenseTargetingEnabled; + + /** + * @access public + * @var boolean + */ + public $isAdPlannerTargetingEnabled; + + /** + * @access public + * @var string + */ + public $adSenseTargetingLocale; + + /** + * @access public + * @var string[] + */ + public $targetedAdUnitIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $placementCode = NULL, $status = NULL, $isAdSenseTargetingEnabled = NULL, $isAdPlannerTargetingEnabled = NULL, $adSenseTargetingLocale = NULL, $targetedAdUnitIds = NULL, $lastModifiedDateTime = NULL, $targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->placementCode = $placementCode; + $this->status = $status; + $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; + $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; + $this->adSenseTargetingLocale = $adSenseTargetingLocale; + $this->targetedAdUnitIds = $targetedAdUnitIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PlacementService", FALSE)) { +/** + * PlacementService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class PlacementService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivatePlacements" => "ActivatePlacements", + "PlacementAction" => "PlacementAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchivePlacements" => "ArchivePlacements", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivatePlacements" => "DeactivatePlacements", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "Placement" => "Placement", + "SiteTargetingInfo" => "SiteTargetingInfo", + "PlacementError" => "PlacementError", + "PlacementPage" => "PlacementPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryStatus" => "InventoryStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createPlacement" => "createPlacement", + "createPlacementResponse" => "createPlacementResponse", + "createPlacements" => "createPlacements", + "createPlacementsResponse" => "createPlacementsResponse", + "getPlacement" => "getPlacement", + "getPlacementResponse" => "getPlacementResponse", + "getPlacementsByStatement" => "getPlacementsByStatement", + "getPlacementsByStatementResponse" => "getPlacementsByStatementResponse", + "performPlacementAction" => "performPlacementAction", + "performPlacementActionResponse" => "performPlacementActionResponse", + "updatePlacement" => "updatePlacement", + "updatePlacementResponse" => "updatePlacementResponse", + "updatePlacements" => "updatePlacements", + "updatePlacementsResponse" => "updatePlacementsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/PlacementService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PlacementService::$classmap; + parent::__construct($wsdl, $options, $user, 'PlacementService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + */ + public function createPlacement($placement) { + $arg = new createPlacement($placement); + $result = $this->__soapCall("createPlacement", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + */ + public function createPlacements($placements) { + $arg = new createPlacements($placements); + $result = $this->__soapCall("createPlacements", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + */ + public function getPlacement($placementId) { + $arg = new getPlacement($placementId); + $result = $this->__soapCall("getPlacement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + */ + public function getPlacementsByStatement($filterStatement) { + $arg = new getPlacementsByStatement($filterStatement); + $result = $this->__soapCall("getPlacementsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + */ + public function performPlacementAction($placementAction, $filterStatement) { + $arg = new performPlacementAction($placementAction, $filterStatement); + $result = $this->__soapCall("performPlacementAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + */ + public function updatePlacement($placement) { + $arg = new updatePlacement($placement); + $result = $this->__soapCall("updatePlacement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + */ + public function updatePlacements($placements) { + $arg = new updatePlacements($placements); + $result = $this->__soapCall("updatePlacements", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201211/PublisherQueryLanguageService.php new file mode 100755 index 000000000..80e54c8e0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/PublisherQueryLanguageService.php @@ -0,0 +1,3560 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ColumnType", FALSE)) { +/** + * Contains information about a column in a {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ColumnType { + /** + * @access public + * @var string + */ + public $labelName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ColumnType"; + } + + public function __construct($labelName = NULL) { + $this->labelName = $labelName; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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)) { +/** + * Caused by supplying a non-null value for an attribute that should be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ResultSet", FALSE)) { +/** + * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link + * Statement}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ResultSet { + /** + * @access public + * @var ColumnType[] + */ + public $columnTypes; + + /** + * @access public + * @var Row[] + */ + public $rows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResultSet"; + } + + public function __construct($columnTypes = NULL, $rows = NULL) { + $this->columnTypes = $columnTypes; + $this->rows = $rows; + } +}} + +if (!class_exists("Row", FALSE)) { +/** + * Each {@link Row} object represents data about one entity in a + * {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Row { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Row"; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("select", FALSE)) { +/** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class select { + /** + * @access public + * @var Statement + */ + public $selectStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selectStatement = NULL) { + $this->selectStatement = $selectStatement; + } +}} + +if (!class_exists("selectResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class selectResponse { + /** + * @access public + * @var ResultSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PublisherQueryLanguageService", FALSE)) { +/** + * PublisherQueryLanguageService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class PublisherQueryLanguageService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "ColumnType" => "ColumnType", + "CommonError" => "CommonError", + "CreativeError" => "CreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResultSet" => "ResultSet", + "Row" => "Row", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "select" => "select", + "selectResponse" => "selectResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/PublisherQueryLanguageService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PublisherQueryLanguageService::$classmap; + parent::__construct($wsdl, $options, $user, 'PublisherQueryLanguageService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + */ + public function select($selectStatement) { + $arg = new select($selectStatement); + $result = $this->__soapCall("select", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/ReportService.php b/src/Google/Api/Ads/Dfp/v201211/ReportService.php new file mode 100755 index 000000000..d6dbb85c7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/ReportService.php @@ -0,0 +1,2812 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ReportDownloadOptions", FALSE)) { +/** + * Represents the options for an API report download request. + * See {@link ReportService#getReportDownloadUrlWithOptions}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReportDownloadOptions { + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * @access public + * @var boolean + */ + public $includeReportProperties; + + /** + * @access public + * @var boolean + */ + public $includeTotalsRow; + + /** + * @access public + * @var boolean + */ + public $useGzipCompression; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDownloadOptions"; + } + + public function __construct($exportFormat = NULL, $includeReportProperties = NULL, $includeTotalsRow = NULL, $useGzipCompression = NULL) { + $this->exportFormat = $exportFormat; + $this->includeReportProperties = $includeReportProperties; + $this->includeTotalsRow = $includeTotalsRow; + $this->useGzipCompression = $useGzipCompression; + } +}} + +if (!class_exists("ReportError", FALSE)) { +/** + * An error for an exception that occurred while running the report. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReportError extends ApiError { + /** + * @access public + * @var tnsReportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError"; + } + + 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("ReportJob", FALSE)) { +/** + * Represents a report job that will be run to retrieve performance and + * statistics information about ad campaigns, networks, inventory and sales. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReportJob { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var ReportQuery + */ + public $reportQuery; + + /** + * @access public + * @var tnsReportJobStatus + */ + public $reportJobStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJob"; + } + + public function __construct($id = NULL, $reportQuery = NULL, $reportJobStatus = NULL) { + $this->id = $id; + $this->reportQuery = $reportQuery; + $this->reportJobStatus = $reportJobStatus; + } +}} + +if (!class_exists("ReportQuery", FALSE)) { +/** + * A {@code ReportQuery} object allows you to specify the selection criteria for + * generating a report. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReportQuery { + /** + * @access public + * @var tnsDimension[] + */ + public $dimensions; + + /** + * @access public + * @var tnsReportQueryAdUnitView + */ + public $adUnitView; + + /** + * @access public + * @var tnsColumn[] + */ + public $columns; + + /** + * @access public + * @var tnsDimensionAttribute[] + */ + public $dimensionAttributes; + + /** + * @access public + * @var integer[] + */ + public $customFieldIds; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var Date + */ + public $endDate; + + /** + * @access public + * @var tnsDateRangeType + */ + public $dateRangeType; + + /** + * @access public + * @var tnsDimensionFilter[] + */ + public $dimensionFilters; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery"; + } + + public function __construct($dimensions = NULL, $adUnitView = NULL, $columns = NULL, $dimensionAttributes = NULL, $customFieldIds = NULL, $startDate = NULL, $endDate = NULL, $dateRangeType = NULL, $dimensionFilters = NULL, $statement = NULL) { + $this->dimensions = $dimensions; + $this->adUnitView = $adUnitView; + $this->columns = $columns; + $this->dimensionAttributes = $dimensionAttributes; + $this->customFieldIds = $customFieldIds; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->dateRangeType = $dateRangeType; + $this->dimensionFilters = $dimensionFilters; + $this->statement = $statement; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportQueryAdUnitView", FALSE)) { +/** + * A view for an ad unit report. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReportQueryAdUnitView { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery.AdUnitView"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Column", FALSE)) { +/** + * {@code Column} provides all the trafficking statistics and revenue + * information available for the chosen {@link Dimension} objects. + *

      + * Columns with {@code INVENTORY_LEVEL} should not be used with dimensions + * relating to line items, orders, companies and creatives, such as {@link Dimension#LINE_ITEM}. + * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level + * dynamic allocation enabled on your network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Column { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Column"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateRangeType", FALSE)) { +/** + * Represents a period of time. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Dimension", FALSE)) { +/** + * {@code Dimension} provides the break-down and filterable types available for + * running a {@link ReportJob}. Aggregate and percentage columns will be + * calculated based on these groupings. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Dimension { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimension"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionAttribute", FALSE)) { +/** + * {@code DimensionAttribute} provides additional fields associated with a + * {@link Dimension}. It can only be selected with its corresponding + * {@link Dimension}. For example, {@link DimensionAttribute#ORDER_PO_NUMBER} + * can only be used if the {@link ReportQuery#dimensions} contains + * {@link Dimension#ORDER_NAME}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DimensionAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionFilter", FALSE)) { +/** + * {@code DimensionFilter} filters the data used during report creation. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DimensionFilter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionFilter"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExportFormat", FALSE)) { +/** + * The file formats available for creating the report. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ExportFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExportFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportErrorReason", FALSE)) { +/** + * Default {@code ReportError} when the reason is not among any already + * defined. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportJobStatus", FALSE)) { +/** + * Represents the status of a {@link ReportJob} running on the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ReportJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportDownloadURL", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getReportDownloadURL { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $exportFormat = NULL) { + $this->reportJobId = $reportJobId; + $this->exportFormat = $exportFormat; + } +}} + +if (!class_exists("getReportDownloadURLResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getReportDownloadURLResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptions", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getReportDownloadUrlWithOptions { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var ReportDownloadOptions + */ + public $reportDownloadOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $reportDownloadOptions = NULL) { + $this->reportJobId = $reportJobId; + $this->reportDownloadOptions = $reportDownloadOptions; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getReportDownloadUrlWithOptionsResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportJob", FALSE)) { +/** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getReportJob { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL) { + $this->reportJobId = $reportJobId; + } +}} + +if (!class_exists("getReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("runReportJob", FALSE)) { +/** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class runReportJob { + /** + * @access public + * @var ReportJob + */ + public $reportJob; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJob = NULL) { + $this->reportJob = $reportJob; + } +}} + +if (!class_exists("runReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class runReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportService", FALSE)) { +/** + * ReportService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class ReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ReportDownloadOptions" => "ReportDownloadOptions", + "ReportError" => "ReportError", + "ReportJob" => "ReportJob", + "ReportQuery" => "ReportQuery", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "Column" => "Column", + "CommonError.Reason" => "CommonErrorReason", + "DateRangeType" => "DateRangeType", + "Dimension" => "Dimension", + "DimensionAttribute" => "DimensionAttribute", + "DimensionFilter" => "DimensionFilter", + "ExportFormat" => "ExportFormat", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ReportError.Reason" => "ReportErrorReason", + "ReportJobStatus" => "ReportJobStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReportDownloadURL" => "getReportDownloadURL", + "getReportDownloadURLResponse" => "getReportDownloadURLResponse", + "getReportDownloadUrlWithOptions" => "getReportDownloadUrlWithOptions", + "getReportDownloadUrlWithOptionsResponse" => "getReportDownloadUrlWithOptionsResponse", + "getReportJob" => "getReportJob", + "getReportJobResponse" => "getReportJobResponse", + "runReportJob" => "runReportJob", + "runReportJobResponse" => "runReportJobResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/ReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + */ + public function getReportDownloadURL($reportJobId, $exportFormat) { + $arg = new getReportDownloadURL($reportJobId, $exportFormat); + $result = $this->__soapCall("getReportDownloadURL", array($arg)); + return $result->rval; + } + + + /** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + */ + public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions) { + $arg = new getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); + $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + */ + public function getReportJob($reportJobId) { + $arg = new getReportJob($reportJobId); + $result = $this->__soapCall("getReportJob", array($arg)); + return $result->rval; + } + + + /** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + */ + public function runReportJob($reportJob) { + $arg = new runReportJob($reportJob); + $result = $this->__soapCall("runReportJob", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201211/SuggestedAdUnitService.php new file mode 100755 index 000000000..f7c1b3ee0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/SuggestedAdUnitService.php @@ -0,0 +1,2891 @@ +id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SuggestedAdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SuggestedAdUnitAction { + /** + * @access public + * @var string + */ + public $SuggestedAdUnitActionType; + + private $_parameterMap = array ( + "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitAction"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("SuggestedAdUnit", FALSE)) { +/** + * A {@code SuggestedAdUnit} represents a suggestion for a new ad unit, based on an ad tag that has + * been served at least ten times in the past week, but which does not correspond to a defined ad + * unit. This type is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SuggestedAdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var integer + */ + public $numRequests; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var AdUnitSize[] + */ + public $suggestedAdUnitSizes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnit"; + } + + public function __construct($id = NULL, $numRequests = NULL, $path = NULL, $parentPath = NULL, $targetWindow = NULL, $targetPlatform = NULL, $suggestedAdUnitSizes = NULL) { + $this->id = $id; + $this->numRequests = $numRequests; + $this->path = $path; + $this->parentPath = $parentPath; + $this->targetWindow = $targetWindow; + $this->targetPlatform = $targetPlatform; + $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; + } +}} + +if (!class_exists("SuggestedAdUnitPage", FALSE)) { +/** + * Contains a page of {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SuggestedAdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var SuggestedAdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("SuggestedAdUnitUpdateResult", FALSE)) { +/** + * Represents the result of performing an action on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SuggestedAdUnitUpdateResult { + /** + * @access public + * @var string[] + */ + public $newAdUnitIds; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitUpdateResult"; + } + + public function __construct($newAdUnitIds = NULL, $numChanges = NULL) { + $this->newAdUnitIds = $newAdUnitIds; + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("getSuggestedAdUnit", FALSE)) { +/** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getSuggestedAdUnit { + /** + * @access public + * @var string + */ + public $suggestedAdUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitId = NULL) { + $this->suggestedAdUnitId = $suggestedAdUnitId; + } +}} + +if (!class_exists("getSuggestedAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getSuggestedAdUnitResponse { + /** + * @access public + * @var SuggestedAdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getSuggestedAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getSuggestedAdUnitsByStatementResponse { + /** + * @access public + * @var SuggestedAdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performSuggestedAdUnitAction", FALSE)) { +/** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performSuggestedAdUnitAction { + /** + * @access public + * @var SuggestedAdUnitAction + */ + public $suggestedAdUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitAction = NULL, $filterStatement = NULL) { + $this->suggestedAdUnitAction = $suggestedAdUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performSuggestedAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performSuggestedAdUnitActionResponse { + /** + * @access public + * @var SuggestedAdUnitUpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveSuggestedAdUnit", FALSE)) { +/** + * Action to approve {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveSuggestedAdUnit"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + parent::__construct(); + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SuggestedAdUnitService", FALSE)) { +/** + * SuggestedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class SuggestedAdUnitService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitParent" => "AdUnitParent", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", + "SuggestedAdUnitAction" => "SuggestedAdUnitAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SuggestedAdUnit" => "SuggestedAdUnit", + "SuggestedAdUnitPage" => "SuggestedAdUnitPage", + "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TargetPlatform" => "TargetPlatform", + "getSuggestedAdUnit" => "getSuggestedAdUnit", + "getSuggestedAdUnitResponse" => "getSuggestedAdUnitResponse", + "getSuggestedAdUnitsByStatement" => "getSuggestedAdUnitsByStatement", + "getSuggestedAdUnitsByStatementResponse" => "getSuggestedAdUnitsByStatementResponse", + "performSuggestedAdUnitAction" => "performSuggestedAdUnitAction", + "performSuggestedAdUnitActionResponse" => "performSuggestedAdUnitActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/SuggestedAdUnitService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SuggestedAdUnitService::$classmap; + parent::__construct($wsdl, $options, $user, 'SuggestedAdUnitService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + */ + public function getSuggestedAdUnit($suggestedAdUnitId) { + $arg = new getSuggestedAdUnit($suggestedAdUnitId); + $result = $this->__soapCall("getSuggestedAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + */ + public function getSuggestedAdUnitsByStatement($filterStatement) { + $arg = new getSuggestedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + */ + public function performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement) { + $arg = new performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSuggestedAdUnitAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/TeamService.php b/src/Google/Api/Ads/Dfp/v201211/TeamService.php new file mode 100755 index 000000000..a34543e1a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/TeamService.php @@ -0,0 +1,2791 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Team", FALSE)) { +/** + * A {@code Team} defines a grouping of users and what entities they have access + * to. Users are added to teams with {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Team { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $hasAllCompanies; + + /** + * @access public + * @var boolean + */ + public $hasAllInventory; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $teamAccessType; + + /** + * @access public + * @var integer[] + */ + public $companyIds; + + /** + * @access public + * @var string[] + */ + public $adUnitIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Team"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $hasAllCompanies = NULL, $hasAllInventory = NULL, $teamAccessType = NULL, $companyIds = NULL, $adUnitIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->hasAllCompanies = $hasAllCompanies; + $this->hasAllInventory = $hasAllInventory; + $this->teamAccessType = $teamAccessType; + $this->companyIds = $companyIds; + $this->adUnitIds = $adUnitIds; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TeamPage", FALSE)) { +/** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Team[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createTeam", FALSE)) { +/** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("createTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createTeams", FALSE)) { +/** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("createTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeam", FALSE)) { +/** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getTeam { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL) { + $this->teamId = $teamId; + } +}} + +if (!class_exists("getTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeamsByStatement", FALSE)) { +/** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getTeamsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getTeamsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getTeamsByStatementResponse { + /** + * @access public + * @var TeamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeam", FALSE)) { +/** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("updateTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeams", FALSE)) { +/** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("updateTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TeamService", FALSE)) { +/** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class TeamService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Team" => "Team", + "TeamError" => "TeamError", + "TeamPage" => "TeamPage", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "TeamError.Reason" => "TeamErrorReason", + "createTeam" => "createTeam", + "createTeamResponse" => "createTeamResponse", + "createTeams" => "createTeams", + "createTeamsResponse" => "createTeamsResponse", + "getTeam" => "getTeam", + "getTeamResponse" => "getTeamResponse", + "getTeamsByStatement" => "getTeamsByStatement", + "getTeamsByStatementResponse" => "getTeamsByStatementResponse", + "updateTeam" => "updateTeam", + "updateTeamResponse" => "updateTeamResponse", + "updateTeams" => "updateTeams", + "updateTeamsResponse" => "updateTeamsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/TeamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TeamService::$classmap; + parent::__construct($wsdl, $options, $user, 'TeamService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + */ + public function createTeam($team) { + $arg = new createTeam($team); + $result = $this->__soapCall("createTeam", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + */ + public function createTeams($teams) { + $arg = new createTeams($teams); + $result = $this->__soapCall("createTeams", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + */ + public function getTeam($teamId) { + $arg = new getTeam($teamId); + $result = $this->__soapCall("getTeam", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + */ + public function getTeamsByStatement($filterStatement) { + $arg = new getTeamsByStatement($filterStatement); + $result = $this->__soapCall("getTeamsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + */ + public function updateTeam($team) { + $arg = new updateTeam($team); + $result = $this->__soapCall("updateTeam", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + */ + public function updateTeams($teams) { + $arg = new updateTeams($teams); + $result = $this->__soapCall("updateTeams", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/ThirdPartySlotService.php b/src/Google/Api/Ads/Dfp/v201211/ThirdPartySlotService.php new file mode 100755 index 000000000..323bb7a4c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/ThirdPartySlotService.php @@ -0,0 +1,2713 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("ThirdPartySlotAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlotAction { + /** + * @access public + * @var string + */ + public $ThirdPartySlotActionType; + + private $_parameterMap = array ( + "ThirdPartySlotAction.Type" => "ThirdPartySlotActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlotAction"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("ThirdPartySlot", FALSE)) { +/** + * A {@code ThirdPartySlot} represents how third-party creatives are + * uniquely identified in a third-party ad network, yield manager, or + * ad exchange's system. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlot { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer[] + */ + public $creativeIds; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var string + */ + public $externalUniqueId; + + /** + * @access public + * @var string + */ + public $externalUniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsThirdPartySlotStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlot"; + } + + public function __construct($id = NULL, $creativeIds = NULL, $companyId = NULL, $externalUniqueId = NULL, $externalUniqueName = NULL, $description = NULL, $status = NULL) { + $this->id = $id; + $this->creativeIds = $creativeIds; + $this->companyId = $companyId; + $this->externalUniqueId = $externalUniqueId; + $this->externalUniqueName = $externalUniqueName; + $this->description = $description; + $this->status = $status; + } +}} + +if (!class_exists("ThirdPartySlotPage", FALSE)) { +/** + * Captures a page of {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlotPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ThirdPartySlot[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlotPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartySlotStatus", FALSE)) { +/** + * The status of a {@code ThirdPartySlot}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ThirdPartySlotStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlot.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("createThirdPartySlot", FALSE)) { +/** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createThirdPartySlot { + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlot = NULL) { + $this->thirdPartySlot = $thirdPartySlot; + } +}} + +if (!class_exists("createThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createThirdPartySlotResponse { + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getThirdPartySlotsByStatement", FALSE)) { +/** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getThirdPartySlotsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getThirdPartySlotsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getThirdPartySlotsByStatementResponse { + /** + * @access public + * @var ThirdPartySlotPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performThirdPartySlotAction", FALSE)) { +/** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performThirdPartySlotAction { + /** + * @access public + * @var ThirdPartySlotAction + */ + public $thirdPartySlotAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlotAction = NULL, $filterStatement = NULL) { + $this->thirdPartySlotAction = $thirdPartySlotAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performThirdPartySlotActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performThirdPartySlotActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateThirdPartySlot", FALSE)) { +/** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateThirdPartySlot { + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlot = NULL) { + $this->thirdPartySlot = $thirdPartySlot; + } +}} + +if (!class_exists("updateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateThirdPartySlotResponse { + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateThirdPartySlots", FALSE)) { +/** + * Action to activate {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateThirdPartySlots extends ThirdPartySlotAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateThirdPartySlots"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveThirdPartySlots", FALSE)) { +/** + * Action to archive {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ArchiveThirdPartySlots extends ThirdPartySlotAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveThirdPartySlots"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ThirdPartySlotService", FALSE)) { +/** + * ThirdPartySlotService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class ThirdPartySlotService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateThirdPartySlots" => "ActivateThirdPartySlots", + "ThirdPartySlotAction" => "ThirdPartySlotAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchiveThirdPartySlots" => "ArchiveThirdPartySlots", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ThirdPartySlot" => "ThirdPartySlot", + "ThirdPartySlotPage" => "ThirdPartySlotPage", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ThirdPartySlot.Status" => "ThirdPartySlotStatus", + "createThirdPartySlot" => "createThirdPartySlot", + "createThirdPartySlotResponse" => "createThirdPartySlotResponse", + "getThirdPartySlotsByStatement" => "getThirdPartySlotsByStatement", + "getThirdPartySlotsByStatementResponse" => "getThirdPartySlotsByStatementResponse", + "performThirdPartySlotAction" => "performThirdPartySlotAction", + "performThirdPartySlotActionResponse" => "performThirdPartySlotActionResponse", + "updateThirdPartySlot" => "updateThirdPartySlot", + "updateThirdPartySlotResponse" => "updateThirdPartySlotResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/ThirdPartySlotService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ThirdPartySlotService::$classmap; + parent::__construct($wsdl, $options, $user, 'ThirdPartySlotService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + */ + public function createThirdPartySlot($thirdPartySlot) { + $arg = new createThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("createThirdPartySlot", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + */ + public function getThirdPartySlotsByStatement($filterStatement) { + $arg = new getThirdPartySlotsByStatement($filterStatement); + $result = $this->__soapCall("getThirdPartySlotsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + */ + public function performThirdPartySlotAction($thirdPartySlotAction, $filterStatement) { + $arg = new performThirdPartySlotAction($thirdPartySlotAction, $filterStatement); + $result = $this->__soapCall("performThirdPartySlotAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + */ + public function updateThirdPartySlot($thirdPartySlot) { + $arg = new updateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("updateThirdPartySlot", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/UserService.php b/src/Google/Api/Ads/Dfp/v201211/UserService.php new file mode 100755 index 000000000..1cfb7485b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/UserService.php @@ -0,0 +1,3470 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("Role", FALSE)) { +/** + * Each {@code Role} provides a user with permissions to perform specific + * operations in the system. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Role { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Role"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserAction { + /** + * @access public + * @var string + */ + public $UserActionType; + + private $_parameterMap = array ( + "UserAction.Type" => "UserActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserAction"; + } + + public function __construct($UserActionType = NULL) { + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("UserPage", FALSE)) { +/** + * Captures a page of {@link User} objects + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var User[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UserRecord", FALSE)) { +/** + * The {@code UserRecord} represents the base class from which a {@code User} is + * derived. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserRecord { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var integer + */ + public $roleId; + + /** + * @access public + * @var string + */ + public $roleName; + + /** + * @access public + * @var string + */ + public $preferredLocale; + + /** + * @access public + * @var string + */ + public $UserRecordType; + + private $_parameterMap = array ( + "UserRecord.Type" => "UserRecordType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecord"; + } + + public function __construct($id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUser", FALSE)) { +/** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("createUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUsers", FALSE)) { +/** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("createUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAllRoles", FALSE)) { +/** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAllRoles { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllRolesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getAllRolesResponse { + /** + * @access public + * @var Role[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentUser", FALSE)) { +/** + * Returns the current {@link User}. + * + * @return the current user + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCurrentUser { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getCurrentUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUser", FALSE)) { +/** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUser { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userId = NULL) { + $this->userId = $userId; + } +}} + +if (!class_exists("getUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUsersByStatement", FALSE)) { +/** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUsersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUsersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUsersByStatementResponse { + /** + * @access public + * @var UserPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserAction", FALSE)) { +/** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performUserAction { + /** + * @access public + * @var UserAction + */ + public $userAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userAction = NULL, $filterStatement = NULL) { + $this->userAction = $userAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performUserActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performUserActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUser", FALSE)) { +/** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("updateUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUsers", FALSE)) { +/** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("updateUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateUsers", FALSE)) { +/** + * The action used for activating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ActivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeactivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("User", FALSE)) { +/** + * Represents a user of the system. + *

      + * Users may be assigned at most one {@link Role} per network. Each role + * provides a user with permissions to perform specific operations. Without a + * role, they will not be able to perform any actions. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class User extends UserRecord { + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $ordersUiLocalTimeZoneId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "User"; + } + + public function __construct($isActive = NULL, $isEmailNotificationAllowed = NULL, $ordersUiLocalTimeZoneId = NULL, $id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("UserService", FALSE)) { +/** + * UserService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class UserService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateUsers" => "ActivateUsers", + "UserAction" => "UserAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateUsers" => "DeactivateUsers", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "Role" => "Role", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "User" => "User", + "UserRecord" => "UserRecord", + "UserPage" => "UserPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createUser" => "createUser", + "createUserResponse" => "createUserResponse", + "createUsers" => "createUsers", + "createUsersResponse" => "createUsersResponse", + "getAllRoles" => "getAllRoles", + "getAllRolesResponse" => "getAllRolesResponse", + "getCurrentUser" => "getCurrentUser", + "getCurrentUserResponse" => "getCurrentUserResponse", + "getUser" => "getUser", + "getUserResponse" => "getUserResponse", + "getUsersByStatement" => "getUsersByStatement", + "getUsersByStatementResponse" => "getUsersByStatementResponse", + "performUserAction" => "performUserAction", + "performUserActionResponse" => "performUserActionResponse", + "updateUser" => "updateUser", + "updateUserResponse" => "updateUserResponse", + "updateUsers" => "updateUsers", + "updateUsersResponse" => "updateUsersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/UserService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + */ + public function createUser($user) { + $arg = new createUser($user); + $result = $this->__soapCall("createUser", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + */ + public function createUsers($users) { + $arg = new createUsers($users); + $result = $this->__soapCall("createUsers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + */ + public function getAllRoles() { + $arg = new getAllRoles(); + $result = $this->__soapCall("getAllRoles", array($arg)); + return $result->rval; + } + + + /** + * Returns the current {@link User}. + * + * @return the current user + */ + public function getCurrentUser() { + $arg = new getCurrentUser(); + $result = $this->__soapCall("getCurrentUser", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + */ + public function getUser($userId) { + $arg = new getUser($userId); + $result = $this->__soapCall("getUser", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + */ + public function getUsersByStatement($filterStatement) { + $arg = new getUsersByStatement($filterStatement); + $result = $this->__soapCall("getUsersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + */ + public function performUserAction($userAction, $filterStatement) { + $arg = new performUserAction($userAction, $filterStatement); + $result = $this->__soapCall("performUserAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + */ + public function updateUser($user) { + $arg = new updateUser($user); + $result = $this->__soapCall("updateUser", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + */ + public function updateUsers($users) { + $arg = new updateUsers($users); + $result = $this->__soapCall("updateUsers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201211/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201211/UserTeamAssociationService.php new file mode 100755 index 000000000..5345d13c1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201211/UserTeamAssociationService.php @@ -0,0 +1,2863 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserRecordTeamAssociation", FALSE)) { +/** + * {@code UserRecordTeamAssociation} represents the association between a + * {@link UserRecord} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $overriddenTeamAccessType; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $defaultTeamAccessType; + + /** + * @access public + * @var string + */ + public $UserRecordTeamAssociationType; + + private $_parameterMap = array ( + "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecordTeamAssociation"; + } + + public function __construct($teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link UserTeamAssociation} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserTeamAssociationAction { + /** + * @access public + * @var string + */ + public $UserTeamAssociationActionType; + + private $_parameterMap = array ( + "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationAction"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("UserTeamAssociation", FALSE)) { +/** + * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} + * to provide the user access to the entities that belong to the team. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociation"; + } + + public function __construct($userId = NULL, $teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + parent::__construct(); + $this->userId = $userId; + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationPage", FALSE)) { +/** + * Captures a page of {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class UserTeamAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUserTeamAssociation", FALSE)) { +/** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("createUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUserTeamAssociations", FALSE)) { +/** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("createUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class createUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociation", FALSE)) { +/** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUserTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL, $userId = NULL) { + $this->teamId = $teamId; + $this->userId = $userId; + } +}} + +if (!class_exists("getUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatement", FALSE)) { +/** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUserTeamAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class getUserTeamAssociationsByStatementResponse { + /** + * @access public + * @var UserTeamAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserTeamAssociationAction", FALSE)) { +/** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performUserTeamAssociationAction { + /** + * @access public + * @var UserTeamAssociationAction + */ + public $userTeamAssociationAction; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociationAction = NULL, $statement = NULL) { + $this->userTeamAssociationAction = $userTeamAssociationAction; + $this->statement = $statement; + } +}} + +if (!class_exists("performUserTeamAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class performUserTeamAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociation", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("updateUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociations", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("updateUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class updateUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteUserTeamAssociations"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + parent::__construct(); + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201211 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201211"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("UserTeamAssociationService", FALSE)) { +/** + * UserTeamAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201211 + * @author WSDLInterpreter + */ +class UserTeamAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", + "UserTeamAssociationAction" => "UserTeamAssociationAction", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "UserRecordTeamAssociation" => "UserRecordTeamAssociation", + "UserTeamAssociation" => "UserTeamAssociation", + "UserTeamAssociationPage" => "UserTeamAssociationPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "createUserTeamAssociation" => "createUserTeamAssociation", + "createUserTeamAssociationResponse" => "createUserTeamAssociationResponse", + "createUserTeamAssociations" => "createUserTeamAssociations", + "createUserTeamAssociationsResponse" => "createUserTeamAssociationsResponse", + "getUserTeamAssociation" => "getUserTeamAssociation", + "getUserTeamAssociationResponse" => "getUserTeamAssociationResponse", + "getUserTeamAssociationsByStatement" => "getUserTeamAssociationsByStatement", + "getUserTeamAssociationsByStatementResponse" => "getUserTeamAssociationsByStatementResponse", + "performUserTeamAssociationAction" => "performUserTeamAssociationAction", + "performUserTeamAssociationActionResponse" => "performUserTeamAssociationActionResponse", + "updateUserTeamAssociation" => "updateUserTeamAssociation", + "updateUserTeamAssociationResponse" => "updateUserTeamAssociationResponse", + "updateUserTeamAssociations" => "updateUserTeamAssociations", + "updateUserTeamAssociationsResponse" => "updateUserTeamAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201211/UserTeamAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserTeamAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserTeamAssociationService', 'https://www.google.com/apis/ads/publisher/v201211'); + } + + /** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + */ + public function createUserTeamAssociation($userTeamAssociation) { + $arg = new createUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("createUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + */ + public function createUserTeamAssociations($userTeamAssociations) { + $arg = new createUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("createUserTeamAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + */ + public function getUserTeamAssociation($teamId, $userId) { + $arg = new getUserTeamAssociation($teamId, $userId); + $result = $this->__soapCall("getUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + */ + public function getUserTeamAssociationsByStatement($filterStatement) { + $arg = new getUserTeamAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + */ + public function performUserTeamAssociationAction($userTeamAssociationAction, $statement) { + $arg = new performUserTeamAssociationAction($userTeamAssociationAction, $statement); + $result = $this->__soapCall("performUserTeamAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + */ + public function updateUserTeamAssociation($userTeamAssociation) { + $arg = new updateUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("updateUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + */ + public function updateUserTeamAssociations($userTeamAssociations) { + $arg = new updateUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("updateUserTeamAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201302/ActivityGroupService.php new file mode 100755 index 000000000..777b13a4b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ActivityGroupService.php @@ -0,0 +1,2804 @@ +id = $id; + $this->name = $name; + $this->companyIds = $companyIds; + $this->impressionsLookback = $impressionsLookback; + $this->clicksLookback = $clicksLookback; + $this->status = $status; + } +}} + +if (!class_exists("ActivityGroupPage", FALSE)) { +/** + * Captures a page of {@link ActivityGroup} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityGroupPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ActivityGroup[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityGroupPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityGroupStatus", FALSE)) { +/** + * The activity group status. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createActivityGroup", FALSE)) { +/** + * Creates a new {@link ActivityGroup}. + * + * @param activityGroup the activity group to be created. + * @return the created activity group with its ID filled in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createActivityGroup { + /** + * @access public + * @var ActivityGroup + */ + public $activityGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroup = NULL) { + $this->activityGroup = $activityGroup; + } +}} + +if (!class_exists("createActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createActivityGroups", FALSE)) { +/** + * Creates a new {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createActivityGroups { + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroups = NULL) { + $this->activityGroups = $activityGroups; + } +}} + +if (!class_exists("createActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createActivityGroupsResponse { + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivityGroup", FALSE)) { +/** + * Returns the {@link ActivityGroup} uniquely identified by the given ID. + * + * @param activityGroupId the ID of the activity group, which must already exist. + * @return the {@code ActivityGroup} uniquely identified by the given ID. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getActivityGroup { + /** + * @access public + * @var integer + */ + public $activityGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroupId = NULL) { + $this->activityGroupId = $activityGroupId; + } +}} + +if (!class_exists("getActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivityGroupsByStatement", FALSE)) { +/** + * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ActivityGroup#id}
      {@code name}{@link ActivityGroup#name}
      {@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
      {@code clicksLookback}{@link ActivityGroup#clicksLookback}
      {@code status}{@link ActivityGroup#status}
      + * + * @param filterStatement a statement used to filter a set of activity groups + * @return the activity groups that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getActivityGroupsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getActivityGroupsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getActivityGroupsByStatementResponse { + /** + * @access public + * @var ActivityGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivityGroup", FALSE)) { +/** + * Updates the specified {@link ActivityGroup}. + * + * @param activityGroup the activity group to update. + * @return the updated activity group. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateActivityGroup { + /** + * @access public + * @var ActivityGroup + */ + public $activityGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroup = NULL) { + $this->activityGroup = $activityGroup; + } +}} + +if (!class_exists("updateActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivityGroups", FALSE)) { +/** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateActivityGroups { + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroups = NULL) { + $this->activityGroups = $activityGroups; + } +}} + +if (!class_exists("updateActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateActivityGroupsResponse { + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivityError", FALSE)) { +/** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityError extends ApiError { + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityGroupService", FALSE)) { +/** + * ActivityGroupService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class ActivityGroupService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivityError" => "ActivityError", + "ApiError" => "ApiError", + "ActivityGroup" => "ActivityGroup", + "ActivityGroupPage" => "ActivityGroupPage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ActivityError.Reason" => "ActivityErrorReason", + "ActivityGroup.Status" => "ActivityGroupStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createActivityGroup" => "createActivityGroup", + "createActivityGroupResponse" => "createActivityGroupResponse", + "createActivityGroups" => "createActivityGroups", + "createActivityGroupsResponse" => "createActivityGroupsResponse", + "getActivityGroup" => "getActivityGroup", + "getActivityGroupResponse" => "getActivityGroupResponse", + "getActivityGroupsByStatement" => "getActivityGroupsByStatement", + "getActivityGroupsByStatementResponse" => "getActivityGroupsByStatementResponse", + "updateActivityGroup" => "updateActivityGroup", + "updateActivityGroupResponse" => "updateActivityGroupResponse", + "updateActivityGroups" => "updateActivityGroups", + "updateActivityGroupsResponse" => "updateActivityGroupsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ActivityGroupService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ActivityGroupService::$classmap; + parent::__construct($wsdl, $options, $user, 'ActivityGroupService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link ActivityGroup}. + * + * @param activityGroup the activity group to be created. + * @return the created activity group with its ID filled in. + */ + public function createActivityGroup($activityGroup) { + $arg = new createActivityGroup($activityGroup); + $result = $this->__soapCall("createActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + */ + public function createActivityGroups($activityGroups) { + $arg = new createActivityGroups($activityGroups); + $result = $this->__soapCall("createActivityGroups", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ActivityGroup} uniquely identified by the given ID. + * + * @param activityGroupId the ID of the activity group, which must already exist. + * @return the {@code ActivityGroup} uniquely identified by the given ID. + */ + public function getActivityGroup($activityGroupId) { + $arg = new getActivityGroup($activityGroupId); + $result = $this->__soapCall("getActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ActivityGroup#id}
      {@code name}{@link ActivityGroup#name}
      {@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
      {@code clicksLookback}{@link ActivityGroup#clicksLookback}
      {@code status}{@link ActivityGroup#status}
      + * + * @param filterStatement a statement used to filter a set of activity groups + * @return the activity groups that match the given filter + */ + public function getActivityGroupsByStatement($filterStatement) { + $arg = new getActivityGroupsByStatement($filterStatement); + $result = $this->__soapCall("getActivityGroupsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ActivityGroup}. + * + * @param activityGroup the activity group to update. + * @return the updated activity group. + */ + public function updateActivityGroup($activityGroup) { + $arg = new updateActivityGroup($activityGroup); + $result = $this->__soapCall("updateActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + */ + public function updateActivityGroups($activityGroups) { + $arg = new updateActivityGroups($activityGroups); + $result = $this->__soapCall("updateActivityGroups", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ActivityService.php b/src/Google/Api/Ads/Dfp/v201302/ActivityService.php new file mode 100755 index 000000000..d31eef36f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ActivityService.php @@ -0,0 +1,2837 @@ +An activity is a specific user action that an advertiser wants to track, such as the + * completion of a purchase or a visit to a webpage. You create and manage activities in DFP. When + * a user performs the action after seeing an advertiser's ad, that's a conversion.

      + * + *

      For example, you set up an activity in DFP to track how many users visit an advertiser's + * promotional website after viewing or clicking on an ad. When a user views an ad, then visits the + * page, that's one conversion.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Activity { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $activityGroupId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $expectedURL; + + /** + * @access public + * @var tnsActivityStatus + */ + public $status; + + /** + * @access public + * @var tnsActivityType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity"; + } + + public function __construct($id = NULL, $activityGroupId = NULL, $name = NULL, $expectedURL = NULL, $status = NULL, $type = NULL) { + $this->id = $id; + $this->activityGroupId = $activityGroupId; + $this->name = $name; + $this->expectedURL = $expectedURL; + $this->status = $status; + $this->type = $type; + } +}} + +if (!class_exists("ActivityPage", FALSE)) { +/** + * Captures a page of {@link Activity} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Activity[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityStatus", FALSE)) { +/** + * The activity status. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityType", FALSE)) { +/** + * The activity type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createActivities", FALSE)) { +/** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createActivities { + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activities = NULL) { + $this->activities = $activities; + } +}} + +if (!class_exists("createActivitiesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createActivitiesResponse { + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createActivity", FALSE)) { +/** + * Creates a new {@link Activity}. + * + * @param activity to be created + * @return the created activity with its ID filled in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createActivity { + /** + * @access public + * @var Activity + */ + public $activity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activity = NULL) { + $this->activity = $activity; + } +}} + +if (!class_exists("createActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivitiesByStatement", FALSE)) { +/** + * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Activity#id}
      {@code name}{@link Activity#name}
      {@code expectedURL}{@link Activity#expectedURL}
      {@code status}{@link Activity#status}
      {@code activityGroupId}{@link Activity#activityGroupId}
      + * + * @param filterStatement a statement used to filter a set of activities. + * @return the activities that match the given filter. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getActivitiesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getActivitiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getActivitiesByStatementResponse { + /** + * @access public + * @var ActivityPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivity", FALSE)) { +/** + * Returns the {@link Activity} uniquely identified by the given ID. + * + * @param activityId the ID of the activity, which must already exist + * @return the {@code Activity} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getActivity { + /** + * @access public + * @var integer + */ + public $activityId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityId = NULL) { + $this->activityId = $activityId; + } +}} + +if (!class_exists("getActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivities", FALSE)) { +/** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateActivities { + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activities = NULL) { + $this->activities = $activities; + } +}} + +if (!class_exists("updateActivitiesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateActivitiesResponse { + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivity", FALSE)) { +/** + * Updates the specified {@link Activity}. + * + * @param activity to be updated. + * @return the updated activity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateActivity { + /** + * @access public + * @var Activity + */ + public $activity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activity = NULL) { + $this->activity = $activity; + } +}} + +if (!class_exists("updateActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivityError", FALSE)) { +/** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivityError extends ApiError { + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityService", FALSE)) { +/** + * ActivityService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class ActivityService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "Activity" => "Activity", + "ActivityError" => "ActivityError", + "ApiError" => "ApiError", + "ActivityPage" => "ActivityPage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "Activity.Status" => "ActivityStatus", + "Activity.Type" => "ActivityType", + "ActivityError.Reason" => "ActivityErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createActivities" => "createActivities", + "createActivitiesResponse" => "createActivitiesResponse", + "createActivity" => "createActivity", + "createActivityResponse" => "createActivityResponse", + "getActivitiesByStatement" => "getActivitiesByStatement", + "getActivitiesByStatementResponse" => "getActivitiesByStatementResponse", + "getActivity" => "getActivity", + "getActivityResponse" => "getActivityResponse", + "updateActivities" => "updateActivities", + "updateActivitiesResponse" => "updateActivitiesResponse", + "updateActivity" => "updateActivity", + "updateActivityResponse" => "updateActivityResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ActivityService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ActivityService::$classmap; + parent::__construct($wsdl, $options, $user, 'ActivityService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + */ + public function createActivities($activities) { + $arg = new createActivities($activities); + $result = $this->__soapCall("createActivities", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Activity}. + * + * @param activity to be created + * @return the created activity with its ID filled in. + */ + public function createActivity($activity) { + $arg = new createActivity($activity); + $result = $this->__soapCall("createActivity", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Activity#id}
      {@code name}{@link Activity#name}
      {@code expectedURL}{@link Activity#expectedURL}
      {@code status}{@link Activity#status}
      {@code activityGroupId}{@link Activity#activityGroupId}
      + * + * @param filterStatement a statement used to filter a set of activities. + * @return the activities that match the given filter. + */ + public function getActivitiesByStatement($filterStatement) { + $arg = new getActivitiesByStatement($filterStatement); + $result = $this->__soapCall("getActivitiesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Activity} uniquely identified by the given ID. + * + * @param activityId the ID of the activity, which must already exist + * @return the {@code Activity} uniquely identified by the given ID + */ + public function getActivity($activityId) { + $arg = new getActivity($activityId); + $result = $this->__soapCall("getActivity", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + */ + public function updateActivities($activities) { + $arg = new updateActivities($activities); + $result = $this->__soapCall("updateActivities", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Activity}. + * + * @param activity to be updated. + * @return the updated activity. + */ + public function updateActivity($activity) { + $arg = new updateActivity($activity); + $result = $this->__soapCall("updateActivity", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201302/AdRuleService.php new file mode 100755 index 000000000..0affdbc9e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/AdRuleService.php @@ -0,0 +1,6496 @@ + "AdRuleActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleAction"; + } + + public function __construct($AdRuleActionType = NULL) { + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("AdRule", FALSE)) { +/** + * An {@link AdRule} contains data that the ad server will use to generate a playlist of video ads. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRule { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsAdRuleStatus + */ + public $status; + + /** + * @access public + * @var tnsFrequencyCapBehavior + */ + public $frequencyCapBehavior; + + /** + * @access public + * @var integer + */ + public $maxImpressionsPerLineItemPerStream; + + /** + * @access public + * @var integer + */ + public $maxImpressionsPerLineItemPerPod; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $preroll; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $midroll; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $postroll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRule"; + } + + public function __construct($id = NULL, $name = NULL, $priority = NULL, $targeting = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $frequencyCapBehavior = NULL, $maxImpressionsPerLineItemPerStream = NULL, $maxImpressionsPerLineItemPerPod = NULL, $preroll = NULL, $midroll = NULL, $postroll = NULL) { + $this->id = $id; + $this->name = $name; + $this->priority = $priority; + $this->targeting = $targeting; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->frequencyCapBehavior = $frequencyCapBehavior; + $this->maxImpressionsPerLineItemPerStream = $maxImpressionsPerLineItemPerStream; + $this->maxImpressionsPerLineItemPerPod = $maxImpressionsPerLineItemPerPod; + $this->preroll = $preroll; + $this->midroll = $midroll; + $this->postroll = $postroll; + } +}} + +if (!class_exists("AdRulePage", FALSE)) { +/** + * Captures a page of {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRulePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdRule[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("BaseAdRuleSlot", FALSE)) { +/** + * Simple object representing an ad slot within an {@link AdRule}. Ad rule slots + * contain information about the types/number of ads to display, as well + * as additional information on how the ad server will generate playlists. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseAdRuleSlot { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsAdRuleSlotBehavior + */ + public $slotBehavior; + + /** + * @access public + * @var integer + */ + public $minVideoAdDuration; + + /** + * @access public + * @var integer + */ + public $maxVideoAdDuration; + + /** + * @access public + * @var tnsMidrollFrequencyType + */ + public $videoMidrollFrequencyType; + + /** + * @access public + * @var string + */ + public $videoMidrollFrequency; + + /** + * @access public + * @var tnsAdRuleSlotBumper + */ + public $bumper; + + /** + * @access public + * @var integer + */ + public $maxBumperDuration; + + /** + * @access public + * @var integer + */ + public $minPodDuration; + + /** + * @access public + * @var integer + */ + public $maxPodDuration; + + /** + * @access public + * @var integer + */ + public $maxAdsInPod; + + /** + * @access public + * @var string + */ + public $BaseAdRuleSlotType; + + private $_parameterMap = array ( + "BaseAdRuleSlot.Type" => "BaseAdRuleSlotType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("StandardPoddingAdRuleSlot", FALSE)) { +/** + * An ad rule slot with standard podding. A standard pod is a series of video ads played + * back to back. Standard pods are defined by a {@link BaseAdRuleSlot#maxAdsInPod} and a + * {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StandardPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("AdUnitTargeting", FALSE)) { +/** + * Represents targeted or excluded ad units. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitTargeting { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * @access public + * @var boolean + */ + public $includeDescendants; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTargeting"; + } + + public function __construct($adUnitId = NULL, $includeDescendants = NULL) { + $this->adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DeactivateAdRules", FALSE)) { +/** + * The action used for pausing {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("DeleteAdRules", FALSE)) { +/** + * The action used for deleting {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeleteAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PoddingError", FALSE)) { +/** + * Errors related to podding fields in ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PoddingError extends ApiError { + /** + * @access public + * @var tnsPoddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PoddingError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var tnsVideoPodPositionType + */ + public $videoPodPositionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPodPositionType = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPodPositionType = $videoPodPositionType; + } +}} + +if (!class_exists("AdRuleDateErrorReason", FALSE)) { +/** + * Describes reasons for {@code AdRuleDateError}s. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleFrequencyCapErrorReason", FALSE)) { +/** + * Describes reason for {@code AdRuleFrequencyCapError}s. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleFrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleFrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRulePriorityErrorReason", FALSE)) { +/** + * Reasons for an {@code AdRulePriorityError}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRulePriorityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePriorityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotBehavior", FALSE)) { +/** + * The types of behaviors for ads within a {@link BaseAdRuleSlot ad rule slot}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleSlotBehavior { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotBehavior"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotBumper", FALSE)) { +/** + * Types of bumper ads on an ad rule slot. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleSlotBumper { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotBumper"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotErrorReason", FALSE)) { +/** + * Describes reason for {@code AdRuleSlotError}s. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleSlotErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleStatus", FALSE)) { +/** + * Represents the status of ad rules and ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapBehavior", FALSE)) { +/** + * Types of behavior for frequency caps within ad rules. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCapBehavior { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapBehavior"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MidrollFrequencyType", FALSE)) { +/** + * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MidrollFrequencyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MidrollFrequencyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PoddingErrorReason", FALSE)) { +/** + * Describes reason for {@code PoddingError}s. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PoddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PoddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPodPositionType", FALSE)) { +/** + * Represents the options for targetable pod positions, which are the positions + * within a pod (or group) of ads, within a video stream. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPodPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPodPositionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdRule", FALSE)) { +/** + * Creates a new {@link AdRule}. + * + * The following fields are required: + *
        + *
      • {@link AdRule#id}
      • + *
      • {@link AdRule#name}
      • + *
      • {@link AdRule#priority}
      • + *
      • {@link AdRule#startDateTime}
      • + *
      • {@link AdRule#endDateTime}
      • + *
      • {@link AdRule#preroll}
      • + *
      • {@link AdRule#midroll}
      • + *
      • {@link AdRule#postroll}
      • + *
      + * + * @param adRule the ad rule to create + * @return the ad rule with its ID filled in + * @throws ApiException if there the ad rule is invalid or there is another + * error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createAdRule { + /** + * @access public + * @var AdRule + */ + public $adRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRule = NULL) { + $this->adRule = $adRule; + } +}} + +if (!class_exists("createAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdRules", FALSE)) { +/** + * Creates new {@link AdRule} objects. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createAdRules { + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRules = NULL) { + $this->adRules = $adRules; + } +}} + +if (!class_exists("createAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createAdRulesResponse { + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdRule", FALSE)) { +/** + * Returns the {@link AdRule} uniquely identified by the given ID. + * + * @param adRuleId the ID of the ad rule, which must already exist + * @return the {@code AdRule} uniquely identified by the given ID + * @throws ApiException if there is an error retrieving the ad rule + * or the ID is invalid + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdRule { + /** + * @access public + * @var integer + */ + public $adRuleId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRuleId = NULL) { + $this->adRuleId = $adRuleId; + } +}} + +if (!class_exists("getAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdRulesByStatement", FALSE)) { +/** + * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link AdRule#id}
      {@code name}{@link AdRule#name}
      {@code priority}{@link AdRule#priority}
      {@code status}{@link AdRule#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the ad rules that match the given filter + * @throws ApiException if the ID of the active network does not exist or + * there is a backend error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdRulesByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getAdRulesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdRulesByStatementResponse { + /** + * @access public + * @var AdRulePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdRuleAction", FALSE)) { +/** + * Performs actions on {@link AdRule} objects that match the given + * {@link Statement#query}. + * + * @param adRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performAdRuleAction { + /** + * @access public + * @var AdRuleAction + */ + public $adRuleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRuleAction = NULL, $filterStatement = NULL) { + $this->adRuleAction = $adRuleAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdRuleActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performAdRuleActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdRule", FALSE)) { +/** + * Updates a previously-created {@link AdRule}. + * + * @param adRule the ad rule that should be updated + * @return the updated ad rule + * @throws ApiException if there is an error updating the ad rule + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateAdRule { + /** + * @access public + * @var AdRule + */ + public $adRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRule = NULL) { + $this->adRule = $adRule; + } +}} + +if (!class_exists("updateAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdRules", FALSE)) { +/** + * Updates the specified {@link AdRule} objects. + * + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateAdRules { + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRules = NULL) { + $this->adRules = $adRules; + } +}} + +if (!class_exists("updateAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateAdRulesResponse { + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdRules", FALSE)) { +/** + * The action used for resuming {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("AdRuleDateError", FALSE)) { +/** + * Lists all errors associated with ad rule start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleDateError extends ApiError { + /** + * @access public + * @var tnsAdRuleDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleDateError"; + } + + 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("AdRuleFrequencyCapError", FALSE)) { +/** + * Errors related to ad rule frequency caps + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleFrequencyCapError extends ApiError { + /** + * @access public + * @var tnsAdRuleFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleFrequencyCapError"; + } + + 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("NoPoddingAdRuleSlot", FALSE)) { +/** + * An ad rule slot with no podding. It is defined by a {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("OptimizedPoddingAdRuleSlot", FALSE)) { +/** + * Ad rule slot with optimized podding. Optimized pods are defined by a + * {@link BaseAdRuleSlot#maxPodDuration} and a {@link BaseAdRuleSlot#maxAdsInPod}, and the ad + * server chooses the best ads for the alloted duration. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OptimizedPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("AdRulePriorityError", FALSE)) { +/** + * Errors associated with ad rule priorities. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRulePriorityError extends ApiError { + /** + * @access public + * @var tnsAdRulePriorityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePriorityError"; + } + + 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("AdRuleSlotError", FALSE)) { +/** + * Errors related to ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdRuleSlotError extends ApiError { + /** + * @access public + * @var tnsAdRuleSlotErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AdRuleService", FALSE)) { +/** + * AdRuleService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class AdRuleService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdRules" => "ActivateAdRules", + "AdRuleAction" => "AdRuleAction", + "AdRuleDateError" => "AdRuleDateError", + "ApiError" => "ApiError", + "AdRule" => "AdRule", + "AdRuleFrequencyCapError" => "AdRuleFrequencyCapError", + "NoPoddingAdRuleSlot" => "NoPoddingAdRuleSlot", + "BaseAdRuleSlot" => "BaseAdRuleSlot", + "OptimizedPoddingAdRuleSlot" => "OptimizedPoddingAdRuleSlot", + "AdRulePage" => "AdRulePage", + "AdRulePriorityError" => "AdRulePriorityError", + "AdRuleSlotError" => "AdRuleSlotError", + "StandardPoddingAdRuleSlot" => "StandardPoddingAdRuleSlot", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DeactivateAdRules" => "DeactivateAdRules", + "DeleteAdRules" => "DeleteAdRules", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "FeatureError" => "FeatureError", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "PermissionError" => "PermissionError", + "PoddingError" => "PoddingError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegionLocation" => "RegionLocation", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionTarget" => "VideoPositionTarget", + "AdRuleDateError.Reason" => "AdRuleDateErrorReason", + "AdRuleFrequencyCapError.Reason" => "AdRuleFrequencyCapErrorReason", + "AdRulePriorityError.Reason" => "AdRulePriorityErrorReason", + "AdRuleSlotBehavior" => "AdRuleSlotBehavior", + "AdRuleSlotBumper" => "AdRuleSlotBumper", + "AdRuleSlotError.Reason" => "AdRuleSlotErrorReason", + "AdRuleStatus" => "AdRuleStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DayOfWeek" => "DayOfWeek", + "DeliveryTimeZone" => "DeliveryTimeZone", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapBehavior" => "FrequencyCapBehavior", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "MidrollFrequencyType" => "MidrollFrequencyType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PoddingError.Reason" => "PoddingErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPodPositionType" => "VideoPodPositionType", + "VideoPosition.Type" => "VideoPositionType", + "createAdRule" => "createAdRule", + "createAdRuleResponse" => "createAdRuleResponse", + "createAdRules" => "createAdRules", + "createAdRulesResponse" => "createAdRulesResponse", + "getAdRule" => "getAdRule", + "getAdRuleResponse" => "getAdRuleResponse", + "getAdRulesByStatement" => "getAdRulesByStatement", + "getAdRulesByStatementResponse" => "getAdRulesByStatementResponse", + "performAdRuleAction" => "performAdRuleAction", + "performAdRuleActionResponse" => "performAdRuleActionResponse", + "updateAdRule" => "updateAdRule", + "updateAdRuleResponse" => "updateAdRuleResponse", + "updateAdRules" => "updateAdRules", + "updateAdRulesResponse" => "updateAdRulesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/AdRuleService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdRuleService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdRuleService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link AdRule}. + * + * The following fields are required: + *
        + *
      • {@link AdRule#id}
      • + *
      • {@link AdRule#name}
      • + *
      • {@link AdRule#priority}
      • + *
      • {@link AdRule#startDateTime}
      • + *
      • {@link AdRule#endDateTime}
      • + *
      • {@link AdRule#preroll}
      • + *
      • {@link AdRule#midroll}
      • + *
      • {@link AdRule#postroll}
      • + *
      + * + * @param adRule the ad rule to create + * @return the ad rule with its ID filled in + * @throws ApiException if there the ad rule is invalid or there is another + * error + */ + public function createAdRule($adRule) { + $arg = new createAdRule($adRule); + $result = $this->__soapCall("createAdRule", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdRule} objects. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + */ + public function createAdRules($adRules) { + $arg = new createAdRules($adRules); + $result = $this->__soapCall("createAdRules", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdRule} uniquely identified by the given ID. + * + * @param adRuleId the ID of the ad rule, which must already exist + * @return the {@code AdRule} uniquely identified by the given ID + * @throws ApiException if there is an error retrieving the ad rule + * or the ID is invalid + */ + public function getAdRule($adRuleId) { + $arg = new getAdRule($adRuleId); + $result = $this->__soapCall("getAdRule", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link AdRule#id}
      {@code name}{@link AdRule#name}
      {@code priority}{@link AdRule#priority}
      {@code status}{@link AdRule#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the ad rules that match the given filter + * @throws ApiException if the ID of the active network does not exist or + * there is a backend error + */ + public function getAdRulesByStatement($statement) { + $arg = new getAdRulesByStatement($statement); + $result = $this->__soapCall("getAdRulesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdRule} objects that match the given + * {@link Statement#query}. + * + * @param adRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the result of the action performed + */ + public function performAdRuleAction($adRuleAction, $filterStatement) { + $arg = new performAdRuleAction($adRuleAction, $filterStatement); + $result = $this->__soapCall("performAdRuleAction", array($arg)); + return $result->rval; + } + + + /** + * Updates a previously-created {@link AdRule}. + * + * @param adRule the ad rule that should be updated + * @return the updated ad rule + * @throws ApiException if there is an error updating the ad rule + */ + public function updateAdRule($adRule) { + $arg = new updateAdRule($adRule); + $result = $this->__soapCall("updateAdRule", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdRule} objects. + * + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules + */ + public function updateAdRules($adRules) { + $arg = new updateAdRules($adRules); + $result = $this->__soapCall("updateAdRules", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201302/AudienceSegmentService.php new file mode 100755 index 000000000..112a6a2fc --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/AudienceSegmentService.php @@ -0,0 +1,2212 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AudienceSegment[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAudienceSegmentStatus + */ + public $status; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var string + */ + public $AudienceSegmentType; + + private $_parameterMap = array ( + "AudienceSegment.Type" => "AudienceSegmentType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $AudienceSegmentType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAudienceSegmentsByStatement", FALSE)) { +/** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAudienceSegmentsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAudienceSegmentsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAudienceSegmentsByStatementResponse { + /** + * @access public + * @var AudienceSegmentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class AudienceSegmentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "AudienceSegment" => "AudienceSegment", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getAudienceSegmentsByStatement" => "getAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "getAudienceSegmentsByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/AudienceSegmentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AudienceSegmentService::$classmap; + parent::__construct($wsdl, $options, $user, 'AudienceSegmentService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + */ + public function getAudienceSegmentsByStatement($filterStatement) { + $arg = new getAudienceSegmentsByStatement($filterStatement); + $result = $this->__soapCall("getAudienceSegmentsByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CompanyService.php b/src/Google/Api/Ads/Dfp/v201302/CompanyService.php new file mode 100755 index 000000000..291888993 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CompanyService.php @@ -0,0 +1,3270 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("Company", FALSE)) { +/** + * A {@code Company} represents an agency, a single advertiser or an entire + * advertising network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Company { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCompanyType + */ + public $type; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $primaryPhone; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var tnsCompanyCreditStatus + */ + public $creditStatus; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var boolean + */ + public $enableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var integer + */ + public $primaryContactId; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var integer + */ + public $thirdPartyCompanyId; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $address = NULL, $email = NULL, $faxPhone = NULL, $primaryPhone = NULL, $externalId = NULL, $comment = NULL, $creditStatus = NULL, $appliedLabels = NULL, $enableSameAdvertiserCompetitiveExclusion = NULL, $primaryContactId = NULL, $appliedTeamIds = NULL, $thirdPartyCompanyId = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->address = $address; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->primaryPhone = $primaryPhone; + $this->externalId = $externalId; + $this->comment = $comment; + $this->creditStatus = $creditStatus; + $this->appliedLabels = $appliedLabels; + $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; + $this->primaryContactId = $primaryContactId; + $this->appliedTeamIds = $appliedTeamIds; + $this->thirdPartyCompanyId = $thirdPartyCompanyId; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CompanyError", FALSE)) { +/** + * A list of all errors associated with companies. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyError extends ApiError { + /** + * @access public + * @var tnsCompanyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError"; + } + + 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("CompanyPage", FALSE)) { +/** + * Captures a page of {@link Company} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Company[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatus", FALSE)) { +/** + * Specifies the credit-worthiness of the company for which the publisher runs + * an order. By doing so, the publisher can control the running of campaigns + * for the company. A publisher can choose between Basic and Advanced Credit + * Status settings. This feature needs to be enabled in the DoubleClick For + * Publishers web site. Also the kind of setting you need - Basic or Advanced + * must be configured. If Basic is enabled then, the values allowed are + * {@code ACTIVE} and {@code INACTIVE}. If Advanced is chosen, then all values + * are allowed. Choosing an Advanced setting when only the Basic feature has + * been enabled, or using the Basic setting without turning the feature on + * will result in an error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.CreditStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyType", FALSE)) { +/** + * The type of the company. Once a company is created, it is not possible to + * change its type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyErrorReason", FALSE)) { +/** + * Enumerates all possible company specific errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCompanies", FALSE)) { +/** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("createCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCompany", FALSE)) { +/** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("createCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompaniesByStatement", FALSE)) { +/** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCompaniesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCompaniesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCompaniesByStatementResponse { + /** + * @access public + * @var CompanyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompany", FALSE)) { +/** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCompany { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companyId = NULL) { + $this->companyId = $companyId; + } +}} + +if (!class_exists("getCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompanies", FALSE)) { +/** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("updateCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompany", FALSE)) { +/** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("updateCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CompanyService", FALSE)) { +/** + * CompanyService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class CompanyService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "Company" => "Company", + "CompanyError" => "CompanyError", + "CompanyPage" => "CompanyPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "Company.CreditStatus" => "CompanyCreditStatus", + "Company.Type" => "CompanyType", + "CompanyError.Reason" => "CompanyErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createCompanies" => "createCompanies", + "createCompaniesResponse" => "createCompaniesResponse", + "createCompany" => "createCompany", + "createCompanyResponse" => "createCompanyResponse", + "getCompaniesByStatement" => "getCompaniesByStatement", + "getCompaniesByStatementResponse" => "getCompaniesByStatementResponse", + "getCompany" => "getCompany", + "getCompanyResponse" => "getCompanyResponse", + "updateCompanies" => "updateCompanies", + "updateCompaniesResponse" => "updateCompaniesResponse", + "updateCompany" => "updateCompany", + "updateCompanyResponse" => "updateCompanyResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/CompanyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CompanyService::$classmap; + parent::__construct($wsdl, $options, $user, 'CompanyService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + */ + public function createCompanies($companies) { + $arg = new createCompanies($companies); + $result = $this->__soapCall("createCompanies", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + */ + public function createCompany($company) { + $arg = new createCompany($company); + $result = $this->__soapCall("createCompany", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + */ + public function getCompaniesByStatement($filterStatement) { + $arg = new getCompaniesByStatement($filterStatement); + $result = $this->__soapCall("getCompaniesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + */ + public function getCompany($companyId) { + $arg = new getCompany($companyId); + $result = $this->__soapCall("getCompany", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + */ + public function updateCompanies($companies) { + $arg = new updateCompanies($companies); + $result = $this->__soapCall("updateCompanies", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + */ + public function updateCompany($company) { + $arg = new updateCompany($company); + $result = $this->__soapCall("updateCompany", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ContactService.php b/src/Google/Api/Ads/Dfp/v201302/ContactService.php new file mode 100755 index 000000000..a58a82ac9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ContactService.php @@ -0,0 +1,2965 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContactError", FALSE)) { +/** + * Errors associated with {@code Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContactError extends ApiError { + /** + * @access public + * @var tnsContactErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactError"; + } + + 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("ContactPage", FALSE)) { +/** + * Captures a page of {@link Contact} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContactPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Contact[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("BaseContact", FALSE)) { +/** + * Base class for a {@link Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseContact { + /** + * @access public + * @var string + */ + public $BaseContactType; + + private $_parameterMap = array ( + "BaseContact.Type" => "BaseContactType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseContact"; + } + + public function __construct($BaseContactType = NULL) { + $this->BaseContactType = $BaseContactType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContactStatus", FALSE)) { +/** + * Describes the contact statuses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContactStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Contact.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContactErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContactErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createContact", FALSE)) { +/** + * Creates a new {@link Contact}. + * + * The following fields are required: + *
        + *
      • {@link Contact#companyId}
      • + *
      • {@link Contact#name}
      • + *
      + * + * @param contact the contact to create + * @return the contact with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createContact { + /** + * @access public + * @var Contact + */ + public $contact; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contact = NULL) { + $this->contact = $contact; + } +}} + +if (!class_exists("createContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createContacts", FALSE)) { +/** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createContacts { + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contacts = NULL) { + $this->contacts = $contacts; + } +}} + +if (!class_exists("createContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createContactsResponse { + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContact", FALSE)) { +/** + * Returns the {@link Contact} uniquely identified by the given ID. + * + * @param contactId the ID of the contact, which must already exist + * @return the {@code Contact} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContact { + /** + * @access public + * @var integer + */ + public $contactId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contactId = NULL) { + $this->contactId = $contactId; + } +}} + +if (!class_exists("getContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContactsByStatement", FALSE)) { +/** + * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code name}{@link Contact#name}
      {@code email}{@link Contact#email}
      {@code id}{@link Contact#id}
      {@code comment}{@link Contact#comment}
      {@code companyId}{@link Contact#companyId}
      {@code title}{@link Contact#title}
      {@code cellPhone}{@link Contact#cellPhone}
      {@code workPhone}{@link Contact#workPhone}
      {@code faxPhone}{@link Contact#faxPhone}
      {@code status}{@link Contact#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of contacts + * @return the contacts that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContactsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContactsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContactsByStatementResponse { + /** + * @access public + * @var ContactPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContact", FALSE)) { +/** + * Updates the specified {@link Contact}. + * + * @param contact the contact to update + * @return the updated contact + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateContact { + /** + * @access public + * @var Contact + */ + public $contact; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contact = NULL) { + $this->contact = $contact; + } +}} + +if (!class_exists("updateContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContacts", FALSE)) { +/** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateContacts { + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contacts = NULL) { + $this->contacts = $contacts; + } +}} + +if (!class_exists("updateContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateContactsResponse { + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Contact", FALSE)) { +/** + * A {@code Contact} represents a person who is affiliated with a single + * {@link Company}. A contact can have a variety of contact information + * associated to it, and can be invited to view their company's orders, line + * items, creatives, and reports. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Contact extends BaseContact { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var tnsContactStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $cellPhone; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $title; + + /** + * @access public + * @var string + */ + public $workPhone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Contact"; + } + + public function __construct($id = NULL, $name = NULL, $companyId = NULL, $status = NULL, $address = NULL, $cellPhone = NULL, $comment = NULL, $email = NULL, $faxPhone = NULL, $title = NULL, $workPhone = NULL, $BaseContactType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->companyId = $companyId; + $this->status = $status; + $this->address = $address; + $this->cellPhone = $cellPhone; + $this->comment = $comment; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->title = $title; + $this->workPhone = $workPhone; + $this->BaseContactType = $BaseContactType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContactService", FALSE)) { +/** + * ContactService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class ContactService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Contact" => "Contact", + "BaseContact" => "BaseContact", + "ContactError" => "ContactError", + "ContactPage" => "ContactPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "Contact.Status" => "ContactStatus", + "ContactError.Reason" => "ContactErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createContact" => "createContact", + "createContactResponse" => "createContactResponse", + "createContacts" => "createContacts", + "createContactsResponse" => "createContactsResponse", + "getContact" => "getContact", + "getContactResponse" => "getContactResponse", + "getContactsByStatement" => "getContactsByStatement", + "getContactsByStatementResponse" => "getContactsByStatementResponse", + "updateContact" => "updateContact", + "updateContactResponse" => "updateContactResponse", + "updateContacts" => "updateContacts", + "updateContactsResponse" => "updateContactsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ContactService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContactService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContactService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link Contact}. + * + * The following fields are required: + *
        + *
      • {@link Contact#companyId}
      • + *
      • {@link Contact#name}
      • + *
      + * + * @param contact the contact to create + * @return the contact with its ID filled in + */ + public function createContact($contact) { + $arg = new createContact($contact); + $result = $this->__soapCall("createContact", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + */ + public function createContacts($contacts) { + $arg = new createContacts($contacts); + $result = $this->__soapCall("createContacts", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Contact} uniquely identified by the given ID. + * + * @param contactId the ID of the contact, which must already exist + * @return the {@code Contact} uniquely identified by the given ID + */ + public function getContact($contactId) { + $arg = new getContact($contactId); + $result = $this->__soapCall("getContact", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code name}{@link Contact#name}
      {@code email}{@link Contact#email}
      {@code id}{@link Contact#id}
      {@code comment}{@link Contact#comment}
      {@code companyId}{@link Contact#companyId}
      {@code title}{@link Contact#title}
      {@code cellPhone}{@link Contact#cellPhone}
      {@code workPhone}{@link Contact#workPhone}
      {@code faxPhone}{@link Contact#faxPhone}
      {@code status}{@link Contact#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of contacts + * @return the contacts that match the given filter + */ + public function getContactsByStatement($statement) { + $arg = new getContactsByStatement($statement); + $result = $this->__soapCall("getContactsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Contact}. + * + * @param contact the contact to update + * @return the updated contact + */ + public function updateContact($contact) { + $arg = new updateContact($contact); + $result = $this->__soapCall("updateContact", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + */ + public function updateContacts($contacts) { + $arg = new updateContacts($contacts); + $result = $this->__soapCall("updateContacts", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201302/ContentBundleService.php new file mode 100755 index 000000000..69fad1b14 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ContentBundleService.php @@ -0,0 +1,2990 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentBundleAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentBundleAction { + /** + * @access public + * @var string + */ + public $ContentBundleActionType; + + private $_parameterMap = array ( + "ContentBundleAction.Type" => "ContentBundleActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundleAction"; + } + + public function __construct($ContentBundleActionType = NULL) { + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ContentBundle", FALSE)) { +/** + * A {@code ContentBundle} is a grouping of individual {@link Content}. A {@code ContentBundle} is + * defined as including the {@code Content} that match certain filter rules, along with the + * option to explicitly include or exclude certain {@code Content} IDs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentBundle { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsContentBundleStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundle"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + } +}} + +if (!class_exists("ContentBundlePage", FALSE)) { +/** + * Captures a page of {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentBundlePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ContentBundle[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundlePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateContentBundles", FALSE)) { +/** + * The action used for deactivating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateContentBundles extends ContentBundleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateContentBundles"; + } + + public function __construct($ContentBundleActionType = NULL) { + parent::__construct(); + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ExcludeContentFromContentBundle", FALSE)) { +/** + * The action used for explicitly excluding specific content from a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ExcludeContentFromContentBundle extends ContentBundleAction { + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExcludeContentFromContentBundle"; + } + + public function __construct($contentStatement = NULL, $ContentBundleActionType = NULL) { + parent::__construct(); + $this->contentStatement = $contentStatement; + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("IncludeContentInContentBundle", FALSE)) { +/** + * The action used for explicitly including specific content in a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class IncludeContentInContentBundle extends ContentBundleAction { + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IncludeContentInContentBundle"; + } + + public function __construct($contentStatement = NULL, $ContentBundleActionType = NULL) { + parent::__construct(); + $this->contentStatement = $contentStatement; + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentBundleStatus", FALSE)) { +/** + * Status for {@code ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentBundleStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundleStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createContentBundle", FALSE)) { +/** + * Creates a new {@link ContentBundle}. + * + * These fields are required: + *
        + *
      • {@link ContentBundle#name}
      • + *
      • {@link ContentBundle#description}
      • + *
      + * + * @param contentBundle the content bundle to create + * @return the content bundle with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createContentBundle { + /** + * @access public + * @var ContentBundle + */ + public $contentBundle; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundle = NULL) { + $this->contentBundle = $contentBundle; + } +}} + +if (!class_exists("createContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createContentBundles", FALSE)) { +/** + * Creates new {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createContentBundles { + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundles = NULL) { + $this->contentBundles = $contentBundles; + } +}} + +if (!class_exists("createContentBundlesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createContentBundlesResponse { + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentBundle", FALSE)) { +/** + * Returns the {@link ContentBundle} uniquely identified by the given ID. + * + * @param contentBundleId the ID of the content bundle, which must already exist + * @return the {@code ContentBundle} uniquely identified by the given ID + * @throws ApiException if there were errors, such as invalid ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContentBundle { + /** + * @access public + * @var integer + */ + public $contentBundleId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundleId = NULL) { + $this->contentBundleId = $contentBundleId; + } +}} + +if (!class_exists("getContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentBundlesByStatement", FALSE)) { +/** + * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentBundle#id}
      {@code name}{@link ContentBundle#name}
      {@code status}{@link ContentBundle#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the content bundles that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContentBundlesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getContentBundlesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContentBundlesByStatementResponse { + /** + * @access public + * @var ContentBundlePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performContentBundleAction", FALSE)) { +/** + * Performs actions on {@link ContentBundle} objects that match the given + * {@link Statement#query}. + * + * @param contentBundleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performContentBundleAction { + /** + * @access public + * @var ContentBundleAction + */ + public $contentBundleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundleAction = NULL, $filterStatement = NULL) { + $this->contentBundleAction = $contentBundleAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performContentBundleActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performContentBundleActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContentBundle", FALSE)) { +/** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateContentBundle { + /** + * @access public + * @var ContentBundle + */ + public $contentBundle; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundle = NULL) { + $this->contentBundle = $contentBundle; + } +}} + +if (!class_exists("updateContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContentBundles", FALSE)) { +/** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateContentBundles { + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundles = NULL) { + $this->contentBundles = $contentBundles; + } +}} + +if (!class_exists("updateContentBundlesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateContentBundlesResponse { + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateContentBundles", FALSE)) { +/** + * The action used for activating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateContentBundles extends ContentBundleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateContentBundles"; + } + + public function __construct($ContentBundleActionType = NULL) { + parent::__construct(); + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentBundleService", FALSE)) { +/** + * ContentBundleService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class ContentBundleService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateContentBundles" => "ActivateContentBundles", + "ContentBundleAction" => "ContentBundleAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentBundle" => "ContentBundle", + "ContentBundlePage" => "ContentBundlePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateContentBundles" => "DeactivateContentBundles", + "ExcludeContentFromContentBundle" => "ExcludeContentFromContentBundle", + "FeatureError" => "FeatureError", + "IncludeContentInContentBundle" => "IncludeContentInContentBundle", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PlacementError" => "PlacementError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentBundleStatus" => "ContentBundleStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createContentBundle" => "createContentBundle", + "createContentBundleResponse" => "createContentBundleResponse", + "createContentBundles" => "createContentBundles", + "createContentBundlesResponse" => "createContentBundlesResponse", + "getContentBundle" => "getContentBundle", + "getContentBundleResponse" => "getContentBundleResponse", + "getContentBundlesByStatement" => "getContentBundlesByStatement", + "getContentBundlesByStatementResponse" => "getContentBundlesByStatementResponse", + "performContentBundleAction" => "performContentBundleAction", + "performContentBundleActionResponse" => "performContentBundleActionResponse", + "updateContentBundle" => "updateContentBundle", + "updateContentBundleResponse" => "updateContentBundleResponse", + "updateContentBundles" => "updateContentBundles", + "updateContentBundlesResponse" => "updateContentBundlesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ContentBundleService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentBundleService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentBundleService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link ContentBundle}. + * + * These fields are required: + *
        + *
      • {@link ContentBundle#name}
      • + *
      • {@link ContentBundle#description}
      • + *
      + * + * @param contentBundle the content bundle to create + * @return the content bundle with its ID filled in + */ + public function createContentBundle($contentBundle) { + $arg = new createContentBundle($contentBundle); + $result = $this->__soapCall("createContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + */ + public function createContentBundles($contentBundles) { + $arg = new createContentBundles($contentBundles); + $result = $this->__soapCall("createContentBundles", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ContentBundle} uniquely identified by the given ID. + * + * @param contentBundleId the ID of the content bundle, which must already exist + * @return the {@code ContentBundle} uniquely identified by the given ID + * @throws ApiException if there were errors, such as invalid ID + */ + public function getContentBundle($contentBundleId) { + $arg = new getContentBundle($contentBundleId); + $result = $this->__soapCall("getContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentBundle#id}
      {@code name}{@link ContentBundle#name}
      {@code status}{@link ContentBundle#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the content bundles that match the given filter + */ + public function getContentBundlesByStatement($filterStatement) { + $arg = new getContentBundlesByStatement($filterStatement); + $result = $this->__soapCall("getContentBundlesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ContentBundle} objects that match the given + * {@link Statement#query}. + * + * @param contentBundleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the result of the action performed + */ + public function performContentBundleAction($contentBundleAction, $filterStatement) { + $arg = new performContentBundleAction($contentBundleAction, $filterStatement); + $result = $this->__soapCall("performContentBundleAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + */ + public function updateContentBundle($contentBundle) { + $arg = new updateContentBundle($contentBundle); + $result = $this->__soapCall("updateContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + */ + public function updateContentBundles($contentBundles) { + $arg = new updateContentBundles($contentBundles); + $result = $this->__soapCall("updateContentBundles", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ContentService.php b/src/Google/Api/Ads/Dfp/v201302/ContentService.php new file mode 100755 index 000000000..12779c25d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ContentService.php @@ -0,0 +1,2636 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CmsContent", FALSE)) { +/** + * Contains information about {@link Content} from the CMS it was ingested from. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CmsContent { + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $cmsContentId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CmsContent"; + } + + public function __construct($displayName = NULL, $cmsContentId = NULL) { + $this->displayName = $displayName; + $this->cmsContentId = $cmsContentId; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("Content", FALSE)) { +/** + * A {@code Content} represents video metadata from a publisher's + * Content Management System (CMS) that has been synced to DFP. + *

      + * Video line items can be targeted to {@code Content} + * to indicate what ads should match when the {@code Content} is being played. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Content { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsContentStatus + */ + public $status; + + /** + * @access public + * @var tnsContentStatusDefinedBy + */ + public $statusDefinedBy; + + /** + * @access public + * @var CmsContent[] + */ + public $cmsSources; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Content"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $statusDefinedBy = NULL, $cmsSources = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->statusDefinedBy = $statusDefinedBy; + $this->cmsSources = $cmsSources; + } +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Content[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ContentPartnerError", FALSE)) { +/** + * The content partner related validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentPartnerError extends ApiError { + /** + * @access public + * @var tnsContentPartnerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentPartnerErrorReason", FALSE)) { +/** + * Describes reason for {@code ContentPartnerError}s. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentPartnerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatus", FALSE)) { +/** + * Describes the status of a {@link Content} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatusDefinedBy", FALSE)) { +/** + * Describes who defined the effective status of the {@code Content}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentStatusDefinedBy { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatusDefinedBy"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContentByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContentByStatementResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValue", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContentByStatementAndCustomTargetingValue { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL, $customTargetingValueId = NULL) { + $this->filterStatement = $filterStatement; + $this->customTargetingValueId = $customTargetingValueId; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValueResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getContentByStatementAndCustomTargetingValueResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentService", FALSE)) { +/** + * ContentService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class ContentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CmsContent" => "CmsContent", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentPartnerError.Reason" => "ContentPartnerErrorReason", + "ContentStatus" => "ContentStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ContentStatusDefinedBy" => "ContentStatusDefinedBy", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getContentByStatement" => "getContentByStatement", + "getContentByStatementResponse" => "getContentByStatementResponse", + "getContentByStatementAndCustomTargetingValue" => "getContentByStatementAndCustomTargetingValue", + "getContentByStatementAndCustomTargetingValueResponse" => "getContentByStatementAndCustomTargetingValueResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ContentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + */ + public function getContentByStatement($statement) { + $arg = new getContentByStatement($statement); + $result = $this->__soapCall("getContentByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + */ + public function getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId) { + $arg = new getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); + $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CreativeService.php b/src/Google/Api/Ads/Dfp/v201302/CreativeService.php new file mode 100755 index 000000000..0521bc9f4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CreativeService.php @@ -0,0 +1,7778 @@ + "BaseCreativeTemplateVariableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCreativeTemplateVariableValue"; + } + + public function __construct($uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AssetCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariableValue"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Asset", FALSE)) { +/** + * Base asset properties. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Asset { + /** + * @access public + * @var string + */ + public $AssetType; + + private $_parameterMap = array ( + "Asset.Type" => "AssetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Asset"; + } + + public function __construct($AssetType = NULL) { + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ConversionEvent_TrackingUrlsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type ConversionEvent + * and value of type TrackingUrls. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ConversionEvent_TrackingUrlsMapEntry { + /** + * @access public + * @var tnsConversionEvent + */ + public $key; + + /** + * @access public + * @var TrackingUrls + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent_TrackingUrlsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CreativeAsset", FALSE)) { +/** + * A {@code CreativeAsset} is an asset that can be used in creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeAsset { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $assetUrl; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAsset"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL, $assetUrl = NULL, $size = NULL) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + $this->assetUrl = $assetUrl; + $this->size = $size; + } +}} + +if (!class_exists("CustomCreativeAsset", FALSE)) { +/** + * A {@code CustomCreativeAsset} is an association between a + * {@link CustomCreative} and an asset. Any assets that are associated with a + * creative can be inserted into its HTML snippet. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCreativeAsset { + /** + * @access public + * @var string + */ + public $macroName; + + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeAsset"; + } + + public function __construct($macroName = NULL, $assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL) { + $this->macroName = $macroName; + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } +}} + +if (!class_exists("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("Creative", FALSE)) { +/** + * A {@code Creative} represents the media for the ad being served. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Creative { + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var string + */ + public $previewUrl; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $CreativeType; + + private $_parameterMap = array ( + "Creative.Type" => "CreativeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Creative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativePage", FALSE)) { +/** + * Captures a page of {@link Creative} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Creative[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("HasDestinationUrlCreative", FALSE)) { +/** + * A {@code Creative} that has a destination url + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class HasDestinationUrlCreative extends Creative { + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasDestinationUrlCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InternalRedirectCreative", FALSE)) { +/** + * A {@code Creative} hosted by either DoubleClick for Advertisers (DFA) or DART + * for Publishers. + *

      + * Similar to third-party creatives, a DoubleClick tag is used to retrieve a + * creative asset. However, DoubleClick tags are not sent to the user's browser. + * Instead, they are processed internally within the DoubleClick system.. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalRedirectCreative extends Creative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var string + */ + public $internalRedirectUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalRedirectCreative"; + } + + public function __construct($assetSize = NULL, $internalRedirectUrl = NULL, $overrideSize = NULL, $isInterstitial = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->internalRedirectUrl = $internalRedirectUrl; + $this->overrideSize = $overrideSize; + $this->isInterstitial = $isInterstitial; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LegacyDfpCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by Google DFP, but was migrated + * from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LegacyDfpCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LongCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RedirectAsset", FALSE)) { +/** + * An externally hosted asset. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RedirectAsset extends Asset { + /** + * @access public + * @var string + */ + public $redirectUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioChildAssetProperty", FALSE)) { +/** + * Represents a child asset in {@code RichMediaStudioCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioChildAssetProperty { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsRichMediaStudioChildAssetPropertyType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty"; + } + + public function __construct($name = NULL, $type = NULL, $totalFileSize = NULL, $width = NULL, $height = NULL, $url = NULL) { + $this->name = $name; + $this->type = $type; + $this->totalFileSize = $totalFileSize; + $this->width = $width; + $this->height = $height; + $this->url = $url; + } +}} + +if (!class_exists("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of + * {@link VariableType#STRING} and {@link VariableType#LIST}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateCreative extends Creative { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var BaseCreativeTemplateVariableValue[] + */ + public $creativeTemplateVariableValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateCreative"; + } + + public function __construct($creativeTemplateId = NULL, $isInterstitial = NULL, $creativeTemplateVariableValues = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->creativeTemplateId = $creativeTemplateId; + $this->isInterstitial = $isInterstitial; + $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TextAdCreative", FALSE)) { +/** + * A simple plain text-based {@code Creative}. This creative is only available to small business + * networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000440}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextAdCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $hoverText; + + /** + * @access public + * @var tnsTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var string + */ + public $linkColor; + + /** + * @access public + * @var string + */ + public $linkTitle; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var string + */ + public $textColor; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextAdCreative"; + } + + public function __construct($hoverText = NULL, $targetWindow = NULL, $linkColor = NULL, $linkTitle = NULL, $text = NULL, $textColor = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->hoverText = $hoverText; + $this->targetWindow = $targetWindow; + $this->linkColor = $linkColor; + $this->linkTitle = $linkTitle; + $this->text = $text; + $this->textColor = $textColor; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartyCreative extends Creative { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $expandedSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyCreative"; + } + + public function __construct($snippet = NULL, $expandedSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->expandedSnippet = $expandedSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TrackingUrls", FALSE)) { +/** + * A list of URLs that should be pinged for a conversion event. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TrackingUrls { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingUrls"; + } + + public function __construct($urls = NULL) { + $this->urls = $urls; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnsupportedCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by this version of the API. + * This object is readonly and when encountered should be reported + * on the DFP API forum. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UnsupportedCreative extends Creative { + /** + * @access public + * @var string + */ + public $unsupportedCreativeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnsupportedCreative"; + } + + public function __construct($unsupportedCreativeType = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->unsupportedCreativeType = $unsupportedCreativeType; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VastRedirectCreative", FALSE)) { +/** + * A {@code Creative} that points to an externally hosted VAST ad and is + * served via VAST 2.0 XML as a VAST Wrapper. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VastRedirectCreative extends Creative { + /** + * @access public + * @var string + */ + public $vastXmlUrl; + + /** + * @access public + * @var tnsVastRedirectType + */ + public $vastRedirectType; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectCreative"; + } + + public function __construct($vastXmlUrl = NULL, $vastRedirectType = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->vastXmlUrl = $vastXmlUrl; + $this->vastRedirectType = $vastRedirectType; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectAsset", FALSE)) { +/** + * An externally-hosted video asset. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoRedirectAsset extends RedirectAsset { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("VpaidLinearCreative", FALSE)) { +/** + * A {@code Creative} that displays a DFP-hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $overrideSize = NULL, $flashAssetSize = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->overrideSize = $overrideSize; + $this->flashAssetSize = $flashAssetSize; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VpaidLinearRedirectCreative", FALSE)) { +/** + * A {@code Creative} that displays an externally hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearRedirectCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $flashUrl = NULL, $flashAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->flashUrl = $flashUrl; + $this->flashAssetSize = $flashAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiFramework", FALSE)) { +/** + * The various ApiFramework types. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiFramework { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiFramework"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionEvent", FALSE)) { +/** + * All possible tracking event types. Not all events are supported by every + * kind of creative. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ConversionEvent { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FlashExpandableCreativeExpandDirection", FALSE)) { +/** + * The possible expand directions + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashExpandableCreativeExpandDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashExpandableCreative.ExpandDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioChildAssetPropertyType", FALSE)) { +/** + * Type of {@code RichMediaStudioChildAssetProperty} + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioChildAssetPropertyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeArtworkType", FALSE)) { +/** + * Rich Media Studio creative artwork types. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioCreativeArtworkType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeArtworkType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeBillingAttribute", FALSE)) { +/** + * Rich Media Studio creative supported billing attributes. + *

      + * This is determined by Rich Media Studio based on the content + * of the creative and is not updateable. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioCreativeBillingAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeBillingAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeFormat", FALSE)) { +/** + * Different creative format supported by Rich Media Studio creative. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioCreativeFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetWindow", FALSE)) { +/** + * The different values for target window, corresponds to an HTML link's + * {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VastRedirectType", FALSE)) { +/** + * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VastRedirectType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreative", FALSE)) { +/** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("createCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreatives", FALSE)) { +/** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("createCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreative", FALSE)) { +/** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreative { + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeId = NULL) { + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativesByStatement", FALSE)) { +/** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativesByStatementResponse { + /** + * @access public + * @var CreativePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreative", FALSE)) { +/** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("updateCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreatives", FALSE)) { +/** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("updateCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BaseDynamicAllocationCreative", FALSE)) { +/** + * A base class for dynamic allocation creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseDynamicAllocationCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseDynamicAllocationCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AspectRatioImageCreative", FALSE)) { +/** + * A {@code Creative} intended for mobile platforms that displays an image, + * whose {@link LineItem#creativePlaceholders size} is defined as an + * {@link CreativeSizeType#ASPECT_RATIO aspect ratio}, i.e. + * {@link Size#isAspectRatio}. It can have multiple images whose dimensions + * conform to that aspect ratio. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AspectRatioImageCreative"; + } + + public function __construct($imageAssets = NULL, $altText = NULL, $thirdPartyImpressionUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashCreative", FALSE)) { +/** + * A base type for creatives that display a Flash-based ad. If the Flash ad + * cannot load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $clickTagRequired; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var Size + */ + public $fallbackAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashRedirectCreative", FALSE)) { +/** + * The base type for creatives that load a Flash asset from a specified URL. + * If the remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var string + */ + public $fallbackUrl; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageCreative", FALSE)) { +/** + * The base type for creatives that display an image. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var CreativeAsset + */ + public $primaryImageAsset; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageCreative"; + } + + public function __construct($overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageRedirectCreative", FALSE)) { +/** + * The base type for creatives that load an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageRedirectCreative"; + } + + public function __construct($imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseRichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseRichMediaStudioCreative extends Creative { + /** + * @access public + * @var integer + */ + public $studioCreativeId; + + /** + * @access public + * @var tnsRichMediaStudioCreativeFormat + */ + public $creativeFormat; + + /** + * @access public + * @var tnsRichMediaStudioCreativeArtworkType + */ + public $artworkType; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var string[] + */ + public $adTagKeys; + + /** + * @access public + * @var string[] + */ + public $customKeyValues; + + /** + * @access public + * @var string + */ + public $surveyUrl; + + /** + * @access public + * @var string + */ + public $allImpressionsUrl; + + /** + * @access public + * @var string + */ + public $richMediaImpressionsUrl; + + /** + * @access public + * @var string + */ + public $backupImageImpressionsUrl; + + /** + * @access public + * @var string + */ + public $overrideCss; + + /** + * @access public + * @var string + */ + public $requiredFlashPluginVersion; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var tnsRichMediaStudioCreativeBillingAttribute + */ + public $billingAttribute; + + /** + * @access public + * @var RichMediaStudioChildAssetProperty[] + */ + public $richMediaStudioChildAssetProperties; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRichMediaStudioCreative"; + } + + public function __construct($studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseVideoCreative", FALSE)) { +/** + * A base type for video creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var boolean + */ + public $allowDurationOverride; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseVideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ClickTrackingCreative", FALSE)) { +/** + * A creative that is used for tracking clicks on ads that are served directly + * from the customers' web servers or media servers. + * NOTE: The size attribute is not used for click tracking creative and it will + * not be persisted upon save. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClickTrackingCreative extends Creative { + /** + * @access public + * @var string + */ + public $clickTrackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingCreative"; + } + + public function __construct($clickTrackingUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->clickTrackingUrl = $clickTrackingUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CustomCreative", FALSE)) { +/** + * A {@code Creative} that contains an arbitrary HTML snippet and file assets. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * @access public + * @var CustomCreativeAsset[] + */ + public $customCreativeAssets; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreative"; + } + + public function __construct($htmlSnippet = NULL, $customCreativeAssets = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->htmlSnippet = $htmlSnippet; + $this->customCreativeAssets = $customCreativeAssets; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LegacyDfpMobileCreative", FALSE)) { +/** + * A mobile {@code Creative} that isn't supported by Google DFP, but was + * migrated from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpMobileCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashCreative", FALSE)) { +/** + * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot + * load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashCreative extends BaseFlashCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashExpandableCreative", FALSE)) { +/** + * An expandable {@code Creative} where the collapsed size is a Flash SWF file and + * the expanded size is another Flash SWF file. If Flash isn't supported in the browser, + * the fallback image will be used. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001160}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashExpandableCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $collapsedWidth; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedWidth; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var tnsFlashExpandableCreativeExpandDirection + */ + public $expandDirection; + + /** + * @access public + * @var boolean + */ + public $expandOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForExpand; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashExpandableCreative"; + } + + public function __construct($collapsedFlashAssetId = NULL, $collapsedFlashAssetByteArray = NULL, $collapsedFlashFileName = NULL, $collapsedFallbackImageAssetId = NULL, $collapsedFallbackImageAssetByteArray = NULL, $collapsedFallbackImageFileName = NULL, $expandedFlashAssetId = NULL, $expandedFlashAssetByteArray = NULL, $expandedFlashFileName = NULL, $requiredFlashVersion = NULL, $collapsedWidth = NULL, $collapsedHeight = NULL, $expandedWidth = NULL, $expandedHeight = NULL, $expandDirection = NULL, $expandOnMouseOver = NULL, $javascriptFunctionForExpand = NULL, $collapseOnMouseOut = NULL, $javascriptFunctionForCollapse = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->collapsedWidth = $collapsedWidth; + $this->collapsedHeight = $collapsedHeight; + $this->expandedWidth = $expandedWidth; + $this->expandedHeight = $expandedHeight; + $this->expandDirection = $expandDirection; + $this->expandOnMouseOver = $expandOnMouseOver; + $this->javascriptFunctionForExpand = $javascriptFunctionForExpand; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays a Flash-based ad and is + * served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashOverlayCreative extends BaseFlashCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashPushdownCreative", FALSE)) { +/** + * {@code Creative} that pushes page content down when the creative expands. + * The collapsed size is one Flash SWF file and the expanded size is another Flash SWF file. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10001400}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashPushdownCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $collapsedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFlashFileName; + + /** + * @access public + * @var integer + */ + public $collapsedFallbackImageAssetId; + + /** + * @access public + * @var base64Binary + */ + public $collapsedFallbackImageAssetByteArray; + + /** + * @access public + * @var string + */ + public $collapsedFallbackImageFileName; + + /** + * @access public + * @var integer + */ + public $expandedFlashAssetId; + + /** + * @access public + * @var base64Binary + */ + public $expandedFlashAssetByteArray; + + /** + * @access public + * @var string + */ + public $expandedFlashFileName; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $collapsedHeight; + + /** + * @access public + * @var integer + */ + public $expandedHeight; + + /** + * @access public + * @var boolean + */ + public $pushdownOnMouseOver; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForPushdown; + + /** + * @access public + * @var boolean + */ + public $collapseOnMouseOut; + + /** + * @access public + * @var string + */ + public $javascriptFunctionForCollapse; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashPushdownCreative"; + } + + public function __construct($collapsedFlashAssetId = NULL, $collapsedFlashAssetByteArray = NULL, $collapsedFlashFileName = NULL, $collapsedFallbackImageAssetId = NULL, $collapsedFallbackImageAssetByteArray = NULL, $collapsedFallbackImageFileName = NULL, $expandedFlashAssetId = NULL, $expandedFlashAssetByteArray = NULL, $expandedFlashFileName = NULL, $requiredFlashVersion = NULL, $width = NULL, $collapsedHeight = NULL, $expandedHeight = NULL, $pushdownOnMouseOver = NULL, $javascriptFunctionForPushdown = NULL, $collapseOnMouseOut = NULL, $javascriptFunctionForCollapse = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->collapsedFlashAssetId = $collapsedFlashAssetId; + $this->collapsedFlashAssetByteArray = $collapsedFlashAssetByteArray; + $this->collapsedFlashFileName = $collapsedFlashFileName; + $this->collapsedFallbackImageAssetId = $collapsedFallbackImageAssetId; + $this->collapsedFallbackImageAssetByteArray = $collapsedFallbackImageAssetByteArray; + $this->collapsedFallbackImageFileName = $collapsedFallbackImageFileName; + $this->expandedFlashAssetId = $expandedFlashAssetId; + $this->expandedFlashAssetByteArray = $expandedFlashAssetByteArray; + $this->expandedFlashFileName = $expandedFlashFileName; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->collapsedHeight = $collapsedHeight; + $this->expandedHeight = $expandedHeight; + $this->pushdownOnMouseOver = $pushdownOnMouseOver; + $this->javascriptFunctionForPushdown = $javascriptFunctionForPushdown; + $this->collapseOnMouseOut = $collapseOnMouseOut; + $this->javascriptFunctionForCollapse = $javascriptFunctionForCollapse; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads a Flash asset from a specified URL. If the + * remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads a Flash asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashAssetSize = NULL, $flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashAssetSize = $flashAssetSize; + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FloatingFlashCreative", FALSE)) { +/** + * A floating flash creative. This creative is an interstitial creative, + * and its {@link #size} must be 1x1. + *

      + * This creative will not work with iframe ad tags. + *

      + * This creative is only available to small business networks. + * + * Starting in version v201306 this will be returned as a {@link TemplateCreative} + * identified with a {@link TemplateCreative#creativeTemplateId} of {@code 10000560}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FloatingFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var integer + */ + public $flashAssetId; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var integer + */ + public $fallbackImageAssetId; + + /** + * @access public + * @var integer + */ + public $requiredFlashVersion; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $topPosition; + + /** + * @access public + * @var string + */ + public $leftPosition; + + /** + * @access public + * @var integer + */ + public $displayTimeInSecond; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionTracker; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FloatingFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $flashAssetId = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $fallbackImageAssetId = NULL, $requiredFlashVersion = NULL, $width = NULL, $height = NULL, $topPosition = NULL, $leftPosition = NULL, $displayTimeInSecond = NULL, $thirdPartyImpressionTracker = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->flashAssetId = $flashAssetId; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->fallbackImageAssetId = $fallbackImageAssetId; + $this->requiredFlashVersion = $requiredFlashVersion; + $this->width = $width; + $this->height = $height; + $this->topPosition = $topPosition; + $this->leftPosition = $leftPosition; + $this->displayTimeInSecond = $displayTimeInSecond; + $this->thirdPartyImpressionTracker = $thirdPartyImpressionTracker; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + /** + * @access public + * @var string + */ + public $codeSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasHtmlSnippetDynamicAllocationCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageCreative", FALSE)) { +/** + * A {@code Creative} that displays an image. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageCreative extends BaseImageCreative { + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageCreative"; + } + + public function __construct($altText = NULL, $thirdPartyImpressionUrl = NULL, $overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays an image and is served via VAST + * 2.0 XML. Overlays cover part of the video content they are displayed on + * top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageOverlayCreative extends BaseImageCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectCreative"; + } + + public function __construct($altText = NULL, $thirdPartyImpressionUrl = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads an image asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectOverlayCreative"; + } + + public function __construct($assetSize = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, + * but you can update some fields of this creative. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreative"; + } + + public function __construct($isInterstitial = NULL, $studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->isInterstitial = $isInterstitial; + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoCreative", FALSE)) { +/** + * A {@code Creative} that contains DFP-hosted video ads and is served + * via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoCreative extends BaseVideoCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectCreative", FALSE)) { +/** + * A {@code Creative} that contains externally hosted video ads and + * is served via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoRedirectCreative extends BaseVideoCreative { + /** + * @access public + * @var VideoRedirectAsset[] + */ + public $videoAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectCreative"; + } + + public function __construct($videoAssets = NULL, $duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExchangeCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdSenseCreative", FALSE)) { +/** + * An AdSense dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeService", FALSE)) { +/** + * CreativeService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class CreativeService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "Creative" => "Creative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "AdExchangeCreative" => "AdExchangeCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "AdSenseCreative" => "AdSenseCreative", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AspectRatioImageCreative" => "AspectRatioImageCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", + "Asset" => "Asset", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseFlashCreative" => "BaseFlashCreative", + "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", + "BaseImageCreative" => "BaseImageCreative", + "BaseImageRedirectCreative" => "BaseImageRedirectCreative", + "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", + "BaseVideoCreative" => "BaseVideoCreative", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingCreative" => "ClickTrackingCreative", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", + "CreativeAsset" => "CreativeAsset", + "CustomCreativeAsset" => "CustomCreativeAsset", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativePage" => "CreativePage", + "CreativeSetError" => "CreativeSetError", + "CustomCreative" => "CustomCreative", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValue" => "CustomFieldValue", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashExpandableCreative" => "FlashExpandableCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashPushdownCreative" => "FlashPushdownCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "FloatingFlashCreative" => "FloatingFlashCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LegacyDfpCreative" => "LegacyDfpCreative", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RedirectAsset" => "RedirectAsset", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", + "RichMediaStudioCreative" => "RichMediaStudioCreative", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringCreativeTemplateVariableValue" => "StringCreativeTemplateVariableValue", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextAdCreative" => "TextAdCreative", + "TextValue" => "TextValue", + "ThirdPartyCreative" => "ThirdPartyCreative", + "TrackingUrls" => "TrackingUrls", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UnsupportedCreative" => "UnsupportedCreative", + "UrlCreativeTemplateVariableValue" => "UrlCreativeTemplateVariableValue", + "VastRedirectCreative" => "VastRedirectCreative", + "VideoCreative" => "VideoCreative", + "VideoRedirectAsset" => "VideoRedirectAsset", + "VideoRedirectCreative" => "VideoRedirectCreative", + "VpaidLinearCreative" => "VpaidLinearCreative", + "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", + "ApiFramework" => "ApiFramework", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ConversionEvent" => "ConversionEvent", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "FlashExpandableCreative.ExpandDirection" => "FlashExpandableCreativeExpandDirection", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", + "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", + "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetWindow" => "TargetWindow", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "VastRedirectType" => "VastRedirectType", + "createCreative" => "createCreative", + "createCreativeResponse" => "createCreativeResponse", + "createCreatives" => "createCreatives", + "createCreativesResponse" => "createCreativesResponse", + "getCreative" => "getCreative", + "getCreativeResponse" => "getCreativeResponse", + "getCreativesByStatement" => "getCreativesByStatement", + "getCreativesByStatementResponse" => "getCreativesByStatementResponse", + "updateCreative" => "updateCreative", + "updateCreativeResponse" => "updateCreativeResponse", + "updateCreatives" => "updateCreatives", + "updateCreativesResponse" => "updateCreativesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/CreativeService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + */ + public function createCreative($creative) { + $arg = new createCreative($creative); + $result = $this->__soapCall("createCreative", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + */ + public function createCreatives($creatives) { + $arg = new createCreatives($creatives); + $result = $this->__soapCall("createCreatives", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + */ + public function getCreative($creativeId) { + $arg = new getCreative($creativeId); + $result = $this->__soapCall("getCreative", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + */ + public function getCreativesByStatement($filterStatement) { + $arg = new getCreativesByStatement($filterStatement); + $result = $this->__soapCall("getCreativesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + */ + public function updateCreative($creative) { + $arg = new updateCreative($creative); + $result = $this->__soapCall("updateCreative", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + */ + public function updateCreatives($creatives) { + $arg = new updateCreatives($creatives); + $result = $this->__soapCall("updateCreatives", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201302/CreativeSetService.php new file mode 100755 index 000000000..48c8e1d7b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CreativeSetService.php @@ -0,0 +1,3307 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSet", FALSE)) { +/** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSet { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $masterCreativeId; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSet"; + } + + public function __construct($id = NULL, $name = NULL, $masterCreativeId = NULL, $companionCreativeIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->masterCreativeId = $masterCreativeId; + $this->companionCreativeIds = $companionCreativeIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CreativeSetPage", FALSE)) { +/** + * Captures a page of {@link CreativeSet} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSetPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeSet[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeSet", FALSE)) { +/** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("createCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSet", FALSE)) { +/** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeSet { + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSetId = NULL) { + $this->creativeSetId = $creativeSetId; + } +}} + +if (!class_exists("getCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSetsByStatement", FALSE)) { +/** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeSetsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getCreativeSetsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeSetsByStatementResponse { + /** + * @access public + * @var CreativeSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeSet", FALSE)) { +/** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("updateCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeSetService", FALSE)) { +/** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class CreativeSetService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSet" => "CreativeSet", + "CreativeSetError" => "CreativeSetError", + "CreativeSetPage" => "CreativeSetPage", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCreativeSet" => "createCreativeSet", + "createCreativeSetResponse" => "createCreativeSetResponse", + "getCreativeSet" => "getCreativeSet", + "getCreativeSetResponse" => "getCreativeSetResponse", + "getCreativeSetsByStatement" => "getCreativeSetsByStatement", + "getCreativeSetsByStatementResponse" => "getCreativeSetsByStatementResponse", + "updateCreativeSet" => "updateCreativeSet", + "updateCreativeSetResponse" => "updateCreativeSetResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/CreativeSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeSetService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + */ + public function createCreativeSet($creativeSet) { + $arg = new createCreativeSet($creativeSet); + $result = $this->__soapCall("createCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + */ + public function getCreativeSet($creativeSetId) { + $arg = new getCreativeSet($creativeSetId); + $result = $this->__soapCall("getCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + */ + public function getCreativeSetsByStatement($statement) { + $arg = new getCreativeSetsByStatement($statement); + $result = $this->__soapCall("getCreativeSetsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + */ + public function updateCreativeSet($creativeSet) { + $arg = new updateCreativeSet($creativeSet); + $result = $this->__soapCall("updateCreativeSet", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201302/CreativeTemplateService.php new file mode 100755 index 000000000..49a04a00b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CreativeTemplateService.php @@ -0,0 +1,3155 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeTemplate", FALSE)) { +/** + * A template upon which a creative can be created. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var CreativeTemplateVariable[] + */ + public $variables; + + /** + * @access public + * @var tnsCreativeTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsCreativeTemplateType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $variables = NULL, $status = NULL, $type = NULL, $isInterstitial = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->variables = $variables; + $this->status = $status; + $this->type = $type; + $this->isInterstitial = $isInterstitial; + } +}} + +if (!class_exists("CreativeTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeTemplateError extends ApiError { + /** + * @access public + * @var tnsCreativeTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError"; + } + + 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("ListStringCreativeTemplateVariableVariableChoice", FALSE)) { +/** + * Stores variable choices that users can select from + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ListStringCreativeTemplateVariableVariableChoice { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable.VariableChoice"; + } + + public function __construct($label = NULL, $value = NULL) { + $this->label = $label; + $this->value = $value; + } +}} + +if (!class_exists("CreativeTemplatePage", FALSE)) { +/** + * Captures a page of {@link CreativeTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeTemplateVariable", FALSE)) { +/** + * Represents a variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isRequired; + + /** + * @access public + * @var string + */ + public $CreativeTemplateVariableType; + + private $_parameterMap = array ( + "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateVariable"; + } + + public function __construct($label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetCreativeTemplateVariableMimeType", FALSE)) { +/** + * Different mime type that the asset variable supports. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetCreativeTemplateVariableMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateStatus", FALSE)) { +/** + * Describes status of the creative template + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateType", FALSE)) { +/** + * Describes type of the creative template. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeTemplateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getCreativeTemplate", FALSE)) { +/** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeTemplate { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeTemplateId = NULL) { + $this->creativeTemplateId = $creativeTemplateId; + } +}} + +if (!class_exists("getCreativeTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeTemplateResponse { + /** + * @access public + * @var CreativeTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeTemplatesByStatement", FALSE)) { +/** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeTemplatesByStatementResponse { + /** + * @access public + * @var CreativeTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AssetCreativeTemplateVariable", FALSE)) { +/** + * Represents a file asset variable defined in a creative template. + *

      + * Use {@link AssetCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var tnsAssetCreativeTemplateVariableMimeType[] + */ + public $mimeTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable"; + } + + public function __construct($mimeTypes = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->mimeTypes = $mimeTypes; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("LongCreativeTemplateVariable", FALSE)) { +/** + * Represents a long variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var integer + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("StringCreativeTemplateVariable", FALSE)) { +/** + * Represents a string variable defined in a creative template. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariable", FALSE)) { +/** + * Represents a url variable defined in a creative template. + *

      + * Use {@link UrlCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ListStringCreativeTemplateVariable", FALSE)) { +/** + * Represents a list variable defined in a creative template. This is similar to + * {@link StringCreativeTemplateVariable}, except that there are possible choices to + * choose from. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + /** + * @access public + * @var ListStringCreativeTemplateVariableVariableChoice[] + */ + public $choices; + + /** + * @access public + * @var boolean + */ + public $allowOtherChoice; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable"; + } + + public function __construct($choices = NULL, $allowOtherChoice = NULL, $defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->choices = $choices; + $this->allowOtherChoice = $allowOtherChoice; + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("CreativeTemplateService", FALSE)) { +/** + * CreativeTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class CreativeTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", + "CreativeTemplateVariable" => "CreativeTemplateVariable", + "CreativeTemplate" => "CreativeTemplate", + "CreativeTemplateError" => "CreativeTemplateError", + "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", + "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", + "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", + "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", + "CreativeTemplatePage" => "CreativeTemplatePage", + "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", + "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", + "CreativeTemplateStatus" => "CreativeTemplateStatus", + "CreativeTemplateType" => "CreativeTemplateType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getCreativeTemplate" => "getCreativeTemplate", + "getCreativeTemplateResponse" => "getCreativeTemplateResponse", + "getCreativeTemplatesByStatement" => "getCreativeTemplatesByStatement", + "getCreativeTemplatesByStatementResponse" => "getCreativeTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/CreativeTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeTemplateService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + */ + public function getCreativeTemplate($creativeTemplateId) { + $arg = new getCreativeTemplate($creativeTemplateId); + $result = $this->__soapCall("getCreativeTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + */ + public function getCreativeTemplatesByStatement($filterStatement) { + $arg = new getCreativeTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getCreativeTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201302/CreativeWrapperService.php new file mode 100755 index 000000000..dd253a5fe --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CreativeWrapperService.php @@ -0,0 +1,3348 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CreativeWrapper} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperAction { + /** + * @access public + * @var string + */ + public $CreativeWrapperActionType; + + private $_parameterMap = array ( + "CreativeWrapperAction.Type" => "CreativeWrapperActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperAction"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("CreativeWrapper", FALSE)) { +/** + * A {@code CreativeWrapper} allows the wrapping of HTML snippets to be + * served along with {@code Creative} objects. + *

      + * Creative wrappers must be associated with a + * {@link LabelType#CREATIVE_WRAPPER} label and applied to ad units by + * {@link AdUnit#appliedLabels}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapper { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $header; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $footer; + + /** + * @access public + * @var tnsCreativeWrapperOrdering + */ + public $ordering; + + /** + * @access public + * @var tnsCreativeWrapperStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapper"; + } + + public function __construct($id = NULL, $labelId = NULL, $header = NULL, $footer = NULL, $ordering = NULL, $status = NULL) { + $this->id = $id; + $this->labelId = $labelId; + $this->header = $header; + $this->footer = $footer; + $this->ordering = $ordering; + $this->status = $status; + } +}} + +if (!class_exists("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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("CreativeWrapperPage", FALSE)) { +/** + * Captures a page of {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCreativeWrappers", FALSE)) { +/** + * The action used for deactivating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("CreativeWrapperHtmlSnippet", FALSE)) { +/** + * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is + * delivered as the header or footer. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperHtmlSnippet { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperHtmlSnippet"; + } + + public function __construct($htmlSnippet = NULL) { + $this->htmlSnippet = $htmlSnippet; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperOrdering", FALSE)) { +/** + * Defines the order in which the header and footer HTML snippets will be + * wrapped around the served creative. {@code INNER} snippets will be wrapped + * first, followed by {@code NO_PREFERENCE} and finally {@code OUTER}. If the + * creative needs to be wrapped with more than one snippet with the same + * {@link CreativeWrapperOrdering}, then the order is unspecified. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperOrdering { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperOrdering"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperStatus", FALSE)) { +/** + * Indicates whether the {@code CreativeWrapper} is active. HTML snippets + * are served to creatives only when the creative wrapper is active. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeWrapper", FALSE)) { +/** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("createCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreativeWrappers", FALSE)) { +/** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("createCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrapper", FALSE)) { +/** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeWrapper { + /** + * @access public + * @var integer + */ + public $creativeWrapperId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperId = NULL) { + $this->creativeWrapperId = $creativeWrapperId; + } +}} + +if (!class_exists("getCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrappersByStatement", FALSE)) { +/** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeWrappersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeWrappersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCreativeWrappersByStatementResponse { + /** + * @access public + * @var CreativeWrapperPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCreativeWrapperAction", FALSE)) { +/** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performCreativeWrapperAction { + /** + * @access public + * @var CreativeWrapperAction + */ + public $creativeWrapperAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperAction = NULL, $filterStatement = NULL) { + $this->creativeWrapperAction = $creativeWrapperAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCreativeWrapperActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performCreativeWrapperActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrapper", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("updateCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrappers", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("updateCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCreativeWrappers", FALSE)) { +/** + * The action used for activating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeWrapperService", FALSE)) { +/** + * CreativeWrapperService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class CreativeWrapperService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCreativeWrappers" => "ActivateCreativeWrappers", + "CreativeWrapperAction" => "CreativeWrapperAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapper" => "CreativeWrapper", + "CreativeWrapperError" => "CreativeWrapperError", + "CreativeWrapperPage" => "CreativeWrapperPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateCreativeWrappers" => "DeactivateCreativeWrappers", + "FeatureError" => "FeatureError", + "CreativeWrapperHtmlSnippet" => "CreativeWrapperHtmlSnippet", + "InternalApiError" => "InternalApiError", + "LabelError" => "LabelError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "CreativeWrapperOrdering" => "CreativeWrapperOrdering", + "CreativeWrapperStatus" => "CreativeWrapperStatus", + "LabelError.Reason" => "LabelErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createCreativeWrapper" => "createCreativeWrapper", + "createCreativeWrapperResponse" => "createCreativeWrapperResponse", + "createCreativeWrappers" => "createCreativeWrappers", + "createCreativeWrappersResponse" => "createCreativeWrappersResponse", + "getCreativeWrapper" => "getCreativeWrapper", + "getCreativeWrapperResponse" => "getCreativeWrapperResponse", + "getCreativeWrappersByStatement" => "getCreativeWrappersByStatement", + "getCreativeWrappersByStatementResponse" => "getCreativeWrappersByStatementResponse", + "performCreativeWrapperAction" => "performCreativeWrapperAction", + "performCreativeWrapperActionResponse" => "performCreativeWrapperActionResponse", + "updateCreativeWrapper" => "updateCreativeWrapper", + "updateCreativeWrapperResponse" => "updateCreativeWrapperResponse", + "updateCreativeWrappers" => "updateCreativeWrappers", + "updateCreativeWrappersResponse" => "updateCreativeWrappersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/CreativeWrapperService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeWrapperService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeWrapperService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + */ + public function createCreativeWrapper($creativeWrapper) { + $arg = new createCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("createCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + */ + public function createCreativeWrappers($creativeWrappers) { + $arg = new createCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("createCreativeWrappers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + */ + public function getCreativeWrapper($creativeWrapperId) { + $arg = new getCreativeWrapper($creativeWrapperId); + $result = $this->__soapCall("getCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + */ + public function getCreativeWrappersByStatement($filterStatement) { + $arg = new getCreativeWrappersByStatement($filterStatement); + $result = $this->__soapCall("getCreativeWrappersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performCreativeWrapperAction($creativeWrapperAction, $filterStatement) { + $arg = new performCreativeWrapperAction($creativeWrapperAction, $filterStatement); + $result = $this->__soapCall("performCreativeWrapperAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + */ + public function updateCreativeWrapper($creativeWrapper) { + $arg = new updateCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("updateCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + */ + public function updateCreativeWrappers($creativeWrappers) { + $arg = new updateCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("updateCreativeWrappers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201302/CustomFieldService.php new file mode 100755 index 000000000..6285a4459 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CustomFieldService.php @@ -0,0 +1,3819 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldAction { + /** + * @access public + * @var string + */ + public $CustomFieldActionType; + + private $_parameterMap = array ( + "CustomFieldAction.Type" => "CustomFieldActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldAction"; + } + + public function __construct($CustomFieldActionType = NULL) { + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("CustomField", FALSE)) { +/** + * An additional, user-created field on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomField { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsCustomFieldEntityType + */ + public $entityType; + + /** + * @access public + * @var tnsCustomFieldDataType + */ + public $dataType; + + /** + * @access public + * @var tnsCustomFieldVisibility + */ + public $visibility; + + /** + * @access public + * @var string + */ + public $CustomFieldType; + + private $_parameterMap = array ( + "CustomField.Type" => "CustomFieldType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomField"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("CustomFieldError", FALSE)) { +/** + * Errors specific to editing custom fields + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldError extends ApiError { + /** + * @access public + * @var tnsCustomFieldErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError"; + } + + 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("CustomFieldOption", FALSE)) { +/** + * An option represents a permitted value for a custom field that + * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldOption { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldOption"; + } + + public function __construct($id = NULL, $customFieldId = NULL, $displayName = NULL) { + $this->id = $id; + $this->customFieldId = $customFieldId; + $this->displayName = $displayName; + } +}} + +if (!class_exists("CustomFieldPage", FALSE)) { +/** + * Captures a page of {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomField[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCustomFields", FALSE)) { +/** + * The action used for deactivating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("DropDownCustomField", FALSE)) { +/** + * A custom field that has the drop-down data type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DropDownCustomField extends CustomField { + /** + * @access public + * @var CustomFieldOption[] + */ + public $options; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomField"; + } + + public function __construct($options = NULL, $id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + parent::__construct(); + $this->options = $options; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldDataType", FALSE)) { +/** + * The data types allowed for {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldDataType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldDataType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldEntityType", FALSE)) { +/** + * Entity types recognized by custom fields + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldEntityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldEntityType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldVisibility", FALSE)) { +/** + * The visibility levels of a custom field. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldVisibility { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldVisibility"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomField", FALSE)) { +/** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("createCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOption", FALSE)) { +/** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("createCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOptions", FALSE)) { +/** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("createCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFields", FALSE)) { +/** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("createCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomField", FALSE)) { +/** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomField { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldId = NULL) { + $this->customFieldId = $customFieldId; + } +}} + +if (!class_exists("getCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldOption", FALSE)) { +/** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomFieldOption { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptionId = NULL) { + $this->customFieldOptionId = $customFieldOptionId; + } +}} + +if (!class_exists("getCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldsByStatement", FALSE)) { +/** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomFieldsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomFieldsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomFieldsByStatementResponse { + /** + * @access public + * @var CustomFieldPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomFieldAction", FALSE)) { +/** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performCustomFieldAction { + /** + * @access public + * @var CustomFieldAction + */ + public $customFieldAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldAction = NULL, $filterStatement = NULL) { + $this->customFieldAction = $customFieldAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomFieldActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performCustomFieldActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomField", FALSE)) { +/** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("updateCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOption", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("updateCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOptions", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("updateCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFields", FALSE)) { +/** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("updateCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCustomFields", FALSE)) { +/** + * The action used for activating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomFieldService", FALSE)) { +/** + * CustomFieldService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class CustomFieldService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCustomFields" => "ActivateCustomFields", + "CustomFieldAction" => "CustomFieldAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomField" => "CustomField", + "CustomFieldError" => "CustomFieldError", + "CustomFieldOption" => "CustomFieldOption", + "CustomFieldPage" => "CustomFieldPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateCustomFields" => "DeactivateCustomFields", + "DropDownCustomField" => "DropDownCustomField", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldDataType" => "CustomFieldDataType", + "CustomFieldEntityType" => "CustomFieldEntityType", + "CustomFieldError.Reason" => "CustomFieldErrorReason", + "CustomFieldVisibility" => "CustomFieldVisibility", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomField" => "createCustomField", + "createCustomFieldResponse" => "createCustomFieldResponse", + "createCustomFieldOption" => "createCustomFieldOption", + "createCustomFieldOptionResponse" => "createCustomFieldOptionResponse", + "createCustomFieldOptions" => "createCustomFieldOptions", + "createCustomFieldOptionsResponse" => "createCustomFieldOptionsResponse", + "createCustomFields" => "createCustomFields", + "createCustomFieldsResponse" => "createCustomFieldsResponse", + "getCustomField" => "getCustomField", + "getCustomFieldResponse" => "getCustomFieldResponse", + "getCustomFieldOption" => "getCustomFieldOption", + "getCustomFieldOptionResponse" => "getCustomFieldOptionResponse", + "getCustomFieldsByStatement" => "getCustomFieldsByStatement", + "getCustomFieldsByStatementResponse" => "getCustomFieldsByStatementResponse", + "performCustomFieldAction" => "performCustomFieldAction", + "performCustomFieldActionResponse" => "performCustomFieldActionResponse", + "updateCustomField" => "updateCustomField", + "updateCustomFieldResponse" => "updateCustomFieldResponse", + "updateCustomFieldOption" => "updateCustomFieldOption", + "updateCustomFieldOptionResponse" => "updateCustomFieldOptionResponse", + "updateCustomFieldOptions" => "updateCustomFieldOptions", + "updateCustomFieldOptionsResponse" => "updateCustomFieldOptionsResponse", + "updateCustomFields" => "updateCustomFields", + "updateCustomFieldsResponse" => "updateCustomFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/CustomFieldService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomFieldService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomFieldService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + */ + public function createCustomField($customField) { + $arg = new createCustomField($customField); + $result = $this->__soapCall("createCustomField", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + */ + public function createCustomFieldOption($customFieldOption) { + $arg = new createCustomFieldOption($customFieldOption); + $result = $this->__soapCall("createCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + */ + public function createCustomFieldOptions($customFieldOptions) { + $arg = new createCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("createCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + */ + public function createCustomFields($customFields) { + $arg = new createCustomFields($customFields); + $result = $this->__soapCall("createCustomFields", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + */ + public function getCustomField($customFieldId) { + $arg = new getCustomField($customFieldId); + $result = $this->__soapCall("getCustomField", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + */ + public function getCustomFieldOption($customFieldOptionId) { + $arg = new getCustomFieldOption($customFieldOptionId); + $result = $this->__soapCall("getCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + */ + public function getCustomFieldsByStatement($filterStatement) { + $arg = new getCustomFieldsByStatement($filterStatement); + $result = $this->__soapCall("getCustomFieldsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + */ + public function performCustomFieldAction($customFieldAction, $filterStatement) { + $arg = new performCustomFieldAction($customFieldAction, $filterStatement); + $result = $this->__soapCall("performCustomFieldAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + */ + public function updateCustomField($customField) { + $arg = new updateCustomField($customField); + $result = $this->__soapCall("updateCustomField", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + */ + public function updateCustomFieldOption($customFieldOption) { + $arg = new updateCustomFieldOption($customFieldOption); + $result = $this->__soapCall("updateCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + */ + public function updateCustomFieldOptions($customFieldOptions) { + $arg = new updateCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("updateCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + */ + public function updateCustomFields($customFields) { + $arg = new updateCustomFields($customFields); + $result = $this->__soapCall("updateCustomFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201302/CustomTargetingService.php new file mode 100755 index 000000000..7332f0b13 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/CustomTargetingService.php @@ -0,0 +1,3519 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomTargetingKeyAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingKey} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingKeyAction { + /** + * @access public + * @var string + */ + public $CustomTargetingKeyActionType; + + private $_parameterMap = array ( + "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyAction"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("CustomTargetingKey", FALSE)) { +/** + * {@code CustomTargetingKey} represents a key used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingKey { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingKeyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey"; + } + + public function __construct($id = NULL, $name = NULL, $displayName = NULL, $type = NULL) { + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->type = $type; + } +}} + +if (!class_exists("CustomTargetingKeyPage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingKeyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomTargetingValueAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingValue} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingValueAction { + /** + * @access public + * @var string + */ + public $CustomTargetingValueActionType; + + private $_parameterMap = array ( + "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValueAction"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("CustomTargetingValue", FALSE)) { +/** + * {@code CustomTargetingValue} represents a value used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingValue { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingValueMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue"; + } + + public function __construct($customTargetingKeyId = NULL, $id = NULL, $name = NULL, $displayName = NULL, $matchType = NULL) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->matchType = $matchType; + } +}} + +if (!class_exists("CustomTargetingValuePage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingValuePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValuePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeleteCustomTargetingKeys", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingKey} objects. Deleting a key will not delete the + * {@link CustomTargetingValue} objects associated with it. Also, if a custom + * targeting key that has been deleted is recreated, any previous custom + * targeting values associated with it that were not deleted will continue to + * exist. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingKeys"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + parent::__construct(); + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("DeleteCustomTargetingValues", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingValues"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + parent::__construct(); + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingKeyType", FALSE)) { +/** + * Specifies the types for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingKeyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingValueMatchType", FALSE)) { +/** + * Represents the ways in which {@link CustomTargetingValue#name} strings will + * be matched with ad requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingValueMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue.MatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomTargetingKeys", FALSE)) { +/** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("createCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomTargetingValues", FALSE)) { +/** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("createCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomTargetingKeysByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomTargetingKeysByStatementResponse { + /** + * @access public + * @var CustomTargetingKeyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomTargetingValuesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCustomTargetingValuesByStatementResponse { + /** + * @access public + * @var CustomTargetingValuePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingKeyAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performCustomTargetingKeyAction { + /** + * @access public + * @var CustomTargetingKeyAction + */ + public $customTargetingKeyAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingKeyAction = NULL, $filterStatement = NULL) { + $this->customTargetingKeyAction = $customTargetingKeyAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingKeyActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performCustomTargetingKeyActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingValueAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performCustomTargetingValueAction { + /** + * @access public + * @var CustomTargetingValueAction + */ + public $customTargetingValueAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingValueAction = NULL, $filterStatement = NULL) { + $this->customTargetingValueAction = $customTargetingValueAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingValueActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performCustomTargetingValueActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingKeys", FALSE)) { +/** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("updateCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingValues", FALSE)) { +/** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("updateCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomTargetingService", FALSE)) { +/** + * CustomTargetingService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class CustomTargetingService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", + "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "CustomTargetingKey.Type" => "CustomTargetingKeyType", + "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomTargetingKeys" => "createCustomTargetingKeys", + "createCustomTargetingKeysResponse" => "createCustomTargetingKeysResponse", + "createCustomTargetingValues" => "createCustomTargetingValues", + "createCustomTargetingValuesResponse" => "createCustomTargetingValuesResponse", + "getCustomTargetingKeysByStatement" => "getCustomTargetingKeysByStatement", + "getCustomTargetingKeysByStatementResponse" => "getCustomTargetingKeysByStatementResponse", + "getCustomTargetingValuesByStatement" => "getCustomTargetingValuesByStatement", + "getCustomTargetingValuesByStatementResponse" => "getCustomTargetingValuesByStatementResponse", + "performCustomTargetingKeyAction" => "performCustomTargetingKeyAction", + "performCustomTargetingKeyActionResponse" => "performCustomTargetingKeyActionResponse", + "performCustomTargetingValueAction" => "performCustomTargetingValueAction", + "performCustomTargetingValueActionResponse" => "performCustomTargetingValueActionResponse", + "updateCustomTargetingKeys" => "updateCustomTargetingKeys", + "updateCustomTargetingKeysResponse" => "updateCustomTargetingKeysResponse", + "updateCustomTargetingValues" => "updateCustomTargetingValues", + "updateCustomTargetingValuesResponse" => "updateCustomTargetingValuesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/CustomTargetingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomTargetingService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomTargetingService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingKeys($keys) { + $arg = new createCustomTargetingKeys($keys); + $result = $this->__soapCall("createCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingValues($values) { + $arg = new createCustomTargetingValues($values); + $result = $this->__soapCall("createCustomTargetingValues", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + */ + public function getCustomTargetingKeysByStatement($filterStatement) { + $arg = new getCustomTargetingKeysByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + */ + public function getCustomTargetingValuesByStatement($filterStatement) { + $arg = new getCustomTargetingValuesByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + */ + public function performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement) { + $arg = new performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingKeyAction", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performCustomTargetingValueAction($customTargetingValueAction, $filterStatement) { + $arg = new performCustomTargetingValueAction($customTargetingValueAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingValueAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function updateCustomTargetingKeys($keys) { + $arg = new updateCustomTargetingKeys($keys); + $result = $this->__soapCall("updateCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + */ + public function updateCustomTargetingValues($values) { + $arg = new updateCustomTargetingValues($values); + $result = $this->__soapCall("updateCustomTargetingValues", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ForecastService.php b/src/Google/Api/Ads/Dfp/v201302/ForecastService.php new file mode 100755 index 000000000..4cadb6630 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ForecastService.php @@ -0,0 +1,8469 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("Forecast", FALSE)) { +/** + * Describes predicted inventory availability for a line item with the specified + * properties. + * + *

      Inventory has three threshold values along a line of possible inventory. + * From least to most, these are: + * + *

        + *
      • Available units -- How many units can be booked without affecting any + * other line items. Booking more than this number can overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because if more impressions are + * served than are predicted, the extra available inventory might enable all + * inventory guarantees to be met without overbooking. + * + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Forecast { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $deliveredUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var integer + */ + public $possibleUnits; + + /** + * @access public + * @var integer + */ + public $reservedUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Forecast"; + } + + public function __construct($id = NULL, $orderId = NULL, $unitType = NULL, $availableUnits = NULL, $deliveredUnits = NULL, $matchedUnits = NULL, $possibleUnits = NULL, $reservedUnits = NULL) { + $this->id = $id; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->availableUnits = $availableUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + $this->possibleUnits = $possibleUnits; + $this->reservedUnits = $reservedUnits; + } +}} + +if (!class_exists("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var tnsVideoPodPositionType + */ + public $videoPodPositionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPodPositionType = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPodPositionType = $videoPodPositionType; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPodPositionType", FALSE)) { +/** + * Represents the options for targetable pod positions, which are the positions + * within a pod (or group) of ads, within a video stream. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPodPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPodPositionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("getForecast", FALSE)) { +/** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getForecast { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("getForecastResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getForecastResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getForecastById", FALSE)) { +/** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getForecastById { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getForecastByIdResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getForecastByIdResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ForecastService", FALSE)) { +/** + * ForecastService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class ForecastService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "Forecast" => "Forecast", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionTarget" => "VideoPositionTarget", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPodPositionType" => "VideoPodPositionType", + "VideoPosition.Type" => "VideoPositionType", + "getForecast" => "getForecast", + "getForecastResponse" => "getForecastResponse", + "getForecastById" => "getForecastById", + "getForecastByIdResponse" => "getForecastByIdResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ForecastService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ForecastService::$classmap; + parent::__construct($wsdl, $options, $user, 'ForecastService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + */ + public function getForecast($lineItem) { + $arg = new getForecast($lineItem); + $result = $this->__soapCall("getForecast", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + */ + public function getForecastById($lineItemId) { + $arg = new getForecastById($lineItemId); + $result = $this->__soapCall("getForecastById", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/InventoryService.php b/src/Google/Api/Ads/Dfp/v201302/InventoryService.php new file mode 100755 index 000000000..0fff5778c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/InventoryService.php @@ -0,0 +1,5184 @@ +adSenseEnabled = $adSenseEnabled; + $this->borderColor = $borderColor; + $this->titleColor = $titleColor; + $this->backgroundColor = $backgroundColor; + $this->textColor = $textColor; + $this->urlColor = $urlColor; + $this->adType = $adType; + $this->borderStyle = $borderStyle; + $this->fontFamily = $fontFamily; + $this->fontSize = $fontSize; + $this->afcFormats = $afcFormats; + } +}} + +if (!class_exists("AdSenseSettingsInheritedProperty", FALSE)) { +/** + * The property of the AdUnit that specifies how and from where the + * AdSenseSettings are inherited. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseSettingsInheritedProperty { + /** + * @access public + * @var AdSenseSettings + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettingsInheritedProperty"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("AdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitAction { + /** + * @access public + * @var string + */ + public $AdUnitActionType; + + private $_parameterMap = array ( + "AdUnitAction.Type" => "AdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAction"; + } + + public function __construct($AdUnitActionType = NULL) { + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdUnit", FALSE)) { +/** + * An {@code AdUnit} represents a chunk of identified inventory for the + * publisher. It contains all the settings that need to be associated with + * inventory in order to serve ads to it. An {@code AdUnit} can also be the + * parent of other ad units in the inventory hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $parentId; + + /** + * @access public + * @var boolean + */ + public $hasChildren; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $adUnitCode; + + /** + * @access public + * @var AdUnitSize[] + */ + public $adUnitSizes; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsMobilePlatform + */ + public $mobilePlatform; + + /** + * @access public + * @var boolean + */ + public $explicitlyTargeted; + + /** + * @access public + * @var AdSenseSettingsInheritedProperty + */ + public $inheritedAdSenseSettings; + + /** + * @access public + * @var integer + */ + public $partnerId; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $appliedLabelFrequencyCaps; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $effectiveLabelFrequencyCaps; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer[] + */ + public $effectiveTeamIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit"; + } + + public function __construct($id = NULL, $parentId = NULL, $hasChildren = NULL, $parentPath = NULL, $name = NULL, $description = NULL, $targetWindow = NULL, $status = NULL, $adUnitCode = NULL, $adUnitSizes = NULL, $targetPlatform = NULL, $mobilePlatform = NULL, $explicitlyTargeted = NULL, $inheritedAdSenseSettings = NULL, $partnerId = NULL, $appliedLabelFrequencyCaps = NULL, $effectiveLabelFrequencyCaps = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $effectiveTeamIds = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->parentId = $parentId; + $this->hasChildren = $hasChildren; + $this->parentPath = $parentPath; + $this->name = $name; + $this->description = $description; + $this->targetWindow = $targetWindow; + $this->status = $status; + $this->adUnitCode = $adUnitCode; + $this->adUnitSizes = $adUnitSizes; + $this->targetPlatform = $targetPlatform; + $this->mobilePlatform = $mobilePlatform; + $this->explicitlyTargeted = $explicitlyTargeted; + $this->inheritedAdSenseSettings = $inheritedAdSenseSettings; + $this->partnerId = $partnerId; + $this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; + $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->effectiveTeamIds = $effectiveTeamIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("AdUnitParent", FALSE)) { +/** + * The summary of a parent {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitParent { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitParent"; + } + + public function __construct($id = NULL, $name = NULL) { + $this->id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("ArchiveAdUnits", FALSE)) { +/** + * The action used for archiving {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ArchiveAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AssignAdUnitsToPlacement", FALSE)) { +/** + * The action used for assigning a group of {@link AdUnit} objects to a + * {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssignAdUnitsToPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateAdUnits", FALSE)) { +/** + * The action used for deactivating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidColorError", FALSE)) { +/** + * A list of all errors associated with a color attribute. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidColorError extends ApiError { + /** + * @access public + * @var tnsInvalidColorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("InventoryUnitPartnerAssociationError", FALSE)) { +/** + * Errors relating to the association of partner companies with inventory units. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitPartnerAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("InventoryUnitSizesError", FALSE)) { +/** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitSizesError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError"; + } + + 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("AdUnitTypeError", FALSE)) { +/** + * Lists the errors associated with the type of {@link AdUnit} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitTypeError extends ApiError { + /** + * @access public + * @var tnsAdUnitTypeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError"; + } + + 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("LabelFrequencyCap", FALSE)) { +/** + * A {@code LabelFrequencyCap} assigns a frequency cap to a label. The + * frequency cap will limit the cumulative number of impressions of any ad + * units with this label that may be shown to a particular user over a time + * unit. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelFrequencyCap { + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelFrequencyCap"; + } + + public function __construct($frequencyCap = NULL, $labelId = NULL) { + $this->frequencyCap = $frequencyCap; + $this->labelId = $labelId; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RemoveAdUnitsFromPlacement", FALSE)) { +/** + * The action used for removing a group of {@link AdUnit} objects + * from a {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RemoveAdUnitsFromPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RemoveAdUnitsFromPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size_StringMapEntry { + /** + * @access public + * @var Size + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsAdType", FALSE)) { +/** + * Specifies the type of ads that can be served through this {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseSettingsAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.AdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsBorderStyle", FALSE)) { +/** + * Describes the border of the HTML elements used to surround an ad + * displayed by the {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseSettingsBorderStyle { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.BorderStyle"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontFamily", FALSE)) { +/** + * List of all possible font families. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseSettingsFontFamily { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontFamily"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontSize", FALSE)) { +/** + * List of all possible font sizes the user can choose. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseSettingsFontSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontSize"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidColorErrorReason", FALSE)) { +/** + * The provided value is not a valid hexadecimal color. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidColorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitPartnerAssociationErrorReason", FALSE)) { +/** + * Partner association error reason types. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitPartnerAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitSizesErrorReason", FALSE)) { +/** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitSizesErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTypeErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitTypeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobilePlatform", FALSE)) { +/** + * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit + * appears in a mobile application or in a mobile web site. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobilePlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobilePlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdUnit", FALSE)) { +/** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("createAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdUnits", FALSE)) { +/** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("createAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnit", FALSE)) { +/** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdUnit { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitId = NULL) { + $this->adUnitId = $adUnitId; + } +}} + +if (!class_exists("getAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitSizesByStatement", FALSE)) { +/** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdUnitSizesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitSizesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdUnitSizesByStatementResponse { + /** + * @access public + * @var AdUnitSize[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAdUnitsByStatementResponse { + /** + * @access public + * @var AdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdUnitAction", FALSE)) { +/** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performAdUnitAction { + /** + * @access public + * @var AdUnitAction + */ + public $adUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitAction = NULL, $filterStatement = NULL) { + $this->adUnitAction = $adUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performAdUnitActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnit", FALSE)) { +/** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("updateAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnits", FALSE)) { +/** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("updateAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdUnits", FALSE)) { +/** + * The action used for activating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("InventoryService", FALSE)) { +/** + * InventoryService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class InventoryService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdUnits" => "ActivateAdUnits", + "AdUnitAction" => "AdUnitAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "AdSenseSettings" => "AdSenseSettings", + "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnit" => "AdUnit", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "AdUnitPage" => "AdUnitPage", + "AdUnitParent" => "AdUnitParent", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveAdUnits" => "ArchiveAdUnits", + "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateAdUnits" => "DeactivateAdUnits", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "InternalApiError" => "InternalApiError", + "InvalidColorError" => "InvalidColorError", + "InventoryUnitError" => "InventoryUnitError", + "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", + "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", + "AdUnitTypeError" => "AdUnitTypeError", + "LabelFrequencyCap" => "LabelFrequencyCap", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegExError" => "RegExError", + "RemoveAdUnitsFromPlacement" => "RemoveAdUnitsFromPlacement", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "Size_StringMapEntry" => "Size_StringMapEntry", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "AdSenseSettings.AdType" => "AdSenseSettingsAdType", + "AdSenseSettings.BorderStyle" => "AdSenseSettingsBorderStyle", + "AdSenseSettings.FontFamily" => "AdSenseSettingsFontFamily", + "AdSenseSettings.FontSize" => "AdSenseSettingsFontSize", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidColorError.Reason" => "InvalidColorErrorReason", + "InventoryStatus" => "InventoryStatus", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", + "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", + "MobilePlatform" => "MobilePlatform", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TimeUnit" => "TimeUnit", + "createAdUnit" => "createAdUnit", + "createAdUnitResponse" => "createAdUnitResponse", + "createAdUnits" => "createAdUnits", + "createAdUnitsResponse" => "createAdUnitsResponse", + "getAdUnit" => "getAdUnit", + "getAdUnitResponse" => "getAdUnitResponse", + "getAdUnitSizesByStatement" => "getAdUnitSizesByStatement", + "getAdUnitSizesByStatementResponse" => "getAdUnitSizesByStatementResponse", + "getAdUnitsByStatement" => "getAdUnitsByStatement", + "getAdUnitsByStatementResponse" => "getAdUnitsByStatementResponse", + "performAdUnitAction" => "performAdUnitAction", + "performAdUnitActionResponse" => "performAdUnitActionResponse", + "updateAdUnit" => "updateAdUnit", + "updateAdUnitResponse" => "updateAdUnitResponse", + "updateAdUnits" => "updateAdUnits", + "updateAdUnitsResponse" => "updateAdUnitsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/InventoryService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = InventoryService::$classmap; + parent::__construct($wsdl, $options, $user, 'InventoryService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + */ + public function createAdUnit($adUnit) { + $arg = new createAdUnit($adUnit); + $result = $this->__soapCall("createAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + */ + public function createAdUnits($adUnits) { + $arg = new createAdUnits($adUnits); + $result = $this->__soapCall("createAdUnits", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + */ + public function getAdUnit($adUnitId) { + $arg = new getAdUnit($adUnitId); + $result = $this->__soapCall("getAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + */ + public function getAdUnitSizesByStatement($filterStatement) { + $arg = new getAdUnitSizesByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitSizesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + */ + public function getAdUnitsByStatement($filterStatement) { + $arg = new getAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performAdUnitAction($adUnitAction, $filterStatement) { + $arg = new performAdUnitAction($adUnitAction, $filterStatement); + $result = $this->__soapCall("performAdUnitAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + */ + public function updateAdUnit($adUnit) { + $arg = new updateAdUnit($adUnit); + $result = $this->__soapCall("updateAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + */ + public function updateAdUnits($adUnits) { + $arg = new updateAdUnits($adUnits); + $result = $this->__soapCall("updateAdUnits", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/LabelService.php b/src/Google/Api/Ads/Dfp/v201302/LabelService.php new file mode 100755 index 000000000..33a9b1d28 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/LabelService.php @@ -0,0 +1,3244 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelAction { + /** + * @access public + * @var string + */ + public $LabelActionType; + + private $_parameterMap = array ( + "LabelAction.Type" => "LabelActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelAction"; + } + + public function __construct($LabelActionType = NULL) { + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Label { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Label"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $types = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLabel", FALSE)) { +/** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("createLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLabels", FALSE)) { +/** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("createLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabel", FALSE)) { +/** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelId = NULL) { + $this->labelId = $labelId; + } +}} + +if (!class_exists("getLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabelsByStatement", FALSE)) { +/** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLabelsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLabelsByStatementResponse { + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performLabelAction { + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelAction = NULL, $filterStatement = NULL) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performLabelActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("updateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("updateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class LabelService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLabels" => "ActivateLabels", + "LabelAction" => "LabelAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createLabel" => "createLabel", + "createLabelResponse" => "createLabelResponse", + "createLabels" => "createLabels", + "createLabelsResponse" => "createLabelsResponse", + "getLabel" => "getLabel", + "getLabelResponse" => "getLabelResponse", + "getLabelsByStatement" => "getLabelsByStatement", + "getLabelsByStatementResponse" => "getLabelsByStatementResponse", + "performLabelAction" => "performLabelAction", + "performLabelActionResponse" => "performLabelActionResponse", + "updateLabel" => "updateLabel", + "updateLabelResponse" => "updateLabelResponse", + "updateLabels" => "updateLabels", + "updateLabelsResponse" => "updateLabelsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/LabelService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LabelService::$classmap; + parent::__construct($wsdl, $options, $user, 'LabelService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + */ + public function createLabel($label) { + $arg = new createLabel($label); + $result = $this->__soapCall("createLabel", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + */ + public function createLabels($labels) { + $arg = new createLabels($labels); + $result = $this->__soapCall("createLabels", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + */ + public function getLabel($labelId) { + $arg = new getLabel($labelId); + $result = $this->__soapCall("getLabel", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $arg = new getLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performLabelAction($labelAction, $filterStatement) { + $arg = new performLabelAction($labelAction, $filterStatement); + $result = $this->__soapCall("performLabelAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + */ + public function updateLabel($label) { + $arg = new updateLabel($label); + $result = $this->__soapCall("updateLabel", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $arg = new updateLabels($labels); + $result = $this->__soapCall("updateLabels", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201302/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..cbea8c491 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/LineItemCreativeAssociationService.php @@ -0,0 +1,4825 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on + * {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationAction { + /** + * @access public + * @var string + */ + public $LineItemCreativeAssociationActionType; + + private $_parameterMap = array ( + "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationAction"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociation", FALSE)) { +/** + * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a + * {@link LineItem} so that the creative can be served in ad units targeted by the line item. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * @access public + * @var double + */ + public $manualCreativeRotationWeight; + + /** + * @access public + * @var integer + */ + public $sequentialCreativeRotationIndex; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var Size[] + */ + public $sizes; + + /** + * @access public + * @var tnsLineItemCreativeAssociationStatus + */ + public $status; + + /** + * @access public + * @var LineItemCreativeAssociationStats + */ + public $stats; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation"; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $creativeSetId = NULL, $manualCreativeRotationWeight = NULL, $sequentialCreativeRotationIndex = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $destinationUrl = NULL, $sizes = NULL, $status = NULL, $stats = NULL, $lastModifiedDateTime = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->creativeSetId = $creativeSetId; + $this->manualCreativeRotationWeight = $manualCreativeRotationWeight; + $this->sequentialCreativeRotationIndex = $sequentialCreativeRotationIndex; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->destinationUrl = $destinationUrl; + $this->sizes = $sizes; + $this->status = $status; + $this->stats = $stats; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemCreativeAssociationOperationError", FALSE)) { +/** + * Lists all errors for executing operations on + * line item-to-creative associations + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError"; + } + + 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("LineItemCreativeAssociationPage", FALSE)) { +/** + * Captures a page of {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemCreativeAssociationStats", FALSE)) { +/** + * Contains statistics such as impressions, clicks delivered and cost + * for {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationStats { + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var Long_StatsMapEntry[] + */ + public $creativeSetStats; + + /** + * @access public + * @var Money + */ + public $costInOrderCurrency; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationStats"; + } + + public function __construct($stats = NULL, $creativeSetStats = NULL, $costInOrderCurrency = NULL) { + $this->stats = $stats; + $this->creativeSetStats = $creativeSetStats; + $this->costInOrderCurrency = $costInOrderCurrency; + } +}} + +if (!class_exists("Long_StatsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Long + * and value of type Stats. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Long_StatsMapEntry { + /** + * @access public + * @var integer + */ + public $key; + + /** + * @access public + * @var Stats + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Long_StatsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationStatus", FALSE)) { +/** + * Describes the status of the association. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItemCreativeAssociation", FALSE)) { +/** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("createLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItemCreativeAssociations", FALSE)) { +/** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("createLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociation", FALSE)) { +/** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatement", FALSE)) { +/** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLineItemCreativeAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLineItemCreativeAssociationsByStatementResponse { + /** + * @access public + * @var LineItemCreativeAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPreviewUrl", FALSE)) { +/** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getPreviewUrl { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var string + */ + public $siteUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $siteUrl = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->siteUrl = $siteUrl; + } +}} + +if (!class_exists("getPreviewUrlResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getPreviewUrlResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemCreativeAssociationAction", FALSE)) { +/** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performLineItemCreativeAssociationAction { + /** + * @access public + * @var LineItemCreativeAssociationAction + */ + public $lineItemCreativeAssociationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociationAction = NULL, $filterStatement = NULL) { + $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemCreativeAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performLineItemCreativeAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociation", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociations", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for activating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemCreativeAssociationService", FALSE)) { +/** + * LineItemCreativeAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", + "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSetError" => "CreativeSetError", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociation" => "LineItemCreativeAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", + "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", + "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", + "Long_StatsMapEntry" => "Long_StatsMapEntry", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createLineItemCreativeAssociation" => "createLineItemCreativeAssociation", + "createLineItemCreativeAssociationResponse" => "createLineItemCreativeAssociationResponse", + "createLineItemCreativeAssociations" => "createLineItemCreativeAssociations", + "createLineItemCreativeAssociationsResponse" => "createLineItemCreativeAssociationsResponse", + "getLineItemCreativeAssociation" => "getLineItemCreativeAssociation", + "getLineItemCreativeAssociationResponse" => "getLineItemCreativeAssociationResponse", + "getLineItemCreativeAssociationsByStatement" => "getLineItemCreativeAssociationsByStatement", + "getLineItemCreativeAssociationsByStatementResponse" => "getLineItemCreativeAssociationsByStatementResponse", + "getPreviewUrl" => "getPreviewUrl", + "getPreviewUrlResponse" => "getPreviewUrlResponse", + "performLineItemCreativeAssociationAction" => "performLineItemCreativeAssociationAction", + "performLineItemCreativeAssociationActionResponse" => "performLineItemCreativeAssociationActionResponse", + "updateLineItemCreativeAssociation" => "updateLineItemCreativeAssociation", + "updateLineItemCreativeAssociationResponse" => "updateLineItemCreativeAssociationResponse", + "updateLineItemCreativeAssociations" => "updateLineItemCreativeAssociations", + "updateLineItemCreativeAssociationsResponse" => "updateLineItemCreativeAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/LineItemCreativeAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemCreativeAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemCreativeAssociationService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + */ + public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new createLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("createLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + */ + public function createLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new createLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("createLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + */ + public function getLineItemCreativeAssociation($lineItemId, $creativeId) { + $arg = new getLineItemCreativeAssociation($lineItemId, $creativeId); + $result = $this->__soapCall("getLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + */ + public function getLineItemCreativeAssociationsByStatement($filterStatement) { + $arg = new getLineItemCreativeAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + */ + public function getPreviewUrl($lineItemId, $creativeId, $siteUrl) { + $arg = new getPreviewUrl($lineItemId, $creativeId, $siteUrl); + $result = $this->__soapCall("getPreviewUrl", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + */ + public function performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement) { + $arg = new performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); + $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + */ + public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new updateLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("updateLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + */ + public function updateLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new updateLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("updateLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/LineItemService.php b/src/Google/Api/Ads/Dfp/v201302/LineItemService.php new file mode 100755 index 000000000..b1944a2c9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/LineItemService.php @@ -0,0 +1,9211 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemAction { + /** + * @access public + * @var string + */ + public $LineItemActionType; + + private $_parameterMap = array ( + "LineItemAction.Type" => "LineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemAction"; + } + + public function __construct($LineItemActionType = NULL) { + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemPage", FALSE)) { +/** + * Captures a page of {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItem[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseLineItems", FALSE)) { +/** + * The action used for pausing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PauseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ReleaseLineItems", FALSE)) { +/** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReleaseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReleaseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ReserveLineItems", FALSE)) { +/** + * The action used for reserving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReserveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ResumeLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveLineItems", FALSE)) { +/** + * The action used for unarchiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UnarchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var tnsVideoPodPositionType + */ + public $videoPodPositionType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPodPositionType = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPodPositionType = $videoPodPositionType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPodPositionType", FALSE)) { +/** + * Represents the options for targetable pod positions, which are the positions + * within a pod (or group) of ads, within a video stream. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPodPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPodPositionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItem", FALSE)) { +/** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("createLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItems", FALSE)) { +/** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("createLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItem", FALSE)) { +/** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLineItem { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemsByStatement", FALSE)) { +/** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getLineItemsByStatementResponse { + /** + * @access public + * @var LineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemAction", FALSE)) { +/** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performLineItemAction { + /** + * @access public + * @var LineItemAction + */ + public $lineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemAction = NULL, $filterStatement = NULL) { + $this->lineItemAction = $lineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItem", FALSE)) { +/** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("updateLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItems", FALSE)) { +/** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("updateLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItems", FALSE)) { +/** + * The action used for activating {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveLineItems", FALSE)) { +/** + * The action used for archiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ArchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteLineItems", FALSE)) { +/** + * The action used for deleting {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeleteLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("ReserveAndOverbookLineItems", FALSE)) { +/** + * The action used for reserving and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveAndOverbookLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("LineItemService", FALSE)) { +/** + * LineItemService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class LineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItems" => "ActivateLineItems", + "LineItemAction" => "LineItemAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveLineItems" => "ArchiveLineItems", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeleteLineItems" => "DeleteLineItems", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemPage" => "LineItemPage", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PauseLineItems" => "PauseLineItems", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "ReleaseLineItems" => "ReleaseLineItems", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", + "ReserveLineItems" => "ReserveLineItems", + "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", + "ResumeLineItems" => "ResumeLineItems", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UnarchiveLineItems" => "UnarchiveLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPodPositionType" => "VideoPodPositionType", + "VideoPosition.Type" => "VideoPositionType", + "createLineItem" => "createLineItem", + "createLineItemResponse" => "createLineItemResponse", + "createLineItems" => "createLineItems", + "createLineItemsResponse" => "createLineItemsResponse", + "getLineItem" => "getLineItem", + "getLineItemResponse" => "getLineItemResponse", + "getLineItemsByStatement" => "getLineItemsByStatement", + "getLineItemsByStatementResponse" => "getLineItemsByStatementResponse", + "performLineItemAction" => "performLineItemAction", + "performLineItemActionResponse" => "performLineItemActionResponse", + "updateLineItem" => "updateLineItem", + "updateLineItemResponse" => "updateLineItemResponse", + "updateLineItems" => "updateLineItems", + "updateLineItemsResponse" => "updateLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/LineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + */ + public function createLineItem($lineItem) { + $arg = new createLineItem($lineItem); + $result = $this->__soapCall("createLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + */ + public function createLineItems($lineItems) { + $arg = new createLineItems($lineItems); + $result = $this->__soapCall("createLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + */ + public function getLineItem($lineItemId) { + $arg = new getLineItem($lineItemId); + $result = $this->__soapCall("getLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + */ + public function getLineItemsByStatement($filterStatement) { + $arg = new getLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + */ + public function performLineItemAction($lineItemAction, $filterStatement) { + $arg = new performLineItemAction($lineItemAction, $filterStatement); + $result = $this->__soapCall("performLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + */ + public function updateLineItem($lineItem) { + $arg = new updateLineItem($lineItem); + $result = $this->__soapCall("updateLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + */ + public function updateLineItems($lineItems) { + $arg = new updateLineItems($lineItems); + $result = $this->__soapCall("updateLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/NetworkService.php b/src/Google/Api/Ads/Dfp/v201302/NetworkService.php new file mode 100755 index 000000000..49fefb4e4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/NetworkService.php @@ -0,0 +1,2173 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("Network", FALSE)) { +/** + * {@code Network} represents a network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Network { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $propertyCode; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string + */ + public $effectiveRootAdUnitId; + + /** + * @access public + * @var integer + */ + public $contentBrowseCustomTargetingKeyId; + + /** + * @access public + * @var boolean + */ + public $isTest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Network"; + } + + public function __construct($id = NULL, $displayName = NULL, $networkCode = NULL, $propertyCode = NULL, $timeZone = NULL, $currencyCode = NULL, $effectiveRootAdUnitId = NULL, $contentBrowseCustomTargetingKeyId = NULL, $isTest = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->networkCode = $networkCode; + $this->propertyCode = $propertyCode; + $this->timeZone = $timeZone; + $this->currencyCode = $currencyCode; + $this->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworks", FALSE)) { +/** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAllNetworks { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworksResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAllNetworksResponse { + /** + * @access public + * @var Network[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentNetwork", FALSE)) { +/** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCurrentNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCurrentNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("makeTestNetwork", FALSE)) { +/** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class makeTestNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("makeTestNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class makeTestNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateNetwork", FALSE)) { +/** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateNetwork { + /** + * @access public + * @var Network + */ + public $network; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($network = NULL) { + $this->network = $network; + } +}} + +if (!class_exists("updateNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NetworkService", FALSE)) { +/** + * NetworkService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class NetworkService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "Network" => "Network", + "NotNullError" => "NotNullError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getAllNetworks" => "getAllNetworks", + "getAllNetworksResponse" => "getAllNetworksResponse", + "getCurrentNetwork" => "getCurrentNetwork", + "getCurrentNetworkResponse" => "getCurrentNetworkResponse", + "makeTestNetwork" => "makeTestNetwork", + "makeTestNetworkResponse" => "makeTestNetworkResponse", + "updateNetwork" => "updateNetwork", + "updateNetworkResponse" => "updateNetworkResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/NetworkService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = NetworkService::$classmap; + parent::__construct($wsdl, $options, $user, 'NetworkService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + */ + public function getAllNetworks() { + $arg = new getAllNetworks(); + $result = $this->__soapCall("getAllNetworks", array($arg)); + return $result->rval; + } + + + /** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + */ + public function getCurrentNetwork() { + $arg = new getCurrentNetwork(); + $result = $this->__soapCall("getCurrentNetwork", array($arg)); + return $result->rval; + } + + + /** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + */ + public function makeTestNetwork() { + $arg = new makeTestNetwork(); + $result = $this->__soapCall("makeTestNetwork", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + */ + public function updateNetwork($network) { + $arg = new updateNetwork($network); + $result = $this->__soapCall("updateNetwork", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/OrderService.php b/src/Google/Api/Ads/Dfp/v201302/OrderService.php new file mode 100755 index 000000000..ac3781448 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/OrderService.php @@ -0,0 +1,4903 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderAction { + /** + * @access public + * @var string + */ + public $OrderActionType; + + private $_parameterMap = array ( + "OrderAction.Type" => "OrderActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderAction"; + } + + public function __construct($OrderActionType = NULL) { + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("Order", FALSE)) { +/** + * An {@code Order} represents a grouping of individual {@link LineItem} + * objects, each of which fulfill an ad request from a particular advertiser. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Order { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsOrderStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var integer + */ + public $externalOrderId; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer[] + */ + public $advertiserContactIds; + + /** + * @access public + * @var integer + */ + public $agencyId; + + /** + * @access public + * @var integer[] + */ + public $agencyContactIds; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var integer + */ + public $traffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer + */ + public $salespersonId; + + /** + * @access public + * @var integer[] + */ + public $secondarySalespersonIds; + + /** + * @access public + * @var integer + */ + public $totalImpressionsDelivered; + + /** + * @access public + * @var integer + */ + public $totalClicksDelivered; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Order"; + } + + public function __construct($id = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $isArchived = NULL, $notes = NULL, $externalOrderId = NULL, $poNumber = NULL, $currencyCode = NULL, $advertiserId = NULL, $advertiserContactIds = NULL, $agencyId = NULL, $agencyContactIds = NULL, $creatorId = NULL, $traffickerId = NULL, $secondaryTraffickerIds = NULL, $salespersonId = NULL, $secondarySalespersonIds = NULL, $totalImpressionsDelivered = NULL, $totalClicksDelivered = NULL, $totalBudget = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $lastModifiedByApp = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->notes = $notes; + $this->externalOrderId = $externalOrderId; + $this->poNumber = $poNumber; + $this->currencyCode = $currencyCode; + $this->advertiserId = $advertiserId; + $this->advertiserContactIds = $advertiserContactIds; + $this->agencyId = $agencyId; + $this->agencyContactIds = $agencyContactIds; + $this->creatorId = $creatorId; + $this->traffickerId = $traffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->salespersonId = $salespersonId; + $this->secondarySalespersonIds = $secondarySalespersonIds; + $this->totalImpressionsDelivered = $totalImpressionsDelivered; + $this->totalClicksDelivered = $totalClicksDelivered; + $this->totalBudget = $totalBudget; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("OrderPage", FALSE)) { +/** + * Captures a page of {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Order[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseOrders", FALSE)) { +/** + * The action used for pausing {@link Order} objects. All {@link LineItem} + * objects within the order will be paused as well. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PauseOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ResumeOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RetractOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for retracting {@link Order} objects. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitOrdersForApproval", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SubmitOrdersForApproval extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApproval"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalAndOverbook"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalWithoutReservationChanges", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. This + * action does not make any changes to the {@link LineItem#reservationStatus} + * of the line items within the order. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveOrders", FALSE)) { +/** + * The action used for unarchiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UnarchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderStatus", FALSE)) { +/** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createOrder", FALSE)) { +/** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("createOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createOrders", FALSE)) { +/** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("createOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrder", FALSE)) { +/** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getOrder { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderId = NULL) { + $this->orderId = $orderId; + } +}} + +if (!class_exists("getOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrdersByStatement", FALSE)) { +/** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getOrdersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getOrdersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getOrdersByStatementResponse { + /** + * @access public + * @var OrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performOrderAction", FALSE)) { +/** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performOrderAction { + /** + * @access public + * @var OrderAction + */ + public $orderAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderAction = NULL, $filterStatement = NULL) { + $this->orderAction = $orderAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performOrderActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performOrderActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrder", FALSE)) { +/** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("updateOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrders", FALSE)) { +/** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("updateOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveOrders", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ApproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line + * items within the order. If there are reservable line items that have not + * been reserved the operation will not succeed. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ArchiveOrders", FALSE)) { +/** + * The action used for archiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ArchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteOrders", FALSE)) { +/** + * The action used for deleting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeleteOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrders", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DisapproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ResumeAndOverbookOrders", FALSE)) { +/** + * The action used for resuming and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApproveAndOverbookOrders", FALSE)) { +/** + * The action used for approving and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveAndOverbookOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class OrderService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", + "ApproveOrders" => "ApproveOrders", + "OrderAction" => "OrderAction", + "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", + "ArchiveOrders" => "ArchiveOrders", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "Order" => "Order", + "OrderError" => "OrderError", + "OrderPage" => "OrderPage", + "ParseError" => "ParseError", + "PauseOrders" => "PauseOrders", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "OrderStatus" => "OrderStatus", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createOrder" => "createOrder", + "createOrderResponse" => "createOrderResponse", + "createOrders" => "createOrders", + "createOrdersResponse" => "createOrdersResponse", + "getOrder" => "getOrder", + "getOrderResponse" => "getOrderResponse", + "getOrdersByStatement" => "getOrdersByStatement", + "getOrdersByStatementResponse" => "getOrdersByStatementResponse", + "performOrderAction" => "performOrderAction", + "performOrderActionResponse" => "performOrderActionResponse", + "updateOrder" => "updateOrder", + "updateOrderResponse" => "updateOrderResponse", + "updateOrders" => "updateOrders", + "updateOrdersResponse" => "updateOrdersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/OrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = OrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'OrderService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + */ + public function createOrder($order) { + $arg = new createOrder($order); + $result = $this->__soapCall("createOrder", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + */ + public function createOrders($orders) { + $arg = new createOrders($orders); + $result = $this->__soapCall("createOrders", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + */ + public function getOrder($orderId) { + $arg = new getOrder($orderId); + $result = $this->__soapCall("getOrder", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + */ + public function getOrdersByStatement($filterStatement) { + $arg = new getOrdersByStatement($filterStatement); + $result = $this->__soapCall("getOrdersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + */ + public function performOrderAction($orderAction, $filterStatement) { + $arg = new performOrderAction($orderAction, $filterStatement); + $result = $this->__soapCall("performOrderAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + */ + public function updateOrder($order) { + $arg = new updateOrder($order); + $result = $this->__soapCall("updateOrder", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + */ + public function updateOrders($orders) { + $arg = new updateOrders($orders); + $result = $this->__soapCall("updateOrders", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/PlacementService.php b/src/Google/Api/Ads/Dfp/v201302/PlacementService.php new file mode 100755 index 000000000..7eaa1c3fb --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/PlacementService.php @@ -0,0 +1,3588 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PlacementAction { + /** + * @access public + * @var string + */ + public $PlacementActionType; + + private $_parameterMap = array ( + "PlacementAction.Type" => "PlacementActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAction"; + } + + public function __construct($PlacementActionType = NULL) { + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PlacementPage", FALSE)) { +/** + * Captures a page of {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PlacementPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Placement[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("SiteTargetingInfo", FALSE)) { +/** + * Contains information required for AdWords advertisers to place their ads. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SiteTargetingInfo { + /** + * @access public + * @var string + */ + public $targetingDescription; + + /** + * @access public + * @var string + */ + public $targetingSiteName; + + /** + * @access public + * @var string + */ + public $targetingAdLocation; + + /** + * @access public + * @var string + */ + public $SiteTargetingInfoType; + + private $_parameterMap = array ( + "SiteTargetingInfo.Type" => "SiteTargetingInfoType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteTargetingInfo"; + } + + public function __construct($targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createPlacement", FALSE)) { +/** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createPlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("createPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createPlacements", FALSE)) { +/** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createPlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("createPlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createPlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacement", FALSE)) { +/** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getPlacement { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementId = NULL) { + $this->placementId = $placementId; + } +}} + +if (!class_exists("getPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacementsByStatement", FALSE)) { +/** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getPlacementsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getPlacementsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getPlacementsByStatementResponse { + /** + * @access public + * @var PlacementPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performPlacementAction", FALSE)) { +/** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performPlacementAction { + /** + * @access public + * @var PlacementAction + */ + public $placementAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementAction = NULL, $filterStatement = NULL) { + $this->placementAction = $placementAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performPlacementActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performPlacementActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacement", FALSE)) { +/** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updatePlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("updatePlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updatePlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacements", FALSE)) { +/** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updatePlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("updatePlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updatePlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivatePlacements", FALSE)) { +/** + * The action used for activating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchivePlacements", FALSE)) { +/** + * The action used for archiving {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ArchivePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchivePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A {@code Placement} groups related {@code AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Placement extends SiteTargetingInfo { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $placementCode; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isAdSenseTargetingEnabled; + + /** + * @access public + * @var boolean + */ + public $isAdPlannerTargetingEnabled; + + /** + * @access public + * @var string + */ + public $adSenseTargetingLocale; + + /** + * @access public + * @var string[] + */ + public $targetedAdUnitIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $placementCode = NULL, $status = NULL, $isAdSenseTargetingEnabled = NULL, $isAdPlannerTargetingEnabled = NULL, $adSenseTargetingLocale = NULL, $targetedAdUnitIds = NULL, $lastModifiedDateTime = NULL, $targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->placementCode = $placementCode; + $this->status = $status; + $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; + $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; + $this->adSenseTargetingLocale = $adSenseTargetingLocale; + $this->targetedAdUnitIds = $targetedAdUnitIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PlacementService", FALSE)) { +/** + * PlacementService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class PlacementService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivatePlacements" => "ActivatePlacements", + "PlacementAction" => "PlacementAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchivePlacements" => "ArchivePlacements", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivatePlacements" => "DeactivatePlacements", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "Placement" => "Placement", + "SiteTargetingInfo" => "SiteTargetingInfo", + "PlacementError" => "PlacementError", + "PlacementPage" => "PlacementPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryStatus" => "InventoryStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createPlacement" => "createPlacement", + "createPlacementResponse" => "createPlacementResponse", + "createPlacements" => "createPlacements", + "createPlacementsResponse" => "createPlacementsResponse", + "getPlacement" => "getPlacement", + "getPlacementResponse" => "getPlacementResponse", + "getPlacementsByStatement" => "getPlacementsByStatement", + "getPlacementsByStatementResponse" => "getPlacementsByStatementResponse", + "performPlacementAction" => "performPlacementAction", + "performPlacementActionResponse" => "performPlacementActionResponse", + "updatePlacement" => "updatePlacement", + "updatePlacementResponse" => "updatePlacementResponse", + "updatePlacements" => "updatePlacements", + "updatePlacementsResponse" => "updatePlacementsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/PlacementService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PlacementService::$classmap; + parent::__construct($wsdl, $options, $user, 'PlacementService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + */ + public function createPlacement($placement) { + $arg = new createPlacement($placement); + $result = $this->__soapCall("createPlacement", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + */ + public function createPlacements($placements) { + $arg = new createPlacements($placements); + $result = $this->__soapCall("createPlacements", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + */ + public function getPlacement($placementId) { + $arg = new getPlacement($placementId); + $result = $this->__soapCall("getPlacement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + */ + public function getPlacementsByStatement($filterStatement) { + $arg = new getPlacementsByStatement($filterStatement); + $result = $this->__soapCall("getPlacementsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + */ + public function performPlacementAction($placementAction, $filterStatement) { + $arg = new performPlacementAction($placementAction, $filterStatement); + $result = $this->__soapCall("performPlacementAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + */ + public function updatePlacement($placement) { + $arg = new updatePlacement($placement); + $result = $this->__soapCall("updatePlacement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + */ + public function updatePlacements($placements) { + $arg = new updatePlacements($placements); + $result = $this->__soapCall("updatePlacements", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201302/PublisherQueryLanguageService.php new file mode 100755 index 000000000..958b34dd3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/PublisherQueryLanguageService.php @@ -0,0 +1,3560 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ColumnType", FALSE)) { +/** + * Contains information about a column in a {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ColumnType { + /** + * @access public + * @var string + */ + public $labelName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ColumnType"; + } + + public function __construct($labelName = NULL) { + $this->labelName = $labelName; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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)) { +/** + * Caused by supplying a non-null value for an attribute that should be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ResultSet", FALSE)) { +/** + * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link + * Statement}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ResultSet { + /** + * @access public + * @var ColumnType[] + */ + public $columnTypes; + + /** + * @access public + * @var Row[] + */ + public $rows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResultSet"; + } + + public function __construct($columnTypes = NULL, $rows = NULL) { + $this->columnTypes = $columnTypes; + $this->rows = $rows; + } +}} + +if (!class_exists("Row", FALSE)) { +/** + * Each {@link Row} object represents data about one entity in a + * {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Row { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Row"; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("select", FALSE)) { +/** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class select { + /** + * @access public + * @var Statement + */ + public $selectStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selectStatement = NULL) { + $this->selectStatement = $selectStatement; + } +}} + +if (!class_exists("selectResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class selectResponse { + /** + * @access public + * @var ResultSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PublisherQueryLanguageService", FALSE)) { +/** + * PublisherQueryLanguageService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class PublisherQueryLanguageService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "ColumnType" => "ColumnType", + "CommonError" => "CommonError", + "CreativeError" => "CreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResultSet" => "ResultSet", + "Row" => "Row", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "select" => "select", + "selectResponse" => "selectResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/PublisherQueryLanguageService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PublisherQueryLanguageService::$classmap; + parent::__construct($wsdl, $options, $user, 'PublisherQueryLanguageService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + */ + public function select($selectStatement) { + $arg = new select($selectStatement); + $result = $this->__soapCall("select", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ReportService.php b/src/Google/Api/Ads/Dfp/v201302/ReportService.php new file mode 100755 index 000000000..04e8e1496 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ReportService.php @@ -0,0 +1,2812 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ReportDownloadOptions", FALSE)) { +/** + * Represents the options for an API report download request. + * See {@link ReportService#getReportDownloadUrlWithOptions}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReportDownloadOptions { + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * @access public + * @var boolean + */ + public $includeReportProperties; + + /** + * @access public + * @var boolean + */ + public $includeTotalsRow; + + /** + * @access public + * @var boolean + */ + public $useGzipCompression; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDownloadOptions"; + } + + public function __construct($exportFormat = NULL, $includeReportProperties = NULL, $includeTotalsRow = NULL, $useGzipCompression = NULL) { + $this->exportFormat = $exportFormat; + $this->includeReportProperties = $includeReportProperties; + $this->includeTotalsRow = $includeTotalsRow; + $this->useGzipCompression = $useGzipCompression; + } +}} + +if (!class_exists("ReportError", FALSE)) { +/** + * An error for an exception that occurred while running the report. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReportError extends ApiError { + /** + * @access public + * @var tnsReportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError"; + } + + 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("ReportJob", FALSE)) { +/** + * Represents a report job that will be run to retrieve performance and + * statistics information about ad campaigns, networks, inventory and sales. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReportJob { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var ReportQuery + */ + public $reportQuery; + + /** + * @access public + * @var tnsReportJobStatus + */ + public $reportJobStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJob"; + } + + public function __construct($id = NULL, $reportQuery = NULL, $reportJobStatus = NULL) { + $this->id = $id; + $this->reportQuery = $reportQuery; + $this->reportJobStatus = $reportJobStatus; + } +}} + +if (!class_exists("ReportQuery", FALSE)) { +/** + * A {@code ReportQuery} object allows you to specify the selection criteria for + * generating a report. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReportQuery { + /** + * @access public + * @var tnsDimension[] + */ + public $dimensions; + + /** + * @access public + * @var tnsReportQueryAdUnitView + */ + public $adUnitView; + + /** + * @access public + * @var tnsColumn[] + */ + public $columns; + + /** + * @access public + * @var tnsDimensionAttribute[] + */ + public $dimensionAttributes; + + /** + * @access public + * @var integer[] + */ + public $customFieldIds; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var Date + */ + public $endDate; + + /** + * @access public + * @var tnsDateRangeType + */ + public $dateRangeType; + + /** + * @access public + * @var tnsDimensionFilter[] + */ + public $dimensionFilters; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery"; + } + + public function __construct($dimensions = NULL, $adUnitView = NULL, $columns = NULL, $dimensionAttributes = NULL, $customFieldIds = NULL, $startDate = NULL, $endDate = NULL, $dateRangeType = NULL, $dimensionFilters = NULL, $statement = NULL) { + $this->dimensions = $dimensions; + $this->adUnitView = $adUnitView; + $this->columns = $columns; + $this->dimensionAttributes = $dimensionAttributes; + $this->customFieldIds = $customFieldIds; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->dateRangeType = $dateRangeType; + $this->dimensionFilters = $dimensionFilters; + $this->statement = $statement; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportQueryAdUnitView", FALSE)) { +/** + * A view for an ad unit report. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReportQueryAdUnitView { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery.AdUnitView"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Column", FALSE)) { +/** + * {@code Column} provides all the trafficking statistics and revenue + * information available for the chosen {@link Dimension} objects. + *

      + * Columns with {@code INVENTORY_LEVEL} should not be used with dimensions + * relating to line items, orders, companies and creatives, such as {@link Dimension#LINE_ITEM}. + * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level + * dynamic allocation enabled on your network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Column { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Column"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateRangeType", FALSE)) { +/** + * Represents a period of time. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Dimension", FALSE)) { +/** + * {@code Dimension} provides the break-down and filterable types available for + * running a {@link ReportJob}. Aggregate and percentage columns will be + * calculated based on these groupings. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Dimension { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimension"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionAttribute", FALSE)) { +/** + * {@code DimensionAttribute} provides additional fields associated with a + * {@link Dimension}. It can only be selected with its corresponding + * {@link Dimension}. For example, {@link DimensionAttribute#ORDER_PO_NUMBER} + * can only be used if the {@link ReportQuery#dimensions} contains + * {@link Dimension#ORDER_NAME}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DimensionAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionFilter", FALSE)) { +/** + * {@code DimensionFilter} filters the data used during report creation. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DimensionFilter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionFilter"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExportFormat", FALSE)) { +/** + * The file formats available for creating the report. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ExportFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExportFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportErrorReason", FALSE)) { +/** + * Default {@code ReportError} when the reason is not among any already + * defined. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportJobStatus", FALSE)) { +/** + * Represents the status of a {@link ReportJob} running on the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ReportJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportDownloadURL", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getReportDownloadURL { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $exportFormat = NULL) { + $this->reportJobId = $reportJobId; + $this->exportFormat = $exportFormat; + } +}} + +if (!class_exists("getReportDownloadURLResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getReportDownloadURLResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptions", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getReportDownloadUrlWithOptions { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var ReportDownloadOptions + */ + public $reportDownloadOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $reportDownloadOptions = NULL) { + $this->reportJobId = $reportJobId; + $this->reportDownloadOptions = $reportDownloadOptions; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getReportDownloadUrlWithOptionsResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportJob", FALSE)) { +/** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getReportJob { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL) { + $this->reportJobId = $reportJobId; + } +}} + +if (!class_exists("getReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("runReportJob", FALSE)) { +/** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class runReportJob { + /** + * @access public + * @var ReportJob + */ + public $reportJob; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJob = NULL) { + $this->reportJob = $reportJob; + } +}} + +if (!class_exists("runReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class runReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportService", FALSE)) { +/** + * ReportService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class ReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ReportDownloadOptions" => "ReportDownloadOptions", + "ReportError" => "ReportError", + "ReportJob" => "ReportJob", + "ReportQuery" => "ReportQuery", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "Column" => "Column", + "CommonError.Reason" => "CommonErrorReason", + "DateRangeType" => "DateRangeType", + "Dimension" => "Dimension", + "DimensionAttribute" => "DimensionAttribute", + "DimensionFilter" => "DimensionFilter", + "ExportFormat" => "ExportFormat", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ReportError.Reason" => "ReportErrorReason", + "ReportJobStatus" => "ReportJobStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReportDownloadURL" => "getReportDownloadURL", + "getReportDownloadURLResponse" => "getReportDownloadURLResponse", + "getReportDownloadUrlWithOptions" => "getReportDownloadUrlWithOptions", + "getReportDownloadUrlWithOptionsResponse" => "getReportDownloadUrlWithOptionsResponse", + "getReportJob" => "getReportJob", + "getReportJobResponse" => "getReportJobResponse", + "runReportJob" => "runReportJob", + "runReportJobResponse" => "runReportJobResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + */ + public function getReportDownloadURL($reportJobId, $exportFormat) { + $arg = new getReportDownloadURL($reportJobId, $exportFormat); + $result = $this->__soapCall("getReportDownloadURL", array($arg)); + return $result->rval; + } + + + /** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + */ + public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions) { + $arg = new getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); + $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + */ + public function getReportJob($reportJobId) { + $arg = new getReportJob($reportJobId); + $result = $this->__soapCall("getReportJob", array($arg)); + return $result->rval; + } + + + /** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + */ + public function runReportJob($reportJob) { + $arg = new runReportJob($reportJob); + $result = $this->__soapCall("runReportJob", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201302/SuggestedAdUnitService.php new file mode 100755 index 000000000..ff3c3df2e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/SuggestedAdUnitService.php @@ -0,0 +1,2891 @@ +id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SuggestedAdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SuggestedAdUnitAction { + /** + * @access public + * @var string + */ + public $SuggestedAdUnitActionType; + + private $_parameterMap = array ( + "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitAction"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("SuggestedAdUnit", FALSE)) { +/** + * A {@code SuggestedAdUnit} represents a suggestion for a new ad unit, based on an ad tag that has + * been served at least ten times in the past week, but which does not correspond to a defined ad + * unit. This type is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SuggestedAdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var integer + */ + public $numRequests; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var AdUnitSize[] + */ + public $suggestedAdUnitSizes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnit"; + } + + public function __construct($id = NULL, $numRequests = NULL, $path = NULL, $parentPath = NULL, $targetWindow = NULL, $targetPlatform = NULL, $suggestedAdUnitSizes = NULL) { + $this->id = $id; + $this->numRequests = $numRequests; + $this->path = $path; + $this->parentPath = $parentPath; + $this->targetWindow = $targetWindow; + $this->targetPlatform = $targetPlatform; + $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; + } +}} + +if (!class_exists("SuggestedAdUnitPage", FALSE)) { +/** + * Contains a page of {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SuggestedAdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var SuggestedAdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("SuggestedAdUnitUpdateResult", FALSE)) { +/** + * Represents the result of performing an action on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SuggestedAdUnitUpdateResult { + /** + * @access public + * @var string[] + */ + public $newAdUnitIds; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitUpdateResult"; + } + + public function __construct($newAdUnitIds = NULL, $numChanges = NULL) { + $this->newAdUnitIds = $newAdUnitIds; + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("getSuggestedAdUnit", FALSE)) { +/** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getSuggestedAdUnit { + /** + * @access public + * @var string + */ + public $suggestedAdUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitId = NULL) { + $this->suggestedAdUnitId = $suggestedAdUnitId; + } +}} + +if (!class_exists("getSuggestedAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getSuggestedAdUnitResponse { + /** + * @access public + * @var SuggestedAdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getSuggestedAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getSuggestedAdUnitsByStatementResponse { + /** + * @access public + * @var SuggestedAdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performSuggestedAdUnitAction", FALSE)) { +/** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performSuggestedAdUnitAction { + /** + * @access public + * @var SuggestedAdUnitAction + */ + public $suggestedAdUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitAction = NULL, $filterStatement = NULL) { + $this->suggestedAdUnitAction = $suggestedAdUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performSuggestedAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performSuggestedAdUnitActionResponse { + /** + * @access public + * @var SuggestedAdUnitUpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveSuggestedAdUnit", FALSE)) { +/** + * Action to approve {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveSuggestedAdUnit"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + parent::__construct(); + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SuggestedAdUnitService", FALSE)) { +/** + * SuggestedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class SuggestedAdUnitService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitParent" => "AdUnitParent", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", + "SuggestedAdUnitAction" => "SuggestedAdUnitAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SuggestedAdUnit" => "SuggestedAdUnit", + "SuggestedAdUnitPage" => "SuggestedAdUnitPage", + "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TargetPlatform" => "TargetPlatform", + "getSuggestedAdUnit" => "getSuggestedAdUnit", + "getSuggestedAdUnitResponse" => "getSuggestedAdUnitResponse", + "getSuggestedAdUnitsByStatement" => "getSuggestedAdUnitsByStatement", + "getSuggestedAdUnitsByStatementResponse" => "getSuggestedAdUnitsByStatementResponse", + "performSuggestedAdUnitAction" => "performSuggestedAdUnitAction", + "performSuggestedAdUnitActionResponse" => "performSuggestedAdUnitActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/SuggestedAdUnitService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SuggestedAdUnitService::$classmap; + parent::__construct($wsdl, $options, $user, 'SuggestedAdUnitService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + */ + public function getSuggestedAdUnit($suggestedAdUnitId) { + $arg = new getSuggestedAdUnit($suggestedAdUnitId); + $result = $this->__soapCall("getSuggestedAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + */ + public function getSuggestedAdUnitsByStatement($filterStatement) { + $arg = new getSuggestedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + */ + public function performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement) { + $arg = new performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSuggestedAdUnitAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/TeamService.php b/src/Google/Api/Ads/Dfp/v201302/TeamService.php new file mode 100755 index 000000000..273666a80 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/TeamService.php @@ -0,0 +1,2791 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Team", FALSE)) { +/** + * A {@code Team} defines a grouping of users and what entities they have access + * to. Users are added to teams with {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Team { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $hasAllCompanies; + + /** + * @access public + * @var boolean + */ + public $hasAllInventory; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $teamAccessType; + + /** + * @access public + * @var integer[] + */ + public $companyIds; + + /** + * @access public + * @var string[] + */ + public $adUnitIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Team"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $hasAllCompanies = NULL, $hasAllInventory = NULL, $teamAccessType = NULL, $companyIds = NULL, $adUnitIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->hasAllCompanies = $hasAllCompanies; + $this->hasAllInventory = $hasAllInventory; + $this->teamAccessType = $teamAccessType; + $this->companyIds = $companyIds; + $this->adUnitIds = $adUnitIds; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TeamPage", FALSE)) { +/** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Team[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createTeam", FALSE)) { +/** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("createTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createTeams", FALSE)) { +/** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("createTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeam", FALSE)) { +/** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getTeam { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL) { + $this->teamId = $teamId; + } +}} + +if (!class_exists("getTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeamsByStatement", FALSE)) { +/** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getTeamsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getTeamsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getTeamsByStatementResponse { + /** + * @access public + * @var TeamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeam", FALSE)) { +/** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("updateTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeams", FALSE)) { +/** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("updateTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TeamService", FALSE)) { +/** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class TeamService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Team" => "Team", + "TeamError" => "TeamError", + "TeamPage" => "TeamPage", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "TeamError.Reason" => "TeamErrorReason", + "createTeam" => "createTeam", + "createTeamResponse" => "createTeamResponse", + "createTeams" => "createTeams", + "createTeamsResponse" => "createTeamsResponse", + "getTeam" => "getTeam", + "getTeamResponse" => "getTeamResponse", + "getTeamsByStatement" => "getTeamsByStatement", + "getTeamsByStatementResponse" => "getTeamsByStatementResponse", + "updateTeam" => "updateTeam", + "updateTeamResponse" => "updateTeamResponse", + "updateTeams" => "updateTeams", + "updateTeamsResponse" => "updateTeamsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/TeamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TeamService::$classmap; + parent::__construct($wsdl, $options, $user, 'TeamService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + */ + public function createTeam($team) { + $arg = new createTeam($team); + $result = $this->__soapCall("createTeam", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + */ + public function createTeams($teams) { + $arg = new createTeams($teams); + $result = $this->__soapCall("createTeams", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + */ + public function getTeam($teamId) { + $arg = new getTeam($teamId); + $result = $this->__soapCall("getTeam", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + */ + public function getTeamsByStatement($filterStatement) { + $arg = new getTeamsByStatement($filterStatement); + $result = $this->__soapCall("getTeamsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + */ + public function updateTeam($team) { + $arg = new updateTeam($team); + $result = $this->__soapCall("updateTeam", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + */ + public function updateTeams($teams) { + $arg = new updateTeams($teams); + $result = $this->__soapCall("updateTeams", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/ThirdPartySlotService.php b/src/Google/Api/Ads/Dfp/v201302/ThirdPartySlotService.php new file mode 100755 index 000000000..a62afb507 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/ThirdPartySlotService.php @@ -0,0 +1,2713 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("ThirdPartySlotAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlotAction { + /** + * @access public + * @var string + */ + public $ThirdPartySlotActionType; + + private $_parameterMap = array ( + "ThirdPartySlotAction.Type" => "ThirdPartySlotActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlotAction"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("ThirdPartySlot", FALSE)) { +/** + * A {@code ThirdPartySlot} represents how third-party creatives are + * uniquely identified in a third-party ad network, yield manager, or + * ad exchange's system. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlot { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer[] + */ + public $creativeIds; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var string + */ + public $externalUniqueId; + + /** + * @access public + * @var string + */ + public $externalUniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsThirdPartySlotStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlot"; + } + + public function __construct($id = NULL, $creativeIds = NULL, $companyId = NULL, $externalUniqueId = NULL, $externalUniqueName = NULL, $description = NULL, $status = NULL) { + $this->id = $id; + $this->creativeIds = $creativeIds; + $this->companyId = $companyId; + $this->externalUniqueId = $externalUniqueId; + $this->externalUniqueName = $externalUniqueName; + $this->description = $description; + $this->status = $status; + } +}} + +if (!class_exists("ThirdPartySlotPage", FALSE)) { +/** + * Captures a page of {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlotPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ThirdPartySlot[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlotPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartySlotStatus", FALSE)) { +/** + * The status of a {@code ThirdPartySlot}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ThirdPartySlotStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartySlot.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("createThirdPartySlot", FALSE)) { +/** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createThirdPartySlot { + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlot = NULL) { + $this->thirdPartySlot = $thirdPartySlot; + } +}} + +if (!class_exists("createThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createThirdPartySlotResponse { + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getThirdPartySlotsByStatement", FALSE)) { +/** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getThirdPartySlotsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getThirdPartySlotsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getThirdPartySlotsByStatementResponse { + /** + * @access public + * @var ThirdPartySlotPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performThirdPartySlotAction", FALSE)) { +/** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performThirdPartySlotAction { + /** + * @access public + * @var ThirdPartySlotAction + */ + public $thirdPartySlotAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlotAction = NULL, $filterStatement = NULL) { + $this->thirdPartySlotAction = $thirdPartySlotAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performThirdPartySlotActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performThirdPartySlotActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateThirdPartySlot", FALSE)) { +/** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateThirdPartySlot { + /** + * @access public + * @var ThirdPartySlot + */ + public $thirdPartySlot; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($thirdPartySlot = NULL) { + $this->thirdPartySlot = $thirdPartySlot; + } +}} + +if (!class_exists("updateThirdPartySlotResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateThirdPartySlotResponse { + /** + * @access public + * @var ThirdPartySlot + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateThirdPartySlots", FALSE)) { +/** + * Action to activate {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateThirdPartySlots extends ThirdPartySlotAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateThirdPartySlots"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveThirdPartySlots", FALSE)) { +/** + * Action to archive {@link ThirdPartySlot} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ArchiveThirdPartySlots extends ThirdPartySlotAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveThirdPartySlots"; + } + + public function __construct($ThirdPartySlotActionType = NULL) { + parent::__construct(); + $this->ThirdPartySlotActionType = $ThirdPartySlotActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ThirdPartySlotService", FALSE)) { +/** + * ThirdPartySlotService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class ThirdPartySlotService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateThirdPartySlots" => "ActivateThirdPartySlots", + "ThirdPartySlotAction" => "ThirdPartySlotAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchiveThirdPartySlots" => "ArchiveThirdPartySlots", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ThirdPartySlot" => "ThirdPartySlot", + "ThirdPartySlotPage" => "ThirdPartySlotPage", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ThirdPartySlot.Status" => "ThirdPartySlotStatus", + "createThirdPartySlot" => "createThirdPartySlot", + "createThirdPartySlotResponse" => "createThirdPartySlotResponse", + "getThirdPartySlotsByStatement" => "getThirdPartySlotsByStatement", + "getThirdPartySlotsByStatementResponse" => "getThirdPartySlotsByStatementResponse", + "performThirdPartySlotAction" => "performThirdPartySlotAction", + "performThirdPartySlotActionResponse" => "performThirdPartySlotActionResponse", + "updateThirdPartySlot" => "updateThirdPartySlot", + "updateThirdPartySlotResponse" => "updateThirdPartySlotResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/ThirdPartySlotService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ThirdPartySlotService::$classmap; + parent::__construct($wsdl, $options, $user, 'ThirdPartySlotService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link ThirdPartySlot}. + * + * The following fields are required: + *
        + *
      • {@link ThirdPartySlot#companyId}
      • + *
      • {@link ThirdPartySlot#externalUniqueId}
      • + *
      • {@link ThirdPartySlot#externalUniqueName}
      • + *
      • {@link ThirdPartySlot#description}
      • + *
      + * + * @param thirdPartySlot the third-party slot to create + * @return the new third-party slot with its ID filled in + */ + public function createThirdPartySlot($thirdPartySlot) { + $arg = new createThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("createThirdPartySlot", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ThirdPartySlotPage} of {@link ThirdPartySlot} objects that + * satisfy the filter query. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the third-party slots that match the given filter + */ + public function getThirdPartySlotsByStatement($filterStatement) { + $arg = new getThirdPartySlotsByStatement($filterStatement); + $result = $this->__soapCall("getThirdPartySlotsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ThirdPartySlot} objects that match the given + * {@link Statement#query}. + * + * @param thirdPartySlotAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of third-party slots + * @return the result of the action performed + */ + public function performThirdPartySlotAction($thirdPartySlotAction, $filterStatement) { + $arg = new performThirdPartySlotAction($thirdPartySlotAction, $filterStatement); + $result = $this->__soapCall("performThirdPartySlotAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ThirdPartySlot}. + * + * @param thirdPartySlot the third-party slot to update + * @return the updated third-party slot + */ + public function updateThirdPartySlot($thirdPartySlot) { + $arg = new updateThirdPartySlot($thirdPartySlot); + $result = $this->__soapCall("updateThirdPartySlot", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/UserService.php b/src/Google/Api/Ads/Dfp/v201302/UserService.php new file mode 100755 index 000000000..6b4f3a018 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/UserService.php @@ -0,0 +1,3629 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("Role", FALSE)) { +/** + * Each {@code Role} provides a user with permissions to perform specific + * operations in the system. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Role { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Role"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserAction { + /** + * @access public + * @var string + */ + public $UserActionType; + + private $_parameterMap = array ( + "UserAction.Type" => "UserActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserAction"; + } + + public function __construct($UserActionType = NULL) { + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("UserPage", FALSE)) { +/** + * Captures a page of {@link User} objects + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var User[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UserRecord", FALSE)) { +/** + * The {@code UserRecord} represents the base class from which a {@code User} is + * derived. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserRecord { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var integer + */ + public $roleId; + + /** + * @access public + * @var string + */ + public $roleName; + + /** + * @access public + * @var string + */ + public $preferredLocale; + + /** + * @access public + * @var string + */ + public $UserRecordType; + + private $_parameterMap = array ( + "UserRecord.Type" => "UserRecordType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecord"; + } + + public function __construct($id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUser", FALSE)) { +/** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("createUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUsers", FALSE)) { +/** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("createUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAllRoles", FALSE)) { +/** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAllRoles { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllRolesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getAllRolesResponse { + /** + * @access public + * @var Role[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentUser", FALSE)) { +/** + * Returns the current {@link User}. + * + * @return the current user + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCurrentUser { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getCurrentUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUser", FALSE)) { +/** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getUser { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userId = NULL) { + $this->userId = $userId; + } +}} + +if (!class_exists("getUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUsersByStatement", FALSE)) { +/** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getUsersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUsersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getUsersByStatementResponse { + /** + * @access public + * @var UserPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserAction", FALSE)) { +/** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performUserAction { + /** + * @access public + * @var UserAction + */ + public $userAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userAction = NULL, $filterStatement = NULL) { + $this->userAction = $userAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performUserActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performUserActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUser", FALSE)) { +/** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("updateUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUsers", FALSE)) { +/** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("updateUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateUsers", FALSE)) { +/** + * The action used for activating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ActivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeactivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("User", FALSE)) { +/** + * Represents a user of the system. + *

      + * Users may be assigned at most one {@link Role} per network. Each role + * provides a user with permissions to perform specific operations. Without a + * role, they will not be able to perform any actions. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class User extends UserRecord { + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $ordersUiLocalTimeZoneId; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "User"; + } + + public function __construct($isActive = NULL, $isEmailNotificationAllowed = NULL, $ordersUiLocalTimeZoneId = NULL, $customFieldValues = NULL, $id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $this->customFieldValues = $customFieldValues; + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("UserService", FALSE)) { +/** + * UserService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class UserService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateUsers" => "ActivateUsers", + "UserAction" => "UserAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeactivateUsers" => "DeactivateUsers", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "Role" => "Role", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "User" => "User", + "UserRecord" => "UserRecord", + "UserPage" => "UserPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createUser" => "createUser", + "createUserResponse" => "createUserResponse", + "createUsers" => "createUsers", + "createUsersResponse" => "createUsersResponse", + "getAllRoles" => "getAllRoles", + "getAllRolesResponse" => "getAllRolesResponse", + "getCurrentUser" => "getCurrentUser", + "getCurrentUserResponse" => "getCurrentUserResponse", + "getUser" => "getUser", + "getUserResponse" => "getUserResponse", + "getUsersByStatement" => "getUsersByStatement", + "getUsersByStatementResponse" => "getUsersByStatementResponse", + "performUserAction" => "performUserAction", + "performUserActionResponse" => "performUserActionResponse", + "updateUser" => "updateUser", + "updateUserResponse" => "updateUserResponse", + "updateUsers" => "updateUsers", + "updateUsersResponse" => "updateUsersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/UserService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + */ + public function createUser($user) { + $arg = new createUser($user); + $result = $this->__soapCall("createUser", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + */ + public function createUsers($users) { + $arg = new createUsers($users); + $result = $this->__soapCall("createUsers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + */ + public function getAllRoles() { + $arg = new getAllRoles(); + $result = $this->__soapCall("getAllRoles", array($arg)); + return $result->rval; + } + + + /** + * Returns the current {@link User}. + * + * @return the current user + */ + public function getCurrentUser() { + $arg = new getCurrentUser(); + $result = $this->__soapCall("getCurrentUser", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + */ + public function getUser($userId) { + $arg = new getUser($userId); + $result = $this->__soapCall("getUser", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + */ + public function getUsersByStatement($filterStatement) { + $arg = new getUsersByStatement($filterStatement); + $result = $this->__soapCall("getUsersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + */ + public function performUserAction($userAction, $filterStatement) { + $arg = new performUserAction($userAction, $filterStatement); + $result = $this->__soapCall("performUserAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + */ + public function updateUser($user) { + $arg = new updateUser($user); + $result = $this->__soapCall("updateUser", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + */ + public function updateUsers($users) { + $arg = new updateUsers($users); + $result = $this->__soapCall("updateUsers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201302/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201302/UserTeamAssociationService.php new file mode 100755 index 000000000..766493b77 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201302/UserTeamAssociationService.php @@ -0,0 +1,2863 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserRecordTeamAssociation", FALSE)) { +/** + * {@code UserRecordTeamAssociation} represents the association between a + * {@link UserRecord} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $overriddenTeamAccessType; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $defaultTeamAccessType; + + /** + * @access public + * @var string + */ + public $UserRecordTeamAssociationType; + + private $_parameterMap = array ( + "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecordTeamAssociation"; + } + + public function __construct($teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link UserTeamAssociation} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserTeamAssociationAction { + /** + * @access public + * @var string + */ + public $UserTeamAssociationActionType; + + private $_parameterMap = array ( + "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationAction"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("UserTeamAssociation", FALSE)) { +/** + * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} + * to provide the user access to the entities that belong to the team. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociation"; + } + + public function __construct($userId = NULL, $teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + parent::__construct(); + $this->userId = $userId; + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationPage", FALSE)) { +/** + * Captures a page of {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class UserTeamAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUserTeamAssociation", FALSE)) { +/** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("createUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUserTeamAssociations", FALSE)) { +/** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("createUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class createUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociation", FALSE)) { +/** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getUserTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL, $userId = NULL) { + $this->teamId = $teamId; + $this->userId = $userId; + } +}} + +if (!class_exists("getUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatement", FALSE)) { +/** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getUserTeamAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class getUserTeamAssociationsByStatementResponse { + /** + * @access public + * @var UserTeamAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserTeamAssociationAction", FALSE)) { +/** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performUserTeamAssociationAction { + /** + * @access public + * @var UserTeamAssociationAction + */ + public $userTeamAssociationAction; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociationAction = NULL, $statement = NULL) { + $this->userTeamAssociationAction = $userTeamAssociationAction; + $this->statement = $statement; + } +}} + +if (!class_exists("performUserTeamAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class performUserTeamAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociation", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("updateUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociations", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("updateUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class updateUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteUserTeamAssociations"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + parent::__construct(); + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201302 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201302"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("UserTeamAssociationService", FALSE)) { +/** + * UserTeamAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201302 + * @author WSDLInterpreter + */ +class UserTeamAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", + "UserTeamAssociationAction" => "UserTeamAssociationAction", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "UserRecordTeamAssociation" => "UserRecordTeamAssociation", + "UserTeamAssociation" => "UserTeamAssociation", + "UserTeamAssociationPage" => "UserTeamAssociationPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "createUserTeamAssociation" => "createUserTeamAssociation", + "createUserTeamAssociationResponse" => "createUserTeamAssociationResponse", + "createUserTeamAssociations" => "createUserTeamAssociations", + "createUserTeamAssociationsResponse" => "createUserTeamAssociationsResponse", + "getUserTeamAssociation" => "getUserTeamAssociation", + "getUserTeamAssociationResponse" => "getUserTeamAssociationResponse", + "getUserTeamAssociationsByStatement" => "getUserTeamAssociationsByStatement", + "getUserTeamAssociationsByStatementResponse" => "getUserTeamAssociationsByStatementResponse", + "performUserTeamAssociationAction" => "performUserTeamAssociationAction", + "performUserTeamAssociationActionResponse" => "performUserTeamAssociationActionResponse", + "updateUserTeamAssociation" => "updateUserTeamAssociation", + "updateUserTeamAssociationResponse" => "updateUserTeamAssociationResponse", + "updateUserTeamAssociations" => "updateUserTeamAssociations", + "updateUserTeamAssociationsResponse" => "updateUserTeamAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201302/UserTeamAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserTeamAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserTeamAssociationService', 'https://www.google.com/apis/ads/publisher/v201302'); + } + + /** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + */ + public function createUserTeamAssociation($userTeamAssociation) { + $arg = new createUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("createUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + */ + public function createUserTeamAssociations($userTeamAssociations) { + $arg = new createUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("createUserTeamAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + */ + public function getUserTeamAssociation($teamId, $userId) { + $arg = new getUserTeamAssociation($teamId, $userId); + $result = $this->__soapCall("getUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + */ + public function getUserTeamAssociationsByStatement($filterStatement) { + $arg = new getUserTeamAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + */ + public function performUserTeamAssociationAction($userTeamAssociationAction, $statement) { + $arg = new performUserTeamAssociationAction($userTeamAssociationAction, $statement); + $result = $this->__soapCall("performUserTeamAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + */ + public function updateUserTeamAssociation($userTeamAssociation) { + $arg = new updateUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("updateUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + */ + public function updateUserTeamAssociations($userTeamAssociations) { + $arg = new updateUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("updateUserTeamAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php new file mode 100755 index 000000000..656c7fc2f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php @@ -0,0 +1,2841 @@ +id = $id; + $this->name = $name; + $this->companyIds = $companyIds; + $this->impressionsLookback = $impressionsLookback; + $this->clicksLookback = $clicksLookback; + $this->status = $status; + } +}} + +if (!class_exists("ActivityGroupPage", FALSE)) { +/** + * Captures a page of {@link ActivityGroup} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityGroupPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ActivityGroup[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityGroupPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityGroupStatus", FALSE)) { +/** + * The activity group status. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createActivityGroup", FALSE)) { +/** + * Creates a new {@link ActivityGroup}. + * + * @param activityGroup the activity group to be created. + * @return the created activity group with its ID filled in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createActivityGroup { + /** + * @access public + * @var ActivityGroup + */ + public $activityGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroup = NULL) { + $this->activityGroup = $activityGroup; + } +}} + +if (!class_exists("createActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createActivityGroups", FALSE)) { +/** + * Creates a new {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createActivityGroups { + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroups = NULL) { + $this->activityGroups = $activityGroups; + } +}} + +if (!class_exists("createActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createActivityGroupsResponse { + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivityGroup", FALSE)) { +/** + * Returns the {@link ActivityGroup} uniquely identified by the given ID. + * + * @param activityGroupId the ID of the activity group, which must already exist. + * @return the {@code ActivityGroup} uniquely identified by the given ID. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getActivityGroup { + /** + * @access public + * @var integer + */ + public $activityGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroupId = NULL) { + $this->activityGroupId = $activityGroupId; + } +}} + +if (!class_exists("getActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivityGroupsByStatement", FALSE)) { +/** + * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ActivityGroup#id}
      {@code name}{@link ActivityGroup#name}
      {@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
      {@code clicksLookback}{@link ActivityGroup#clicksLookback}
      {@code status}{@link ActivityGroup#status}
      + * + * @param filterStatement a statement used to filter a set of activity groups + * @return the activity groups that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getActivityGroupsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getActivityGroupsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getActivityGroupsByStatementResponse { + /** + * @access public + * @var ActivityGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivityGroup", FALSE)) { +/** + * Updates the specified {@link ActivityGroup}. + * + * @param activityGroup the activity group to update. + * @return the updated activity group. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateActivityGroup { + /** + * @access public + * @var ActivityGroup + */ + public $activityGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroup = NULL) { + $this->activityGroup = $activityGroup; + } +}} + +if (!class_exists("updateActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivityGroups", FALSE)) { +/** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateActivityGroups { + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroups = NULL) { + $this->activityGroups = $activityGroups; + } +}} + +if (!class_exists("updateActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateActivityGroupsResponse { + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivityError", FALSE)) { +/** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityError extends ApiError { + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityGroupService", FALSE)) { +/** + * ActivityGroupService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ActivityGroupService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivityError" => "ActivityError", + "ApiError" => "ApiError", + "ActivityGroup" => "ActivityGroup", + "ActivityGroupPage" => "ActivityGroupPage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ActivityError.Reason" => "ActivityErrorReason", + "ActivityGroup.Status" => "ActivityGroupStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createActivityGroup" => "createActivityGroup", + "createActivityGroupResponse" => "createActivityGroupResponse", + "createActivityGroups" => "createActivityGroups", + "createActivityGroupsResponse" => "createActivityGroupsResponse", + "getActivityGroup" => "getActivityGroup", + "getActivityGroupResponse" => "getActivityGroupResponse", + "getActivityGroupsByStatement" => "getActivityGroupsByStatement", + "getActivityGroupsByStatementResponse" => "getActivityGroupsByStatementResponse", + "updateActivityGroup" => "updateActivityGroup", + "updateActivityGroupResponse" => "updateActivityGroupResponse", + "updateActivityGroups" => "updateActivityGroups", + "updateActivityGroupsResponse" => "updateActivityGroupsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ActivityGroupService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ActivityGroupService::$classmap; + parent::__construct($wsdl, $options, $user, 'ActivityGroupService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link ActivityGroup}. + * + * @param activityGroup the activity group to be created. + * @return the created activity group with its ID filled in. + */ + public function createActivityGroup($activityGroup) { + $arg = new createActivityGroup($activityGroup); + $result = $this->__soapCall("createActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + */ + public function createActivityGroups($activityGroups) { + $arg = new createActivityGroups($activityGroups); + $result = $this->__soapCall("createActivityGroups", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ActivityGroup} uniquely identified by the given ID. + * + * @param activityGroupId the ID of the activity group, which must already exist. + * @return the {@code ActivityGroup} uniquely identified by the given ID. + */ + public function getActivityGroup($activityGroupId) { + $arg = new getActivityGroup($activityGroupId); + $result = $this->__soapCall("getActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ActivityGroup#id}
      {@code name}{@link ActivityGroup#name}
      {@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
      {@code clicksLookback}{@link ActivityGroup#clicksLookback}
      {@code status}{@link ActivityGroup#status}
      + * + * @param filterStatement a statement used to filter a set of activity groups + * @return the activity groups that match the given filter + */ + public function getActivityGroupsByStatement($filterStatement) { + $arg = new getActivityGroupsByStatement($filterStatement); + $result = $this->__soapCall("getActivityGroupsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ActivityGroup}. + * + * @param activityGroup the activity group to update. + * @return the updated activity group. + */ + public function updateActivityGroup($activityGroup) { + $arg = new updateActivityGroup($activityGroup); + $result = $this->__soapCall("updateActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + */ + public function updateActivityGroups($activityGroups) { + $arg = new updateActivityGroups($activityGroups); + $result = $this->__soapCall("updateActivityGroups", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ActivityService.php b/src/Google/Api/Ads/Dfp/v201306/ActivityService.php new file mode 100755 index 000000000..32e0a4212 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ActivityService.php @@ -0,0 +1,2874 @@ +An activity is a specific user action that an advertiser wants to track, such as the + * completion of a purchase or a visit to a webpage. You create and manage activities in DFP. When + * a user performs the action after seeing an advertiser's ad, that's a conversion.

      + * + *

      For example, you set up an activity in DFP to track how many users visit an advertiser's + * promotional website after viewing or clicking on an ad. When a user views an ad, then visits the + * page, that's one conversion.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Activity { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $activityGroupId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $expectedURL; + + /** + * @access public + * @var tnsActivityStatus + */ + public $status; + + /** + * @access public + * @var tnsActivityType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity"; + } + + public function __construct($id = NULL, $activityGroupId = NULL, $name = NULL, $expectedURL = NULL, $status = NULL, $type = NULL) { + $this->id = $id; + $this->activityGroupId = $activityGroupId; + $this->name = $name; + $this->expectedURL = $expectedURL; + $this->status = $status; + $this->type = $type; + } +}} + +if (!class_exists("ActivityPage", FALSE)) { +/** + * Captures a page of {@link Activity} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Activity[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityStatus", FALSE)) { +/** + * The activity status. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityType", FALSE)) { +/** + * The activity type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createActivities", FALSE)) { +/** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createActivities { + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activities = NULL) { + $this->activities = $activities; + } +}} + +if (!class_exists("createActivitiesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createActivitiesResponse { + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createActivity", FALSE)) { +/** + * Creates a new {@link Activity}. + * + * @param activity to be created + * @return the created activity with its ID filled in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createActivity { + /** + * @access public + * @var Activity + */ + public $activity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activity = NULL) { + $this->activity = $activity; + } +}} + +if (!class_exists("createActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivitiesByStatement", FALSE)) { +/** + * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Activity#id}
      {@code name}{@link Activity#name}
      {@code expectedURL}{@link Activity#expectedURL}
      {@code status}{@link Activity#status}
      {@code activityGroupId}{@link Activity#activityGroupId}
      + * + * @param filterStatement a statement used to filter a set of activities. + * @return the activities that match the given filter. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getActivitiesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getActivitiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getActivitiesByStatementResponse { + /** + * @access public + * @var ActivityPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivity", FALSE)) { +/** + * Returns the {@link Activity} uniquely identified by the given ID. + * + * @param activityId the ID of the activity, which must already exist + * @return the {@code Activity} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getActivity { + /** + * @access public + * @var integer + */ + public $activityId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityId = NULL) { + $this->activityId = $activityId; + } +}} + +if (!class_exists("getActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivities", FALSE)) { +/** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateActivities { + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activities = NULL) { + $this->activities = $activities; + } +}} + +if (!class_exists("updateActivitiesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateActivitiesResponse { + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivity", FALSE)) { +/** + * Updates the specified {@link Activity}. + * + * @param activity to be updated. + * @return the updated activity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateActivity { + /** + * @access public + * @var Activity + */ + public $activity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activity = NULL) { + $this->activity = $activity; + } +}} + +if (!class_exists("updateActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivityError", FALSE)) { +/** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivityError extends ApiError { + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityService", FALSE)) { +/** + * ActivityService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ActivityService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "Activity" => "Activity", + "ActivityError" => "ActivityError", + "ApiError" => "ApiError", + "ActivityPage" => "ActivityPage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "Activity.Status" => "ActivityStatus", + "Activity.Type" => "ActivityType", + "ActivityError.Reason" => "ActivityErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createActivities" => "createActivities", + "createActivitiesResponse" => "createActivitiesResponse", + "createActivity" => "createActivity", + "createActivityResponse" => "createActivityResponse", + "getActivitiesByStatement" => "getActivitiesByStatement", + "getActivitiesByStatementResponse" => "getActivitiesByStatementResponse", + "getActivity" => "getActivity", + "getActivityResponse" => "getActivityResponse", + "updateActivities" => "updateActivities", + "updateActivitiesResponse" => "updateActivitiesResponse", + "updateActivity" => "updateActivity", + "updateActivityResponse" => "updateActivityResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ActivityService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ActivityService::$classmap; + parent::__construct($wsdl, $options, $user, 'ActivityService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + */ + public function createActivities($activities) { + $arg = new createActivities($activities); + $result = $this->__soapCall("createActivities", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Activity}. + * + * @param activity to be created + * @return the created activity with its ID filled in. + */ + public function createActivity($activity) { + $arg = new createActivity($activity); + $result = $this->__soapCall("createActivity", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Activity#id}
      {@code name}{@link Activity#name}
      {@code expectedURL}{@link Activity#expectedURL}
      {@code status}{@link Activity#status}
      {@code activityGroupId}{@link Activity#activityGroupId}
      + * + * @param filterStatement a statement used to filter a set of activities. + * @return the activities that match the given filter. + */ + public function getActivitiesByStatement($filterStatement) { + $arg = new getActivitiesByStatement($filterStatement); + $result = $this->__soapCall("getActivitiesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Activity} uniquely identified by the given ID. + * + * @param activityId the ID of the activity, which must already exist + * @return the {@code Activity} uniquely identified by the given ID + */ + public function getActivity($activityId) { + $arg = new getActivity($activityId); + $result = $this->__soapCall("getActivity", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + */ + public function updateActivities($activities) { + $arg = new updateActivities($activities); + $result = $this->__soapCall("updateActivities", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Activity}. + * + * @param activity to be updated. + * @return the updated activity. + */ + public function updateActivity($activity) { + $arg = new updateActivity($activity); + $result = $this->__soapCall("updateActivity", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201306/AdRuleService.php new file mode 100755 index 000000000..c8ab611f5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/AdRuleService.php @@ -0,0 +1,6583 @@ + "AdRuleActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleAction"; + } + + public function __construct($AdRuleActionType = NULL) { + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("AdRule", FALSE)) { +/** + * An {@link AdRule} contains data that the ad server will use to generate a playlist of video ads. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRule { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsAdRuleStatus + */ + public $status; + + /** + * @access public + * @var tnsFrequencyCapBehavior + */ + public $frequencyCapBehavior; + + /** + * @access public + * @var integer + */ + public $maxImpressionsPerLineItemPerStream; + + /** + * @access public + * @var integer + */ + public $maxImpressionsPerLineItemPerPod; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $preroll; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $midroll; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $postroll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRule"; + } + + public function __construct($id = NULL, $name = NULL, $priority = NULL, $targeting = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $frequencyCapBehavior = NULL, $maxImpressionsPerLineItemPerStream = NULL, $maxImpressionsPerLineItemPerPod = NULL, $preroll = NULL, $midroll = NULL, $postroll = NULL) { + $this->id = $id; + $this->name = $name; + $this->priority = $priority; + $this->targeting = $targeting; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->frequencyCapBehavior = $frequencyCapBehavior; + $this->maxImpressionsPerLineItemPerStream = $maxImpressionsPerLineItemPerStream; + $this->maxImpressionsPerLineItemPerPod = $maxImpressionsPerLineItemPerPod; + $this->preroll = $preroll; + $this->midroll = $midroll; + $this->postroll = $postroll; + } +}} + +if (!class_exists("AdRulePage", FALSE)) { +/** + * Captures a page of {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRulePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdRule[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("BaseAdRuleSlot", FALSE)) { +/** + * Simple object representing an ad slot within an {@link AdRule}. Ad rule slots + * contain information about the types/number of ads to display, as well + * as additional information on how the ad server will generate playlists. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseAdRuleSlot { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsAdRuleSlotBehavior + */ + public $slotBehavior; + + /** + * @access public + * @var integer + */ + public $minVideoAdDuration; + + /** + * @access public + * @var integer + */ + public $maxVideoAdDuration; + + /** + * @access public + * @var tnsMidrollFrequencyType + */ + public $videoMidrollFrequencyType; + + /** + * @access public + * @var string + */ + public $videoMidrollFrequency; + + /** + * @access public + * @var tnsAdRuleSlotBumper + */ + public $bumper; + + /** + * @access public + * @var integer + */ + public $maxBumperDuration; + + /** + * @access public + * @var integer + */ + public $minPodDuration; + + /** + * @access public + * @var integer + */ + public $maxPodDuration; + + /** + * @access public + * @var integer + */ + public $maxAdsInPod; + + /** + * @access public + * @var string + */ + public $BaseAdRuleSlotType; + + private $_parameterMap = array ( + "BaseAdRuleSlot.Type" => "BaseAdRuleSlotType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("StandardPoddingAdRuleSlot", FALSE)) { +/** + * An ad rule slot with standard podding. A standard pod is a series of video ads played + * back to back. Standard pods are defined by a {@link BaseAdRuleSlot#maxAdsInPod} and a + * {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StandardPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("AdUnitTargeting", FALSE)) { +/** + * Represents targeted or excluded ad units. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitTargeting { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * @access public + * @var boolean + */ + public $includeDescendants; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTargeting"; + } + + public function __construct($adUnitId = NULL, $includeDescendants = NULL) { + $this->adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DeactivateAdRules", FALSE)) { +/** + * The action used for pausing {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("DeleteAdRules", FALSE)) { +/** + * The action used for deleting {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeleteAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PoddingError", FALSE)) { +/** + * Errors related to podding fields in ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PoddingError extends ApiError { + /** + * @access public + * @var tnsPoddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PoddingError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnknownAdRuleSlot", FALSE)) { +/** + * The {@link BaseAdRuleSlot} subtype returned if the actual type is not exposed by the + * requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnknownAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnknownAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("AdRuleDateErrorReason", FALSE)) { +/** + * Describes reasons for {@code AdRuleDateError}s. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleFrequencyCapErrorReason", FALSE)) { +/** + * Describes reason for {@code AdRuleFrequencyCapError}s. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleFrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleFrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRulePriorityErrorReason", FALSE)) { +/** + * Reasons for an {@code AdRulePriorityError}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRulePriorityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePriorityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotBehavior", FALSE)) { +/** + * The types of behaviors for ads within a {@link BaseAdRuleSlot ad rule slot}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleSlotBehavior { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotBehavior"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotBumper", FALSE)) { +/** + * Types of bumper ads on an ad rule slot. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleSlotBumper { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotBumper"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotErrorReason", FALSE)) { +/** + * Describes reason for {@code AdRuleSlotError}s. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleSlotErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleStatus", FALSE)) { +/** + * Represents the status of ad rules and ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapBehavior", FALSE)) { +/** + * Types of behavior for frequency caps within ad rules. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapBehavior { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapBehavior"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MidrollFrequencyType", FALSE)) { +/** + * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MidrollFrequencyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MidrollFrequencyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PoddingErrorReason", FALSE)) { +/** + * Describes reason for {@code PoddingError}s. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PoddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PoddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdRule", FALSE)) { +/** + * Creates a new {@link AdRule}. + * + * The following fields are required: + *
        + *
      • {@link AdRule#id}
      • + *
      • {@link AdRule#name}
      • + *
      • {@link AdRule#priority}
      • + *
      • {@link AdRule#startDateTime}
      • + *
      • {@link AdRule#endDateTime}
      • + *
      • {@link AdRule#preroll}
      • + *
      • {@link AdRule#midroll}
      • + *
      • {@link AdRule#postroll}
      • + *
      + * + * @param adRule the ad rule to create + * @return the ad rule with its ID filled in + * @throws ApiException if there the ad rule is invalid or there is another + * error + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createAdRule { + /** + * @access public + * @var AdRule + */ + public $adRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRule = NULL) { + $this->adRule = $adRule; + } +}} + +if (!class_exists("createAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdRules", FALSE)) { +/** + * Creates new {@link AdRule} objects. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createAdRules { + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRules = NULL) { + $this->adRules = $adRules; + } +}} + +if (!class_exists("createAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createAdRulesResponse { + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdRule", FALSE)) { +/** + * Returns the {@link AdRule} uniquely identified by the given ID. + * + * @param adRuleId the ID of the ad rule, which must already exist + * @return the {@code AdRule} uniquely identified by the given ID + * @throws ApiException if there is an error retrieving the ad rule + * or the ID is invalid + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdRule { + /** + * @access public + * @var integer + */ + public $adRuleId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRuleId = NULL) { + $this->adRuleId = $adRuleId; + } +}} + +if (!class_exists("getAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdRulesByStatement", FALSE)) { +/** + * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link AdRule#id}
      {@code name}{@link AdRule#name}
      {@code priority}{@link AdRule#priority}
      {@code status}{@link AdRule#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the ad rules that match the given filter + * @throws ApiException if the ID of the active network does not exist or + * there is a backend error + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdRulesByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getAdRulesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdRulesByStatementResponse { + /** + * @access public + * @var AdRulePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdRuleAction", FALSE)) { +/** + * Performs actions on {@link AdRule} objects that match the given + * {@link Statement#query}. + * + * @param adRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performAdRuleAction { + /** + * @access public + * @var AdRuleAction + */ + public $adRuleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRuleAction = NULL, $filterStatement = NULL) { + $this->adRuleAction = $adRuleAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdRuleActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performAdRuleActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdRule", FALSE)) { +/** + * Updates a previously-created {@link AdRule}. + * + * @param adRule the ad rule that should be updated + * @return the updated ad rule + * @throws ApiException if there is an error updating the ad rule + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateAdRule { + /** + * @access public + * @var AdRule + */ + public $adRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRule = NULL) { + $this->adRule = $adRule; + } +}} + +if (!class_exists("updateAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdRules", FALSE)) { +/** + * Updates the specified {@link AdRule} objects. + * + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateAdRules { + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRules = NULL) { + $this->adRules = $adRules; + } +}} + +if (!class_exists("updateAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateAdRulesResponse { + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdRules", FALSE)) { +/** + * The action used for resuming {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("AdRuleDateError", FALSE)) { +/** + * Lists all errors associated with ad rule start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleDateError extends ApiError { + /** + * @access public + * @var tnsAdRuleDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleDateError"; + } + + 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("AdRuleFrequencyCapError", FALSE)) { +/** + * Errors related to ad rule frequency caps + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleFrequencyCapError extends ApiError { + /** + * @access public + * @var tnsAdRuleFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleFrequencyCapError"; + } + + 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("NoPoddingAdRuleSlot", FALSE)) { +/** + * An ad rule slot with no podding. It is defined by a {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("OptimizedPoddingAdRuleSlot", FALSE)) { +/** + * Ad rule slot with optimized podding. Optimized pods are defined by a + * {@link BaseAdRuleSlot#maxPodDuration} and a {@link BaseAdRuleSlot#maxAdsInPod}, and the ad + * server chooses the best ads for the alloted duration. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OptimizedPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("AdRulePriorityError", FALSE)) { +/** + * Errors associated with ad rule priorities. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRulePriorityError extends ApiError { + /** + * @access public + * @var tnsAdRulePriorityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePriorityError"; + } + + 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("AdRuleSlotError", FALSE)) { +/** + * Errors related to ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdRuleSlotError extends ApiError { + /** + * @access public + * @var tnsAdRuleSlotErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AdRuleService", FALSE)) { +/** + * AdRuleService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AdRuleService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdRules" => "ActivateAdRules", + "AdRuleAction" => "AdRuleAction", + "AdRuleDateError" => "AdRuleDateError", + "ApiError" => "ApiError", + "AdRule" => "AdRule", + "AdRuleFrequencyCapError" => "AdRuleFrequencyCapError", + "NoPoddingAdRuleSlot" => "NoPoddingAdRuleSlot", + "BaseAdRuleSlot" => "BaseAdRuleSlot", + "OptimizedPoddingAdRuleSlot" => "OptimizedPoddingAdRuleSlot", + "AdRulePage" => "AdRulePage", + "AdRulePriorityError" => "AdRulePriorityError", + "AdRuleSlotError" => "AdRuleSlotError", + "StandardPoddingAdRuleSlot" => "StandardPoddingAdRuleSlot", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DeactivateAdRules" => "DeactivateAdRules", + "DeleteAdRules" => "DeleteAdRules", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "FeatureError" => "FeatureError", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "PermissionError" => "PermissionError", + "PoddingError" => "PoddingError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegionLocation" => "RegionLocation", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "UniqueError" => "UniqueError", + "UnknownAdRuleSlot" => "UnknownAdRuleSlot", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "AdRuleDateError.Reason" => "AdRuleDateErrorReason", + "AdRuleFrequencyCapError.Reason" => "AdRuleFrequencyCapErrorReason", + "AdRulePriorityError.Reason" => "AdRulePriorityErrorReason", + "AdRuleSlotBehavior" => "AdRuleSlotBehavior", + "AdRuleSlotBumper" => "AdRuleSlotBumper", + "AdRuleSlotError.Reason" => "AdRuleSlotErrorReason", + "AdRuleStatus" => "AdRuleStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DayOfWeek" => "DayOfWeek", + "DeliveryTimeZone" => "DeliveryTimeZone", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapBehavior" => "FrequencyCapBehavior", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "MidrollFrequencyType" => "MidrollFrequencyType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PoddingError.Reason" => "PoddingErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createAdRule" => "createAdRule", + "createAdRuleResponse" => "createAdRuleResponse", + "createAdRules" => "createAdRules", + "createAdRulesResponse" => "createAdRulesResponse", + "getAdRule" => "getAdRule", + "getAdRuleResponse" => "getAdRuleResponse", + "getAdRulesByStatement" => "getAdRulesByStatement", + "getAdRulesByStatementResponse" => "getAdRulesByStatementResponse", + "performAdRuleAction" => "performAdRuleAction", + "performAdRuleActionResponse" => "performAdRuleActionResponse", + "updateAdRule" => "updateAdRule", + "updateAdRuleResponse" => "updateAdRuleResponse", + "updateAdRules" => "updateAdRules", + "updateAdRulesResponse" => "updateAdRulesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/AdRuleService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdRuleService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdRuleService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link AdRule}. + * + * The following fields are required: + *
        + *
      • {@link AdRule#id}
      • + *
      • {@link AdRule#name}
      • + *
      • {@link AdRule#priority}
      • + *
      • {@link AdRule#startDateTime}
      • + *
      • {@link AdRule#endDateTime}
      • + *
      • {@link AdRule#preroll}
      • + *
      • {@link AdRule#midroll}
      • + *
      • {@link AdRule#postroll}
      • + *
      + * + * @param adRule the ad rule to create + * @return the ad rule with its ID filled in + * @throws ApiException if there the ad rule is invalid or there is another + * error + */ + public function createAdRule($adRule) { + $arg = new createAdRule($adRule); + $result = $this->__soapCall("createAdRule", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdRule} objects. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + */ + public function createAdRules($adRules) { + $arg = new createAdRules($adRules); + $result = $this->__soapCall("createAdRules", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdRule} uniquely identified by the given ID. + * + * @param adRuleId the ID of the ad rule, which must already exist + * @return the {@code AdRule} uniquely identified by the given ID + * @throws ApiException if there is an error retrieving the ad rule + * or the ID is invalid + */ + public function getAdRule($adRuleId) { + $arg = new getAdRule($adRuleId); + $result = $this->__soapCall("getAdRule", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link AdRule#id}
      {@code name}{@link AdRule#name}
      {@code priority}{@link AdRule#priority}
      {@code status}{@link AdRule#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the ad rules that match the given filter + * @throws ApiException if the ID of the active network does not exist or + * there is a backend error + */ + public function getAdRulesByStatement($statement) { + $arg = new getAdRulesByStatement($statement); + $result = $this->__soapCall("getAdRulesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdRule} objects that match the given + * {@link Statement#query}. + * + * @param adRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the result of the action performed + */ + public function performAdRuleAction($adRuleAction, $filterStatement) { + $arg = new performAdRuleAction($adRuleAction, $filterStatement); + $result = $this->__soapCall("performAdRuleAction", array($arg)); + return $result->rval; + } + + + /** + * Updates a previously-created {@link AdRule}. + * + * @param adRule the ad rule that should be updated + * @return the updated ad rule + * @throws ApiException if there is an error updating the ad rule + */ + public function updateAdRule($adRule) { + $arg = new updateAdRule($adRule); + $result = $this->__soapCall("updateAdRule", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdRule} objects. + * + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules + */ + public function updateAdRules($adRules) { + $arg = new updateAdRules($adRules); + $result = $this->__soapCall("updateAdRules", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php new file mode 100755 index 000000000..c12e30872 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php @@ -0,0 +1,2249 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AudienceSegment[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAudienceSegmentStatus + */ + public $status; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var string + */ + public $AudienceSegmentType; + + private $_parameterMap = array ( + "AudienceSegment.Type" => "AudienceSegmentType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $AudienceSegmentType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAudienceSegmentsByStatement", FALSE)) { +/** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAudienceSegmentsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAudienceSegmentsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAudienceSegmentsByStatementResponse { + /** + * @access public + * @var AudienceSegmentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class AudienceSegmentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "AudienceSegment" => "AudienceSegment", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getAudienceSegmentsByStatement" => "getAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "getAudienceSegmentsByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/AudienceSegmentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AudienceSegmentService::$classmap; + parent::__construct($wsdl, $options, $user, 'AudienceSegmentService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + */ + public function getAudienceSegmentsByStatement($filterStatement) { + $arg = new getAudienceSegmentsByStatement($filterStatement); + $result = $this->__soapCall("getAudienceSegmentsByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php new file mode 100755 index 000000000..07cc2d139 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php @@ -0,0 +1,3297 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseRateAction", FALSE)) { +/** + * Represents the action that can be performed on {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateAction { + /** + * @access public + * @var string + */ + public $BaseRateActionType; + + private $_parameterMap = array ( + "BaseRateAction.Type" => "BaseRateActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateAction"; + } + + public function __construct($BaseRateActionType = NULL) { + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("BaseRateActionError", FALSE)) { +/** + * An error having to do with {@link BaseRate} when performing actions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateActionError extends ApiError { + /** + * @access public + * @var tnsBaseRateActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateActionError"; + } + + 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("BaseRate", FALSE)) { +/** + * A base rate that applies to a product template or product belonging to rate + * card. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRate { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsBaseRateStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $BaseRateType; + + private $_parameterMap = array ( + "BaseRate.Type" => "BaseRateType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRate"; + } + + public function __construct($rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BaseRatePage", FALSE)) { +/** + * Captures a page of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRatePage { + /** + * @access public + * @var BaseRate[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRatePage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateBaseRates", FALSE)) { +/** + * The action used to deactivate {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateBaseRates extends BaseRateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateBaseRates"; + } + + public function __construct($BaseRateActionType = NULL) { + parent::__construct(); + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("ProductBaseRate", FALSE)) { +/** + * A base rate applied to a {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductBaseRate extends BaseRate { + /** + * @access public + * @var string + */ + public $productId; + + /** + * @access public + * @var Money + */ + public $rate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductBaseRate"; + } + + public function __construct($productId = NULL, $rate = NULL, $rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + parent::__construct(); + $this->productId = $productId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("ProductTemplateBaseRate", FALSE)) { +/** + * A base rate applied to a {@link ProductTemplate}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateBaseRate extends BaseRate { + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * @access public + * @var Money + */ + public $rate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateBaseRate"; + } + + public function __construct($productTemplateId = NULL, $rate = NULL, $rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + parent::__construct(); + $this->productTemplateId = $productTemplateId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateStatus", FALSE)) { +/** + * The status of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createBaseRate", FALSE)) { +/** + * Creates a new {@link BaseRate} object. + * + * @param baseRate the base rate to be created + * @return the base rate with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createBaseRate { + /** + * @access public + * @var BaseRate + */ + public $baseRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRate = NULL) { + $this->baseRate = $baseRate; + } +}} + +if (!class_exists("createBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createBaseRates", FALSE)) { +/** + * Creates a list of new {@link BaseRate} objects. + * + * @param baseRates the base rates to be created + * @return the base rates with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createBaseRates { + /** + * @access public + * @var BaseRate[] + */ + public $baseRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRates = NULL) { + $this->baseRates = $baseRates; + } +}} + +if (!class_exists("createBaseRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createBaseRatesResponse { + /** + * @access public + * @var BaseRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBaseRate", FALSE)) { +/** + * Returns the {@link BaseRate} object uniquely identified by the given ID. + * + * @param baseRateId the ID of the base rate, which must already exist + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getBaseRate { + /** + * @access public + * @var integer + */ + public $baseRateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRateId = NULL) { + $this->baseRateId = $baseRateId; + } +}} + +if (!class_exists("getBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBaseRatesByStatement", FALSE)) { +/** + * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the page of base rates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getBaseRatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getBaseRatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getBaseRatesByStatementResponse { + /** + * @access public + * @var BaseRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performBaseRateAction", FALSE)) { +/** + * Performs actions on {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * @param baseRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performBaseRateAction { + /** + * @access public + * @var BaseRateAction + */ + public $baseRateAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRateAction = NULL, $filterStatement = NULL) { + $this->baseRateAction = $baseRateAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performBaseRateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performBaseRateActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateBaseRate", FALSE)) { +/** + * Updates the specified {@link BaseRate} object. + * + * @param baseRate the base rate to be updated + * @return the updated base rate + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateBaseRate { + /** + * @access public + * @var BaseRate + */ + public $baseRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRate = NULL) { + $this->baseRate = $baseRate; + } +}} + +if (!class_exists("updateBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateBaseRates", FALSE)) { +/** + * Updates the specified {@link BaseRate} objects. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateBaseRates { + /** + * @access public + * @var BaseRate[] + */ + public $baseRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRates = NULL) { + $this->baseRates = $baseRates; + } +}} + +if (!class_exists("updateBaseRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateBaseRatesResponse { + /** + * @access public + * @var BaseRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateBaseRates", FALSE)) { +/** + * The action used to activate {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateBaseRates extends BaseRateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateBaseRates"; + } + + public function __construct($BaseRateActionType = NULL) { + parent::__construct(); + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("BaseRateService", FALSE)) { +/** + * BaseRateService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class BaseRateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateBaseRates" => "ActivateBaseRates", + "BaseRateAction" => "BaseRateAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseRateActionError" => "BaseRateActionError", + "BaseRate" => "BaseRate", + "BaseRateError" => "BaseRateError", + "BaseRatePage" => "BaseRatePage", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateBaseRates" => "DeactivateBaseRates", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "ProductBaseRate" => "ProductBaseRate", + "ProductTemplateBaseRate" => "ProductTemplateBaseRate", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateActionError.Reason" => "BaseRateActionErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "BaseRateStatus" => "BaseRateStatus", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createBaseRate" => "createBaseRate", + "createBaseRateResponse" => "createBaseRateResponse", + "createBaseRates" => "createBaseRates", + "createBaseRatesResponse" => "createBaseRatesResponse", + "getBaseRate" => "getBaseRate", + "getBaseRateResponse" => "getBaseRateResponse", + "getBaseRatesByStatement" => "getBaseRatesByStatement", + "getBaseRatesByStatementResponse" => "getBaseRatesByStatementResponse", + "performBaseRateAction" => "performBaseRateAction", + "performBaseRateActionResponse" => "performBaseRateActionResponse", + "updateBaseRate" => "updateBaseRate", + "updateBaseRateResponse" => "updateBaseRateResponse", + "updateBaseRates" => "updateBaseRates", + "updateBaseRatesResponse" => "updateBaseRatesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/BaseRateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BaseRateService::$classmap; + parent::__construct($wsdl, $options, $user, 'BaseRateService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link BaseRate} object. + * + * @param baseRate the base rate to be created + * @return the base rate with its ID filled in + */ + public function createBaseRate($baseRate) { + $arg = new createBaseRate($baseRate); + $result = $this->__soapCall("createBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of new {@link BaseRate} objects. + * + * @param baseRates the base rates to be created + * @return the base rates with their IDs filled in + */ + public function createBaseRates($baseRates) { + $arg = new createBaseRates($baseRates); + $result = $this->__soapCall("createBaseRates", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link BaseRate} object uniquely identified by the given ID. + * + * @param baseRateId the ID of the base rate, which must already exist + */ + public function getBaseRate($baseRateId) { + $arg = new getBaseRate($baseRateId); + $result = $this->__soapCall("getBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link BaseRate#rateCardId}
      {@code id}{@link BaseRate#id}
      {@code status}{@link BaseRate#status}
      {@code productTemplateId}{@link ProductTemplateBaseRate#id}
      Note: Cannot be + * combined with {@code productId}. + *
      {@code productId}{@link ProductBaseRate#id}
      Note: Cannot be combined with + * {@code productTemplateId}. + *
      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the page of base rates that match the given filter + */ + public function getBaseRatesByStatement($filterStatement) { + $arg = new getBaseRatesByStatement($filterStatement); + $result = $this->__soapCall("getBaseRatesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * @param baseRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the result of the action performed + */ + public function performBaseRateAction($baseRateAction, $filterStatement) { + $arg = new performBaseRateAction($baseRateAction, $filterStatement); + $result = $this->__soapCall("performBaseRateAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link BaseRate} object. + * + * @param baseRate the base rate to be updated + * @return the updated base rate + */ + public function updateBaseRate($baseRate) { + $arg = new updateBaseRate($baseRate); + $result = $this->__soapCall("updateBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link BaseRate} objects. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + */ + public function updateBaseRates($baseRates) { + $arg = new updateBaseRates($baseRates); + $result = $this->__soapCall("updateBaseRates", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CompanyService.php b/src/Google/Api/Ads/Dfp/v201306/CompanyService.php new file mode 100755 index 000000000..da5181156 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CompanyService.php @@ -0,0 +1,3307 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("Company", FALSE)) { +/** + * A {@code Company} represents an agency, a single advertiser or an entire + * advertising network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Company { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCompanyType + */ + public $type; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $primaryPhone; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var tnsCompanyCreditStatus + */ + public $creditStatus; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var boolean + */ + public $enableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var integer + */ + public $primaryContactId; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var integer + */ + public $thirdPartyCompanyId; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $address = NULL, $email = NULL, $faxPhone = NULL, $primaryPhone = NULL, $externalId = NULL, $comment = NULL, $creditStatus = NULL, $appliedLabels = NULL, $enableSameAdvertiserCompetitiveExclusion = NULL, $primaryContactId = NULL, $appliedTeamIds = NULL, $thirdPartyCompanyId = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->address = $address; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->primaryPhone = $primaryPhone; + $this->externalId = $externalId; + $this->comment = $comment; + $this->creditStatus = $creditStatus; + $this->appliedLabels = $appliedLabels; + $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; + $this->primaryContactId = $primaryContactId; + $this->appliedTeamIds = $appliedTeamIds; + $this->thirdPartyCompanyId = $thirdPartyCompanyId; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CompanyError", FALSE)) { +/** + * A list of all errors associated with companies. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyError extends ApiError { + /** + * @access public + * @var tnsCompanyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError"; + } + + 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("CompanyPage", FALSE)) { +/** + * Captures a page of {@link Company} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Company[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatus", FALSE)) { +/** + * Specifies the credit-worthiness of the company for which the publisher runs + * an order. By doing so, the publisher can control the running of campaigns + * for the company. A publisher can choose between Basic and Advanced Credit + * Status settings. This feature needs to be enabled in the DoubleClick For + * Publishers web site. Also the kind of setting you need - Basic or Advanced + * must be configured. If Basic is enabled then, the values allowed are + * {@code ACTIVE} and {@code INACTIVE}. If Advanced is chosen, then all values + * are allowed. Choosing an Advanced setting when only the Basic feature has + * been enabled, or using the Basic setting without turning the feature on + * will result in an error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.CreditStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyType", FALSE)) { +/** + * The type of the company. Once a company is created, it is not possible to + * change its type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyErrorReason", FALSE)) { +/** + * Enumerates all possible company specific errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCompanies", FALSE)) { +/** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("createCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCompany", FALSE)) { +/** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("createCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompaniesByStatement", FALSE)) { +/** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link BaseRate#rateCardId}
      {@code id}{@link BaseRate#id}
      {@code status}{@link BaseRate#status}
      {@code productTemplateId}{@link ProductTemplateBaseRate#id}
      Note: Cannot be + * combined with {@code productId}. + *
      {@code productId}{@link ProductBaseRate#id}
      Note: Cannot be combined with + * {@code productTemplateId}. + *
      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCompaniesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCompaniesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCompaniesByStatementResponse { + /** + * @access public + * @var CompanyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompany", FALSE)) { +/** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCompany { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companyId = NULL) { + $this->companyId = $companyId; + } +}} + +if (!class_exists("getCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompanies", FALSE)) { +/** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("updateCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompany", FALSE)) { +/** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("updateCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CompanyService", FALSE)) { +/** + * CompanyService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CompanyService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "Company" => "Company", + "CompanyError" => "CompanyError", + "CompanyPage" => "CompanyPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "Company.CreditStatus" => "CompanyCreditStatus", + "Company.Type" => "CompanyType", + "CompanyError.Reason" => "CompanyErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createCompanies" => "createCompanies", + "createCompaniesResponse" => "createCompaniesResponse", + "createCompany" => "createCompany", + "createCompanyResponse" => "createCompanyResponse", + "getCompaniesByStatement" => "getCompaniesByStatement", + "getCompaniesByStatementResponse" => "getCompaniesByStatementResponse", + "getCompany" => "getCompany", + "getCompanyResponse" => "getCompanyResponse", + "updateCompanies" => "updateCompanies", + "updateCompaniesResponse" => "updateCompaniesResponse", + "updateCompany" => "updateCompany", + "updateCompanyResponse" => "updateCompanyResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/CompanyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CompanyService::$classmap; + parent::__construct($wsdl, $options, $user, 'CompanyService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + */ + public function createCompanies($companies) { + $arg = new createCompanies($companies); + $result = $this->__soapCall("createCompanies", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + */ + public function createCompany($company) { + $arg = new createCompany($company); + $result = $this->__soapCall("createCompany", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + */ + public function getCompaniesByStatement($filterStatement) { + $arg = new getCompaniesByStatement($filterStatement); + $result = $this->__soapCall("getCompaniesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + */ + public function getCompany($companyId) { + $arg = new getCompany($companyId); + $result = $this->__soapCall("getCompany", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + */ + public function updateCompanies($companies) { + $arg = new updateCompanies($companies); + $result = $this->__soapCall("updateCompanies", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + */ + public function updateCompany($company) { + $arg = new updateCompany($company); + $result = $this->__soapCall("updateCompany", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ContactService.php b/src/Google/Api/Ads/Dfp/v201306/ContactService.php new file mode 100755 index 000000000..6413c126f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ContactService.php @@ -0,0 +1,3002 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContactError", FALSE)) { +/** + * Errors associated with {@code Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContactError extends ApiError { + /** + * @access public + * @var tnsContactErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactError"; + } + + 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("ContactPage", FALSE)) { +/** + * Captures a page of {@link Contact} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContactPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Contact[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("BaseContact", FALSE)) { +/** + * Base class for a {@link Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseContact { + /** + * @access public + * @var string + */ + public $BaseContactType; + + private $_parameterMap = array ( + "BaseContact.Type" => "BaseContactType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseContact"; + } + + public function __construct($BaseContactType = NULL) { + $this->BaseContactType = $BaseContactType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContactStatus", FALSE)) { +/** + * Describes the contact statuses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContactStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Contact.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContactErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContactErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createContact", FALSE)) { +/** + * Creates a new {@link Contact}. + * + * The following fields are required: + *
        + *
      • {@link Contact#companyId}
      • + *
      • {@link Contact#name}
      • + *
      + * + * @param contact the contact to create + * @return the contact with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createContact { + /** + * @access public + * @var Contact + */ + public $contact; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contact = NULL) { + $this->contact = $contact; + } +}} + +if (!class_exists("createContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createContacts", FALSE)) { +/** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createContacts { + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contacts = NULL) { + $this->contacts = $contacts; + } +}} + +if (!class_exists("createContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createContactsResponse { + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContact", FALSE)) { +/** + * Returns the {@link Contact} uniquely identified by the given ID. + * + * @param contactId the ID of the contact, which must already exist + * @return the {@code Contact} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContact { + /** + * @access public + * @var integer + */ + public $contactId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contactId = NULL) { + $this->contactId = $contactId; + } +}} + +if (!class_exists("getContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContactsByStatement", FALSE)) { +/** + * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code name}{@link Contact#name}
      {@code email}{@link Contact#email}
      {@code id}{@link Contact#id}
      {@code comment}{@link Contact#comment}
      {@code companyId}{@link Contact#companyId}
      {@code title}{@link Contact#title}
      {@code cellPhone}{@link Contact#cellPhone}
      {@code workPhone}{@link Contact#workPhone}
      {@code faxPhone}{@link Contact#faxPhone}
      {@code status}{@link Contact#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of contacts + * @return the contacts that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContactsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContactsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContactsByStatementResponse { + /** + * @access public + * @var ContactPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContact", FALSE)) { +/** + * Updates the specified {@link Contact}. + * + * @param contact the contact to update + * @return the updated contact + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateContact { + /** + * @access public + * @var Contact + */ + public $contact; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contact = NULL) { + $this->contact = $contact; + } +}} + +if (!class_exists("updateContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContacts", FALSE)) { +/** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateContacts { + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contacts = NULL) { + $this->contacts = $contacts; + } +}} + +if (!class_exists("updateContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateContactsResponse { + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Contact", FALSE)) { +/** + * A {@code Contact} represents a person who is affiliated with a single + * {@link Company}. A contact can have a variety of contact information + * associated to it, and can be invited to view their company's orders, line + * items, creatives, and reports. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Contact extends BaseContact { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var tnsContactStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $cellPhone; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $title; + + /** + * @access public + * @var string + */ + public $workPhone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Contact"; + } + + public function __construct($id = NULL, $name = NULL, $companyId = NULL, $status = NULL, $address = NULL, $cellPhone = NULL, $comment = NULL, $email = NULL, $faxPhone = NULL, $title = NULL, $workPhone = NULL, $BaseContactType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->companyId = $companyId; + $this->status = $status; + $this->address = $address; + $this->cellPhone = $cellPhone; + $this->comment = $comment; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->title = $title; + $this->workPhone = $workPhone; + $this->BaseContactType = $BaseContactType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContactService", FALSE)) { +/** + * ContactService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ContactService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Contact" => "Contact", + "BaseContact" => "BaseContact", + "ContactError" => "ContactError", + "ContactPage" => "ContactPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "Contact.Status" => "ContactStatus", + "ContactError.Reason" => "ContactErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createContact" => "createContact", + "createContactResponse" => "createContactResponse", + "createContacts" => "createContacts", + "createContactsResponse" => "createContactsResponse", + "getContact" => "getContact", + "getContactResponse" => "getContactResponse", + "getContactsByStatement" => "getContactsByStatement", + "getContactsByStatementResponse" => "getContactsByStatementResponse", + "updateContact" => "updateContact", + "updateContactResponse" => "updateContactResponse", + "updateContacts" => "updateContacts", + "updateContactsResponse" => "updateContactsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ContactService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContactService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContactService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link Contact}. + * + * The following fields are required: + *
        + *
      • {@link Contact#companyId}
      • + *
      • {@link Contact#name}
      • + *
      + * + * @param contact the contact to create + * @return the contact with its ID filled in + */ + public function createContact($contact) { + $arg = new createContact($contact); + $result = $this->__soapCall("createContact", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + */ + public function createContacts($contacts) { + $arg = new createContacts($contacts); + $result = $this->__soapCall("createContacts", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Contact} uniquely identified by the given ID. + * + * @param contactId the ID of the contact, which must already exist + * @return the {@code Contact} uniquely identified by the given ID + */ + public function getContact($contactId) { + $arg = new getContact($contactId); + $result = $this->__soapCall("getContact", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code name}{@link Contact#name}
      {@code email}{@link Contact#email}
      {@code id}{@link Contact#id}
      {@code comment}{@link Contact#comment}
      {@code companyId}{@link Contact#companyId}
      {@code title}{@link Contact#title}
      {@code cellPhone}{@link Contact#cellPhone}
      {@code workPhone}{@link Contact#workPhone}
      {@code faxPhone}{@link Contact#faxPhone}
      {@code status}{@link Contact#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of contacts + * @return the contacts that match the given filter + */ + public function getContactsByStatement($statement) { + $arg = new getContactsByStatement($statement); + $result = $this->__soapCall("getContactsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Contact}. + * + * @param contact the contact to update + * @return the updated contact + */ + public function updateContact($contact) { + $arg = new updateContact($contact); + $result = $this->__soapCall("updateContact", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + */ + public function updateContacts($contacts) { + $arg = new updateContacts($contacts); + $result = $this->__soapCall("updateContacts", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php new file mode 100755 index 000000000..c03630d6e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php @@ -0,0 +1,3027 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentBundleAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentBundleAction { + /** + * @access public + * @var string + */ + public $ContentBundleActionType; + + private $_parameterMap = array ( + "ContentBundleAction.Type" => "ContentBundleActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundleAction"; + } + + public function __construct($ContentBundleActionType = NULL) { + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ContentBundle", FALSE)) { +/** + * A {@code ContentBundle} is a grouping of individual {@link Content}. A {@code ContentBundle} is + * defined as including the {@code Content} that match certain filter rules, along with the + * option to explicitly include or exclude certain {@code Content} IDs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentBundle { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsContentBundleStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundle"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + } +}} + +if (!class_exists("ContentBundlePage", FALSE)) { +/** + * Captures a page of {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentBundlePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ContentBundle[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundlePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateContentBundles", FALSE)) { +/** + * The action used for deactivating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateContentBundles extends ContentBundleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateContentBundles"; + } + + public function __construct($ContentBundleActionType = NULL) { + parent::__construct(); + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ExcludeContentFromContentBundle", FALSE)) { +/** + * The action used for explicitly excluding specific content from a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ExcludeContentFromContentBundle extends ContentBundleAction { + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExcludeContentFromContentBundle"; + } + + public function __construct($contentStatement = NULL, $ContentBundleActionType = NULL) { + parent::__construct(); + $this->contentStatement = $contentStatement; + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("IncludeContentInContentBundle", FALSE)) { +/** + * The action used for explicitly including specific content in a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class IncludeContentInContentBundle extends ContentBundleAction { + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IncludeContentInContentBundle"; + } + + public function __construct($contentStatement = NULL, $ContentBundleActionType = NULL) { + parent::__construct(); + $this->contentStatement = $contentStatement; + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentBundleStatus", FALSE)) { +/** + * Status for {@code ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentBundleStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundleStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createContentBundle", FALSE)) { +/** + * Creates a new {@link ContentBundle}. + * + * These fields are required: + *
        + *
      • {@link ContentBundle#name}
      • + *
      • {@link ContentBundle#description}
      • + *
      + * + * @param contentBundle the content bundle to create + * @return the content bundle with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createContentBundle { + /** + * @access public + * @var ContentBundle + */ + public $contentBundle; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundle = NULL) { + $this->contentBundle = $contentBundle; + } +}} + +if (!class_exists("createContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createContentBundles", FALSE)) { +/** + * Creates new {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createContentBundles { + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundles = NULL) { + $this->contentBundles = $contentBundles; + } +}} + +if (!class_exists("createContentBundlesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createContentBundlesResponse { + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentBundle", FALSE)) { +/** + * Returns the {@link ContentBundle} uniquely identified by the given ID. + * + * @param contentBundleId the ID of the content bundle, which must already exist + * @return the {@code ContentBundle} uniquely identified by the given ID + * @throws ApiException if there were errors, such as invalid ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContentBundle { + /** + * @access public + * @var integer + */ + public $contentBundleId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundleId = NULL) { + $this->contentBundleId = $contentBundleId; + } +}} + +if (!class_exists("getContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentBundlesByStatement", FALSE)) { +/** + * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentBundle#id}
      {@code name}{@link ContentBundle#name}
      {@code status}{@link ContentBundle#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the content bundles that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContentBundlesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getContentBundlesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContentBundlesByStatementResponse { + /** + * @access public + * @var ContentBundlePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performContentBundleAction", FALSE)) { +/** + * Performs actions on {@link ContentBundle} objects that match the given + * {@link Statement#query}. + * + * @param contentBundleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performContentBundleAction { + /** + * @access public + * @var ContentBundleAction + */ + public $contentBundleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundleAction = NULL, $filterStatement = NULL) { + $this->contentBundleAction = $contentBundleAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performContentBundleActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performContentBundleActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContentBundle", FALSE)) { +/** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateContentBundle { + /** + * @access public + * @var ContentBundle + */ + public $contentBundle; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundle = NULL) { + $this->contentBundle = $contentBundle; + } +}} + +if (!class_exists("updateContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContentBundles", FALSE)) { +/** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateContentBundles { + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundles = NULL) { + $this->contentBundles = $contentBundles; + } +}} + +if (!class_exists("updateContentBundlesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateContentBundlesResponse { + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateContentBundles", FALSE)) { +/** + * The action used for activating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateContentBundles extends ContentBundleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateContentBundles"; + } + + public function __construct($ContentBundleActionType = NULL) { + parent::__construct(); + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentBundleService", FALSE)) { +/** + * ContentBundleService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ContentBundleService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateContentBundles" => "ActivateContentBundles", + "ContentBundleAction" => "ContentBundleAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentBundle" => "ContentBundle", + "ContentBundlePage" => "ContentBundlePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateContentBundles" => "DeactivateContentBundles", + "ExcludeContentFromContentBundle" => "ExcludeContentFromContentBundle", + "FeatureError" => "FeatureError", + "IncludeContentInContentBundle" => "IncludeContentInContentBundle", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PlacementError" => "PlacementError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentBundleStatus" => "ContentBundleStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createContentBundle" => "createContentBundle", + "createContentBundleResponse" => "createContentBundleResponse", + "createContentBundles" => "createContentBundles", + "createContentBundlesResponse" => "createContentBundlesResponse", + "getContentBundle" => "getContentBundle", + "getContentBundleResponse" => "getContentBundleResponse", + "getContentBundlesByStatement" => "getContentBundlesByStatement", + "getContentBundlesByStatementResponse" => "getContentBundlesByStatementResponse", + "performContentBundleAction" => "performContentBundleAction", + "performContentBundleActionResponse" => "performContentBundleActionResponse", + "updateContentBundle" => "updateContentBundle", + "updateContentBundleResponse" => "updateContentBundleResponse", + "updateContentBundles" => "updateContentBundles", + "updateContentBundlesResponse" => "updateContentBundlesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ContentBundleService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentBundleService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentBundleService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link ContentBundle}. + * + * These fields are required: + *
        + *
      • {@link ContentBundle#name}
      • + *
      • {@link ContentBundle#description}
      • + *
      + * + * @param contentBundle the content bundle to create + * @return the content bundle with its ID filled in + */ + public function createContentBundle($contentBundle) { + $arg = new createContentBundle($contentBundle); + $result = $this->__soapCall("createContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + */ + public function createContentBundles($contentBundles) { + $arg = new createContentBundles($contentBundles); + $result = $this->__soapCall("createContentBundles", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ContentBundle} uniquely identified by the given ID. + * + * @param contentBundleId the ID of the content bundle, which must already exist + * @return the {@code ContentBundle} uniquely identified by the given ID + * @throws ApiException if there were errors, such as invalid ID + */ + public function getContentBundle($contentBundleId) { + $arg = new getContentBundle($contentBundleId); + $result = $this->__soapCall("getContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentBundle#id}
      {@code name}{@link ContentBundle#name}
      {@code status}{@link ContentBundle#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the content bundles that match the given filter + */ + public function getContentBundlesByStatement($filterStatement) { + $arg = new getContentBundlesByStatement($filterStatement); + $result = $this->__soapCall("getContentBundlesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ContentBundle} objects that match the given + * {@link Statement#query}. + * + * @param contentBundleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the result of the action performed + */ + public function performContentBundleAction($contentBundleAction, $filterStatement) { + $arg = new performContentBundleAction($contentBundleAction, $filterStatement); + $result = $this->__soapCall("performContentBundleAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + */ + public function updateContentBundle($contentBundle) { + $arg = new updateContentBundle($contentBundle); + $result = $this->__soapCall("updateContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + */ + public function updateContentBundles($contentBundles) { + $arg = new updateContentBundles($contentBundles); + $result = $this->__soapCall("updateContentBundles", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ContentService.php b/src/Google/Api/Ads/Dfp/v201306/ContentService.php new file mode 100755 index 000000000..f0e2543d2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ContentService.php @@ -0,0 +1,2694 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CmsContent", FALSE)) { +/** + * Contains information about {@link Content} from the CMS it was ingested from. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CmsContent { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $cmsContentId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CmsContent"; + } + + public function __construct($id = NULL, $displayName = NULL, $cmsContentId = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->cmsContentId = $cmsContentId; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("Content", FALSE)) { +/** + * A {@code Content} represents video metadata from a publisher's + * Content Management System (CMS) that has been synced to DFP. + *

      + * Video line items can be targeted to {@code Content} + * to indicate what ads should match when the {@code Content} is being played. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Content { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsContentStatus + */ + public $status; + + /** + * @access public + * @var tnsContentStatusDefinedBy + */ + public $statusDefinedBy; + + /** + * @access public + * @var integer[] + */ + public $userDefinedCustomTargetingValueIds; + + /** + * @access public + * @var integer[] + */ + public $mappingRuleDefinedCustomTargetingValueIds; + + /** + * @access public + * @var CmsContent[] + */ + public $cmsSources; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Content"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $statusDefinedBy = NULL, $userDefinedCustomTargetingValueIds = NULL, $mappingRuleDefinedCustomTargetingValueIds = NULL, $cmsSources = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->statusDefinedBy = $statusDefinedBy; + $this->userDefinedCustomTargetingValueIds = $userDefinedCustomTargetingValueIds; + $this->mappingRuleDefinedCustomTargetingValueIds = $mappingRuleDefinedCustomTargetingValueIds; + $this->cmsSources = $cmsSources; + } +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Content[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ContentPartnerError", FALSE)) { +/** + * The content partner related validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentPartnerError extends ApiError { + /** + * @access public + * @var tnsContentPartnerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentPartnerErrorReason", FALSE)) { +/** + * Describes reason for {@code ContentPartnerError}s. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentPartnerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatus", FALSE)) { +/** + * Describes the status of a {@link Content} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatusDefinedBy", FALSE)) { +/** + * Describes who defined the effective status of the {@code Content}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentStatusDefinedBy { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatusDefinedBy"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContentByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContentByStatementResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValue", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContentByStatementAndCustomTargetingValue { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL, $customTargetingValueId = NULL) { + $this->filterStatement = $filterStatement; + $this->customTargetingValueId = $customTargetingValueId; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValueResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getContentByStatementAndCustomTargetingValueResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentService", FALSE)) { +/** + * ContentService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ContentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CmsContent" => "CmsContent", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentPartnerError.Reason" => "ContentPartnerErrorReason", + "ContentStatus" => "ContentStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ContentStatusDefinedBy" => "ContentStatusDefinedBy", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getContentByStatement" => "getContentByStatement", + "getContentByStatementResponse" => "getContentByStatementResponse", + "getContentByStatementAndCustomTargetingValue" => "getContentByStatementAndCustomTargetingValue", + "getContentByStatementAndCustomTargetingValueResponse" => "getContentByStatementAndCustomTargetingValueResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ContentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + */ + public function getContentByStatement($statement) { + $arg = new getContentByStatement($statement); + $result = $this->__soapCall("getContentByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + */ + public function getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId) { + $arg = new getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); + $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeService.php new file mode 100755 index 000000000..1958567c2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CreativeService.php @@ -0,0 +1,7454 @@ + "BaseCreativeTemplateVariableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCreativeTemplateVariableValue"; + } + + public function __construct($uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AssetCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariableValue"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Asset", FALSE)) { +/** + * Base asset properties. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Asset { + /** + * @access public + * @var string + */ + public $AssetType; + + private $_parameterMap = array ( + "Asset.Type" => "AssetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Asset"; + } + + public function __construct($AssetType = NULL) { + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ConversionEvent_TrackingUrlsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type ConversionEvent + * and value of type TrackingUrls. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ConversionEvent_TrackingUrlsMapEntry { + /** + * @access public + * @var tnsConversionEvent + */ + public $key; + + /** + * @access public + * @var TrackingUrls + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent_TrackingUrlsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CreativeAsset", FALSE)) { +/** + * A {@code CreativeAsset} is an asset that can be used in creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeAsset { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $assetUrl; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsImageDensity + */ + public $imageDensity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAsset"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL, $assetUrl = NULL, $size = NULL, $imageDensity = NULL) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + $this->assetUrl = $assetUrl; + $this->size = $size; + $this->imageDensity = $imageDensity; + } +}} + +if (!class_exists("CustomCreativeAsset", FALSE)) { +/** + * A {@code CustomCreativeAsset} is an association between a + * {@link CustomCreative} and an asset. Any assets that are associated with a + * creative can be inserted into its HTML snippet. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCreativeAsset { + /** + * @access public + * @var string + */ + public $macroName; + + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeAsset"; + } + + public function __construct($macroName = NULL, $assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL) { + $this->macroName = $macroName; + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } +}} + +if (!class_exists("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("Creative", FALSE)) { +/** + * A {@code Creative} represents the media for the ad being served. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Creative { + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var string + */ + public $previewUrl; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $CreativeType; + + private $_parameterMap = array ( + "Creative.Type" => "CreativeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Creative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativePage", FALSE)) { +/** + * Captures a page of {@link Creative} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Creative[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("HasDestinationUrlCreative", FALSE)) { +/** + * A {@code Creative} that has a destination url + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class HasDestinationUrlCreative extends Creative { + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasDestinationUrlCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InternalRedirectCreative", FALSE)) { +/** + * A {@code Creative} hosted by either DoubleClick for Advertisers (DFA) or DART + * for Publishers. + *

      + * Similar to third-party creatives, a DoubleClick tag is used to retrieve a + * creative asset. However, DoubleClick tags are not sent to the user's browser. + * Instead, they are processed internally within the DoubleClick system.. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalRedirectCreative extends Creative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var string + */ + public $internalRedirectUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalRedirectCreative"; + } + + public function __construct($assetSize = NULL, $internalRedirectUrl = NULL, $overrideSize = NULL, $isInterstitial = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->internalRedirectUrl = $internalRedirectUrl; + $this->overrideSize = $overrideSize; + $this->isInterstitial = $isInterstitial; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LegacyDfpCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by Google DFP, but was migrated + * from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LegacyDfpCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LongCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RedirectAsset", FALSE)) { +/** + * An externally hosted asset. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RedirectAsset extends Asset { + /** + * @access public + * @var string + */ + public $redirectUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioChildAssetProperty", FALSE)) { +/** + * Represents a child asset in {@code RichMediaStudioCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioChildAssetProperty { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsRichMediaStudioChildAssetPropertyType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty"; + } + + public function __construct($name = NULL, $type = NULL, $totalFileSize = NULL, $width = NULL, $height = NULL, $url = NULL) { + $this->name = $name; + $this->type = $type; + $this->totalFileSize = $totalFileSize; + $this->width = $width; + $this->height = $height; + $this->url = $url; + } +}} + +if (!class_exists("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of + * {@link VariableType#STRING} and {@link VariableType#LIST}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SwiffyConversionError", FALSE)) { +/** + * Error for converting flash to swiffy asset. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SwiffyConversionError extends ApiError { + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError"; + } + + 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("SwiffyFallbackAsset", FALSE)) { +/** + * A fallback swiffy asset used for flash creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SwiffyFallbackAsset { + /** + * @access public + * @var CreativeAsset + */ + public $asset; + + /** + * @access public + * @var tnsHtml5Feature[] + */ + public $html5Features; + + /** + * @access public + * @var string[] + */ + public $localizedInfoMessages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyFallbackAsset"; + } + + public function __construct($asset = NULL, $html5Features = NULL, $localizedInfoMessages = NULL) { + $this->asset = $asset; + $this->html5Features = $html5Features; + $this->localizedInfoMessages = $localizedInfoMessages; + } +}} + +if (!class_exists("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TemplateCreative extends Creative { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BaseCreativeTemplateVariableValue[] + */ + public $creativeTemplateVariableValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateCreative"; + } + + public function __construct($creativeTemplateId = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $creativeTemplateVariableValues = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->creativeTemplateId = $creativeTemplateId; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ThirdPartyCreative extends Creative { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $expandedSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyCreative"; + } + + public function __construct($snippet = NULL, $expandedSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->expandedSnippet = $expandedSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TrackingUrls", FALSE)) { +/** + * A list of URLs that should be pinged for a conversion event. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TrackingUrls { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingUrls"; + } + + public function __construct($urls = NULL) { + $this->urls = $urls; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnsupportedCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by this version of the API. + * This object is readonly and when encountered should be reported + * on the DFP API forum. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnsupportedCreative extends Creative { + /** + * @access public + * @var string + */ + public $unsupportedCreativeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnsupportedCreative"; + } + + public function __construct($unsupportedCreativeType = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->unsupportedCreativeType = $unsupportedCreativeType; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VastRedirectCreative", FALSE)) { +/** + * A {@code Creative} that points to an externally hosted VAST ad and is + * served via VAST 2.0 XML as a VAST Wrapper. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VastRedirectCreative extends Creative { + /** + * @access public + * @var string + */ + public $vastXmlUrl; + + /** + * @access public + * @var tnsVastRedirectType + */ + public $vastRedirectType; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectCreative"; + } + + public function __construct($vastXmlUrl = NULL, $vastRedirectType = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $vastPreviewUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->vastXmlUrl = $vastXmlUrl; + $this->vastRedirectType = $vastRedirectType; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectAsset", FALSE)) { +/** + * An externally-hosted video asset. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoRedirectAsset extends RedirectAsset { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("VpaidLinearCreative", FALSE)) { +/** + * A {@code Creative} that displays a DFP-hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $overrideSize = NULL, $flashAssetSize = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->overrideSize = $overrideSize; + $this->flashAssetSize = $flashAssetSize; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VpaidLinearRedirectCreative", FALSE)) { +/** + * A {@code Creative} that displays an externally hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearRedirectCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $flashUrl = NULL, $flashAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->flashUrl = $flashUrl; + $this->flashAssetSize = $flashAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiFramework", FALSE)) { +/** + * The various ApiFramework types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiFramework { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiFramework"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionEvent", FALSE)) { +/** + * All possible tracking event types. Not all events are supported by every + * kind of creative. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ConversionEvent { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Html5Feature", FALSE)) { +/** + * An HTML5 features required by HTML5 assets. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Html5Feature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Html5Feature"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageDensity", FALSE)) { +/** + * Image densities. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageDensity { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageDensity"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioChildAssetPropertyType", FALSE)) { +/** + * Type of {@code RichMediaStudioChildAssetProperty} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioChildAssetPropertyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeArtworkType", FALSE)) { +/** + * Rich Media Studio creative artwork types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioCreativeArtworkType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeArtworkType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeBillingAttribute", FALSE)) { +/** + * Rich Media Studio creative supported billing attributes. + *

      + * This is determined by Rich Media Studio based on the content + * of the creative and is not updateable. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioCreativeBillingAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeBillingAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeFormat", FALSE)) { +/** + * Different creative format supported by Rich Media Studio creative. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioCreativeFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SwiffyConversionErrorReason", FALSE)) { +/** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SwiffyConversionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VastRedirectType", FALSE)) { +/** + * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VastRedirectType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreative", FALSE)) { +/** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("createCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreatives", FALSE)) { +/** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("createCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreative", FALSE)) { +/** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreative { + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeId = NULL) { + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativesByStatement", FALSE)) { +/** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativesByStatementResponse { + /** + * @access public + * @var CreativePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreative", FALSE)) { +/** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("updateCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreatives", FALSE)) { +/** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("updateCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BaseDynamicAllocationCreative", FALSE)) { +/** + * A base class for dynamic allocation creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseDynamicAllocationCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseDynamicAllocationCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AspectRatioImageCreative", FALSE)) { +/** + * A {@code Creative} intended for mobile platforms that displays an image, + * whose {@link LineItem#creativePlaceholders size} is defined as an + * {@link CreativeSizeType#ASPECT_RATIO aspect ratio}, i.e. + * {@link Size#isAspectRatio}. It can have multiple images whose dimensions + * conform to that aspect ratio. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AspectRatioImageCreative"; + } + + public function __construct($imageAssets = NULL, $altText = NULL, $thirdPartyImpressionUrl = NULL, $overrideSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->overrideSize = $overrideSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashCreative", FALSE)) { +/** + * A base type for creatives that display a Flash-based ad. If the Flash ad + * cannot load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $clickTagRequired; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var Size + */ + public $fallbackAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashRedirectCreative", FALSE)) { +/** + * The base type for creatives that load a Flash asset from a specified URL. + * If the remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var string + */ + public $fallbackUrl; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageCreative", FALSE)) { +/** + * The base type for creatives that display an image. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var CreativeAsset + */ + public $primaryImageAsset; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageCreative"; + } + + public function __construct($overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageRedirectCreative", FALSE)) { +/** + * The base type for creatives that load an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageRedirectCreative"; + } + + public function __construct($imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseRichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRichMediaStudioCreative extends Creative { + /** + * @access public + * @var integer + */ + public $studioCreativeId; + + /** + * @access public + * @var tnsRichMediaStudioCreativeFormat + */ + public $creativeFormat; + + /** + * @access public + * @var tnsRichMediaStudioCreativeArtworkType + */ + public $artworkType; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var string[] + */ + public $adTagKeys; + + /** + * @access public + * @var string[] + */ + public $customKeyValues; + + /** + * @access public + * @var string + */ + public $surveyUrl; + + /** + * @access public + * @var string + */ + public $allImpressionsUrl; + + /** + * @access public + * @var string + */ + public $richMediaImpressionsUrl; + + /** + * @access public + * @var string + */ + public $backupImageImpressionsUrl; + + /** + * @access public + * @var string + */ + public $overrideCss; + + /** + * @access public + * @var string + */ + public $requiredFlashPluginVersion; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var tnsRichMediaStudioCreativeBillingAttribute + */ + public $billingAttribute; + + /** + * @access public + * @var RichMediaStudioChildAssetProperty[] + */ + public $richMediaStudioChildAssetProperties; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRichMediaStudioCreative"; + } + + public function __construct($studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseVideoCreative", FALSE)) { +/** + * A base type for video creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var boolean + */ + public $allowDurationOverride; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseVideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ClickTrackingCreative", FALSE)) { +/** + * A creative that is used for tracking clicks on ads that are served directly + * from the customers' web servers or media servers. + * NOTE: The size attribute is not used for click tracking creative and it will + * not be persisted upon save. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClickTrackingCreative extends Creative { + /** + * @access public + * @var string + */ + public $clickTrackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingCreative"; + } + + public function __construct($clickTrackingUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->clickTrackingUrl = $clickTrackingUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CustomCreative", FALSE)) { +/** + * A {@code Creative} that contains an arbitrary HTML snippet and file assets. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * @access public + * @var CustomCreativeAsset[] + */ + public $customCreativeAssets; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreative"; + } + + public function __construct($htmlSnippet = NULL, $customCreativeAssets = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->htmlSnippet = $htmlSnippet; + $this->customCreativeAssets = $customCreativeAssets; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LegacyDfpMobileCreative", FALSE)) { +/** + * A mobile {@code Creative} that isn't supported by Google DFP, but was + * migrated from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpMobileCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashCreative", FALSE)) { +/** + * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot + * load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FlashCreative extends BaseFlashCreative { + /** + * @access public + * @var SwiffyFallbackAsset + */ + public $swiffyAsset; + + /** + * @access public + * @var boolean + */ + public $createSwiffyAsset; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashCreative"; + } + + public function __construct($swiffyAsset = NULL, $createSwiffyAsset = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->swiffyAsset = $swiffyAsset; + $this->createSwiffyAsset = $createSwiffyAsset; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays a Flash-based ad and is + * served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FlashOverlayCreative extends BaseFlashCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $vastPreviewUrl = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads a Flash asset from a specified URL. If the + * remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads a Flash asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashAssetSize = NULL, $vastPreviewUrl = NULL, $flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashAssetSize = $flashAssetSize; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + /** + * @access public + * @var string + */ + public $codeSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasHtmlSnippetDynamicAllocationCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageCreative", FALSE)) { +/** + * A {@code Creative} that displays an image. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageCreative extends BaseImageCreative { + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * @access public + * @var CreativeAsset[] + */ + public $secondaryImageAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageCreative"; + } + + public function __construct($altText = NULL, $thirdPartyImpressionUrl = NULL, $secondaryImageAssets = NULL, $overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->secondaryImageAssets = $secondaryImageAssets; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays an image and is served via VAST + * 2.0 XML. Overlays cover part of the video content they are displayed on + * top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageOverlayCreative extends BaseImageCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $vastPreviewUrl = NULL, $overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectCreative"; + } + + public function __construct($altText = NULL, $thirdPartyImpressionUrl = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads an image asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectOverlayCreative"; + } + + public function __construct($assetSize = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, + * but you can update some fields of this creative. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreative"; + } + + public function __construct($isInterstitial = NULL, $studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->isInterstitial = $isInterstitial; + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoCreative", FALSE)) { +/** + * A {@code Creative} that contains DFP-hosted video ads and is served + * via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoCreative extends BaseVideoCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectCreative", FALSE)) { +/** + * A {@code Creative} that contains externally hosted video ads and + * is served via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoRedirectCreative extends BaseVideoCreative { + /** + * @access public + * @var VideoRedirectAsset[] + */ + public $videoAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectCreative"; + } + + public function __construct($videoAssets = NULL, $duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExchangeCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdSenseCreative", FALSE)) { +/** + * An AdSense dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeService", FALSE)) { +/** + * CreativeService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CreativeService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "Creative" => "Creative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "AdExchangeCreative" => "AdExchangeCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "AdSenseCreative" => "AdSenseCreative", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AspectRatioImageCreative" => "AspectRatioImageCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", + "Asset" => "Asset", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseFlashCreative" => "BaseFlashCreative", + "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", + "BaseImageCreative" => "BaseImageCreative", + "BaseImageRedirectCreative" => "BaseImageRedirectCreative", + "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", + "BaseVideoCreative" => "BaseVideoCreative", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingCreative" => "ClickTrackingCreative", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", + "CreativeAsset" => "CreativeAsset", + "CustomCreativeAsset" => "CustomCreativeAsset", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativePage" => "CreativePage", + "CreativeSetError" => "CreativeSetError", + "CustomCreative" => "CustomCreative", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValue" => "CustomFieldValue", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LegacyDfpCreative" => "LegacyDfpCreative", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RedirectAsset" => "RedirectAsset", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", + "RichMediaStudioCreative" => "RichMediaStudioCreative", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringCreativeTemplateVariableValue" => "StringCreativeTemplateVariableValue", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SwiffyConversionError" => "SwiffyConversionError", + "SwiffyFallbackAsset" => "SwiffyFallbackAsset", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "ThirdPartyCreative" => "ThirdPartyCreative", + "TrackingUrls" => "TrackingUrls", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UnsupportedCreative" => "UnsupportedCreative", + "UrlCreativeTemplateVariableValue" => "UrlCreativeTemplateVariableValue", + "VastRedirectCreative" => "VastRedirectCreative", + "VideoCreative" => "VideoCreative", + "VideoRedirectAsset" => "VideoRedirectAsset", + "VideoRedirectCreative" => "VideoRedirectCreative", + "VpaidLinearCreative" => "VpaidLinearCreative", + "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", + "ApiFramework" => "ApiFramework", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ConversionEvent" => "ConversionEvent", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "Html5Feature" => "Html5Feature", + "ImageDensity" => "ImageDensity", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", + "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", + "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "VastRedirectType" => "VastRedirectType", + "createCreative" => "createCreative", + "createCreativeResponse" => "createCreativeResponse", + "createCreatives" => "createCreatives", + "createCreativesResponse" => "createCreativesResponse", + "getCreative" => "getCreative", + "getCreativeResponse" => "getCreativeResponse", + "getCreativesByStatement" => "getCreativesByStatement", + "getCreativesByStatementResponse" => "getCreativesByStatementResponse", + "updateCreative" => "updateCreative", + "updateCreativeResponse" => "updateCreativeResponse", + "updateCreatives" => "updateCreatives", + "updateCreativesResponse" => "updateCreativesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/CreativeService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *
        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + */ + public function createCreative($creative) { + $arg = new createCreative($creative); + $result = $this->__soapCall("createCreative", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + */ + public function createCreatives($creatives) { + $arg = new createCreatives($creatives); + $result = $this->__soapCall("createCreatives", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + */ + public function getCreative($creativeId) { + $arg = new getCreative($creativeId); + $result = $this->__soapCall("getCreative", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + */ + public function getCreativesByStatement($filterStatement) { + $arg = new getCreativesByStatement($filterStatement); + $result = $this->__soapCall("getCreativesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + */ + public function updateCreative($creative) { + $arg = new updateCreative($creative); + $result = $this->__soapCall("updateCreative", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + */ + public function updateCreatives($creatives) { + $arg = new updateCreatives($creatives); + $result = $this->__soapCall("updateCreatives", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php new file mode 100755 index 000000000..1e5517604 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php @@ -0,0 +1,3344 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSet", FALSE)) { +/** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSet { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $masterCreativeId; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSet"; + } + + public function __construct($id = NULL, $name = NULL, $masterCreativeId = NULL, $companionCreativeIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->masterCreativeId = $masterCreativeId; + $this->companionCreativeIds = $companionCreativeIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CreativeSetPage", FALSE)) { +/** + * Captures a page of {@link CreativeSet} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeSet[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeSet", FALSE)) { +/** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("createCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSet", FALSE)) { +/** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeSet { + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSetId = NULL) { + $this->creativeSetId = $creativeSetId; + } +}} + +if (!class_exists("getCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSetsByStatement", FALSE)) { +/** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeSetsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getCreativeSetsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeSetsByStatementResponse { + /** + * @access public + * @var CreativeSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeSet", FALSE)) { +/** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("updateCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeSetService", FALSE)) { +/** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CreativeSetService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSet" => "CreativeSet", + "CreativeSetError" => "CreativeSetError", + "CreativeSetPage" => "CreativeSetPage", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCreativeSet" => "createCreativeSet", + "createCreativeSetResponse" => "createCreativeSetResponse", + "getCreativeSet" => "getCreativeSet", + "getCreativeSetResponse" => "getCreativeSetResponse", + "getCreativeSetsByStatement" => "getCreativeSetsByStatement", + "getCreativeSetsByStatementResponse" => "getCreativeSetsByStatementResponse", + "updateCreativeSet" => "updateCreativeSet", + "updateCreativeSetResponse" => "updateCreativeSetResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/CreativeSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeSetService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + */ + public function createCreativeSet($creativeSet) { + $arg = new createCreativeSet($creativeSet); + $result = $this->__soapCall("createCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + */ + public function getCreativeSet($creativeSetId) { + $arg = new getCreativeSet($creativeSetId); + $result = $this->__soapCall("getCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + */ + public function getCreativeSetsByStatement($statement) { + $arg = new getCreativeSetsByStatement($statement); + $result = $this->__soapCall("getCreativeSetsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + */ + public function updateCreativeSet($creativeSet) { + $arg = new updateCreativeSet($creativeSet); + $result = $this->__soapCall("updateCreativeSet", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php new file mode 100755 index 000000000..ad0dae8ad --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php @@ -0,0 +1,3192 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeTemplate", FALSE)) { +/** + * A template upon which a creative can be created. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var CreativeTemplateVariable[] + */ + public $variables; + + /** + * @access public + * @var tnsCreativeTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsCreativeTemplateType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $variables = NULL, $status = NULL, $type = NULL, $isInterstitial = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->variables = $variables; + $this->status = $status; + $this->type = $type; + $this->isInterstitial = $isInterstitial; + } +}} + +if (!class_exists("CreativeTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeTemplateError extends ApiError { + /** + * @access public + * @var tnsCreativeTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError"; + } + + 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("ListStringCreativeTemplateVariableVariableChoice", FALSE)) { +/** + * Stores variable choices that users can select from + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ListStringCreativeTemplateVariableVariableChoice { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable.VariableChoice"; + } + + public function __construct($label = NULL, $value = NULL) { + $this->label = $label; + $this->value = $value; + } +}} + +if (!class_exists("CreativeTemplatePage", FALSE)) { +/** + * Captures a page of {@link CreativeTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeTemplateVariable", FALSE)) { +/** + * Represents a variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isRequired; + + /** + * @access public + * @var string + */ + public $CreativeTemplateVariableType; + + private $_parameterMap = array ( + "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateVariable"; + } + + public function __construct($label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetCreativeTemplateVariableMimeType", FALSE)) { +/** + * Different mime type that the asset variable supports. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetCreativeTemplateVariableMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateStatus", FALSE)) { +/** + * Describes status of the creative template + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateType", FALSE)) { +/** + * Describes type of the creative template. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeTemplateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getCreativeTemplate", FALSE)) { +/** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeTemplate { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeTemplateId = NULL) { + $this->creativeTemplateId = $creativeTemplateId; + } +}} + +if (!class_exists("getCreativeTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeTemplateResponse { + /** + * @access public + * @var CreativeTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeTemplatesByStatement", FALSE)) { +/** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeTemplatesByStatementResponse { + /** + * @access public + * @var CreativeTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AssetCreativeTemplateVariable", FALSE)) { +/** + * Represents a file asset variable defined in a creative template. + *

      + * Use {@link AssetCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var tnsAssetCreativeTemplateVariableMimeType[] + */ + public $mimeTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable"; + } + + public function __construct($mimeTypes = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->mimeTypes = $mimeTypes; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("LongCreativeTemplateVariable", FALSE)) { +/** + * Represents a long variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var integer + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("StringCreativeTemplateVariable", FALSE)) { +/** + * Represents a string variable defined in a creative template. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariable", FALSE)) { +/** + * Represents a url variable defined in a creative template. + *

      + * Use {@link UrlCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ListStringCreativeTemplateVariable", FALSE)) { +/** + * Represents a list variable defined in a creative template. This is similar to + * {@link StringCreativeTemplateVariable}, except that there are possible choices to + * choose from. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + /** + * @access public + * @var ListStringCreativeTemplateVariableVariableChoice[] + */ + public $choices; + + /** + * @access public + * @var boolean + */ + public $allowOtherChoice; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable"; + } + + public function __construct($choices = NULL, $allowOtherChoice = NULL, $defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->choices = $choices; + $this->allowOtherChoice = $allowOtherChoice; + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("CreativeTemplateService", FALSE)) { +/** + * CreativeTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CreativeTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", + "CreativeTemplateVariable" => "CreativeTemplateVariable", + "CreativeTemplate" => "CreativeTemplate", + "CreativeTemplateError" => "CreativeTemplateError", + "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", + "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", + "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", + "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", + "CreativeTemplatePage" => "CreativeTemplatePage", + "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", + "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", + "CreativeTemplateStatus" => "CreativeTemplateStatus", + "CreativeTemplateType" => "CreativeTemplateType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getCreativeTemplate" => "getCreativeTemplate", + "getCreativeTemplateResponse" => "getCreativeTemplateResponse", + "getCreativeTemplatesByStatement" => "getCreativeTemplatesByStatement", + "getCreativeTemplatesByStatementResponse" => "getCreativeTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/CreativeTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeTemplateService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + */ + public function getCreativeTemplate($creativeTemplateId) { + $arg = new getCreativeTemplate($creativeTemplateId); + $result = $this->__soapCall("getCreativeTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + */ + public function getCreativeTemplatesByStatement($filterStatement) { + $arg = new getCreativeTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getCreativeTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php new file mode 100755 index 000000000..67b02b4b4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php @@ -0,0 +1,3385 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CreativeWrapper} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperAction { + /** + * @access public + * @var string + */ + public $CreativeWrapperActionType; + + private $_parameterMap = array ( + "CreativeWrapperAction.Type" => "CreativeWrapperActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperAction"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("CreativeWrapper", FALSE)) { +/** + * A {@code CreativeWrapper} allows the wrapping of HTML snippets to be + * served along with {@code Creative} objects. + *

      + * Creative wrappers must be associated with a + * {@link LabelType#CREATIVE_WRAPPER} label and applied to ad units by + * {@link AdUnit#appliedLabels}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapper { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $header; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $footer; + + /** + * @access public + * @var tnsCreativeWrapperOrdering + */ + public $ordering; + + /** + * @access public + * @var tnsCreativeWrapperStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapper"; + } + + public function __construct($id = NULL, $labelId = NULL, $header = NULL, $footer = NULL, $ordering = NULL, $status = NULL) { + $this->id = $id; + $this->labelId = $labelId; + $this->header = $header; + $this->footer = $footer; + $this->ordering = $ordering; + $this->status = $status; + } +}} + +if (!class_exists("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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("CreativeWrapperPage", FALSE)) { +/** + * Captures a page of {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCreativeWrappers", FALSE)) { +/** + * The action used for deactivating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("CreativeWrapperHtmlSnippet", FALSE)) { +/** + * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is + * delivered as the header or footer. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperHtmlSnippet { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperHtmlSnippet"; + } + + public function __construct($htmlSnippet = NULL) { + $this->htmlSnippet = $htmlSnippet; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperOrdering", FALSE)) { +/** + * Defines the order in which the header and footer HTML snippets will be + * wrapped around the served creative. {@code INNER} snippets will be wrapped + * first, followed by {@code NO_PREFERENCE} and finally {@code OUTER}. If the + * creative needs to be wrapped with more than one snippet with the same + * {@link CreativeWrapperOrdering}, then the order is unspecified. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperOrdering { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperOrdering"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperStatus", FALSE)) { +/** + * Indicates whether the {@code CreativeWrapper} is active. HTML snippets + * are served to creatives only when the creative wrapper is active. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeWrapper", FALSE)) { +/** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("createCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreativeWrappers", FALSE)) { +/** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("createCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrapper", FALSE)) { +/** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeWrapper { + /** + * @access public + * @var integer + */ + public $creativeWrapperId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperId = NULL) { + $this->creativeWrapperId = $creativeWrapperId; + } +}} + +if (!class_exists("getCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrappersByStatement", FALSE)) { +/** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeWrappersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeWrappersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCreativeWrappersByStatementResponse { + /** + * @access public + * @var CreativeWrapperPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCreativeWrapperAction", FALSE)) { +/** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performCreativeWrapperAction { + /** + * @access public + * @var CreativeWrapperAction + */ + public $creativeWrapperAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperAction = NULL, $filterStatement = NULL) { + $this->creativeWrapperAction = $creativeWrapperAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCreativeWrapperActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performCreativeWrapperActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrapper", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("updateCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrappers", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("updateCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCreativeWrappers", FALSE)) { +/** + * The action used for activating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeWrapperService", FALSE)) { +/** + * CreativeWrapperService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CreativeWrapperService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCreativeWrappers" => "ActivateCreativeWrappers", + "CreativeWrapperAction" => "CreativeWrapperAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapper" => "CreativeWrapper", + "CreativeWrapperError" => "CreativeWrapperError", + "CreativeWrapperPage" => "CreativeWrapperPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateCreativeWrappers" => "DeactivateCreativeWrappers", + "FeatureError" => "FeatureError", + "CreativeWrapperHtmlSnippet" => "CreativeWrapperHtmlSnippet", + "InternalApiError" => "InternalApiError", + "LabelError" => "LabelError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "CreativeWrapperOrdering" => "CreativeWrapperOrdering", + "CreativeWrapperStatus" => "CreativeWrapperStatus", + "LabelError.Reason" => "LabelErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createCreativeWrapper" => "createCreativeWrapper", + "createCreativeWrapperResponse" => "createCreativeWrapperResponse", + "createCreativeWrappers" => "createCreativeWrappers", + "createCreativeWrappersResponse" => "createCreativeWrappersResponse", + "getCreativeWrapper" => "getCreativeWrapper", + "getCreativeWrapperResponse" => "getCreativeWrapperResponse", + "getCreativeWrappersByStatement" => "getCreativeWrappersByStatement", + "getCreativeWrappersByStatementResponse" => "getCreativeWrappersByStatementResponse", + "performCreativeWrapperAction" => "performCreativeWrapperAction", + "performCreativeWrapperActionResponse" => "performCreativeWrapperActionResponse", + "updateCreativeWrapper" => "updateCreativeWrapper", + "updateCreativeWrapperResponse" => "updateCreativeWrapperResponse", + "updateCreativeWrappers" => "updateCreativeWrappers", + "updateCreativeWrappersResponse" => "updateCreativeWrappersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/CreativeWrapperService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeWrapperService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeWrapperService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + */ + public function createCreativeWrapper($creativeWrapper) { + $arg = new createCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("createCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + */ + public function createCreativeWrappers($creativeWrappers) { + $arg = new createCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("createCreativeWrappers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + */ + public function getCreativeWrapper($creativeWrapperId) { + $arg = new getCreativeWrapper($creativeWrapperId); + $result = $this->__soapCall("getCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + */ + public function getCreativeWrappersByStatement($filterStatement) { + $arg = new getCreativeWrappersByStatement($filterStatement); + $result = $this->__soapCall("getCreativeWrappersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performCreativeWrapperAction($creativeWrapperAction, $filterStatement) { + $arg = new performCreativeWrapperAction($creativeWrapperAction, $filterStatement); + $result = $this->__soapCall("performCreativeWrapperAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + */ + public function updateCreativeWrapper($creativeWrapper) { + $arg = new updateCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("updateCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + */ + public function updateCreativeWrappers($creativeWrappers) { + $arg = new updateCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("updateCreativeWrappers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php new file mode 100755 index 000000000..4c64d7323 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php @@ -0,0 +1,3856 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldAction { + /** + * @access public + * @var string + */ + public $CustomFieldActionType; + + private $_parameterMap = array ( + "CustomFieldAction.Type" => "CustomFieldActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldAction"; + } + + public function __construct($CustomFieldActionType = NULL) { + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("CustomField", FALSE)) { +/** + * An additional, user-created field on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomField { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsCustomFieldEntityType + */ + public $entityType; + + /** + * @access public + * @var tnsCustomFieldDataType + */ + public $dataType; + + /** + * @access public + * @var tnsCustomFieldVisibility + */ + public $visibility; + + /** + * @access public + * @var string + */ + public $CustomFieldType; + + private $_parameterMap = array ( + "CustomField.Type" => "CustomFieldType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomField"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("CustomFieldError", FALSE)) { +/** + * Errors specific to editing custom fields + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldError extends ApiError { + /** + * @access public + * @var tnsCustomFieldErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError"; + } + + 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("CustomFieldOption", FALSE)) { +/** + * An option represents a permitted value for a custom field that + * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldOption { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldOption"; + } + + public function __construct($id = NULL, $customFieldId = NULL, $displayName = NULL) { + $this->id = $id; + $this->customFieldId = $customFieldId; + $this->displayName = $displayName; + } +}} + +if (!class_exists("CustomFieldPage", FALSE)) { +/** + * Captures a page of {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomField[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCustomFields", FALSE)) { +/** + * The action used for deactivating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("DropDownCustomField", FALSE)) { +/** + * A custom field that has the drop-down data type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomField extends CustomField { + /** + * @access public + * @var CustomFieldOption[] + */ + public $options; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomField"; + } + + public function __construct($options = NULL, $id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + parent::__construct(); + $this->options = $options; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldDataType", FALSE)) { +/** + * The data types allowed for {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldDataType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldDataType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldEntityType", FALSE)) { +/** + * Entity types recognized by custom fields + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldEntityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldEntityType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldVisibility", FALSE)) { +/** + * The visibility levels of a custom field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldVisibility { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldVisibility"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomField", FALSE)) { +/** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("createCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOption", FALSE)) { +/** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("createCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOptions", FALSE)) { +/** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("createCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFields", FALSE)) { +/** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("createCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomField", FALSE)) { +/** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomField { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldId = NULL) { + $this->customFieldId = $customFieldId; + } +}} + +if (!class_exists("getCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldOption", FALSE)) { +/** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomFieldOption { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptionId = NULL) { + $this->customFieldOptionId = $customFieldOptionId; + } +}} + +if (!class_exists("getCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldsByStatement", FALSE)) { +/** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomFieldsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomFieldsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomFieldsByStatementResponse { + /** + * @access public + * @var CustomFieldPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomFieldAction", FALSE)) { +/** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performCustomFieldAction { + /** + * @access public + * @var CustomFieldAction + */ + public $customFieldAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldAction = NULL, $filterStatement = NULL) { + $this->customFieldAction = $customFieldAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomFieldActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performCustomFieldActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomField", FALSE)) { +/** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("updateCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOption", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("updateCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOptions", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("updateCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFields", FALSE)) { +/** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("updateCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCustomFields", FALSE)) { +/** + * The action used for activating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomFieldService", FALSE)) { +/** + * CustomFieldService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CustomFieldService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCustomFields" => "ActivateCustomFields", + "CustomFieldAction" => "CustomFieldAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomField" => "CustomField", + "CustomFieldError" => "CustomFieldError", + "CustomFieldOption" => "CustomFieldOption", + "CustomFieldPage" => "CustomFieldPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateCustomFields" => "DeactivateCustomFields", + "DropDownCustomField" => "DropDownCustomField", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldDataType" => "CustomFieldDataType", + "CustomFieldEntityType" => "CustomFieldEntityType", + "CustomFieldError.Reason" => "CustomFieldErrorReason", + "CustomFieldVisibility" => "CustomFieldVisibility", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomField" => "createCustomField", + "createCustomFieldResponse" => "createCustomFieldResponse", + "createCustomFieldOption" => "createCustomFieldOption", + "createCustomFieldOptionResponse" => "createCustomFieldOptionResponse", + "createCustomFieldOptions" => "createCustomFieldOptions", + "createCustomFieldOptionsResponse" => "createCustomFieldOptionsResponse", + "createCustomFields" => "createCustomFields", + "createCustomFieldsResponse" => "createCustomFieldsResponse", + "getCustomField" => "getCustomField", + "getCustomFieldResponse" => "getCustomFieldResponse", + "getCustomFieldOption" => "getCustomFieldOption", + "getCustomFieldOptionResponse" => "getCustomFieldOptionResponse", + "getCustomFieldsByStatement" => "getCustomFieldsByStatement", + "getCustomFieldsByStatementResponse" => "getCustomFieldsByStatementResponse", + "performCustomFieldAction" => "performCustomFieldAction", + "performCustomFieldActionResponse" => "performCustomFieldActionResponse", + "updateCustomField" => "updateCustomField", + "updateCustomFieldResponse" => "updateCustomFieldResponse", + "updateCustomFieldOption" => "updateCustomFieldOption", + "updateCustomFieldOptionResponse" => "updateCustomFieldOptionResponse", + "updateCustomFieldOptions" => "updateCustomFieldOptions", + "updateCustomFieldOptionsResponse" => "updateCustomFieldOptionsResponse", + "updateCustomFields" => "updateCustomFields", + "updateCustomFieldsResponse" => "updateCustomFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/CustomFieldService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomFieldService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomFieldService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + */ + public function createCustomField($customField) { + $arg = new createCustomField($customField); + $result = $this->__soapCall("createCustomField", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + */ + public function createCustomFieldOption($customFieldOption) { + $arg = new createCustomFieldOption($customFieldOption); + $result = $this->__soapCall("createCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + */ + public function createCustomFieldOptions($customFieldOptions) { + $arg = new createCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("createCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + */ + public function createCustomFields($customFields) { + $arg = new createCustomFields($customFields); + $result = $this->__soapCall("createCustomFields", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + */ + public function getCustomField($customFieldId) { + $arg = new getCustomField($customFieldId); + $result = $this->__soapCall("getCustomField", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + */ + public function getCustomFieldOption($customFieldOptionId) { + $arg = new getCustomFieldOption($customFieldOptionId); + $result = $this->__soapCall("getCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + */ + public function getCustomFieldsByStatement($filterStatement) { + $arg = new getCustomFieldsByStatement($filterStatement); + $result = $this->__soapCall("getCustomFieldsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + */ + public function performCustomFieldAction($customFieldAction, $filterStatement) { + $arg = new performCustomFieldAction($customFieldAction, $filterStatement); + $result = $this->__soapCall("performCustomFieldAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + */ + public function updateCustomField($customField) { + $arg = new updateCustomField($customField); + $result = $this->__soapCall("updateCustomField", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + */ + public function updateCustomFieldOption($customFieldOption) { + $arg = new updateCustomFieldOption($customFieldOption); + $result = $this->__soapCall("updateCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + */ + public function updateCustomFieldOptions($customFieldOptions) { + $arg = new updateCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("updateCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + */ + public function updateCustomFields($customFields) { + $arg = new updateCustomFields($customFields); + $result = $this->__soapCall("updateCustomFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php new file mode 100755 index 000000000..637c23260 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php @@ -0,0 +1,3556 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomTargetingKeyAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingKey} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingKeyAction { + /** + * @access public + * @var string + */ + public $CustomTargetingKeyActionType; + + private $_parameterMap = array ( + "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyAction"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("CustomTargetingKey", FALSE)) { +/** + * {@code CustomTargetingKey} represents a key used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingKey { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingKeyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey"; + } + + public function __construct($id = NULL, $name = NULL, $displayName = NULL, $type = NULL) { + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->type = $type; + } +}} + +if (!class_exists("CustomTargetingKeyPage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingKeyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomTargetingValueAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingValue} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingValueAction { + /** + * @access public + * @var string + */ + public $CustomTargetingValueActionType; + + private $_parameterMap = array ( + "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValueAction"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("CustomTargetingValue", FALSE)) { +/** + * {@code CustomTargetingValue} represents a value used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingValue { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingValueMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue"; + } + + public function __construct($customTargetingKeyId = NULL, $id = NULL, $name = NULL, $displayName = NULL, $matchType = NULL) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->matchType = $matchType; + } +}} + +if (!class_exists("CustomTargetingValuePage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingValuePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValuePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeleteCustomTargetingKeys", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingKey} objects. Deleting a key will not delete the + * {@link CustomTargetingValue} objects associated with it. Also, if a custom + * targeting key that has been deleted is recreated, any previous custom + * targeting values associated with it that were not deleted will continue to + * exist. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingKeys"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + parent::__construct(); + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("DeleteCustomTargetingValues", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingValues"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + parent::__construct(); + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingKeyType", FALSE)) { +/** + * Specifies the types for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingKeyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingValueMatchType", FALSE)) { +/** + * Represents the ways in which {@link CustomTargetingValue#name} strings will + * be matched with ad requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingValueMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue.MatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomTargetingKeys", FALSE)) { +/** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("createCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomTargetingValues", FALSE)) { +/** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("createCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomTargetingKeysByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomTargetingKeysByStatementResponse { + /** + * @access public + * @var CustomTargetingKeyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomTargetingValuesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCustomTargetingValuesByStatementResponse { + /** + * @access public + * @var CustomTargetingValuePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingKeyAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performCustomTargetingKeyAction { + /** + * @access public + * @var CustomTargetingKeyAction + */ + public $customTargetingKeyAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingKeyAction = NULL, $filterStatement = NULL) { + $this->customTargetingKeyAction = $customTargetingKeyAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingKeyActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performCustomTargetingKeyActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingValueAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performCustomTargetingValueAction { + /** + * @access public + * @var CustomTargetingValueAction + */ + public $customTargetingValueAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingValueAction = NULL, $filterStatement = NULL) { + $this->customTargetingValueAction = $customTargetingValueAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingValueActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performCustomTargetingValueActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingKeys", FALSE)) { +/** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("updateCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingValues", FALSE)) { +/** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("updateCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomTargetingService", FALSE)) { +/** + * CustomTargetingService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class CustomTargetingService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", + "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "CustomTargetingKey.Type" => "CustomTargetingKeyType", + "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomTargetingKeys" => "createCustomTargetingKeys", + "createCustomTargetingKeysResponse" => "createCustomTargetingKeysResponse", + "createCustomTargetingValues" => "createCustomTargetingValues", + "createCustomTargetingValuesResponse" => "createCustomTargetingValuesResponse", + "getCustomTargetingKeysByStatement" => "getCustomTargetingKeysByStatement", + "getCustomTargetingKeysByStatementResponse" => "getCustomTargetingKeysByStatementResponse", + "getCustomTargetingValuesByStatement" => "getCustomTargetingValuesByStatement", + "getCustomTargetingValuesByStatementResponse" => "getCustomTargetingValuesByStatementResponse", + "performCustomTargetingKeyAction" => "performCustomTargetingKeyAction", + "performCustomTargetingKeyActionResponse" => "performCustomTargetingKeyActionResponse", + "performCustomTargetingValueAction" => "performCustomTargetingValueAction", + "performCustomTargetingValueActionResponse" => "performCustomTargetingValueActionResponse", + "updateCustomTargetingKeys" => "updateCustomTargetingKeys", + "updateCustomTargetingKeysResponse" => "updateCustomTargetingKeysResponse", + "updateCustomTargetingValues" => "updateCustomTargetingValues", + "updateCustomTargetingValuesResponse" => "updateCustomTargetingValuesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/CustomTargetingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomTargetingService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomTargetingService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingKeys($keys) { + $arg = new createCustomTargetingKeys($keys); + $result = $this->__soapCall("createCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingValues($values) { + $arg = new createCustomTargetingValues($values); + $result = $this->__soapCall("createCustomTargetingValues", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + */ + public function getCustomTargetingKeysByStatement($filterStatement) { + $arg = new getCustomTargetingKeysByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + */ + public function getCustomTargetingValuesByStatement($filterStatement) { + $arg = new getCustomTargetingValuesByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + */ + public function performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement) { + $arg = new performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingKeyAction", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performCustomTargetingValueAction($customTargetingValueAction, $filterStatement) { + $arg = new performCustomTargetingValueAction($customTargetingValueAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingValueAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function updateCustomTargetingKeys($keys) { + $arg = new updateCustomTargetingKeys($keys); + $result = $this->__soapCall("updateCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + */ + public function updateCustomTargetingValues($values) { + $arg = new updateCustomTargetingValues($values); + $result = $this->__soapCall("updateCustomTargetingValues", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ForecastService.php b/src/Google/Api/Ads/Dfp/v201306/ForecastService.php new file mode 100755 index 000000000..d76862b7a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ForecastService.php @@ -0,0 +1,8530 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("Forecast", FALSE)) { +/** + * Describes predicted inventory availability for a line item with the specified + * properties. + * + *

      Inventory has three threshold values along a line of possible inventory. + * From least to most, these are: + * + *

        + *
      • Available units -- How many units can be booked without affecting any + * other line items. Booking more than this number can overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because if more impressions are + * served than are predicted, the extra available inventory might enable all + * inventory guarantees to be met without overbooking. + * + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Forecast { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $deliveredUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var integer + */ + public $possibleUnits; + + /** + * @access public + * @var integer + */ + public $reservedUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Forecast"; + } + + public function __construct($id = NULL, $orderId = NULL, $unitType = NULL, $availableUnits = NULL, $deliveredUnits = NULL, $matchedUnits = NULL, $possibleUnits = NULL, $reservedUnits = NULL) { + $this->id = $id; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->availableUnits = $availableUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + $this->possibleUnits = $possibleUnits; + $this->reservedUnits = $reservedUnits; + } +}} + +if (!class_exists("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var boolean + */ + public $isMissingCreatives; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("getForecast", FALSE)) { +/** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getForecast { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("getForecastResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getForecastResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getForecastById", FALSE)) { +/** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getForecastById { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getForecastByIdResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getForecastByIdResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ForecastService", FALSE)) { +/** + * ForecastService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ForecastService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "Forecast" => "Forecast", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "getForecast" => "getForecast", + "getForecastResponse" => "getForecastResponse", + "getForecastById" => "getForecastById", + "getForecastByIdResponse" => "getForecastByIdResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ForecastService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ForecastService::$classmap; + parent::__construct($wsdl, $options, $user, 'ForecastService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + */ + public function getForecast($lineItem) { + $arg = new getForecast($lineItem); + $result = $this->__soapCall("getForecast", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + */ + public function getForecastById($lineItemId) { + $arg = new getForecastById($lineItemId); + $result = $this->__soapCall("getForecastById", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/InventoryService.php b/src/Google/Api/Ads/Dfp/v201306/InventoryService.php new file mode 100755 index 000000000..8c0dfa5ad --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/InventoryService.php @@ -0,0 +1,5256 @@ +adSenseEnabled = $adSenseEnabled; + $this->borderColor = $borderColor; + $this->titleColor = $titleColor; + $this->backgroundColor = $backgroundColor; + $this->textColor = $textColor; + $this->urlColor = $urlColor; + $this->adType = $adType; + $this->borderStyle = $borderStyle; + $this->fontFamily = $fontFamily; + $this->fontSize = $fontSize; + $this->afcFormats = $afcFormats; + } +}} + +if (!class_exists("AdSenseSettingsInheritedProperty", FALSE)) { +/** + * The property of the AdUnit that specifies how and from where the + * AdSenseSettings are inherited. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseSettingsInheritedProperty { + /** + * @access public + * @var AdSenseSettings + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettingsInheritedProperty"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("AdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitAction { + /** + * @access public + * @var string + */ + public $AdUnitActionType; + + private $_parameterMap = array ( + "AdUnitAction.Type" => "AdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAction"; + } + + public function __construct($AdUnitActionType = NULL) { + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdUnit", FALSE)) { +/** + * An {@code AdUnit} represents a chunk of identified inventory for the + * publisher. It contains all the settings that need to be associated with + * inventory in order to serve ads to it. An {@code AdUnit} can also be the + * parent of other ad units in the inventory hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $parentId; + + /** + * @access public + * @var boolean + */ + public $hasChildren; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $adUnitCode; + + /** + * @access public + * @var AdUnitSize[] + */ + public $adUnitSizes; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsMobilePlatform + */ + public $mobilePlatform; + + /** + * @access public + * @var boolean + */ + public $explicitlyTargeted; + + /** + * @access public + * @var AdSenseSettingsInheritedProperty + */ + public $inheritedAdSenseSettings; + + /** + * @access public + * @var integer + */ + public $partnerId; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $appliedLabelFrequencyCaps; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $effectiveLabelFrequencyCaps; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer[] + */ + public $effectiveTeamIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var tnsSmartSizeMode + */ + public $smartSizeMode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit"; + } + + public function __construct($id = NULL, $parentId = NULL, $hasChildren = NULL, $parentPath = NULL, $name = NULL, $description = NULL, $targetWindow = NULL, $status = NULL, $adUnitCode = NULL, $adUnitSizes = NULL, $targetPlatform = NULL, $mobilePlatform = NULL, $explicitlyTargeted = NULL, $inheritedAdSenseSettings = NULL, $partnerId = NULL, $appliedLabelFrequencyCaps = NULL, $effectiveLabelFrequencyCaps = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $effectiveTeamIds = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $smartSizeMode = NULL) { + $this->id = $id; + $this->parentId = $parentId; + $this->hasChildren = $hasChildren; + $this->parentPath = $parentPath; + $this->name = $name; + $this->description = $description; + $this->targetWindow = $targetWindow; + $this->status = $status; + $this->adUnitCode = $adUnitCode; + $this->adUnitSizes = $adUnitSizes; + $this->targetPlatform = $targetPlatform; + $this->mobilePlatform = $mobilePlatform; + $this->explicitlyTargeted = $explicitlyTargeted; + $this->inheritedAdSenseSettings = $inheritedAdSenseSettings; + $this->partnerId = $partnerId; + $this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; + $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->effectiveTeamIds = $effectiveTeamIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->smartSizeMode = $smartSizeMode; + } +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("AdUnitParent", FALSE)) { +/** + * The summary of a parent {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitParent { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitParent"; + } + + public function __construct($id = NULL, $name = NULL) { + $this->id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("ArchiveAdUnits", FALSE)) { +/** + * The action used for archiving {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AssignAdUnitsToPlacement", FALSE)) { +/** + * The action used for assigning a group of {@link AdUnit} objects to a + * {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssignAdUnitsToPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateAdUnits", FALSE)) { +/** + * The action used for deactivating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidColorError", FALSE)) { +/** + * A list of all errors associated with a color attribute. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidColorError extends ApiError { + /** + * @access public + * @var tnsInvalidColorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("InventoryUnitPartnerAssociationError", FALSE)) { +/** + * Errors relating to the association of partner companies with inventory units. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitPartnerAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("InventoryUnitSizesError", FALSE)) { +/** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitSizesError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError"; + } + + 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("AdUnitTypeError", FALSE)) { +/** + * Lists the errors associated with the type of {@link AdUnit} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitTypeError extends ApiError { + /** + * @access public + * @var tnsAdUnitTypeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError"; + } + + 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("LabelFrequencyCap", FALSE)) { +/** + * A {@code LabelFrequencyCap} assigns a frequency cap to a label. The + * frequency cap will limit the cumulative number of impressions of any ad + * units with this label that may be shown to a particular user over a time + * unit. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelFrequencyCap { + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelFrequencyCap"; + } + + public function __construct($frequencyCap = NULL, $labelId = NULL) { + $this->frequencyCap = $frequencyCap; + $this->labelId = $labelId; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RemoveAdUnitsFromPlacement", FALSE)) { +/** + * The action used for removing a group of {@link AdUnit} objects + * from a {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RemoveAdUnitsFromPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RemoveAdUnitsFromPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size_StringMapEntry { + /** + * @access public + * @var Size + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsAdType", FALSE)) { +/** + * Specifies the type of ads that can be served through this {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseSettingsAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.AdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsBorderStyle", FALSE)) { +/** + * Describes the border of the HTML elements used to surround an ad + * displayed by the {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseSettingsBorderStyle { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.BorderStyle"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontFamily", FALSE)) { +/** + * List of all possible font families. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseSettingsFontFamily { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontFamily"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontSize", FALSE)) { +/** + * List of all possible font sizes the user can choose. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseSettingsFontSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontSize"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidColorErrorReason", FALSE)) { +/** + * The provided value is not a valid hexadecimal color. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidColorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitPartnerAssociationErrorReason", FALSE)) { +/** + * Partner association error reason types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitPartnerAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitSizesErrorReason", FALSE)) { +/** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitSizesErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTypeErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitTypeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobilePlatform", FALSE)) { +/** + * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit + * appears in a mobile application or in a mobile web site. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobilePlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobilePlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SmartSizeMode", FALSE)) { +/** + * Represents smart size modes. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SmartSizeMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SmartSizeMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdUnit", FALSE)) { +/** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("createAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdUnits", FALSE)) { +/** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("createAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnit", FALSE)) { +/** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdUnit { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitId = NULL) { + $this->adUnitId = $adUnitId; + } +}} + +if (!class_exists("getAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitSizesByStatement", FALSE)) { +/** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdUnitSizesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitSizesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdUnitSizesByStatementResponse { + /** + * @access public + * @var AdUnitSize[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAdUnitsByStatementResponse { + /** + * @access public + * @var AdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdUnitAction", FALSE)) { +/** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performAdUnitAction { + /** + * @access public + * @var AdUnitAction + */ + public $adUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitAction = NULL, $filterStatement = NULL) { + $this->adUnitAction = $adUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performAdUnitActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnit", FALSE)) { +/** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("updateAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnits", FALSE)) { +/** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("updateAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdUnits", FALSE)) { +/** + * The action used for activating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("InventoryService", FALSE)) { +/** + * InventoryService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class InventoryService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdUnits" => "ActivateAdUnits", + "AdUnitAction" => "AdUnitAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "AdSenseSettings" => "AdSenseSettings", + "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnit" => "AdUnit", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "AdUnitPage" => "AdUnitPage", + "AdUnitParent" => "AdUnitParent", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveAdUnits" => "ArchiveAdUnits", + "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateAdUnits" => "DeactivateAdUnits", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "InternalApiError" => "InternalApiError", + "InvalidColorError" => "InvalidColorError", + "InventoryUnitError" => "InventoryUnitError", + "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", + "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", + "AdUnitTypeError" => "AdUnitTypeError", + "LabelFrequencyCap" => "LabelFrequencyCap", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegExError" => "RegExError", + "RemoveAdUnitsFromPlacement" => "RemoveAdUnitsFromPlacement", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "Size_StringMapEntry" => "Size_StringMapEntry", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "AdSenseSettings.AdType" => "AdSenseSettingsAdType", + "AdSenseSettings.BorderStyle" => "AdSenseSettingsBorderStyle", + "AdSenseSettings.FontFamily" => "AdSenseSettingsFontFamily", + "AdSenseSettings.FontSize" => "AdSenseSettingsFontSize", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidColorError.Reason" => "InvalidColorErrorReason", + "InventoryStatus" => "InventoryStatus", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", + "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", + "MobilePlatform" => "MobilePlatform", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SmartSizeMode" => "SmartSizeMode", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TimeUnit" => "TimeUnit", + "createAdUnit" => "createAdUnit", + "createAdUnitResponse" => "createAdUnitResponse", + "createAdUnits" => "createAdUnits", + "createAdUnitsResponse" => "createAdUnitsResponse", + "getAdUnit" => "getAdUnit", + "getAdUnitResponse" => "getAdUnitResponse", + "getAdUnitSizesByStatement" => "getAdUnitSizesByStatement", + "getAdUnitSizesByStatementResponse" => "getAdUnitSizesByStatementResponse", + "getAdUnitsByStatement" => "getAdUnitsByStatement", + "getAdUnitsByStatementResponse" => "getAdUnitsByStatementResponse", + "performAdUnitAction" => "performAdUnitAction", + "performAdUnitActionResponse" => "performAdUnitActionResponse", + "updateAdUnit" => "updateAdUnit", + "updateAdUnitResponse" => "updateAdUnitResponse", + "updateAdUnits" => "updateAdUnits", + "updateAdUnitsResponse" => "updateAdUnitsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/InventoryService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = InventoryService::$classmap; + parent::__construct($wsdl, $options, $user, 'InventoryService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + */ + public function createAdUnit($adUnit) { + $arg = new createAdUnit($adUnit); + $result = $this->__soapCall("createAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + */ + public function createAdUnits($adUnits) { + $arg = new createAdUnits($adUnits); + $result = $this->__soapCall("createAdUnits", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + */ + public function getAdUnit($adUnitId) { + $arg = new getAdUnit($adUnitId); + $result = $this->__soapCall("getAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + */ + public function getAdUnitSizesByStatement($filterStatement) { + $arg = new getAdUnitSizesByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitSizesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + */ + public function getAdUnitsByStatement($filterStatement) { + $arg = new getAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performAdUnitAction($adUnitAction, $filterStatement) { + $arg = new performAdUnitAction($adUnitAction, $filterStatement); + $result = $this->__soapCall("performAdUnitAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + */ + public function updateAdUnit($adUnit) { + $arg = new updateAdUnit($adUnit); + $result = $this->__soapCall("updateAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + */ + public function updateAdUnits($adUnits) { + $arg = new updateAdUnits($adUnits); + $result = $this->__soapCall("updateAdUnits", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/LabelService.php b/src/Google/Api/Ads/Dfp/v201306/LabelService.php new file mode 100755 index 000000000..8a4d759cd --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/LabelService.php @@ -0,0 +1,3281 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelAction { + /** + * @access public + * @var string + */ + public $LabelActionType; + + private $_parameterMap = array ( + "LabelAction.Type" => "LabelActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelAction"; + } + + public function __construct($LabelActionType = NULL) { + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Label { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Label"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $types = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLabel", FALSE)) { +/** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("createLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLabels", FALSE)) { +/** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("createLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabel", FALSE)) { +/** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelId = NULL) { + $this->labelId = $labelId; + } +}} + +if (!class_exists("getLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabelsByStatement", FALSE)) { +/** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLabelsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLabelsByStatementResponse { + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performLabelAction { + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelAction = NULL, $filterStatement = NULL) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performLabelActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("updateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("updateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class LabelService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLabels" => "ActivateLabels", + "LabelAction" => "LabelAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createLabel" => "createLabel", + "createLabelResponse" => "createLabelResponse", + "createLabels" => "createLabels", + "createLabelsResponse" => "createLabelsResponse", + "getLabel" => "getLabel", + "getLabelResponse" => "getLabelResponse", + "getLabelsByStatement" => "getLabelsByStatement", + "getLabelsByStatementResponse" => "getLabelsByStatementResponse", + "performLabelAction" => "performLabelAction", + "performLabelActionResponse" => "performLabelActionResponse", + "updateLabel" => "updateLabel", + "updateLabelResponse" => "updateLabelResponse", + "updateLabels" => "updateLabels", + "updateLabelsResponse" => "updateLabelsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/LabelService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LabelService::$classmap; + parent::__construct($wsdl, $options, $user, 'LabelService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + */ + public function createLabel($label) { + $arg = new createLabel($label); + $result = $this->__soapCall("createLabel", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + */ + public function createLabels($labels) { + $arg = new createLabels($labels); + $result = $this->__soapCall("createLabels", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + */ + public function getLabel($labelId) { + $arg = new getLabel($labelId); + $result = $this->__soapCall("getLabel", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $arg = new getLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performLabelAction($labelAction, $filterStatement) { + $arg = new performLabelAction($labelAction, $filterStatement); + $result = $this->__soapCall("performLabelAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + */ + public function updateLabel($label) { + $arg = new updateLabel($label); + $result = $this->__soapCall("updateLabel", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $arg = new updateLabels($labels); + $result = $this->__soapCall("updateLabels", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..1893d7351 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php @@ -0,0 +1,4930 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on + * {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationAction { + /** + * @access public + * @var string + */ + public $LineItemCreativeAssociationActionType; + + private $_parameterMap = array ( + "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationAction"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociation", FALSE)) { +/** + * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a + * {@link LineItem} so that the creative can be served in ad units targeted by the line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * @access public + * @var double + */ + public $manualCreativeRotationWeight; + + /** + * @access public + * @var integer + */ + public $sequentialCreativeRotationIndex; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var Size[] + */ + public $sizes; + + /** + * @access public + * @var tnsLineItemCreativeAssociationStatus + */ + public $status; + + /** + * @access public + * @var LineItemCreativeAssociationStats + */ + public $stats; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation"; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $creativeSetId = NULL, $manualCreativeRotationWeight = NULL, $sequentialCreativeRotationIndex = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $destinationUrl = NULL, $sizes = NULL, $status = NULL, $stats = NULL, $lastModifiedDateTime = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->creativeSetId = $creativeSetId; + $this->manualCreativeRotationWeight = $manualCreativeRotationWeight; + $this->sequentialCreativeRotationIndex = $sequentialCreativeRotationIndex; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->destinationUrl = $destinationUrl; + $this->sizes = $sizes; + $this->status = $status; + $this->stats = $stats; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemCreativeAssociationOperationError", FALSE)) { +/** + * Lists all errors for executing operations on + * line item-to-creative associations + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError"; + } + + 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("LineItemCreativeAssociationPage", FALSE)) { +/** + * Captures a page of {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemCreativeAssociationStats", FALSE)) { +/** + * Contains statistics such as impressions, clicks delivered and cost + * for {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationStats { + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var Long_StatsMapEntry[] + */ + public $creativeSetStats; + + /** + * @access public + * @var Money + */ + public $costInOrderCurrency; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationStats"; + } + + public function __construct($stats = NULL, $creativeSetStats = NULL, $costInOrderCurrency = NULL) { + $this->stats = $stats; + $this->creativeSetStats = $creativeSetStats; + $this->costInOrderCurrency = $costInOrderCurrency; + } +}} + +if (!class_exists("Long_StatsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Long + * and value of type Stats. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Long_StatsMapEntry { + /** + * @access public + * @var integer + */ + public $key; + + /** + * @access public + * @var Stats + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Long_StatsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SwiffyConversionError", FALSE)) { +/** + * Error for converting flash to swiffy asset. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SwiffyConversionError extends ApiError { + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationStatus", FALSE)) { +/** + * Describes the status of the association. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SwiffyConversionErrorReason", FALSE)) { +/** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SwiffyConversionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItemCreativeAssociation", FALSE)) { +/** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("createLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItemCreativeAssociations", FALSE)) { +/** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("createLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociation", FALSE)) { +/** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatement", FALSE)) { +/** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemCreativeAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemCreativeAssociationsByStatementResponse { + /** + * @access public + * @var LineItemCreativeAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPreviewUrl", FALSE)) { +/** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getPreviewUrl { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var string + */ + public $siteUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $siteUrl = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->siteUrl = $siteUrl; + } +}} + +if (!class_exists("getPreviewUrlResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getPreviewUrlResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemCreativeAssociationAction", FALSE)) { +/** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performLineItemCreativeAssociationAction { + /** + * @access public + * @var LineItemCreativeAssociationAction + */ + public $lineItemCreativeAssociationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociationAction = NULL, $filterStatement = NULL) { + $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemCreativeAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performLineItemCreativeAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociation", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociations", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for activating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemCreativeAssociationService", FALSE)) { +/** + * LineItemCreativeAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", + "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSetError" => "CreativeSetError", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociation" => "LineItemCreativeAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", + "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", + "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", + "Long_StatsMapEntry" => "Long_StatsMapEntry", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SwiffyConversionError" => "SwiffyConversionError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createLineItemCreativeAssociation" => "createLineItemCreativeAssociation", + "createLineItemCreativeAssociationResponse" => "createLineItemCreativeAssociationResponse", + "createLineItemCreativeAssociations" => "createLineItemCreativeAssociations", + "createLineItemCreativeAssociationsResponse" => "createLineItemCreativeAssociationsResponse", + "getLineItemCreativeAssociation" => "getLineItemCreativeAssociation", + "getLineItemCreativeAssociationResponse" => "getLineItemCreativeAssociationResponse", + "getLineItemCreativeAssociationsByStatement" => "getLineItemCreativeAssociationsByStatement", + "getLineItemCreativeAssociationsByStatementResponse" => "getLineItemCreativeAssociationsByStatementResponse", + "getPreviewUrl" => "getPreviewUrl", + "getPreviewUrlResponse" => "getPreviewUrlResponse", + "performLineItemCreativeAssociationAction" => "performLineItemCreativeAssociationAction", + "performLineItemCreativeAssociationActionResponse" => "performLineItemCreativeAssociationActionResponse", + "updateLineItemCreativeAssociation" => "updateLineItemCreativeAssociation", + "updateLineItemCreativeAssociationResponse" => "updateLineItemCreativeAssociationResponse", + "updateLineItemCreativeAssociations" => "updateLineItemCreativeAssociations", + "updateLineItemCreativeAssociationsResponse" => "updateLineItemCreativeAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/LineItemCreativeAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemCreativeAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemCreativeAssociationService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + */ + public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new createLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("createLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + */ + public function createLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new createLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("createLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + */ + public function getLineItemCreativeAssociation($lineItemId, $creativeId) { + $arg = new getLineItemCreativeAssociation($lineItemId, $creativeId); + $result = $this->__soapCall("getLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + */ + public function getLineItemCreativeAssociationsByStatement($filterStatement) { + $arg = new getLineItemCreativeAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + */ + public function getPreviewUrl($lineItemId, $creativeId, $siteUrl) { + $arg = new getPreviewUrl($lineItemId, $creativeId, $siteUrl); + $result = $this->__soapCall("getPreviewUrl", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + */ + public function performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement) { + $arg = new performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); + $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + */ + public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new updateLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("updateLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + */ + public function updateLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new updateLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("updateLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemService.php b/src/Google/Api/Ads/Dfp/v201306/LineItemService.php new file mode 100755 index 000000000..e9b559ff4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/LineItemService.php @@ -0,0 +1,9288 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemAction { + /** + * @access public + * @var string + */ + public $LineItemActionType; + + private $_parameterMap = array ( + "LineItemAction.Type" => "LineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemAction"; + } + + public function __construct($LineItemActionType = NULL) { + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemPage", FALSE)) { +/** + * Captures a page of {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItem[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var boolean + */ + public $isMissingCreatives; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseLineItems", FALSE)) { +/** + * The action used for pausing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PauseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ReleaseLineItems", FALSE)) { +/** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReleaseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReleaseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ReserveLineItems", FALSE)) { +/** + * The action used for reserving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReserveLineItems extends LineItemAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ResumeLineItems extends LineItemAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveLineItems", FALSE)) { +/** + * The action used for unarchiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnarchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItem", FALSE)) { +/** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("createLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItems", FALSE)) { +/** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("createLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItem", FALSE)) { +/** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItem { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemsByStatement", FALSE)) { +/** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemsByStatementResponse { + /** + * @access public + * @var LineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemAction", FALSE)) { +/** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performLineItemAction { + /** + * @access public + * @var LineItemAction + */ + public $lineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemAction = NULL, $filterStatement = NULL) { + $this->lineItemAction = $lineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItem", FALSE)) { +/** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("updateLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItems", FALSE)) { +/** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("updateLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItems", FALSE)) { +/** + * The action used for activating {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveLineItems", FALSE)) { +/** + * The action used for archiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteLineItems", FALSE)) { +/** + * The action used for deleting {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeleteLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("ReserveAndOverbookLineItems", FALSE)) { +/** + * The action used for reserving and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveAndOverbookLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("LineItemService", FALSE)) { +/** + * LineItemService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class LineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItems" => "ActivateLineItems", + "LineItemAction" => "LineItemAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveLineItems" => "ArchiveLineItems", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeleteLineItems" => "DeleteLineItems", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemPage" => "LineItemPage", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PauseLineItems" => "PauseLineItems", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "ReleaseLineItems" => "ReleaseLineItems", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", + "ReserveLineItems" => "ReserveLineItems", + "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", + "ResumeLineItems" => "ResumeLineItems", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UnarchiveLineItems" => "UnarchiveLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createLineItem" => "createLineItem", + "createLineItemResponse" => "createLineItemResponse", + "createLineItems" => "createLineItems", + "createLineItemsResponse" => "createLineItemsResponse", + "getLineItem" => "getLineItem", + "getLineItemResponse" => "getLineItemResponse", + "getLineItemsByStatement" => "getLineItemsByStatement", + "getLineItemsByStatementResponse" => "getLineItemsByStatementResponse", + "performLineItemAction" => "performLineItemAction", + "performLineItemActionResponse" => "performLineItemActionResponse", + "updateLineItem" => "updateLineItem", + "updateLineItemResponse" => "updateLineItemResponse", + "updateLineItems" => "updateLineItems", + "updateLineItemsResponse" => "updateLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/LineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + */ + public function createLineItem($lineItem) { + $arg = new createLineItem($lineItem); + $result = $this->__soapCall("createLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + */ + public function createLineItems($lineItems) { + $arg = new createLineItems($lineItems); + $result = $this->__soapCall("createLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + */ + public function getLineItem($lineItemId) { + $arg = new getLineItem($lineItemId); + $result = $this->__soapCall("getLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + */ + public function getLineItemsByStatement($filterStatement) { + $arg = new getLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + */ + public function performLineItemAction($lineItemAction, $filterStatement) { + $arg = new performLineItemAction($lineItemAction, $filterStatement); + $result = $this->__soapCall("performLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + */ + public function updateLineItem($lineItem) { + $arg = new updateLineItem($lineItem); + $result = $this->__soapCall("updateLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + */ + public function updateLineItems($lineItems) { + $arg = new updateLineItems($lineItems); + $result = $this->__soapCall("updateLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php new file mode 100755 index 000000000..e1a5447d9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php @@ -0,0 +1,4459 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemTemplate", FALSE)) { +/** + * Represents the template that populates the fields of a new line item being + * created. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var boolean + */ + public $isDefault; + + /** + * @access public + * @var string + */ + public $lineItemName; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var boolean + */ + public $enabledForSameAdvertiserException; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var DateTime + */ + public $startTime; + + /** + * @access public + * @var DateTime + */ + public $endTime; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $isDefault = NULL, $lineItemName = NULL, $targetPlatform = NULL, $enabledForSameAdvertiserException = NULL, $notes = NULL, $lineItemType = NULL, $startTime = NULL, $endTime = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $creativeRotationType = NULL) { + $this->id = $id; + $this->name = $name; + $this->isDefault = $isDefault; + $this->lineItemName = $lineItemName; + $this->targetPlatform = $targetPlatform; + $this->enabledForSameAdvertiserException = $enabledForSameAdvertiserException; + $this->notes = $notes; + $this->lineItemType = $lineItemType; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->creativeRotationType = $creativeRotationType; + } +}} + +if (!class_exists("LineItemTemplatePage", FALSE)) { +/** + * Captures a page of {@link LineItemTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getLineItemTemplatesByStatement", FALSE)) { +/** + * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link LineItemTemplate#id}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item templates + * @return the line item templates that match the given filter + * @throws ApiException if a RuntimeException is thrown + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getLineItemTemplatesByStatementResponse { + /** + * @access public + * @var LineItemTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemTemplateService", FALSE)) { +/** + * LineItemTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class LineItemTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPartTargetingError" => "DayPartTargetingError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemTemplate" => "LineItemTemplate", + "LineItemTemplatePage" => "LineItemTemplatePage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargetingError" => "UserDomainTargetingError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryRateType" => "DeliveryRateType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "getLineItemTemplatesByStatement" => "getLineItemTemplatesByStatement", + "getLineItemTemplatesByStatementResponse" => "getLineItemTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/LineItemTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemTemplateService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link LineItemTemplate#id}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item templates + * @return the line item templates that match the given filter + * @throws ApiException if a RuntimeException is thrown + */ + public function getLineItemTemplatesByStatement($filterStatement) { + $arg = new getLineItemTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getLineItemTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/NetworkService.php b/src/Google/Api/Ads/Dfp/v201306/NetworkService.php new file mode 100755 index 000000000..112ee0c17 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/NetworkService.php @@ -0,0 +1,2248 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("Network", FALSE)) { +/** + * {@code Network} represents a network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Network { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $propertyCode; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string[] + */ + public $secondaryCurrencyCodes; + + /** + * @access public + * @var string + */ + public $effectiveRootAdUnitId; + + /** + * @access public + * @var integer + */ + public $contentBrowseCustomTargetingKeyId; + + /** + * @access public + * @var boolean + */ + public $isTest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Network"; + } + + public function __construct($id = NULL, $displayName = NULL, $networkCode = NULL, $propertyCode = NULL, $timeZone = NULL, $currencyCode = NULL, $secondaryCurrencyCodes = NULL, $effectiveRootAdUnitId = NULL, $contentBrowseCustomTargetingKeyId = NULL, $isTest = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->networkCode = $networkCode; + $this->propertyCode = $propertyCode; + $this->timeZone = $timeZone; + $this->currencyCode = $currencyCode; + $this->secondaryCurrencyCodes = $secondaryCurrencyCodes; + $this->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } +}} + +if (!class_exists("NetworkError", FALSE)) { +/** + * An error for a network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NetworkError extends ApiError { + /** + * @access public + * @var tnsNetworkErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NetworkErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NetworkErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworks", FALSE)) { +/** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAllNetworks { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworksResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAllNetworksResponse { + /** + * @access public + * @var Network[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentNetwork", FALSE)) { +/** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCurrentNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCurrentNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("makeTestNetwork", FALSE)) { +/** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class makeTestNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("makeTestNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class makeTestNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateNetwork", FALSE)) { +/** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateNetwork { + /** + * @access public + * @var Network + */ + public $network; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($network = NULL) { + $this->network = $network; + } +}} + +if (!class_exists("updateNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NetworkService", FALSE)) { +/** + * NetworkService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class NetworkService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "Network" => "Network", + "NetworkError" => "NetworkError", + "NotNullError" => "NotNullError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NetworkError.Reason" => "NetworkErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getAllNetworks" => "getAllNetworks", + "getAllNetworksResponse" => "getAllNetworksResponse", + "getCurrentNetwork" => "getCurrentNetwork", + "getCurrentNetworkResponse" => "getCurrentNetworkResponse", + "makeTestNetwork" => "makeTestNetwork", + "makeTestNetworkResponse" => "makeTestNetworkResponse", + "updateNetwork" => "updateNetwork", + "updateNetworkResponse" => "updateNetworkResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/NetworkService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = NetworkService::$classmap; + parent::__construct($wsdl, $options, $user, 'NetworkService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + */ + public function getAllNetworks() { + $arg = new getAllNetworks(); + $result = $this->__soapCall("getAllNetworks", array($arg)); + return $result->rval; + } + + + /** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + */ + public function getCurrentNetwork() { + $arg = new getCurrentNetwork(); + $result = $this->__soapCall("getCurrentNetwork", array($arg)); + return $result->rval; + } + + + /** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + */ + public function makeTestNetwork() { + $arg = new makeTestNetwork(); + $result = $this->__soapCall("makeTestNetwork", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + */ + public function updateNetwork($network) { + $arg = new updateNetwork($network); + $result = $this->__soapCall("updateNetwork", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/OrderService.php b/src/Google/Api/Ads/Dfp/v201306/OrderService.php new file mode 100755 index 000000000..52ee642cc --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/OrderService.php @@ -0,0 +1,4964 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderAction { + /** + * @access public + * @var string + */ + public $OrderActionType; + + private $_parameterMap = array ( + "OrderAction.Type" => "OrderActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderAction"; + } + + public function __construct($OrderActionType = NULL) { + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("Order", FALSE)) { +/** + * An {@code Order} represents a grouping of individual {@link LineItem} + * objects, each of which fulfill an ad request from a particular advertiser. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Order { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsOrderStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var integer + */ + public $externalOrderId; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer[] + */ + public $advertiserContactIds; + + /** + * @access public + * @var integer + */ + public $agencyId; + + /** + * @access public + * @var integer[] + */ + public $agencyContactIds; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var integer + */ + public $traffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer + */ + public $salespersonId; + + /** + * @access public + * @var integer[] + */ + public $secondarySalespersonIds; + + /** + * @access public + * @var integer + */ + public $totalImpressionsDelivered; + + /** + * @access public + * @var integer + */ + public $totalClicksDelivered; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Order"; + } + + public function __construct($id = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $isArchived = NULL, $notes = NULL, $externalOrderId = NULL, $poNumber = NULL, $currencyCode = NULL, $advertiserId = NULL, $advertiserContactIds = NULL, $agencyId = NULL, $agencyContactIds = NULL, $creatorId = NULL, $traffickerId = NULL, $secondaryTraffickerIds = NULL, $salespersonId = NULL, $secondarySalespersonIds = NULL, $totalImpressionsDelivered = NULL, $totalClicksDelivered = NULL, $totalBudget = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $lastModifiedByApp = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->notes = $notes; + $this->externalOrderId = $externalOrderId; + $this->poNumber = $poNumber; + $this->currencyCode = $currencyCode; + $this->advertiserId = $advertiserId; + $this->advertiserContactIds = $advertiserContactIds; + $this->agencyId = $agencyId; + $this->agencyContactIds = $agencyContactIds; + $this->creatorId = $creatorId; + $this->traffickerId = $traffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->salespersonId = $salespersonId; + $this->secondarySalespersonIds = $secondarySalespersonIds; + $this->totalImpressionsDelivered = $totalImpressionsDelivered; + $this->totalClicksDelivered = $totalClicksDelivered; + $this->totalBudget = $totalBudget; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("OrderPage", FALSE)) { +/** + * Captures a page of {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Order[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseOrders", FALSE)) { +/** + * The action used for pausing {@link Order} objects. All {@link LineItem} + * objects within the order will be paused as well. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PauseOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ResumeOrders extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RetractOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for retracting {@link Order} objects. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitOrdersForApproval", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SubmitOrdersForApproval extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApproval"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalAndOverbook"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalWithoutReservationChanges", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. This + * action does not make any changes to the {@link LineItem#reservationStatus} + * of the line items within the order. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveOrders", FALSE)) { +/** + * The action used for unarchiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnarchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderStatus", FALSE)) { +/** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createOrder", FALSE)) { +/** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("createOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createOrders", FALSE)) { +/** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("createOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrder", FALSE)) { +/** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getOrder { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderId = NULL) { + $this->orderId = $orderId; + } +}} + +if (!class_exists("getOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrdersByStatement", FALSE)) { +/** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getOrdersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getOrdersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getOrdersByStatementResponse { + /** + * @access public + * @var OrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performOrderAction", FALSE)) { +/** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performOrderAction { + /** + * @access public + * @var OrderAction + */ + public $orderAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderAction = NULL, $filterStatement = NULL) { + $this->orderAction = $orderAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performOrderActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performOrderActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrder", FALSE)) { +/** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("updateOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrders", FALSE)) { +/** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("updateOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveOrders", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApproveOrders extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ApproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line + * items within the order. If there are reservable line items that have not + * been reserved the operation will not succeed. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ArchiveOrders", FALSE)) { +/** + * The action used for archiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteOrders", FALSE)) { +/** + * The action used for deleting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeleteOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrders", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DisapproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ResumeAndOverbookOrders", FALSE)) { +/** + * The action used for resuming and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApproveAndOverbookOrders", FALSE)) { +/** + * The action used for approving and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveAndOverbookOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class OrderService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", + "ApproveOrders" => "ApproveOrders", + "OrderAction" => "OrderAction", + "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", + "ArchiveOrders" => "ArchiveOrders", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "Order" => "Order", + "OrderError" => "OrderError", + "OrderPage" => "OrderPage", + "ParseError" => "ParseError", + "PauseOrders" => "PauseOrders", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "OrderStatus" => "OrderStatus", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createOrder" => "createOrder", + "createOrderResponse" => "createOrderResponse", + "createOrders" => "createOrders", + "createOrdersResponse" => "createOrdersResponse", + "getOrder" => "getOrder", + "getOrderResponse" => "getOrderResponse", + "getOrdersByStatement" => "getOrdersByStatement", + "getOrdersByStatementResponse" => "getOrdersByStatementResponse", + "performOrderAction" => "performOrderAction", + "performOrderActionResponse" => "performOrderActionResponse", + "updateOrder" => "updateOrder", + "updateOrderResponse" => "updateOrderResponse", + "updateOrders" => "updateOrders", + "updateOrdersResponse" => "updateOrdersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/OrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = OrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'OrderService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + */ + public function createOrder($order) { + $arg = new createOrder($order); + $result = $this->__soapCall("createOrder", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + */ + public function createOrders($orders) { + $arg = new createOrders($orders); + $result = $this->__soapCall("createOrders", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + */ + public function getOrder($orderId) { + $arg = new getOrder($orderId); + $result = $this->__soapCall("getOrder", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + */ + public function getOrdersByStatement($filterStatement) { + $arg = new getOrdersByStatement($filterStatement); + $result = $this->__soapCall("getOrdersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + */ + public function performOrderAction($orderAction, $filterStatement) { + $arg = new performOrderAction($orderAction, $filterStatement); + $result = $this->__soapCall("performOrderAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + */ + public function updateOrder($order) { + $arg = new updateOrder($order); + $result = $this->__soapCall("updateOrder", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + */ + public function updateOrders($orders) { + $arg = new updateOrders($orders); + $result = $this->__soapCall("updateOrders", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/PlacementService.php b/src/Google/Api/Ads/Dfp/v201306/PlacementService.php new file mode 100755 index 000000000..6cd77358c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/PlacementService.php @@ -0,0 +1,3625 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementAction { + /** + * @access public + * @var string + */ + public $PlacementActionType; + + private $_parameterMap = array ( + "PlacementAction.Type" => "PlacementActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAction"; + } + + public function __construct($PlacementActionType = NULL) { + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PlacementPage", FALSE)) { +/** + * Captures a page of {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Placement[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("SiteTargetingInfo", FALSE)) { +/** + * Contains information required for AdWords advertisers to place their ads. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SiteTargetingInfo { + /** + * @access public + * @var string + */ + public $targetingDescription; + + /** + * @access public + * @var string + */ + public $targetingSiteName; + + /** + * @access public + * @var string + */ + public $targetingAdLocation; + + /** + * @access public + * @var string + */ + public $SiteTargetingInfoType; + + private $_parameterMap = array ( + "SiteTargetingInfo.Type" => "SiteTargetingInfoType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteTargetingInfo"; + } + + public function __construct($targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createPlacement", FALSE)) { +/** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createPlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("createPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createPlacements", FALSE)) { +/** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createPlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("createPlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createPlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacement", FALSE)) { +/** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getPlacement { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementId = NULL) { + $this->placementId = $placementId; + } +}} + +if (!class_exists("getPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacementsByStatement", FALSE)) { +/** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getPlacementsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getPlacementsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getPlacementsByStatementResponse { + /** + * @access public + * @var PlacementPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performPlacementAction", FALSE)) { +/** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performPlacementAction { + /** + * @access public + * @var PlacementAction + */ + public $placementAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementAction = NULL, $filterStatement = NULL) { + $this->placementAction = $placementAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performPlacementActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performPlacementActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacement", FALSE)) { +/** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updatePlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("updatePlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updatePlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacements", FALSE)) { +/** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updatePlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("updatePlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updatePlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivatePlacements", FALSE)) { +/** + * The action used for activating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchivePlacements", FALSE)) { +/** + * The action used for archiving {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchivePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchivePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A {@code Placement} groups related {@code AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Placement extends SiteTargetingInfo { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $placementCode; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isAdSenseTargetingEnabled; + + /** + * @access public + * @var boolean + */ + public $isAdPlannerTargetingEnabled; + + /** + * @access public + * @var string + */ + public $adSenseTargetingLocale; + + /** + * @access public + * @var string[] + */ + public $targetedAdUnitIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $placementCode = NULL, $status = NULL, $isAdSenseTargetingEnabled = NULL, $isAdPlannerTargetingEnabled = NULL, $adSenseTargetingLocale = NULL, $targetedAdUnitIds = NULL, $lastModifiedDateTime = NULL, $targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->placementCode = $placementCode; + $this->status = $status; + $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; + $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; + $this->adSenseTargetingLocale = $adSenseTargetingLocale; + $this->targetedAdUnitIds = $targetedAdUnitIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PlacementService", FALSE)) { +/** + * PlacementService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class PlacementService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivatePlacements" => "ActivatePlacements", + "PlacementAction" => "PlacementAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchivePlacements" => "ArchivePlacements", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivatePlacements" => "DeactivatePlacements", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "Placement" => "Placement", + "SiteTargetingInfo" => "SiteTargetingInfo", + "PlacementError" => "PlacementError", + "PlacementPage" => "PlacementPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryStatus" => "InventoryStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createPlacement" => "createPlacement", + "createPlacementResponse" => "createPlacementResponse", + "createPlacements" => "createPlacements", + "createPlacementsResponse" => "createPlacementsResponse", + "getPlacement" => "getPlacement", + "getPlacementResponse" => "getPlacementResponse", + "getPlacementsByStatement" => "getPlacementsByStatement", + "getPlacementsByStatementResponse" => "getPlacementsByStatementResponse", + "performPlacementAction" => "performPlacementAction", + "performPlacementActionResponse" => "performPlacementActionResponse", + "updatePlacement" => "updatePlacement", + "updatePlacementResponse" => "updatePlacementResponse", + "updatePlacements" => "updatePlacements", + "updatePlacementsResponse" => "updatePlacementsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/PlacementService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PlacementService::$classmap; + parent::__construct($wsdl, $options, $user, 'PlacementService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + */ + public function createPlacement($placement) { + $arg = new createPlacement($placement); + $result = $this->__soapCall("createPlacement", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + */ + public function createPlacements($placements) { + $arg = new createPlacements($placements); + $result = $this->__soapCall("createPlacements", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + */ + public function getPlacement($placementId) { + $arg = new getPlacement($placementId); + $result = $this->__soapCall("getPlacement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + */ + public function getPlacementsByStatement($filterStatement) { + $arg = new getPlacementsByStatement($filterStatement); + $result = $this->__soapCall("getPlacementsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + */ + public function performPlacementAction($placementAction, $filterStatement) { + $arg = new performPlacementAction($placementAction, $filterStatement); + $result = $this->__soapCall("performPlacementAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + */ + public function updatePlacement($placement) { + $arg = new updatePlacement($placement); + $result = $this->__soapCall("updatePlacement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + */ + public function updatePlacements($placements) { + $arg = new updatePlacements($placements); + $result = $this->__soapCall("updatePlacements", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ProductService.php b/src/Google/Api/Ads/Dfp/v201306/ProductService.php new file mode 100755 index 000000000..e28546f36 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ProductService.php @@ -0,0 +1,5429 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ProductAction", FALSE)) { +/** + * Represents the actions that can be performed on products. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductAction { + /** + * @access public + * @var string + */ + public $ProductActionType; + + private $_parameterMap = array ( + "ProductAction.Type" => "ProductActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAction"; + } + + public function __construct($ProductActionType = NULL) { + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("ProductActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action on {@link Product} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductActionError extends ApiError { + /** + * @access public + * @var tnsProductActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductActionError"; + } + + 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("Product", FALSE)) { +/** + * {@link ProposalLineItem Proposal line items} are created from products, + * from which their properties are copied. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Product { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsProductStatus + */ + public $status; + + /** + * @access public + * @var tnsProductType + */ + public $productType; + + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var string + */ + public $productTemplateDescription; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var boolean + */ + public $allowFrequencyCapsCustomization; + + /** + * @access public + * @var ProductTemplateTargeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($name = NULL, $status = NULL, $productType = NULL, $productTemplateId = NULL, $id = NULL, $notes = NULL, $productTemplateDescription = NULL, $lastModifiedDateTime = NULL, $rateType = NULL, $roadblockingType = NULL, $creativePlaceholders = NULL, $lineItemType = NULL, $priority = NULL, $frequencyCaps = NULL, $allowFrequencyCapsCustomization = NULL, $targeting = NULL, $customFieldValues = NULL) { + $this->name = $name; + $this->status = $status; + $this->productType = $productType; + $this->productTemplateId = $productTemplateId; + $this->id = $id; + $this->notes = $notes; + $this->productTemplateDescription = $productTemplateDescription; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->rateType = $rateType; + $this->roadblockingType = $roadblockingType; + $this->creativePlaceholders = $creativePlaceholders; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->frequencyCaps = $frequencyCaps; + $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProductPage", FALSE)) { +/** + * Captures a page of {@link ProductDto} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Product[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ProductTemplateTargeting", FALSE)) { +/** + * Contains targeting criteria for {@link ProductTemplate} objects. + * {@link ProposalLineItem Proposal line items} created from {@link Product products} + * of this template will have this criteria added to {@link ProposalLineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateTargeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var boolean + */ + public $allowGeoTargetingCustomization; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowAdUnitTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $allowPlacementTargetingCustomization; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var boolean + */ + public $allowUserDomainTargetingCustomization; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBandwidthGroupTargetingCustomization; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserTargetingCustomization; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserLanguageTargetingCustomization; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var boolean + */ + public $allowOperatingSystemTargetingCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateTargeting"; + } + + public function __construct($geoTargeting = NULL, $allowGeoTargetingCustomization = NULL, $inventoryTargeting = NULL, $allowAdUnitTargetingCustomization = NULL, $allowPlacementTargetingCustomization = NULL, $customizableCustomTargetingKeyIds = NULL, $userDomainTargeting = NULL, $allowUserDomainTargetingCustomization = NULL, $bandwidthGroupTargeting = NULL, $allowBandwidthGroupTargetingCustomization = NULL, $browserTargeting = NULL, $allowBrowserTargetingCustomization = NULL, $browserLanguageTargeting = NULL, $allowBrowserLanguageTargetingCustomization = NULL, $operatingSystemTargeting = NULL, $allowOperatingSystemTargetingCustomization = NULL) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->userDomainTargeting = $userDomainTargeting; + $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; + $this->browserTargeting = $browserTargeting; + $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductStatus", FALSE)) { +/** + * Describes the different statuses for {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductType", FALSE)) { +/** + * Describes the type of {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("getProduct", FALSE)) { +/** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProduct { + /** + * @access public + * @var string + */ + public $productId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productId = NULL) { + $this->productId = $productId; + } +}} + +if (!class_exists("getProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProductResponse { + /** + * @access public + * @var Product + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductsByStatement", FALSE)) { +/** + * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by + * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject PropertyFilterableSortable
      {@code rateCardId}Rate card ID which the product is associated withYesNo
      {@code status}{@link Product#status}YesYes
      {@code lineItemType}{@link Product#lineItemType}YesYes
      {@code productType}{@link Product#productType}YesYes
      {@code rateType}{@link Product#rateType}YesYes
      {@code productTemplateId}{@link Product#productTemplateId}YesNo
      {@code name}{@link Product#name}YesYes
      {@code description}{@link Product#description}YesNo
      {@code id}{@link Product#id}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @param statement a Publisher Query Language statement which specifies the filtering + * criteria over products + * @return the products that match the given statement + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProductsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getProductsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProductsByStatementResponse { + /** + * @access public + * @var ProductPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProductAction", FALSE)) { +/** + * Performs action on {@link Product} objects that satisfy the given {@link Statement}. + * + * @param productAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of products. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performProductAction { + /** + * @access public + * @var ProductAction + */ + public $productAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productAction = NULL, $filterStatement = NULL) { + $this->productAction = $productAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProductActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performProductActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProduct", FALSE)) { +/** + * Updates the specified {@link Product}. + * Note non-updatable fields will not be backfilled. + * + * @param product the product to update + * @return the updated product + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProduct { + /** + * @access public + * @var Product + */ + public $product; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($product = NULL) { + $this->product = $product; + } +}} + +if (!class_exists("updateProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProductResponse { + /** + * @access public + * @var Product + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProducts", FALSE)) { +/** + * Updates the specified {@link Product} objects. + * Note non-updatable fields will not be backfilled. + * + * @param products the products to update + * @return the updated products + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProducts { + /** + * @access public + * @var Product[] + */ + public $products; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($products = NULL) { + $this->products = $products; + } +}} + +if (!class_exists("updateProductsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProductsResponse { + /** + * @access public + * @var Product[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateProducts", FALSE)) { +/** + * The action used to activate products. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProducts", FALSE)) { +/** + * The action used to archive products. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateProducts", FALSE)) { +/** + * The action used to deactivate products. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProductService", FALSE)) { +/** + * ProductService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ProductService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateProducts" => "ActivateProducts", + "ProductAction" => "ProductAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProducts" => "ArchiveProducts", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProducts" => "DeactivateProducts", + "DeviceCapability" => "DeviceCapability", + "DeviceCategory" => "DeviceCategory", + "DeviceManufacturer" => "DeviceManufacturer", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "ProductActionError" => "ProductActionError", + "Product" => "Product", + "ProductError" => "ProductError", + "ProductPage" => "ProductPage", + "ProductTemplateTargeting" => "ProductTemplateTargeting", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeSizeType" => "CreativeSizeType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductActionError.Reason" => "ProductActionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProductStatus" => "ProductStatus", + "ProductType" => "ProductType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TimeUnit" => "TimeUnit", + "getProduct" => "getProduct", + "getProductResponse" => "getProductResponse", + "getProductsByStatement" => "getProductsByStatement", + "getProductsByStatementResponse" => "getProductsByStatementResponse", + "performProductAction" => "performProductAction", + "performProductActionResponse" => "performProductActionResponse", + "updateProduct" => "updateProduct", + "updateProductResponse" => "updateProductResponse", + "updateProducts" => "updateProducts", + "updateProductsResponse" => "updateProductsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ProductService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProductService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProductService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + */ + public function getProduct($productId) { + $arg = new getProduct($productId); + $result = $this->__soapCall("getProduct", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by + * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject PropertyFilterableSortable
      {@code rateCardId}Rate card ID which the product is associated withYesNo
      {@code status}{@link Product#status}YesYes
      {@code lineItemType}{@link Product#lineItemType}YesYes
      {@code productType}{@link Product#productType}YesYes
      {@code rateType}{@link Product#rateType}YesYes
      {@code productTemplateId}{@link Product#productTemplateId}YesNo
      {@code name}{@link Product#name}YesYes
      {@code description}{@link Product#description}YesNo
      {@code id}{@link Product#id}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @param statement a Publisher Query Language statement which specifies the filtering + * criteria over products + * @return the products that match the given statement + */ + public function getProductsByStatement($statement) { + $arg = new getProductsByStatement($statement); + $result = $this->__soapCall("getProductsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link Product} objects that satisfy the given {@link Statement}. + * + * @param productAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of products. + * @return the result of the action performed + */ + public function performProductAction($productAction, $filterStatement) { + $arg = new performProductAction($productAction, $filterStatement); + $result = $this->__soapCall("performProductAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Product}. + * Note non-updatable fields will not be backfilled. + * + * @param product the product to update + * @return the updated product + */ + public function updateProduct($product) { + $arg = new updateProduct($product); + $result = $this->__soapCall("updateProduct", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Product} objects. + * Note non-updatable fields will not be backfilled. + * + * @param products the products to update + * @return the updated products + */ + public function updateProducts($products) { + $arg = new updateProducts($products); + $result = $this->__soapCall("updateProducts", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php new file mode 100755 index 000000000..8f0dbc9b2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php @@ -0,0 +1,6136 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementTargeting", FALSE)) { +/** + * Specifies what {@link Placement placements} are targeted. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTargeting"; + } + + public function __construct($targetedPlacementIds = NULL) { + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ProductTemplateAction", FALSE)) { +/** + * Represents the actions that can be performed on product templates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateAction { + /** + * @access public + * @var string + */ + public $ProductTemplateActionType; + + private $_parameterMap = array ( + "ProductTemplateAction.Type" => "ProductTemplateActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateAction"; + } + + public function __construct($ProductTemplateActionType = NULL) { + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("ProductTemplateActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action on + * {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateActionError extends ApiError { + /** + * @access public + * @var tnsProductTemplateActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateActionError"; + } + + 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("ProductTemplate", FALSE)) { +/** + * {@code ProductTemplate} is used to generate products. All generated products will + * inherit all attributes from their {@code ProductTemplate}, except for segmentation, + * which will be included in the {@link Product#targeting}. The generated products in turn will be + * used to create {@link ProposalLineItem proposal line items} so that almost all attributes + * in the product template are properties of the proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $nameMacro; + + /** + * @access public + * @var tnsProductTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsProductType + */ + public $productType; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var boolean + */ + public $allowFrequencyCapsCustomization; + + /** + * @access public + * @var ProductSegmentation + */ + public $productSegmentation; + + /** + * @access public + * @var ProductTemplateTargeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $creationDateTime = NULL, $lastModifiedDateTime = NULL, $description = NULL, $nameMacro = NULL, $status = NULL, $productType = NULL, $creatorId = NULL, $rateType = NULL, $roadblockingType = NULL, $creativePlaceholders = NULL, $lineItemType = NULL, $priority = NULL, $frequencyCaps = NULL, $allowFrequencyCapsCustomization = NULL, $productSegmentation = NULL, $targeting = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->creationDateTime = $creationDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->description = $description; + $this->nameMacro = $nameMacro; + $this->status = $status; + $this->productType = $productType; + $this->creatorId = $creatorId; + $this->rateType = $rateType; + $this->roadblockingType = $roadblockingType; + $this->creativePlaceholders = $creativePlaceholders; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->frequencyCaps = $frequencyCaps; + $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; + $this->productSegmentation = $productSegmentation; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("ProductTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with ProductTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateError extends ApiError { + /** + * @access public + * @var tnsProductTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateError"; + } + + 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("ProductTemplatePage", FALSE)) { +/** + * Captures a page of {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ProductTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ProductSegmentation", FALSE)) { +/** + * Segmentations used to create products. Within a product template, for each segmentation, + * a product will be created for the combination of all other segments within other segmentations. + *

      + * For example, a product with 3 segmentations with only 1 segment for each will produce + * {@code 1 x 1 x 1 = 1} product. + * A product with 3 segmentations with 2 segments for each will produce {@code 2 x 2 x 2 = 8} + * products. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductSegmentation { + /** + * @access public + * @var GeoTargeting + */ + public $geoSegment; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $adUnitSegments; + + /** + * @access public + * @var PlacementTargeting + */ + public $placementSegment; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainSegment; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthSegment; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserSegment; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageSegment; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemSegment; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductSegmentation"; + } + + public function __construct($geoSegment = NULL, $adUnitSegments = NULL, $placementSegment = NULL, $userDomainSegment = NULL, $bandwidthSegment = NULL, $browserSegment = NULL, $browserLanguageSegment = NULL, $operatingSystemSegment = NULL) { + $this->geoSegment = $geoSegment; + $this->adUnitSegments = $adUnitSegments; + $this->placementSegment = $placementSegment; + $this->userDomainSegment = $userDomainSegment; + $this->bandwidthSegment = $bandwidthSegment; + $this->browserSegment = $browserSegment; + $this->browserLanguageSegment = $browserLanguageSegment; + $this->operatingSystemSegment = $operatingSystemSegment; + } +}} + +if (!class_exists("ProductTemplateTargeting", FALSE)) { +/** + * Contains targeting criteria for {@link ProductTemplate} objects. + * {@link ProposalLineItem Proposal line items} created from {@link Product products} + * of this template will have this criteria added to {@link ProposalLineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateTargeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var boolean + */ + public $allowGeoTargetingCustomization; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowAdUnitTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $allowPlacementTargetingCustomization; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var boolean + */ + public $allowUserDomainTargetingCustomization; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBandwidthGroupTargetingCustomization; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserTargetingCustomization; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserLanguageTargetingCustomization; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var boolean + */ + public $allowOperatingSystemTargetingCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateTargeting"; + } + + public function __construct($geoTargeting = NULL, $allowGeoTargetingCustomization = NULL, $inventoryTargeting = NULL, $allowAdUnitTargetingCustomization = NULL, $allowPlacementTargetingCustomization = NULL, $customizableCustomTargetingKeyIds = NULL, $userDomainTargeting = NULL, $allowUserDomainTargetingCustomization = NULL, $bandwidthGroupTargeting = NULL, $allowBandwidthGroupTargetingCustomization = NULL, $browserTargeting = NULL, $allowBrowserTargetingCustomization = NULL, $browserLanguageTargeting = NULL, $allowBrowserLanguageTargetingCustomization = NULL, $operatingSystemTargeting = NULL, $allowOperatingSystemTargetingCustomization = NULL) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->userDomainTargeting = $userDomainTargeting; + $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; + $this->browserTargeting = $browserTargeting; + $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateStatus", FALSE)) { +/** + * Describes the different statuses for ProductTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductType", FALSE)) { +/** + * Describes the type of {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProductTemplate", FALSE)) { +/** + * Creates a new {@link ProductTemplate}. + * + * The following fields are required: + *
        + *
      • {@link ProductTemplate#name}
      • + *
      • {@link ProductTemplate#nameMacro}
      • + *
      • {@link ProductTemplate#productType}
      • + *
      • {@link ProductTemplate#rateType}
      • + *
      • {@link ProductTemplate#creativePlaceholders} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#lineItemType} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is + * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} + * is not specified)
      • + *
      + * + * @param productTemplate the product template to create + * @return the persisted product template with tis ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProductTemplate { + /** + * @access public + * @var ProductTemplate + */ + public $productTemplate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplate = NULL) { + $this->productTemplate = $productTemplate; + } +}} + +if (!class_exists("createProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProductTemplates", FALSE)) { +/** + * Creates new {@link ProductTemplate} objects. + * + * @param productTemplates the productTemplates to create + * @return the persisted product templates with their Ids filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProductTemplates { + /** + * @access public + * @var ProductTemplate[] + */ + public $productTemplates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplates = NULL) { + $this->productTemplates = $productTemplates; + } +}} + +if (!class_exists("createProductTemplatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProductTemplatesResponse { + /** + * @access public + * @var ProductTemplate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductTemplate", FALSE)) { +/** + * Returns the {@link ProductTemplate} uniquely identified by the given ID. + * + * @param productTemplateId the ID of the product template, which must already + * exist + * @return the {@code ProductTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProductTemplate { + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplateId = NULL) { + $this->productTemplateId = $productTemplateId; + } +}} + +if (!class_exists("getProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductTemplatesByStatement", FALSE)) { +/** + * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProductTemplate#id}
      {@code name}{@link ProductTemplate#name}
      {@code nameMacro}{@link ProductTemplate#nameMacro}
      {@code description}{@link ProductTemplate#description}
      {@code status}{@link ProductTemplate#status}
      {@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
      {@code lineItemType}{@link LineItemType}
      {@code productType}{@link ProductType}
      {@code rateType}{@link RateType}
      + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over productTemplates + * @return the productTemplates that match the given statement + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProductTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getProductTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProductTemplatesByStatementResponse { + /** + * @access public + * @var ProductTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProductTemplateAction", FALSE)) { +/** + * Performs action on {@link ProductTemplate} objects that satisfy the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of product templates + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performProductTemplateAction { + /** + * @access public + * @var ProductTemplateAction + */ + public $action; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($action = NULL, $filterStatement = NULL) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProductTemplateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performProductTemplateActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProductTemplate", FALSE)) { +/** + * Updates the specified {@link ProductTemplate}. + * + * @param productTemplate the product template to update + * @return the updated product template + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProductTemplate { + /** + * @access public + * @var ProductTemplate + */ + public $productTemplate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplate = NULL) { + $this->productTemplate = $productTemplate; + } +}} + +if (!class_exists("updateProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProductTemplates", FALSE)) { +/** + * Updates the specified {@link ProductTemplate} objects. + * + * @param productTemplates the product templates to update + * @return the updated product templates + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProductTemplates { + /** + * @access public + * @var ProductTemplate[] + */ + public $productTemplates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplates = NULL) { + $this->productTemplates = $productTemplates; + } +}} + +if (!class_exists("updateProductTemplatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProductTemplatesResponse { + /** + * @access public + * @var ProductTemplate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateProductTemplates", FALSE)) { +/** + * The action used for activating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateProductTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateProductTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProducTemplates", FALSE)) { +/** + * The action used for archiving product template. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveProducTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProducTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateProductTemplates", FALSE)) { +/** + * The action used for deactivating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateProductTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateProductTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProductTemplateService", FALSE)) { +/** + * ProductTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ProductTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateProductTemplates" => "ActivateProductTemplates", + "ProductTemplateAction" => "ProductTemplateAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProducTemplates" => "ArchiveProducTemplates", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProductTemplates" => "DeactivateProductTemplates", + "DeviceCapability" => "DeviceCapability", + "DeviceCategory" => "DeviceCategory", + "DeviceManufacturer" => "DeviceManufacturer", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "PermissionError" => "PermissionError", + "PlacementTargeting" => "PlacementTargeting", + "PostalCodeLocation" => "PostalCodeLocation", + "ProductTemplateActionError" => "ProductTemplateActionError", + "ProductTemplate" => "ProductTemplate", + "ProductTemplateError" => "ProductTemplateError", + "ProductTemplatePage" => "ProductTemplatePage", + "ProductSegmentation" => "ProductSegmentation", + "ProductTemplateTargeting" => "ProductTemplateTargeting", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeSizeType" => "CreativeSizeType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductTemplateActionError.Reason" => "ProductTemplateActionErrorReason", + "ProductTemplateError.Reason" => "ProductTemplateErrorReason", + "ProductTemplateStatus" => "ProductTemplateStatus", + "ProductType" => "ProductType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TimeUnit" => "TimeUnit", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "createProductTemplate" => "createProductTemplate", + "createProductTemplateResponse" => "createProductTemplateResponse", + "createProductTemplates" => "createProductTemplates", + "createProductTemplatesResponse" => "createProductTemplatesResponse", + "getProductTemplate" => "getProductTemplate", + "getProductTemplateResponse" => "getProductTemplateResponse", + "getProductTemplatesByStatement" => "getProductTemplatesByStatement", + "getProductTemplatesByStatementResponse" => "getProductTemplatesByStatementResponse", + "performProductTemplateAction" => "performProductTemplateAction", + "performProductTemplateActionResponse" => "performProductTemplateActionResponse", + "updateProductTemplate" => "updateProductTemplate", + "updateProductTemplateResponse" => "updateProductTemplateResponse", + "updateProductTemplates" => "updateProductTemplates", + "updateProductTemplatesResponse" => "updateProductTemplatesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ProductTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProductTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProductTemplateService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link ProductTemplate}. + * + * The following fields are required: + *
        + *
      • {@link ProductTemplate#name}
      • + *
      • {@link ProductTemplate#nameMacro}
      • + *
      • {@link ProductTemplate#productType}
      • + *
      • {@link ProductTemplate#rateType}
      • + *
      • {@link ProductTemplate#creativePlaceholders} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#lineItemType} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is + * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} + * is not specified)
      • + *
      + * + * @param productTemplate the product template to create + * @return the persisted product template with tis ID filled in + */ + public function createProductTemplate($productTemplate) { + $arg = new createProductTemplate($productTemplate); + $result = $this->__soapCall("createProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ProductTemplate} objects. + * + * @param productTemplates the productTemplates to create + * @return the persisted product templates with their Ids filled in + */ + public function createProductTemplates($productTemplates) { + $arg = new createProductTemplates($productTemplates); + $result = $this->__soapCall("createProductTemplates", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ProductTemplate} uniquely identified by the given ID. + * + * @param productTemplateId the ID of the product template, which must already + * exist + * @return the {@code ProductTemplate} uniquely identified by the given ID + */ + public function getProductTemplate($productTemplateId) { + $arg = new getProductTemplate($productTemplateId); + $result = $this->__soapCall("getProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProductTemplate#id}
      {@code name}{@link ProductTemplate#name}
      {@code nameMacro}{@link ProductTemplate#nameMacro}
      {@code description}{@link ProductTemplate#description}
      {@code status}{@link ProductTemplate#status}
      {@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
      {@code lineItemType}{@link LineItemType}
      {@code productType}{@link ProductType}
      {@code rateType}{@link RateType}
      + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over productTemplates + * @return the productTemplates that match the given statement + */ + public function getProductTemplatesByStatement($statement) { + $arg = new getProductTemplatesByStatement($statement); + $result = $this->__soapCall("getProductTemplatesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link ProductTemplate} objects that satisfy the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of product templates + * @return the result of the action performed + */ + public function performProductTemplateAction($action, $filterStatement) { + $arg = new performProductTemplateAction($action, $filterStatement); + $result = $this->__soapCall("performProductTemplateAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProductTemplate}. + * + * @param productTemplate the product template to update + * @return the updated product template + */ + public function updateProductTemplate($productTemplate) { + $arg = new updateProductTemplate($productTemplate); + $result = $this->__soapCall("updateProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProductTemplate} objects. + * + * @param productTemplates the product templates to update + * @return the updated product templates + */ + public function updateProductTemplates($productTemplates) { + $arg = new updateProductTemplates($productTemplates); + $result = $this->__soapCall("updateProductTemplates", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php new file mode 100755 index 000000000..d46db3b6f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php @@ -0,0 +1,7985 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BillingError", FALSE)) { +/** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingError extends ApiError { + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PrecisionError", FALSE)) { +/** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PrecisionError extends ApiError { + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalError extends ApiError { + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError"; + } + + 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("ProposalLineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemAction { + /** + * @access public + * @var string + */ + public $ProposalLineItemActionType; + + private $_parameterMap = array ( + "ProposalLineItemAction.Type" => "ProposalLineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemAction"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("ProposalLineItemActionError", FALSE)) { +/** + * Lists all errors for executing operations on proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemActionError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemActionError"; + } + + 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("ProposalLineItem", FALSE)) { +/** + * A {@code ProposalLineItem} is an instance of sales {@link Product}. It belongs to + * a {@link Proposal} and is created according to a {@link Product} and + * {@link RateCard}. When the proposal is turned into an {@link Order}, this object is + * turned into a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItem { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var string + */ + public $productId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsCostAdjustment + */ + public $costAdjustment; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var integer + */ + public $unitsBoughtBuffer; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $lineItemPriority; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var ProposalLineItemPremium[] + */ + public $premiums; + + /** + * @access public + * @var Money + */ + public $baseRate; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var tnsComputedStatus + */ + public $computedStatus; + + /** + * @access public + * @var tnsBillingCap + */ + public $billingCap; + + /** + * @access public + * @var tnsBillingSchedule + */ + public $billingSchedule; + + /** + * @access public + * @var tnsBillingSource + */ + public $billingSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItem"; + } + + public function __construct($id = NULL, $proposalId = NULL, $rateCardId = NULL, $productId = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $notes = NULL, $costAdjustment = NULL, $isArchived = NULL, $unitsBought = NULL, $unitsBoughtBuffer = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $companionDeliveryOption = NULL, $creativeRotationType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $lineItemPriority = NULL, $costType = NULL, $creativePlaceholders = NULL, $targeting = NULL, $customFieldValues = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $premiums = NULL, $baseRate = NULL, $costPerUnit = NULL, $cost = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $computedStatus = NULL, $billingCap = NULL, $billingSchedule = NULL, $billingSource = NULL) { + $this->id = $id; + $this->proposalId = $proposalId; + $this->rateCardId = $rateCardId; + $this->productId = $productId; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->notes = $notes; + $this->costAdjustment = $costAdjustment; + $this->isArchived = $isArchived; + $this->unitsBought = $unitsBought; + $this->unitsBoughtBuffer = $unitsBoughtBuffer; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativeRotationType = $creativeRotationType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->lineItemPriority = $lineItemPriority; + $this->costType = $costType; + $this->creativePlaceholders = $creativePlaceholders; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->premiums = $premiums; + $this->baseRate = $baseRate; + $this->costPerUnit = $costPerUnit; + $this->cost = $cost; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->computedStatus = $computedStatus; + $this->billingCap = $billingCap; + $this->billingSchedule = $billingSchedule; + $this->billingSource = $billingSource; + } +}} + +if (!class_exists("ProposalLineItemError", FALSE)) { +/** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError"; + } + + 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("ProposalLineItemPage", FALSE)) { +/** + * Captures a page of {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemPage { + /** + * @access public + * @var ProposalLineItem[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ProposalLineItemPremium", FALSE)) { +/** + * Represents the status of triggered {@link RateCardCustomization} premiums. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemPremium { + /** + * @access public + * @var integer + */ + public $rateCardCustomizationId; + + /** + * @access public + * @var tnsProposalLineItemPremiumStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPremium"; + } + + public function __construct($rateCardCustomizationId = NULL, $status = NULL) { + $this->rateCardCustomizationId = $rateCardCustomizationId; + $this->status = $status; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("UnarchiveProposalLineItems", FALSE)) { +/** + * The action used for unarchiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnarchiveProposalLineItems extends ProposalLineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveProposalLineItems"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + parent::__construct(); + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingCap", FALSE)) { +/** + * Determines how the revenue amount will be capped for each billing month. This cannot be used when + * {@link BillingSource} is {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingCap { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingCap"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSchedule", FALSE)) { +/** + * Determines how much to bill in each billing cycle when a proposal is charged based on the + * contracted value. This can only be used when {@link BillingSource} is + * {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingSchedule { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSchedule"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSource", FALSE)) { +/** + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostAdjustment", FALSE)) { +/** + * Describes the cost adjustment of {@link ProposalLineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CostAdjustment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostAdjustment"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PrecisionErrorReason", FALSE)) { +/** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PrecisionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemPremiumStatus", FALSE)) { +/** + * Status of the premium triggered by a proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemPremiumStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPremiumStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProposalLineItem", FALSE)) { +/** + * Creates a new {@link ProposalLineItem}. + * + * The following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItem the proposal line item to create + * @return the created proposal line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProposalLineItem { + /** + * @access public + * @var ProposalLineItem + */ + public $proposalLineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItem = NULL) { + $this->proposalLineItem = $proposalLineItem; + } +}} + +if (!class_exists("createProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProposalLineItems", FALSE)) { +/** + * Creates new {@link ProposalLineItem} objects. + * + * For each proposal line item, the following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItems the proposal line items to create + * @return the created proposal line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProposalLineItems { + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItems = NULL) { + $this->proposalLineItems = $proposalLineItems; + } +}} + +if (!class_exists("createProposalLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProposalLineItemsResponse { + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalLineItem", FALSE)) { +/** + * Returns the {@link ProposalLineItem} uniquely identified by the given ID. + * + * @param proposalLineItemId the ID of the proposal line item, which must already exist + * @return the proposal line item uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProposalLineItem { + /** + * @access public + * @var integer + */ + public $proposalLineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItemId = NULL) { + $this->proposalLineItemId = $proposalLineItemId; + } +}} + +if (!class_exists("getProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalLineItemsByStatement", FALSE)) { +/** + * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProposalLineItem#id}
      {@code name}{@link ProposalLineItem#name}
      {@code proposalId}{@link ProposalLineItem#proposalId}
      {@code isArchived}{@link ProposalLineItem#isArchived}
      {@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposal line items + * @return the proposal line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProposalLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getProposalLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProposalLineItemsByStatementResponse { + /** + * @access public + * @var ProposalLineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProposalLineItemAction", FALSE)) { +/** + * Performs actions on {@link ProposalLineItem} objects that match + * the given {@link Statement#query}. + * + * @param proposalLineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of + * proposal line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performProposalLineItemAction { + /** + * @access public + * @var ProposalLineItemAction + */ + public $proposalLineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItemAction = NULL, $filterStatement = NULL) { + $this->proposalLineItemAction = $proposalLineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProposalLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performProposalLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposalLineItem", FALSE)) { +/** + * Updates the specified {@link ProposalLineItem}. + * + * @param proposalLineItem the proposal line item to update + * @return the updated proposal line item + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProposalLineItem { + /** + * @access public + * @var ProposalLineItem + */ + public $proposalLineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItem = NULL) { + $this->proposalLineItem = $proposalLineItem; + } +}} + +if (!class_exists("updateProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposalLineItems", FALSE)) { +/** + * Updates the specified {@link ProposalLineItem} objects. + * + * @param proposalLineItems the proposal line items to update + * @return the updated proposal line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProposalLineItems { + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItems = NULL) { + $this->proposalLineItems = $proposalLineItems; + } +}} + +if (!class_exists("updateProposalLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProposalLineItemsResponse { + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProposalLineItems", FALSE)) { +/** + * The action used for archiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveProposalLineItems extends ProposalLineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProposalLineItems"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + parent::__construct(); + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ProposalLineItemService", FALSE)) { +/** + * ProposalLineItemService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ProposalLineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProposalLineItems" => "ArchiveProposalLineItems", + "ProposalLineItemAction" => "ProposalLineItemAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalError" => "ProposalError", + "ProposalLineItemActionError" => "ProposalLineItemActionError", + "ProposalLineItem" => "ProposalLineItem", + "ProposalLineItemError" => "ProposalLineItemError", + "ProposalLineItemPage" => "ProposalLineItemPage", + "ProposalLineItemPremium" => "ProposalLineItemPremium", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "UnarchiveProposalLineItems" => "UnarchiveProposalLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillingCap" => "BillingCap", + "BillingError.Reason" => "BillingErrorReason", + "BillingSchedule" => "BillingSchedule", + "BillingSource" => "BillingSource", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "ComputedStatus" => "ComputedStatus", + "CostAdjustment" => "CostAdjustment", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProposalError.Reason" => "ProposalErrorReason", + "ProposalLineItemActionError.Reason" => "ProposalLineItemActionErrorReason", + "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", + "ProposalLineItemPremiumStatus" => "ProposalLineItemPremiumStatus", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createProposalLineItem" => "createProposalLineItem", + "createProposalLineItemResponse" => "createProposalLineItemResponse", + "createProposalLineItems" => "createProposalLineItems", + "createProposalLineItemsResponse" => "createProposalLineItemsResponse", + "getProposalLineItem" => "getProposalLineItem", + "getProposalLineItemResponse" => "getProposalLineItemResponse", + "getProposalLineItemsByStatement" => "getProposalLineItemsByStatement", + "getProposalLineItemsByStatementResponse" => "getProposalLineItemsByStatementResponse", + "performProposalLineItemAction" => "performProposalLineItemAction", + "performProposalLineItemActionResponse" => "performProposalLineItemActionResponse", + "updateProposalLineItem" => "updateProposalLineItem", + "updateProposalLineItemResponse" => "updateProposalLineItemResponse", + "updateProposalLineItems" => "updateProposalLineItems", + "updateProposalLineItemsResponse" => "updateProposalLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ProposalLineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProposalLineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProposalLineItemService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link ProposalLineItem}. + * + * The following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItem the proposal line item to create + * @return the created proposal line item with its ID filled in + */ + public function createProposalLineItem($proposalLineItem) { + $arg = new createProposalLineItem($proposalLineItem); + $result = $this->__soapCall("createProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ProposalLineItem} objects. + * + * For each proposal line item, the following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItems the proposal line items to create + * @return the created proposal line items with their IDs filled in + */ + public function createProposalLineItems($proposalLineItems) { + $arg = new createProposalLineItems($proposalLineItems); + $result = $this->__soapCall("createProposalLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ProposalLineItem} uniquely identified by the given ID. + * + * @param proposalLineItemId the ID of the proposal line item, which must already exist + * @return the proposal line item uniquely identified by the given ID + */ + public function getProposalLineItem($proposalLineItemId) { + $arg = new getProposalLineItem($proposalLineItemId); + $result = $this->__soapCall("getProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProposalLineItem#id}
      {@code name}{@link ProposalLineItem#name}
      {@code proposalId}{@link ProposalLineItem#proposalId}
      {@code isArchived}{@link ProposalLineItem#isArchived}
      {@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposal line items + * @return the proposal line items that match the given filter + */ + public function getProposalLineItemsByStatement($filterStatement) { + $arg = new getProposalLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getProposalLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ProposalLineItem} objects that match + * the given {@link Statement#query}. + * + * @param proposalLineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of + * proposal line items + * @return the result of the action performed + */ + public function performProposalLineItemAction($proposalLineItemAction, $filterStatement) { + $arg = new performProposalLineItemAction($proposalLineItemAction, $filterStatement); + $result = $this->__soapCall("performProposalLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProposalLineItem}. + * + * @param proposalLineItem the proposal line item to update + * @return the updated proposal line item + */ + public function updateProposalLineItem($proposalLineItem) { + $arg = new updateProposalLineItem($proposalLineItem); + $result = $this->__soapCall("updateProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProposalLineItem} objects. + * + * @param proposalLineItems the proposal line items to update + * @return the updated proposal line items + */ + public function updateProposalLineItems($proposalLineItems) { + $arg = new updateProposalLineItems($proposalLineItems); + $result = $this->__soapCall("updateProposalLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ProposalService.php b/src/Google/Api/Ads/Dfp/v201306/ProposalService.php new file mode 100755 index 000000000..b2516d4db --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ProposalService.php @@ -0,0 +1,4935 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BillingError", FALSE)) { +/** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingError extends ApiError { + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PrecisionError", FALSE)) { +/** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PrecisionError extends ApiError { + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProposalAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalAction { + /** + * @access public + * @var string + */ + public $ProposalActionType; + + private $_parameterMap = array ( + "ProposalAction.Type" => "ProposalActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalAction"; + } + + public function __construct($ProposalActionType = NULL) { + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("ProposalActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalActionError extends ApiError { + /** + * @access public + * @var tnsProposalActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalActionError"; + } + + 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("ProposalCompanyAssociation", FALSE)) { +/** + * A {@code ProposalCompanyAssociation} represents a {@link Company} associated with the + * {@link Proposal} and a set of {@link Contact} objects belonging to the company. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalCompanyAssociation { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var tnsProposalCompanyAssociationType + */ + public $type; + + /** + * @access public + * @var integer[] + */ + public $contactIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalCompanyAssociation"; + } + + public function __construct($companyId = NULL, $type = NULL, $contactIds = NULL) { + $this->companyId = $companyId; + $this->type = $type; + $this->contactIds = $contactIds; + } +}} + +if (!class_exists("Proposal", FALSE)) { +/** + * A {@code Proposal} represents an agreement between an interactive + * advertising seller and a buyer that specifies the details of an + * advertising campaign. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Proposal { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var tnsProposalStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var ProposalCompanyAssociation + */ + public $advertiser; + + /** + * @access public + * @var ProposalCompanyAssociation[] + */ + public $agencies; + + /** + * @access public + * @var integer + */ + public $probabilityToClose; + + /** + * @access public + * @var tnsBillingCap + */ + public $billingCap; + + /** + * @access public + * @var tnsBillingSchedule + */ + public $billingSchedule; + + /** + * @access public + * @var tnsBillingSource + */ + public $billingSource; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var SalespersonSplit + */ + public $primarySalesperson; + + /** + * @access public + * @var SalespersonSplit[] + */ + public $secondarySalespeople; + + /** + * @access public + * @var integer[] + */ + public $salesPlannerIds; + + /** + * @access public + * @var integer + */ + public $primaryTraffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $advertiserDiscount; + + /** + * @access public + * @var integer + */ + public $proposalDiscount; + + /** + * @access public + * @var Money + */ + public $additionalAdjustment; + + /** + * @access public + * @var integer + */ + public $exchangeRate; + + /** + * @access public + * @var boolean + */ + public $refreshExchangeRate; + + /** + * @access public + * @var integer + */ + public $agencyCommission; + + /** + * @access public + * @var integer + */ + public $valueAddedTax; + + /** + * @access public + * @var integer[] + */ + public $approvalWorkflowActionIds; + + /** + * @access public + * @var tnsProposalApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proposal"; + } + + public function __construct($id = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $status = NULL, $isArchived = NULL, $advertiser = NULL, $agencies = NULL, $probabilityToClose = NULL, $billingCap = NULL, $billingSchedule = NULL, $billingSource = NULL, $poNumber = NULL, $notes = NULL, $budget = NULL, $primarySalesperson = NULL, $secondarySalespeople = NULL, $salesPlannerIds = NULL, $primaryTraffickerId = NULL, $secondaryTraffickerIds = NULL, $appliedTeamIds = NULL, $customFieldValues = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $advertiserDiscount = NULL, $proposalDiscount = NULL, $additionalAdjustment = NULL, $exchangeRate = NULL, $refreshExchangeRate = NULL, $agencyCommission = NULL, $valueAddedTax = NULL, $approvalWorkflowActionIds = NULL, $approvalStatus = NULL) { + $this->id = $id; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->advertiser = $advertiser; + $this->agencies = $agencies; + $this->probabilityToClose = $probabilityToClose; + $this->billingCap = $billingCap; + $this->billingSchedule = $billingSchedule; + $this->billingSource = $billingSource; + $this->poNumber = $poNumber; + $this->notes = $notes; + $this->budget = $budget; + $this->primarySalesperson = $primarySalesperson; + $this->secondarySalespeople = $secondarySalespeople; + $this->salesPlannerIds = $salesPlannerIds; + $this->primaryTraffickerId = $primaryTraffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->customFieldValues = $customFieldValues; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->advertiserDiscount = $advertiserDiscount; + $this->proposalDiscount = $proposalDiscount; + $this->additionalAdjustment = $additionalAdjustment; + $this->exchangeRate = $exchangeRate; + $this->refreshExchangeRate = $refreshExchangeRate; + $this->agencyCommission = $agencyCommission; + $this->valueAddedTax = $valueAddedTax; + $this->approvalWorkflowActionIds = $approvalWorkflowActionIds; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalError extends ApiError { + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError"; + } + + 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("ProposalLineItemError", FALSE)) { +/** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError"; + } + + 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("ProposalPage", FALSE)) { +/** + * Captures a page of {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Proposal[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RejectProposals", FALSE)) { +/** + * The action used for rejecting {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RejectProposals extends ProposalAction { + /** + * @access public + * @var integer[] + */ + public $workflowActionIds; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectProposals"; + } + + public function __construct($workflowActionIds = NULL, $comment = NULL, $ProposalActionType = NULL) { + parent::__construct(); + $this->workflowActionIds = $workflowActionIds; + $this->comment = $comment; + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RetractProposals", FALSE)) { +/** + * The action used for retracting {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RetractProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("SalespersonSplit", FALSE)) { +/** + * A {@code SalespersonSplit} represents a salesperson and his/her split. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SalespersonSplit { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * @access public + * @var integer + */ + public $split; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SalespersonSplit"; + } + + public function __construct($userId = NULL, $split = NULL) { + $this->userId = $userId; + $this->split = $split; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitProposalsForApproval", FALSE)) { +/** + * The action used for submitting {@link Proposal} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SubmitProposalsForApproval extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitProposalsForApproval"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveProposals", FALSE)) { +/** + * The action used for unarchiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnarchiveProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowActionError", FALSE)) { +/** + * Lists all errors associated with performing actions within {@link WorkflowAction}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class WorkflowActionError extends ApiError { + /** + * @access public + * @var tnsWorkflowActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingCap", FALSE)) { +/** + * Determines how the revenue amount will be capped for each billing month. This cannot be used when + * {@link BillingSource} is {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingCap { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingCap"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSchedule", FALSE)) { +/** + * Determines how much to bill in each billing cycle when a proposal is charged based on the + * contracted value. This can only be used when {@link BillingSource} is + * {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingSchedule { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSchedule"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSource", FALSE)) { +/** + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillingSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalApprovalStatus", FALSE)) { +/** + * Describes the {@link Proposal} status in terms of pending approvals of active user. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PrecisionErrorReason", FALSE)) { +/** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PrecisionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalCompanyAssociationType", FALSE)) { +/** + * Describes the type of a {@link Company} associated with a {@link Proposal}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalCompanyAssociationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalCompanyAssociationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalStatus", FALSE)) { +/** + * Describes the {@link Proposal} status. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProposalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("WorkflowActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class WorkflowActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProposal", FALSE)) { +/** + * Creates a new {@link Proposal}. + * + * The following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposal the proposal to create + * @return the created proposal with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProposal { + /** + * @access public + * @var Proposal + */ + public $proposal; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposal = NULL) { + $this->proposal = $proposal; + } +}} + +if (!class_exists("createProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProposals", FALSE)) { +/** + * Creates new {@link Proposal} objects. + * + * For each proposal, the following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposals the proposals to create + * @return the created proposals with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProposals { + /** + * @access public + * @var Proposal[] + */ + public $proposals; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposals = NULL) { + $this->proposals = $proposals; + } +}} + +if (!class_exists("createProposalsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createProposalsResponse { + /** + * @access public + * @var Proposal[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposal", FALSE)) { +/** + * Returns the {@link Proposal} uniquely identified by the given ID. + * + * @param proposalId the ID of the proposal, which must already exist + * @return the proposal uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProposal { + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalId = NULL) { + $this->proposalId = $proposalId; + } +}} + +if (!class_exists("getProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalsByStatement", FALSE)) { +/** + * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link Proposal#id}
      {@code name}{@link Proposal#name}
      {@code status}{@link Proposal#status}
      {@code isArchived}{@link Proposal#isArchived}
      {@code approvalStatus}{@link Proposal#approvalStatus}
      {@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposals + * @return the proposals that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProposalsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getProposalsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getProposalsByStatementResponse { + /** + * @access public + * @var ProposalPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProposalAction", FALSE)) { +/** + * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. + * + * The following fields are also required when submitting proposals for approval: + *
        + *
      • {@link Proposal#advertiser}
      • + *
      • {@link Proposal#primarySalesperson}
      • + *
      • {@link Proposal#primaryTraffickerId}
      • + *
      + * + * @param proposalAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performProposalAction { + /** + * @access public + * @var ProposalAction + */ + public $proposalAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalAction = NULL, $filterStatement = NULL) { + $this->proposalAction = $proposalAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProposalActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performProposalActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposal", FALSE)) { +/** + * Updates the specified {@link Proposal}. + * + * @param proposal the proposal to update + * @return the updated proposal + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProposal { + /** + * @access public + * @var Proposal + */ + public $proposal; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposal = NULL) { + $this->proposal = $proposal; + } +}} + +if (!class_exists("updateProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposals", FALSE)) { +/** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProposals { + /** + * @access public + * @var Proposal[] + */ + public $proposals; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposals = NULL) { + $this->proposals = $proposals; + } +}} + +if (!class_exists("updateProposalsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateProposalsResponse { + /** + * @access public + * @var Proposal[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveProposals", FALSE)) { +/** + * The action used for approving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApproveProposals extends ProposalAction { + /** + * @access public + * @var integer[] + */ + public $workflowActionIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveProposals"; + } + + public function __construct($workflowActionIds = NULL, $ProposalActionType = NULL) { + parent::__construct(); + $this->workflowActionIds = $workflowActionIds; + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("ArchiveProposals", FALSE)) { +/** + * The action used for archiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ArchiveProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProposalService", FALSE)) { +/** + * ProposalService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ProposalService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ApproveProposals" => "ApproveProposals", + "ProposalAction" => "ProposalAction", + "ArchiveProposals" => "ArchiveProposals", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemOperationError" => "LineItemOperationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalActionError" => "ProposalActionError", + "ProposalCompanyAssociation" => "ProposalCompanyAssociation", + "Proposal" => "Proposal", + "ProposalError" => "ProposalError", + "ProposalLineItemError" => "ProposalLineItemError", + "ProposalPage" => "ProposalPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RejectProposals" => "RejectProposals", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RetractProposals" => "RetractProposals", + "SalespersonSplit" => "SalespersonSplit", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitProposalsForApproval" => "SubmitProposalsForApproval", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveProposals" => "UnarchiveProposals", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "WorkflowActionError" => "WorkflowActionError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillingCap" => "BillingCap", + "BillingError.Reason" => "BillingErrorReason", + "BillingSchedule" => "BillingSchedule", + "BillingSource" => "BillingSource", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "ProposalApprovalStatus" => "ProposalApprovalStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProposalActionError.Reason" => "ProposalActionErrorReason", + "ProposalCompanyAssociationType" => "ProposalCompanyAssociationType", + "ProposalError.Reason" => "ProposalErrorReason", + "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", + "ProposalStatus" => "ProposalStatus", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "createProposal" => "createProposal", + "createProposalResponse" => "createProposalResponse", + "createProposals" => "createProposals", + "createProposalsResponse" => "createProposalsResponse", + "getProposal" => "getProposal", + "getProposalResponse" => "getProposalResponse", + "getProposalsByStatement" => "getProposalsByStatement", + "getProposalsByStatementResponse" => "getProposalsByStatementResponse", + "performProposalAction" => "performProposalAction", + "performProposalActionResponse" => "performProposalActionResponse", + "updateProposal" => "updateProposal", + "updateProposalResponse" => "updateProposalResponse", + "updateProposals" => "updateProposals", + "updateProposalsResponse" => "updateProposalsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ProposalService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProposalService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProposalService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link Proposal}. + * + * The following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposal the proposal to create + * @return the created proposal with its ID filled in + */ + public function createProposal($proposal) { + $arg = new createProposal($proposal); + $result = $this->__soapCall("createProposal", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Proposal} objects. + * + * For each proposal, the following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposals the proposals to create + * @return the created proposals with their IDs filled in + */ + public function createProposals($proposals) { + $arg = new createProposals($proposals); + $result = $this->__soapCall("createProposals", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Proposal} uniquely identified by the given ID. + * + * @param proposalId the ID of the proposal, which must already exist + * @return the proposal uniquely identified by the given ID + */ + public function getProposal($proposalId) { + $arg = new getProposal($proposalId); + $result = $this->__soapCall("getProposal", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link Proposal#id}
      {@code name}{@link Proposal#name}
      {@code status}{@link Proposal#status}
      {@code isArchived}{@link Proposal#isArchived}
      {@code approvalStatus}{@link Proposal#approvalStatus}
      {@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposals + * @return the proposals that match the given filter + */ + public function getProposalsByStatement($filterStatement) { + $arg = new getProposalsByStatement($filterStatement); + $result = $this->__soapCall("getProposalsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. + * + * The following fields are also required when submitting proposals for approval: + *
        + *
      • {@link Proposal#advertiser}
      • + *
      • {@link Proposal#primarySalesperson}
      • + *
      • {@link Proposal#primaryTraffickerId}
      • + *
      + * + * @param proposalAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the result of the action performed + */ + public function performProposalAction($proposalAction, $filterStatement) { + $arg = new performProposalAction($proposalAction, $filterStatement); + $result = $this->__soapCall("performProposalAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Proposal}. + * + * @param proposal the proposal to update + * @return the updated proposal + */ + public function updateProposal($proposal) { + $arg = new updateProposal($proposal); + $result = $this->__soapCall("updateProposal", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + */ + public function updateProposals($proposals) { + $arg = new updateProposals($proposals); + $result = $this->__soapCall("updateProposals", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php new file mode 100755 index 000000000..467393d49 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php @@ -0,0 +1,3597 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ColumnType", FALSE)) { +/** + * Contains information about a column in a {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ColumnType { + /** + * @access public + * @var string + */ + public $labelName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ColumnType"; + } + + public function __construct($labelName = NULL) { + $this->labelName = $labelName; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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)) { +/** + * Caused by supplying a non-null value for an attribute that should be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ResultSet", FALSE)) { +/** + * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link + * Statement}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ResultSet { + /** + * @access public + * @var ColumnType[] + */ + public $columnTypes; + + /** + * @access public + * @var Row[] + */ + public $rows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResultSet"; + } + + public function __construct($columnTypes = NULL, $rows = NULL) { + $this->columnTypes = $columnTypes; + $this->rows = $rows; + } +}} + +if (!class_exists("Row", FALSE)) { +/** + * Each {@link Row} object represents data about one entity in a + * {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Row { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Row"; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("select", FALSE)) { +/** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class select { + /** + * @access public + * @var Statement + */ + public $selectStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selectStatement = NULL) { + $this->selectStatement = $selectStatement; + } +}} + +if (!class_exists("selectResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class selectResponse { + /** + * @access public + * @var ResultSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PublisherQueryLanguageService", FALSE)) { +/** + * PublisherQueryLanguageService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class PublisherQueryLanguageService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "ColumnType" => "ColumnType", + "CommonError" => "CommonError", + "CreativeError" => "CreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResultSet" => "ResultSet", + "Row" => "Row", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "select" => "select", + "selectResponse" => "selectResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/PublisherQueryLanguageService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PublisherQueryLanguageService::$classmap; + parent::__construct($wsdl, $options, $user, 'PublisherQueryLanguageService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + */ + public function select($selectStatement) { + $arg = new select($selectStatement); + $result = $this->__soapCall("select", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php new file mode 100755 index 000000000..e881371ff --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php @@ -0,0 +1,3542 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RateCardCustomizationAction", FALSE)) { +/** + * Represents the action that can be performed on {@link RateCardCustomization} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardCustomizationAction { + /** + * @access public + * @var string + */ + public $RateCardCustomizationActionType; + + private $_parameterMap = array ( + "RateCardCustomizationAction.Type" => "RateCardCustomizationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationAction"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("RateCardCustomization", FALSE)) { +/** + * A customization of a {@link RateCard} which could be applied to the line item + * and charges extra premiums. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardCustomization { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsRateCardCustomizationStatus + */ + public $status; + + /** + * @access public + * @var RateCardFeature + */ + public $rateCardFeature; + + /** + * @access public + * @var tnsRateCardCustomizationAdjustmentType + */ + public $adjustmentType; + + /** + * @access public + * @var integer + */ + public $adjustmentSize; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomization"; + } + + public function __construct($rateCardId = NULL, $id = NULL, $status = NULL, $rateCardFeature = NULL, $adjustmentType = NULL, $adjustmentSize = NULL, $rateType = NULL) { + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->rateCardFeature = $rateCardFeature; + $this->adjustmentType = $adjustmentType; + $this->adjustmentSize = $adjustmentSize; + $this->rateType = $rateType; + } +}} + +if (!class_exists("RateCardCustomizationError", FALSE)) { +/** + * An error having to do with {@link RateCardCustomization}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardCustomizationError extends ApiError { + /** + * @access public + * @var tnsRateCardCustomizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationError"; + } + + 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("RateCardCustomizationPage", FALSE)) { +/** + * Captures a page of {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardCustomizationPage { + /** + * @access public + * @var RateCardCustomization[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("RateCardFeature", FALSE)) { +/** + * The feature of a {@link RateCardCustomization} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardFeature { + /** + * @access public + * @var string + */ + public $RateCardFeatureType; + + private $_parameterMap = array ( + "RateCardFeature.Type" => "RateCardFeatureType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UnknownRateCardFeature", FALSE)) { +/** + * The {@link RateCardFeature} returned if the actual feature is not exposed by + * the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UnknownRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnknownRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainRateCardFeature", FALSE)) { +/** + * A rate customization applied to user domain targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserDomainRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardCustomizationAdjustmentType", FALSE)) { +/** + * Describes how to apply the adjustment to the base rate. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardCustomizationAdjustmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationAdjustmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardCustomizationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardCustomizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardCustomizationStatus", FALSE)) { +/** + * The status of {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardCustomizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createRateCardCustomization", FALSE)) { +/** + * Creates a new {@link RateCardCustomization} object. + * + * @param rateCardCustomization the {@link RateCardCustomization} to be + * created + * @return the {@link RateCardCustomization} with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createRateCardCustomization { + /** + * @access public + * @var RateCardCustomization + */ + public $rateCardCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomization = NULL) { + $this->rateCardCustomization = $rateCardCustomization; + } +}} + +if (!class_exists("createRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createRateCardCustomizations", FALSE)) { +/** + * Creates a list of new {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be created + * @return the rate card customizations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createRateCardCustomizations { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rateCardCustomizations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizations = NULL) { + $this->rateCardCustomizations = $rateCardCustomizations; + } +}} + +if (!class_exists("createRateCardCustomizationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createRateCardCustomizationsResponse { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardCustomization", FALSE)) { +/** + * Returns the {@link RateCardCustomization} object uniquely identified by the + * given ID. + * + * @param rateCardCustomizationId the ID of the rate card customization, which + * must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getRateCardCustomization { + /** + * @access public + * @var integer + */ + public $rateCardCustomizationId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizationId = NULL) { + $this->rateCardCustomizationId = $rateCardCustomizationId; + } +}} + +if (!class_exists("getRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardCustomizationsByStatement", FALSE)) { +/** + * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} + * objects that satisfy the given {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link RateCardCustomization#rateCardId}
      {@code id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the rate card customizations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getRateCardCustomizationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getRateCardCustomizationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getRateCardCustomizationsByStatementResponse { + /** + * @access public + * @var RateCardCustomizationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performRateCardCustomizationAction", FALSE)) { +/** + * Performs actions on {@link RateCardCustomization} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardCustomizationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performRateCardCustomizationAction { + /** + * @access public + * @var RateCardCustomizationAction + */ + public $rateCardCustomizationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizationAction = NULL, $filterStatement = NULL) { + $this->rateCardCustomizationAction = $rateCardCustomizationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performRateCardCustomizationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performRateCardCustomizationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCardCustomization", FALSE)) { +/** + * Updates the specified {@link RateCardCustomization} object. + * + * @param rateCardCustomization the rate card customization to be updated + * @return the updated rate card customization + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateRateCardCustomization { + /** + * @access public + * @var RateCardCustomization + */ + public $rateCardCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomization = NULL) { + $this->rateCardCustomization = $rateCardCustomization; + } +}} + +if (!class_exists("updateRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCardCustomizations", FALSE)) { +/** + * Updates the specified {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be updated + * @return the updated rate card customizations + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateRateCardCustomizations { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rateCardCustomizations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizations = NULL) { + $this->rateCardCustomizations = $rateCardCustomizations; + } +}} + +if (!class_exists("updateRateCardCustomizationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateRateCardCustomizationsResponse { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateRateCardCustomizations", FALSE)) { +/** + * The action used to activate {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateRateCardCustomizations extends RateCardCustomizationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateRateCardCustomizations"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + parent::__construct(); + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("AdUnitRateCardFeature", FALSE)) { +/** + * A rate customization applied to ad unit targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthRateCardFeature", FALSE)) { +/** + * A rate customization applied to bandwidth targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BandwidthRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("BrowserRateCardFeature", FALSE)) { +/** + * A rate customization applied to browser targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("BrowserLanguageRateCardFeature", FALSE)) { +/** + * A rate customization applied to browser language targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BrowserLanguageRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("CustomTargetingRateCardFeature", FALSE)) { +/** + * A rate customization applied to custom criteria targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingRateCardFeature extends RateCardFeature { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingRateCardFeature"; + } + + public function __construct($customTargetingKeyId = NULL, $customTargetingValueId = NULL, $RateCardFeatureType = NULL) { + parent::__construct(); + $this->customTargetingKeyId = $customTargetingKeyId; + $this->customTargetingValueId = $customTargetingValueId; + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateRateCardCustomizations", FALSE)) { +/** + * The action used to deactivate {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateRateCardCustomizations extends RateCardCustomizationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateRateCardCustomizations"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + parent::__construct(); + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("FrequencyCapRateCardFeature", FALSE)) { +/** + * A rate customization applied to frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FrequencyCapRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("GeographyRateCardFeature", FALSE)) { +/** + * A rate customization applied to geography targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class GeographyRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeographyRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystemRateCardFeature", FALSE)) { +/** + * A rate customization applied to operating system targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class OperatingSystemRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("PlacementRateCardFeature", FALSE)) { +/** + * A rate customization applied to placement targeting. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PlacementRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardCustomizationService", FALSE)) { +/** + * RateCardCustomizationService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class RateCardCustomizationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateRateCardCustomizations" => "ActivateRateCardCustomizations", + "RateCardCustomizationAction" => "RateCardCustomizationAction", + "AdUnitRateCardFeature" => "AdUnitRateCardFeature", + "RateCardFeature" => "RateCardFeature", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthRateCardFeature" => "BandwidthRateCardFeature", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "BrowserRateCardFeature" => "BrowserRateCardFeature", + "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateRateCardCustomizations" => "DeactivateRateCardCustomizations", + "FeatureError" => "FeatureError", + "FrequencyCapRateCardFeature" => "FrequencyCapRateCardFeature", + "GeographyRateCardFeature" => "GeographyRateCardFeature", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystemRateCardFeature" => "OperatingSystemRateCardFeature", + "PermissionError" => "PermissionError", + "PlacementRateCardFeature" => "PlacementRateCardFeature", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateCardCustomization" => "RateCardCustomization", + "RateCardCustomizationError" => "RateCardCustomizationError", + "RateCardCustomizationPage" => "RateCardCustomizationPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UnknownRateCardFeature" => "UnknownRateCardFeature", + "UpdateResult" => "UpdateResult", + "UserDomainRateCardFeature" => "UserDomainRateCardFeature", + "RateCardCustomizationAdjustmentType" => "RateCardCustomizationAdjustmentType", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateCardCustomizationError.Reason" => "RateCardCustomizationErrorReason", + "RateCardCustomizationStatus" => "RateCardCustomizationStatus", + "RateType" => "RateType", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createRateCardCustomization" => "createRateCardCustomization", + "createRateCardCustomizationResponse" => "createRateCardCustomizationResponse", + "createRateCardCustomizations" => "createRateCardCustomizations", + "createRateCardCustomizationsResponse" => "createRateCardCustomizationsResponse", + "getRateCardCustomization" => "getRateCardCustomization", + "getRateCardCustomizationResponse" => "getRateCardCustomizationResponse", + "getRateCardCustomizationsByStatement" => "getRateCardCustomizationsByStatement", + "getRateCardCustomizationsByStatementResponse" => "getRateCardCustomizationsByStatementResponse", + "performRateCardCustomizationAction" => "performRateCardCustomizationAction", + "performRateCardCustomizationActionResponse" => "performRateCardCustomizationActionResponse", + "updateRateCardCustomization" => "updateRateCardCustomization", + "updateRateCardCustomizationResponse" => "updateRateCardCustomizationResponse", + "updateRateCardCustomizations" => "updateRateCardCustomizations", + "updateRateCardCustomizationsResponse" => "updateRateCardCustomizationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/RateCardCustomizationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = RateCardCustomizationService::$classmap; + parent::__construct($wsdl, $options, $user, 'RateCardCustomizationService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link RateCardCustomization} object. + * + * @param rateCardCustomization the {@link RateCardCustomization} to be + * created + * @return the {@link RateCardCustomization} with its ID filled in + */ + public function createRateCardCustomization($rateCardCustomization) { + $arg = new createRateCardCustomization($rateCardCustomization); + $result = $this->__soapCall("createRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of new {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be created + * @return the rate card customizations with their IDs filled in + */ + public function createRateCardCustomizations($rateCardCustomizations) { + $arg = new createRateCardCustomizations($rateCardCustomizations); + $result = $this->__soapCall("createRateCardCustomizations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link RateCardCustomization} object uniquely identified by the + * given ID. + * + * @param rateCardCustomizationId the ID of the rate card customization, which + * must already exist. + */ + public function getRateCardCustomization($rateCardCustomizationId) { + $arg = new getRateCardCustomization($rateCardCustomizationId); + $result = $this->__soapCall("getRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} + * objects that satisfy the given {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link RateCardCustomization#rateCardId}
      {@code id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the rate card customizations that match the given filter + */ + public function getRateCardCustomizationsByStatement($filterStatement) { + $arg = new getRateCardCustomizationsByStatement($filterStatement); + $result = $this->__soapCall("getRateCardCustomizationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link RateCardCustomization} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardCustomizationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the result of the action performed + */ + public function performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement) { + $arg = new performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement); + $result = $this->__soapCall("performRateCardCustomizationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCardCustomization} object. + * + * @param rateCardCustomization the rate card customization to be updated + * @return the updated rate card customization + */ + public function updateRateCardCustomization($rateCardCustomization) { + $arg = new updateRateCardCustomization($rateCardCustomization); + $result = $this->__soapCall("updateRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be updated + * @return the updated rate card customizations + */ + public function updateRateCardCustomizations($rateCardCustomizations) { + $arg = new updateRateCardCustomizations($rateCardCustomizations); + $result = $this->__soapCall("updateRateCardCustomizations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/RateCardService.php b/src/Google/Api/Ads/Dfp/v201306/RateCardService.php new file mode 100755 index 000000000..8c4225fe9 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/RateCardService.php @@ -0,0 +1,3662 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RateCardAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardAction { + /** + * @access public + * @var string + */ + public $RateCardActionType; + + private $_parameterMap = array ( + "RateCardAction.Type" => "RateCardActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardAction"; + } + + public function __construct($RateCardActionType = NULL) { + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("RateCardActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action + * on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardActionError extends ApiError { + /** + * @access public + * @var tnsRateCardActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardActionError"; + } + + 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("RateCard", FALSE)) { +/** + * Defines a collection of rules, including base rates for product templates and products, premiums, + * proposal line item level adjustments and proposal level adjustments. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCard { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsRateCardStatus + */ + public $status; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCard"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $appliedTeamIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->appliedTeamIds = $appliedTeamIds; + } +}} + +if (!class_exists("RateCardPage", FALSE)) { +/** + * Captures a page of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardPage { + /** + * @access public + * @var RateCard[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardStatus", FALSE)) { +/** + * Describes the status of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RateCardStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createRateCard", FALSE)) { +/** + * Creates a new {@link RateCard}. Rate cards must be activated before being + * associated with proposal line items and products. + * + * @param rateCard the rate card to be created + * @return the rate card with corresponding fields set by Google. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createRateCard { + /** + * @access public + * @var RateCard + */ + public $rateCard; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCard = NULL) { + $this->rateCard = $rateCard; + } +}} + +if (!class_exists("createRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createRateCards", FALSE)) { +/** + * Creates a list of {@link RateCard} objects. Rate cards must be activated + * before being associated with proposal line items and products. + * + * @param rateCards the rate cards to be created + * @return the created rate cards. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createRateCards { + /** + * @access public + * @var RateCard[] + */ + public $rateCards; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCards = NULL) { + $this->rateCards = $rateCards; + } +}} + +if (!class_exists("createRateCardsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createRateCardsResponse { + /** + * @access public + * @var RateCard[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCard", FALSE)) { +/** + * Returns the {@link RateCard} uniquely identified by the given ID. + * + * @param rateCardId the ID of the rate card, which must already exist + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getRateCard { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardId = NULL) { + $this->rateCardId = $rateCardId; + } +}} + +if (!class_exists("getRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardsByStatement", FALSE)) { +/** + * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link RateCard#id}
      {@code name}{@link RateCard#name}
      {@code status}{@link RateCard#status}
      {@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. + * @return the rate cards that match the filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getRateCardsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getRateCardsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getRateCardsByStatementResponse { + /** + * @access public + * @var RateCardPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performRateCardAction", FALSE)) { +/** + * Performs action on {@link RateCard} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate cards. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performRateCardAction { + /** + * @access public + * @var RateCardAction + */ + public $rateCardAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardAction = NULL, $filterStatement = NULL) { + $this->rateCardAction = $rateCardAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performRateCardActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performRateCardActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCard", FALSE)) { +/** + * Updates the specified {@link RateCard}. + * + * @param rateCard the rate card to be updated + * @return the updated rate card + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateRateCard { + /** + * @access public + * @var RateCard + */ + public $rateCard; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCard = NULL) { + $this->rateCard = $rateCard; + } +}} + +if (!class_exists("updateRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCards", FALSE)) { +/** + * Updates a list of {@link RateCard} objects. + * + * @param rateCards the rate cards to be updated + * @return the updated rate cards + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateRateCards { + /** + * @access public + * @var RateCard[] + */ + public $rateCards; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCards = NULL) { + $this->rateCards = $rateCards; + } +}} + +if (!class_exists("updateRateCardsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateRateCardsResponse { + /** + * @access public + * @var RateCard[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateRateCards", FALSE)) { +/** + * The action used to activate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateRateCards extends RateCardAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateRateCards"; + } + + public function __construct($RateCardActionType = NULL) { + parent::__construct(); + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateRateCards", FALSE)) { +/** + * The action used to deactivate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateRateCards extends RateCardAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateRateCards"; + } + + public function __construct($RateCardActionType = NULL) { + parent::__construct(); + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardService", FALSE)) { +/** + * RateCardService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class RateCardService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateRateCards" => "ActivateRateCards", + "RateCardAction" => "RateCardAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateRateCards" => "DeactivateRateCards", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "ProductError" => "ProductError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateCardActionError" => "RateCardActionError", + "RateCard" => "RateCard", + "RateCardPage" => "RateCardPage", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateCardActionError.Reason" => "RateCardActionErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "RateCardStatus" => "RateCardStatus", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createRateCard" => "createRateCard", + "createRateCardResponse" => "createRateCardResponse", + "createRateCards" => "createRateCards", + "createRateCardsResponse" => "createRateCardsResponse", + "getRateCard" => "getRateCard", + "getRateCardResponse" => "getRateCardResponse", + "getRateCardsByStatement" => "getRateCardsByStatement", + "getRateCardsByStatementResponse" => "getRateCardsByStatementResponse", + "performRateCardAction" => "performRateCardAction", + "performRateCardActionResponse" => "performRateCardActionResponse", + "updateRateCard" => "updateRateCard", + "updateRateCardResponse" => "updateRateCardResponse", + "updateRateCards" => "updateRateCards", + "updateRateCardsResponse" => "updateRateCardsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/RateCardService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = RateCardService::$classmap; + parent::__construct($wsdl, $options, $user, 'RateCardService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link RateCard}. Rate cards must be activated before being + * associated with proposal line items and products. + * + * @param rateCard the rate card to be created + * @return the rate card with corresponding fields set by Google. + */ + public function createRateCard($rateCard) { + $arg = new createRateCard($rateCard); + $result = $this->__soapCall("createRateCard", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of {@link RateCard} objects. Rate cards must be activated + * before being associated with proposal line items and products. + * + * @param rateCards the rate cards to be created + * @return the created rate cards. + */ + public function createRateCards($rateCards) { + $arg = new createRateCards($rateCards); + $result = $this->__soapCall("createRateCards", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link RateCard} uniquely identified by the given ID. + * + * @param rateCardId the ID of the rate card, which must already exist + */ + public function getRateCard($rateCardId) { + $arg = new getRateCard($rateCardId); + $result = $this->__soapCall("getRateCard", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link RateCard#id}
      {@code name}{@link RateCard#name}
      {@code status}{@link RateCard#status}
      {@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. + * @return the rate cards that match the filter + */ + public function getRateCardsByStatement($filterStatement) { + $arg = new getRateCardsByStatement($filterStatement); + $result = $this->__soapCall("getRateCardsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link RateCard} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate cards. + * @return the result of the action performed + */ + public function performRateCardAction($rateCardAction, $filterStatement) { + $arg = new performRateCardAction($rateCardAction, $filterStatement); + $result = $this->__soapCall("performRateCardAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCard}. + * + * @param rateCard the rate card to be updated + * @return the updated rate card + */ + public function updateRateCard($rateCard) { + $arg = new updateRateCard($rateCard); + $result = $this->__soapCall("updateRateCard", array($arg)); + return $result->rval; + } + + + /** + * Updates a list of {@link RateCard} objects. + * + * @param rateCards the rate cards to be updated + * @return the updated rate cards + */ + public function updateRateCards($rateCards) { + $arg = new updateRateCards($rateCards); + $result = $this->__soapCall("updateRateCards", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php new file mode 100755 index 000000000..e7e97690a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php @@ -0,0 +1,2785 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ReconciliationOrderReportAction", FALSE)) { +/** + * Represents the actions that can be performed on the {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationOrderReportAction { + /** + * @access public + * @var string + */ + public $ReconciliationOrderReportActionType; + + private $_parameterMap = array ( + "ReconciliationOrderReportAction.Type" => "ReconciliationOrderReportActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportAction"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ReconciliationOrderReport", FALSE)) { +/** + * A {@link ReconciliationOrderReport} represents one order + * in the reconciliation report. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationOrderReport { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsReconciliationOrderReportStatus + */ + public $status; + + /** + * @access public + * @var DateTime + */ + public $submissionDateTime; + + /** + * @access public + * @var integer + */ + public $submitterId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReport"; + } + + public function __construct($id = NULL, $reconciliationReportId = NULL, $orderId = NULL, $status = NULL, $submissionDateTime = NULL, $submitterId = NULL) { + $this->id = $id; + $this->reconciliationReportId = $reconciliationReportId; + $this->orderId = $orderId; + $this->status = $status; + $this->submissionDateTime = $submissionDateTime; + $this->submitterId = $submitterId; + } +}} + +if (!class_exists("ReconciliationOrderReportPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationOrderReportPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationOrderReport[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("SubmitReconciliationOrderReports", FALSE)) { +/** + * The action used for submit the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitReconciliationOrderReports"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + parent::__construct(); + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RevertReconciliationOrderReports", FALSE)) { +/** + * The action used to revert the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RevertReconciliationOrderReports"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + parent::__construct(); + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationOrderReportStatus", FALSE)) { +/** + * The status of the reconciliation order report. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationOrderReportStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationOrderReport", FALSE)) { +/** + * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. + * + * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, + * which must already exist. + * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationOrderReport { + /** + * @access public + * @var integer + */ + public $reconciliationOrderReportId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationOrderReportId = NULL) { + $this->reconciliationOrderReportId = $reconciliationOrderReportId; + } +}} + +if (!class_exists("getReconciliationOrderReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationOrderReportResponse { + /** + * @access public + * @var ReconciliationOrderReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReconciliationOrderReportsByStatement", FALSE)) { +/** + * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects + * that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      {@code id}{@link ReconciliationOrderReport#id}
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code status}{@link ReconciliationOrderReport#status}
      {@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
      {@code submitterId}{@link ReconciliationOrderReport#submitterId}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of reconciliation order reports. + * @return the reconciliation order reports that match the given filter. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationOrderReportsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationOrderReportsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationOrderReportsByStatementResponse { + /** + * @access public + * @var ReconciliationOrderReportPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performReconciliationOrderReportAction", FALSE)) { +/** + * Performs actions on the {@link ReconciliationOrderReport} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * Only orders to which the API user has access will be included. + * + * @param reconciliationOrderReportAction the action to perform. + * @param filterStatement a Publisher Query Language statement used to filter a set of orders and + * one reconciliation report. + * @return the result of the action performed. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performReconciliationOrderReportAction { + /** + * @access public + * @var ReconciliationOrderReportAction + */ + public $reconciliationOrderReportAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationOrderReportAction = NULL, $filterStatement = NULL) { + $this->reconciliationOrderReportAction = $reconciliationOrderReportAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performReconciliationOrderReportActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performReconciliationOrderReportActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationOrderReportService", FALSE)) { +/** + * ReconciliationOrderReportService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ReconciliationOrderReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ReconciliationOrderReportAction" => "ReconciliationOrderReportAction", + "ReconciliationOrderReport" => "ReconciliationOrderReport", + "ReconciliationOrderReportPage" => "ReconciliationOrderReportPage", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "SubmitReconciliationOrderReports" => "SubmitReconciliationOrderReports", + "ReconciliationError" => "ReconciliationError", + "RequiredError" => "RequiredError", + "RevertReconciliationOrderReports" => "RevertReconciliationOrderReports", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationOrderReportStatus" => "ReconciliationOrderReportStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationOrderReport" => "getReconciliationOrderReport", + "getReconciliationOrderReportResponse" => "getReconciliationOrderReportResponse", + "getReconciliationOrderReportsByStatement" => "getReconciliationOrderReportsByStatement", + "getReconciliationOrderReportsByStatementResponse" => "getReconciliationOrderReportsByStatementResponse", + "performReconciliationOrderReportAction" => "performReconciliationOrderReportAction", + "performReconciliationOrderReportActionResponse" => "performReconciliationOrderReportActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ReconciliationOrderReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationOrderReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationOrderReportService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. + * + * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, + * which must already exist. + * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. + */ + public function getReconciliationOrderReport($reconciliationOrderReportId) { + $arg = new getReconciliationOrderReport($reconciliationOrderReportId); + $result = $this->__soapCall("getReconciliationOrderReport", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects + * that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      {@code id}{@link ReconciliationOrderReport#id}
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code status}{@link ReconciliationOrderReport#status}
      {@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
      {@code submitterId}{@link ReconciliationOrderReport#submitterId}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of reconciliation order reports. + * @return the reconciliation order reports that match the given filter. + */ + public function getReconciliationOrderReportsByStatement($filterStatement) { + $arg = new getReconciliationOrderReportsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationOrderReportsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on the {@link ReconciliationOrderReport} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * Only orders to which the API user has access will be included. + * + * @param reconciliationOrderReportAction the action to perform. + * @param filterStatement a Publisher Query Language statement used to filter a set of orders and + * one reconciliation report. + * @return the result of the action performed. + */ + public function performReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement) { + $arg = new performReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement); + $result = $this->__soapCall("performReconciliationOrderReportAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php new file mode 100755 index 000000000..c0702fb74 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php @@ -0,0 +1,2866 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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("ReconciliationImportError", FALSE)) { +/** + * The API errors for reconciliation CSV import. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationImportError extends ApiError { + /** + * @access public + * @var tnsReconciliationImportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError"; + } + + 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("ReconciliationReportRow", FALSE)) { +/** + * A {@code ReconciliationReportRow} represents each row in the reconciliation report. + * Each row is identified by its {@link #reconciliationReportId}, {@link #lineItemId}, + * {@link #creativeId}, and {@link #proposalLineItemId}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationReportRow { + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var tnsBillFrom + */ + public $billFrom; + + /** + * @access public + * @var tnsCostType + */ + public $lineItemCostType; + + /** + * @access public + * @var Money + */ + public $lineItemCostPerUnit; + + /** + * @access public + * @var integer + */ + public $lineItemContractedUnitsBought; + + /** + * @access public + * @var integer + */ + public $dfpClicks; + + /** + * @access public + * @var integer + */ + public $dfpImpressions; + + /** + * @access public + * @var integer + */ + public $dfpLineItemDays; + + /** + * @access public + * @var integer + */ + public $thirdPartyClicks; + + /** + * @access public + * @var integer + */ + public $thirdPartyImpressions; + + /** + * @access public + * @var integer + */ + public $thirdPartyLineItemDays; + + /** + * @access public + * @var integer + */ + public $manualClicks; + + /** + * @access public + * @var integer + */ + public $manualImpressions; + + /** + * @access public + * @var integer + */ + public $manualLineItemDays; + + /** + * @access public + * @var integer + */ + public $reconciledClicks; + + /** + * @access public + * @var integer + */ + public $reconciledImpressions; + + /** + * @access public + * @var integer + */ + public $reconciledLineItemDays; + + /** + * @access public + * @var Money + */ + public $contractedRevenue; + + /** + * @access public + * @var Money + */ + public $dfpRevenue; + + /** + * @access public + * @var Money + */ + public $thirdPartyRevenue; + + /** + * @access public + * @var Money + */ + public $manualRevenue; + + /** + * @access public + * @var Money + */ + public $reconciledRevenue; + + /** + * @access public + * @var string + */ + public $comments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportRow"; + } + + public function __construct($reconciliationReportId = NULL, $lineItemId = NULL, $creativeId = NULL, $orderId = NULL, $advertiserId = NULL, $billFrom = NULL, $lineItemCostType = NULL, $lineItemCostPerUnit = NULL, $lineItemContractedUnitsBought = NULL, $dfpClicks = NULL, $dfpImpressions = NULL, $dfpLineItemDays = NULL, $thirdPartyClicks = NULL, $thirdPartyImpressions = NULL, $thirdPartyLineItemDays = NULL, $manualClicks = NULL, $manualImpressions = NULL, $manualLineItemDays = NULL, $reconciledClicks = NULL, $reconciledImpressions = NULL, $reconciledLineItemDays = NULL, $contractedRevenue = NULL, $dfpRevenue = NULL, $thirdPartyRevenue = NULL, $manualRevenue = NULL, $reconciledRevenue = NULL, $comments = NULL) { + $this->reconciliationReportId = $reconciliationReportId; + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->orderId = $orderId; + $this->advertiserId = $advertiserId; + $this->billFrom = $billFrom; + $this->lineItemCostType = $lineItemCostType; + $this->lineItemCostPerUnit = $lineItemCostPerUnit; + $this->lineItemContractedUnitsBought = $lineItemContractedUnitsBought; + $this->dfpClicks = $dfpClicks; + $this->dfpImpressions = $dfpImpressions; + $this->dfpLineItemDays = $dfpLineItemDays; + $this->thirdPartyClicks = $thirdPartyClicks; + $this->thirdPartyImpressions = $thirdPartyImpressions; + $this->thirdPartyLineItemDays = $thirdPartyLineItemDays; + $this->manualClicks = $manualClicks; + $this->manualImpressions = $manualImpressions; + $this->manualLineItemDays = $manualLineItemDays; + $this->reconciledClicks = $reconciledClicks; + $this->reconciledImpressions = $reconciledImpressions; + $this->reconciledLineItemDays = $reconciledLineItemDays; + $this->contractedRevenue = $contractedRevenue; + $this->dfpRevenue = $dfpRevenue; + $this->thirdPartyRevenue = $thirdPartyRevenue; + $this->manualRevenue = $manualRevenue; + $this->reconciledRevenue = $reconciledRevenue; + $this->comments = $comments; + } +}} + +if (!class_exists("ReconciliationReportRowPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationReportRow} objects + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationReportRowPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportRowPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillFrom", FALSE)) { +/** + * Values for which to bill from. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BillFrom { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillFrom"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationImportErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationImportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationReportRowsByStatement", FALSE)) { +/** + * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that + * satisfy the given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
      {@code advertiserId}{@link ReconciliationReportRow#advertiserId}
      {@code orderId}{@link ReconciliationReportRow#orderId}
      {@code lineItemId}{@link ReconciliationReportRow#lineItemId}
      {@code creativeId}{@link ReconciliationReportRow#creativeId}
      {@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
      {@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
      {@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
      {@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
      {@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
      {@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
      {@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
      {@code manualClicks}{@link ReconciliationReportRow#manualClicks}
      {@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
      {@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
      {@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
      {@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
      {@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation report rows + * @return the reconciliation report rows that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationReportRowsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationReportRowsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationReportRowsByStatementResponse { + /** + * @access public + * @var ReconciliationReportRowPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReportRows", FALSE)) { +/** + * Updates a list of {@link ReconciliationReportRow} which belong to same + * {@link ReconciliationReport}. + * + * @param reconciliationReportRows a list of reconciliation report rows to update + * @return the updated reconciliation report rows + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateReconciliationReportRows { + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $reconciliationReportRows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReportRows = NULL) { + $this->reconciliationReportRows = $reconciliationReportRows; + } +}} + +if (!class_exists("updateReconciliationReportRowsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateReconciliationReportRowsResponse { + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationReportRowService", FALSE)) { +/** + * ReconciliationReportRowService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ReconciliationReportRowService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReconciliationError" => "ReconciliationError", + "ReconciliationImportError" => "ReconciliationImportError", + "ReconciliationReportRow" => "ReconciliationReportRow", + "ReconciliationReportRowPage" => "ReconciliationReportRowPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillFrom" => "BillFrom", + "CommonError.Reason" => "CommonErrorReason", + "CostType" => "CostType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationReportRowsByStatement" => "getReconciliationReportRowsByStatement", + "getReconciliationReportRowsByStatementResponse" => "getReconciliationReportRowsByStatementResponse", + "updateReconciliationReportRows" => "updateReconciliationReportRows", + "updateReconciliationReportRowsResponse" => "updateReconciliationReportRowsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ReconciliationReportRowService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationReportRowService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationReportRowService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that + * satisfy the given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
      {@code advertiserId}{@link ReconciliationReportRow#advertiserId}
      {@code orderId}{@link ReconciliationReportRow#orderId}
      {@code lineItemId}{@link ReconciliationReportRow#lineItemId}
      {@code creativeId}{@link ReconciliationReportRow#creativeId}
      {@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
      {@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
      {@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
      {@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
      {@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
      {@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
      {@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
      {@code manualClicks}{@link ReconciliationReportRow#manualClicks}
      {@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
      {@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
      {@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
      {@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
      {@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation report rows + * @return the reconciliation report rows that match the given filter + */ + public function getReconciliationReportRowsByStatement($filterStatement) { + $arg = new getReconciliationReportRowsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationReportRowsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates a list of {@link ReconciliationReportRow} which belong to same + * {@link ReconciliationReport}. + * + * @param reconciliationReportRows a list of reconciliation report rows to update + * @return the updated reconciliation report rows + */ + public function updateReconciliationReportRows($reconciliationReportRows) { + $arg = new updateReconciliationReportRows($reconciliationReportRows); + $result = $this->__soapCall("updateReconciliationReportRows", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php new file mode 100755 index 000000000..98a466dcc --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php @@ -0,0 +1,2677 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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("ReconciliationImportError", FALSE)) { +/** + * The API errors for reconciliation CSV import. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationImportError extends ApiError { + /** + * @access public + * @var tnsReconciliationImportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError"; + } + + 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("ReconciliationReport", FALSE)) { +/** + * A {@code ReconciliationReport} represents a report that can be reconciled. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationReport { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsReconciliationReportStatus + */ + public $status; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReport"; + } + + public function __construct($id = NULL, $status = NULL, $startDate = NULL, $notes = NULL) { + $this->id = $id; + $this->status = $status; + $this->startDate = $startDate; + $this->notes = $notes; + } +}} + +if (!class_exists("ReconciliationReportPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationReport} objects + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationReportPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationReport[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationImportErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationImportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationReportStatus", FALSE)) { +/** + * A {@code ReconciliationReportStatus} represents the status of a {@link ReconciliationReport}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReconciliationReportStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationReport", FALSE)) { +/** + * Returns the {@link ReconciliationReport} object uniquely identified by given ID. + * + * @param reconciliationReportId the ID of the reconciliation report, which must already exist + * @return the {@code ReconciliationReport} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationReport { + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReportId = NULL) { + $this->reconciliationReportId = $reconciliationReportId; + } +}} + +if (!class_exists("getReconciliationReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationReportResponse { + /** + * @access public + * @var ReconciliationReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReconciliationReportsByStatement", FALSE)) { +/** + * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy + * the given {@link Statement#query}. The following fields are supported for filtering. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ReconciliationReport#id}
      {@code status}{@link ReconciliationReport#status}
      {@code startDate}{@link ReconciliationReport#startDate}
      + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation reports + * @return the reconciliation reports that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationReportsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationReportsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReconciliationReportsByStatementResponse { + /** + * @access public + * @var ReconciliationReportPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReport", FALSE)) { +/** + * Updates the specified {@link ReconciliationReport}. + * + * @param reconciliationReport the reconciliation report to be updated + * @return the updated reconciliation report + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateReconciliationReport { + /** + * @access public + * @var ReconciliationReport + */ + public $reconciliationReport; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReport = NULL) { + $this->reconciliationReport = $reconciliationReport; + } +}} + +if (!class_exists("updateReconciliationReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateReconciliationReportResponse { + /** + * @access public + * @var ReconciliationReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReports", FALSE)) { +/** + * Updates the specified {@link ReconciliationReport} objects. + * + * @param reconciliationReports the reconciliation reports to update + * @return the updated reconciliation reports + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateReconciliationReports { + /** + * @access public + * @var ReconciliationReport[] + */ + public $reconciliationReports; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReports = NULL) { + $this->reconciliationReports = $reconciliationReports; + } +}} + +if (!class_exists("updateReconciliationReportsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateReconciliationReportsResponse { + /** + * @access public + * @var ReconciliationReport[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationReportService", FALSE)) { +/** + * ReconciliationReportService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ReconciliationReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReconciliationError" => "ReconciliationError", + "ReconciliationImportError" => "ReconciliationImportError", + "ReconciliationReport" => "ReconciliationReport", + "ReconciliationReportPage" => "ReconciliationReportPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", + "ReconciliationReportStatus" => "ReconciliationReportStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationReport" => "getReconciliationReport", + "getReconciliationReportResponse" => "getReconciliationReportResponse", + "getReconciliationReportsByStatement" => "getReconciliationReportsByStatement", + "getReconciliationReportsByStatementResponse" => "getReconciliationReportsByStatementResponse", + "updateReconciliationReport" => "updateReconciliationReport", + "updateReconciliationReportResponse" => "updateReconciliationReportResponse", + "updateReconciliationReports" => "updateReconciliationReports", + "updateReconciliationReportsResponse" => "updateReconciliationReportsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ReconciliationReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationReportService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Returns the {@link ReconciliationReport} object uniquely identified by given ID. + * + * @param reconciliationReportId the ID of the reconciliation report, which must already exist + * @return the {@code ReconciliationReport} uniquely identified by the given ID + */ + public function getReconciliationReport($reconciliationReportId) { + $arg = new getReconciliationReport($reconciliationReportId); + $result = $this->__soapCall("getReconciliationReport", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy + * the given {@link Statement#query}. The following fields are supported for filtering. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ReconciliationReport#id}
      {@code status}{@link ReconciliationReport#status}
      {@code startDate}{@link ReconciliationReport#startDate}
      + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation reports + * @return the reconciliation reports that match the given filter + */ + public function getReconciliationReportsByStatement($filterStatement) { + $arg = new getReconciliationReportsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationReportsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ReconciliationReport}. + * + * @param reconciliationReport the reconciliation report to be updated + * @return the updated reconciliation report + */ + public function updateReconciliationReport($reconciliationReport) { + $arg = new updateReconciliationReport($reconciliationReport); + $result = $this->__soapCall("updateReconciliationReport", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ReconciliationReport} objects. + * + * @param reconciliationReports the reconciliation reports to update + * @return the updated reconciliation reports + * @throws ApiException + */ + public function updateReconciliationReports($reconciliationReports) { + $arg = new updateReconciliationReports($reconciliationReports); + $result = $this->__soapCall("updateReconciliationReports", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/ReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReportService.php new file mode 100755 index 000000000..da6e56ff6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/ReportService.php @@ -0,0 +1,2856 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ReportDownloadOptions", FALSE)) { +/** + * Represents the options for an API report download request. + * See {@link ReportService#getReportDownloadUrlWithOptions}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReportDownloadOptions { + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * @access public + * @var boolean + */ + public $includeReportProperties; + + /** + * @access public + * @var boolean + */ + public $includeTotalsRow; + + /** + * @access public + * @var boolean + */ + public $useGzipCompression; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDownloadOptions"; + } + + public function __construct($exportFormat = NULL, $includeReportProperties = NULL, $includeTotalsRow = NULL, $useGzipCompression = NULL) { + $this->exportFormat = $exportFormat; + $this->includeReportProperties = $includeReportProperties; + $this->includeTotalsRow = $includeTotalsRow; + $this->useGzipCompression = $useGzipCompression; + } +}} + +if (!class_exists("ReportError", FALSE)) { +/** + * An error for an exception that occurred while running the report. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReportError extends ApiError { + /** + * @access public + * @var tnsReportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError"; + } + + 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("ReportJob", FALSE)) { +/** + * Represents a report job that will be run to retrieve performance and + * statistics information about ad campaigns, networks, inventory and sales. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReportJob { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var ReportQuery + */ + public $reportQuery; + + /** + * @access public + * @var tnsReportJobStatus + */ + public $reportJobStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJob"; + } + + public function __construct($id = NULL, $reportQuery = NULL, $reportJobStatus = NULL) { + $this->id = $id; + $this->reportQuery = $reportQuery; + $this->reportJobStatus = $reportJobStatus; + } +}} + +if (!class_exists("ReportQuery", FALSE)) { +/** + * A {@code ReportQuery} object allows you to specify the selection criteria for + * generating a report. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReportQuery { + /** + * @access public + * @var tnsDimension[] + */ + public $dimensions; + + /** + * @access public + * @var tnsReportQueryAdUnitView + */ + public $adUnitView; + + /** + * @access public + * @var tnsColumn[] + */ + public $columns; + + /** + * @access public + * @var tnsDimensionAttribute[] + */ + public $dimensionAttributes; + + /** + * @access public + * @var integer[] + */ + public $customFieldIds; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var Date + */ + public $endDate; + + /** + * @access public + * @var tnsDateRangeType + */ + public $dateRangeType; + + /** + * @access public + * @var tnsDimensionFilter[] + */ + public $dimensionFilters; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery"; + } + + public function __construct($dimensions = NULL, $adUnitView = NULL, $columns = NULL, $dimensionAttributes = NULL, $customFieldIds = NULL, $startDate = NULL, $endDate = NULL, $dateRangeType = NULL, $dimensionFilters = NULL, $statement = NULL, $timeZone = NULL) { + $this->dimensions = $dimensions; + $this->adUnitView = $adUnitView; + $this->columns = $columns; + $this->dimensionAttributes = $dimensionAttributes; + $this->customFieldIds = $customFieldIds; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->dateRangeType = $dateRangeType; + $this->dimensionFilters = $dimensionFilters; + $this->statement = $statement; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportQueryAdUnitView", FALSE)) { +/** + * A view for an ad unit report. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReportQueryAdUnitView { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery.AdUnitView"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Column", FALSE)) { +/** + * {@code Column} provides all the trafficking statistics and revenue + * information available for the chosen {@link Dimension} objects. + *

      + * Columns with {@code INVENTORY_LEVEL} should not be used with dimensions + * relating to line items, orders, companies and creatives, such as {@link Dimension#LINE_ITEM}. + * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level + * dynamic allocation enabled on your network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Column { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Column"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateRangeType", FALSE)) { +/** + * Represents a period of time. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Dimension", FALSE)) { +/** + * {@code Dimension} provides the break-down and filterable types available for + * running a {@link ReportJob}. Aggregate and percentage columns will be + * calculated based on these groupings. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Dimension { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimension"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionAttribute", FALSE)) { +/** + * {@code DimensionAttribute} provides additional fields associated with a + * {@link Dimension}. It can only be selected with its corresponding + * {@link Dimension}. For example, {@link DimensionAttribute#ORDER_PO_NUMBER} + * can only be used if the {@link ReportQuery#dimensions} contains + * {@link Dimension#ORDER_NAME}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DimensionAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionFilter", FALSE)) { +/** + * {@code DimensionFilter} filters the data used during report creation. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DimensionFilter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionFilter"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExportFormat", FALSE)) { +/** + * The file formats available for creating the report. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ExportFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExportFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportErrorReason", FALSE)) { +/** + * Default {@code ReportError} when the reason is not among any already + * defined. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportJobStatus", FALSE)) { +/** + * Represents the status of a {@link ReportJob} running on the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ReportJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportDownloadURL", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReportDownloadURL { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $exportFormat = NULL) { + $this->reportJobId = $reportJobId; + $this->exportFormat = $exportFormat; + } +}} + +if (!class_exists("getReportDownloadURLResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReportDownloadURLResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptions", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReportDownloadUrlWithOptions { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var ReportDownloadOptions + */ + public $reportDownloadOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $reportDownloadOptions = NULL) { + $this->reportJobId = $reportJobId; + $this->reportDownloadOptions = $reportDownloadOptions; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReportDownloadUrlWithOptionsResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportJob", FALSE)) { +/** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReportJob { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL) { + $this->reportJobId = $reportJobId; + } +}} + +if (!class_exists("getReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("runReportJob", FALSE)) { +/** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class runReportJob { + /** + * @access public + * @var ReportJob + */ + public $reportJob; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJob = NULL) { + $this->reportJob = $reportJob; + } +}} + +if (!class_exists("runReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class runReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportService", FALSE)) { +/** + * ReportService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class ReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ReportDownloadOptions" => "ReportDownloadOptions", + "ReportError" => "ReportError", + "ReportJob" => "ReportJob", + "ReportQuery" => "ReportQuery", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "Column" => "Column", + "CommonError.Reason" => "CommonErrorReason", + "DateRangeType" => "DateRangeType", + "Dimension" => "Dimension", + "DimensionAttribute" => "DimensionAttribute", + "DimensionFilter" => "DimensionFilter", + "ExportFormat" => "ExportFormat", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ReportError.Reason" => "ReportErrorReason", + "ReportJobStatus" => "ReportJobStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReportDownloadURL" => "getReportDownloadURL", + "getReportDownloadURLResponse" => "getReportDownloadURLResponse", + "getReportDownloadUrlWithOptions" => "getReportDownloadUrlWithOptions", + "getReportDownloadUrlWithOptionsResponse" => "getReportDownloadUrlWithOptionsResponse", + "getReportJob" => "getReportJob", + "getReportJobResponse" => "getReportJobResponse", + "runReportJob" => "runReportJob", + "runReportJobResponse" => "runReportJobResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/ReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + */ + public function getReportDownloadURL($reportJobId, $exportFormat) { + $arg = new getReportDownloadURL($reportJobId, $exportFormat); + $result = $this->__soapCall("getReportDownloadURL", array($arg)); + return $result->rval; + } + + + /** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + */ + public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions) { + $arg = new getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); + $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + */ + public function getReportJob($reportJobId) { + $arg = new getReportJob($reportJobId); + $result = $this->__soapCall("getReportJob", array($arg)); + return $result->rval; + } + + + /** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + */ + public function runReportJob($reportJob) { + $arg = new runReportJob($reportJob); + $result = $this->__soapCall("runReportJob", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php new file mode 100755 index 000000000..fd0a48a63 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php @@ -0,0 +1,2928 @@ +id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SuggestedAdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SuggestedAdUnitAction { + /** + * @access public + * @var string + */ + public $SuggestedAdUnitActionType; + + private $_parameterMap = array ( + "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitAction"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("SuggestedAdUnit", FALSE)) { +/** + * A {@code SuggestedAdUnit} represents a suggestion for a new ad unit, based on an ad tag that has + * been served at least ten times in the past week, but which does not correspond to a defined ad + * unit. This type is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SuggestedAdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var integer + */ + public $numRequests; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var AdUnitSize[] + */ + public $suggestedAdUnitSizes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnit"; + } + + public function __construct($id = NULL, $numRequests = NULL, $path = NULL, $parentPath = NULL, $targetWindow = NULL, $targetPlatform = NULL, $suggestedAdUnitSizes = NULL) { + $this->id = $id; + $this->numRequests = $numRequests; + $this->path = $path; + $this->parentPath = $parentPath; + $this->targetWindow = $targetWindow; + $this->targetPlatform = $targetPlatform; + $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; + } +}} + +if (!class_exists("SuggestedAdUnitPage", FALSE)) { +/** + * Contains a page of {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SuggestedAdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var SuggestedAdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("SuggestedAdUnitUpdateResult", FALSE)) { +/** + * Represents the result of performing an action on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SuggestedAdUnitUpdateResult { + /** + * @access public + * @var string[] + */ + public $newAdUnitIds; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitUpdateResult"; + } + + public function __construct($newAdUnitIds = NULL, $numChanges = NULL) { + $this->newAdUnitIds = $newAdUnitIds; + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("getSuggestedAdUnit", FALSE)) { +/** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getSuggestedAdUnit { + /** + * @access public + * @var string + */ + public $suggestedAdUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitId = NULL) { + $this->suggestedAdUnitId = $suggestedAdUnitId; + } +}} + +if (!class_exists("getSuggestedAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getSuggestedAdUnitResponse { + /** + * @access public + * @var SuggestedAdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getSuggestedAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getSuggestedAdUnitsByStatementResponse { + /** + * @access public + * @var SuggestedAdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performSuggestedAdUnitAction", FALSE)) { +/** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performSuggestedAdUnitAction { + /** + * @access public + * @var SuggestedAdUnitAction + */ + public $suggestedAdUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitAction = NULL, $filterStatement = NULL) { + $this->suggestedAdUnitAction = $suggestedAdUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performSuggestedAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performSuggestedAdUnitActionResponse { + /** + * @access public + * @var SuggestedAdUnitUpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveSuggestedAdUnit", FALSE)) { +/** + * Action to approve {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveSuggestedAdUnit"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + parent::__construct(); + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SuggestedAdUnitService", FALSE)) { +/** + * SuggestedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class SuggestedAdUnitService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitParent" => "AdUnitParent", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", + "SuggestedAdUnitAction" => "SuggestedAdUnitAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SuggestedAdUnit" => "SuggestedAdUnit", + "SuggestedAdUnitPage" => "SuggestedAdUnitPage", + "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TargetPlatform" => "TargetPlatform", + "getSuggestedAdUnit" => "getSuggestedAdUnit", + "getSuggestedAdUnitResponse" => "getSuggestedAdUnitResponse", + "getSuggestedAdUnitsByStatement" => "getSuggestedAdUnitsByStatement", + "getSuggestedAdUnitsByStatementResponse" => "getSuggestedAdUnitsByStatementResponse", + "performSuggestedAdUnitAction" => "performSuggestedAdUnitAction", + "performSuggestedAdUnitActionResponse" => "performSuggestedAdUnitActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/SuggestedAdUnitService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SuggestedAdUnitService::$classmap; + parent::__construct($wsdl, $options, $user, 'SuggestedAdUnitService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + */ + public function getSuggestedAdUnit($suggestedAdUnitId) { + $arg = new getSuggestedAdUnit($suggestedAdUnitId); + $result = $this->__soapCall("getSuggestedAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + */ + public function getSuggestedAdUnitsByStatement($filterStatement) { + $arg = new getSuggestedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + */ + public function performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement) { + $arg = new performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSuggestedAdUnitAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/TeamService.php b/src/Google/Api/Ads/Dfp/v201306/TeamService.php new file mode 100755 index 000000000..3092a3252 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/TeamService.php @@ -0,0 +1,2828 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Team", FALSE)) { +/** + * A {@code Team} defines a grouping of users and what entities they have access + * to. Users are added to teams with {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Team { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $hasAllCompanies; + + /** + * @access public + * @var boolean + */ + public $hasAllInventory; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $teamAccessType; + + /** + * @access public + * @var integer[] + */ + public $companyIds; + + /** + * @access public + * @var string[] + */ + public $adUnitIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Team"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $hasAllCompanies = NULL, $hasAllInventory = NULL, $teamAccessType = NULL, $companyIds = NULL, $adUnitIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->hasAllCompanies = $hasAllCompanies; + $this->hasAllInventory = $hasAllInventory; + $this->teamAccessType = $teamAccessType; + $this->companyIds = $companyIds; + $this->adUnitIds = $adUnitIds; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TeamPage", FALSE)) { +/** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Team[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createTeam", FALSE)) { +/** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("createTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createTeams", FALSE)) { +/** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("createTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeam", FALSE)) { +/** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getTeam { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL) { + $this->teamId = $teamId; + } +}} + +if (!class_exists("getTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeamsByStatement", FALSE)) { +/** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getTeamsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getTeamsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getTeamsByStatementResponse { + /** + * @access public + * @var TeamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeam", FALSE)) { +/** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("updateTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeams", FALSE)) { +/** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("updateTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TeamService", FALSE)) { +/** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class TeamService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Team" => "Team", + "TeamError" => "TeamError", + "TeamPage" => "TeamPage", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "TeamError.Reason" => "TeamErrorReason", + "createTeam" => "createTeam", + "createTeamResponse" => "createTeamResponse", + "createTeams" => "createTeams", + "createTeamsResponse" => "createTeamsResponse", + "getTeam" => "getTeam", + "getTeamResponse" => "getTeamResponse", + "getTeamsByStatement" => "getTeamsByStatement", + "getTeamsByStatementResponse" => "getTeamsByStatementResponse", + "updateTeam" => "updateTeam", + "updateTeamResponse" => "updateTeamResponse", + "updateTeams" => "updateTeams", + "updateTeamsResponse" => "updateTeamsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/TeamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TeamService::$classmap; + parent::__construct($wsdl, $options, $user, 'TeamService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + */ + public function createTeam($team) { + $arg = new createTeam($team); + $result = $this->__soapCall("createTeam", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + */ + public function createTeams($teams) { + $arg = new createTeams($teams); + $result = $this->__soapCall("createTeams", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + */ + public function getTeam($teamId) { + $arg = new getTeam($teamId); + $result = $this->__soapCall("getTeam", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + */ + public function getTeamsByStatement($filterStatement) { + $arg = new getTeamsByStatement($filterStatement); + $result = $this->__soapCall("getTeamsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + */ + public function updateTeam($team) { + $arg = new updateTeam($team); + $result = $this->__soapCall("updateTeam", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + */ + public function updateTeams($teams) { + $arg = new updateTeams($teams); + $result = $this->__soapCall("updateTeams", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/UserService.php b/src/Google/Api/Ads/Dfp/v201306/UserService.php new file mode 100755 index 000000000..672263412 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/UserService.php @@ -0,0 +1,3673 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("Role", FALSE)) { +/** + * Each {@code Role} provides a user with permissions to perform specific + * operations in the system. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Role { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Role"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserAction { + /** + * @access public + * @var string + */ + public $UserActionType; + + private $_parameterMap = array ( + "UserAction.Type" => "UserActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserAction"; + } + + public function __construct($UserActionType = NULL) { + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("UserPage", FALSE)) { +/** + * Captures a page of {@link User} objects + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var User[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UserRecord", FALSE)) { +/** + * The {@code UserRecord} represents the base class from which a {@code User} is + * derived. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserRecord { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var integer + */ + public $roleId; + + /** + * @access public + * @var string + */ + public $roleName; + + /** + * @access public + * @var string + */ + public $preferredLocale; + + /** + * @access public + * @var string + */ + public $UserRecordType; + + private $_parameterMap = array ( + "UserRecord.Type" => "UserRecordType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecord"; + } + + public function __construct($id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUser", FALSE)) { +/** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("createUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUsers", FALSE)) { +/** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("createUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAllRoles", FALSE)) { +/** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAllRoles { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllRolesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getAllRolesResponse { + /** + * @access public + * @var Role[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentUser", FALSE)) { +/** + * Returns the current {@link User}. + * + * @return the current user + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCurrentUser { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getCurrentUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUser", FALSE)) { +/** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getUser { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userId = NULL) { + $this->userId = $userId; + } +}} + +if (!class_exists("getUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUsersByStatement", FALSE)) { +/** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getUsersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUsersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getUsersByStatementResponse { + /** + * @access public + * @var UserPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserAction", FALSE)) { +/** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performUserAction { + /** + * @access public + * @var UserAction + */ + public $userAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userAction = NULL, $filterStatement = NULL) { + $this->userAction = $userAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performUserActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performUserActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUser", FALSE)) { +/** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("updateUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUsers", FALSE)) { +/** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("updateUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateUsers", FALSE)) { +/** + * The action used for activating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ActivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeactivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("User", FALSE)) { +/** + * Represents a user of the system. + *

      + * Users may be assigned at most one {@link Role} per network. Each role + * provides a user with permissions to perform specific operations. Without a + * role, they will not be able to perform any actions. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class User extends UserRecord { + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $ordersUiLocalTimeZoneId; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "User"; + } + + public function __construct($isActive = NULL, $isEmailNotificationAllowed = NULL, $externalId = NULL, $ordersUiLocalTimeZoneId = NULL, $customFieldValues = NULL, $id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->externalId = $externalId; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $this->customFieldValues = $customFieldValues; + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("UserService", FALSE)) { +/** + * UserService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class UserService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateUsers" => "ActivateUsers", + "UserAction" => "UserAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateUsers" => "DeactivateUsers", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "Role" => "Role", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "User" => "User", + "UserRecord" => "UserRecord", + "UserPage" => "UserPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createUser" => "createUser", + "createUserResponse" => "createUserResponse", + "createUsers" => "createUsers", + "createUsersResponse" => "createUsersResponse", + "getAllRoles" => "getAllRoles", + "getAllRolesResponse" => "getAllRolesResponse", + "getCurrentUser" => "getCurrentUser", + "getCurrentUserResponse" => "getCurrentUserResponse", + "getUser" => "getUser", + "getUserResponse" => "getUserResponse", + "getUsersByStatement" => "getUsersByStatement", + "getUsersByStatementResponse" => "getUsersByStatementResponse", + "performUserAction" => "performUserAction", + "performUserActionResponse" => "performUserActionResponse", + "updateUser" => "updateUser", + "updateUserResponse" => "updateUserResponse", + "updateUsers" => "updateUsers", + "updateUsersResponse" => "updateUsersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/UserService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + */ + public function createUser($user) { + $arg = new createUser($user); + $result = $this->__soapCall("createUser", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + */ + public function createUsers($users) { + $arg = new createUsers($users); + $result = $this->__soapCall("createUsers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + */ + public function getAllRoles() { + $arg = new getAllRoles(); + $result = $this->__soapCall("getAllRoles", array($arg)); + return $result->rval; + } + + + /** + * Returns the current {@link User}. + * + * @return the current user + */ + public function getCurrentUser() { + $arg = new getCurrentUser(); + $result = $this->__soapCall("getCurrentUser", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + */ + public function getUser($userId) { + $arg = new getUser($userId); + $result = $this->__soapCall("getUser", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + */ + public function getUsersByStatement($filterStatement) { + $arg = new getUsersByStatement($filterStatement); + $result = $this->__soapCall("getUsersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + */ + public function performUserAction($userAction, $filterStatement) { + $arg = new performUserAction($userAction, $filterStatement); + $result = $this->__soapCall("performUserAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + */ + public function updateUser($user) { + $arg = new updateUser($user); + $result = $this->__soapCall("updateUser", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + */ + public function updateUsers($users) { + $arg = new updateUsers($users); + $result = $this->__soapCall("updateUsers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php new file mode 100755 index 000000000..f81d46f31 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php @@ -0,0 +1,2900 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserRecordTeamAssociation", FALSE)) { +/** + * {@code UserRecordTeamAssociation} represents the association between a + * {@link UserRecord} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $overriddenTeamAccessType; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $defaultTeamAccessType; + + /** + * @access public + * @var string + */ + public $UserRecordTeamAssociationType; + + private $_parameterMap = array ( + "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecordTeamAssociation"; + } + + public function __construct($teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link UserTeamAssociation} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserTeamAssociationAction { + /** + * @access public + * @var string + */ + public $UserTeamAssociationActionType; + + private $_parameterMap = array ( + "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationAction"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("UserTeamAssociation", FALSE)) { +/** + * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} + * to provide the user access to the entities that belong to the team. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociation"; + } + + public function __construct($userId = NULL, $teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + parent::__construct(); + $this->userId = $userId; + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationPage", FALSE)) { +/** + * Captures a page of {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class UserTeamAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUserTeamAssociation", FALSE)) { +/** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("createUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUserTeamAssociations", FALSE)) { +/** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("createUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class createUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociation", FALSE)) { +/** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getUserTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL, $userId = NULL) { + $this->teamId = $teamId; + $this->userId = $userId; + } +}} + +if (!class_exists("getUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatement", FALSE)) { +/** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getUserTeamAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getUserTeamAssociationsByStatementResponse { + /** + * @access public + * @var UserTeamAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserTeamAssociationAction", FALSE)) { +/** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performUserTeamAssociationAction { + /** + * @access public + * @var UserTeamAssociationAction + */ + public $userTeamAssociationAction; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociationAction = NULL, $statement = NULL) { + $this->userTeamAssociationAction = $userTeamAssociationAction; + $this->statement = $statement; + } +}} + +if (!class_exists("performUserTeamAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class performUserTeamAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociation", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("updateUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociations", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("updateUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class updateUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteUserTeamAssociations"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + parent::__construct(); + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("UserTeamAssociationService", FALSE)) { +/** + * UserTeamAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class UserTeamAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", + "UserTeamAssociationAction" => "UserTeamAssociationAction", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "UserRecordTeamAssociation" => "UserRecordTeamAssociation", + "UserTeamAssociation" => "UserTeamAssociation", + "UserTeamAssociationPage" => "UserTeamAssociationPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "createUserTeamAssociation" => "createUserTeamAssociation", + "createUserTeamAssociationResponse" => "createUserTeamAssociationResponse", + "createUserTeamAssociations" => "createUserTeamAssociations", + "createUserTeamAssociationsResponse" => "createUserTeamAssociationsResponse", + "getUserTeamAssociation" => "getUserTeamAssociation", + "getUserTeamAssociationResponse" => "getUserTeamAssociationResponse", + "getUserTeamAssociationsByStatement" => "getUserTeamAssociationsByStatement", + "getUserTeamAssociationsByStatementResponse" => "getUserTeamAssociationsByStatementResponse", + "performUserTeamAssociationAction" => "performUserTeamAssociationAction", + "performUserTeamAssociationActionResponse" => "performUserTeamAssociationActionResponse", + "updateUserTeamAssociation" => "updateUserTeamAssociation", + "updateUserTeamAssociationResponse" => "updateUserTeamAssociationResponse", + "updateUserTeamAssociations" => "updateUserTeamAssociations", + "updateUserTeamAssociationsResponse" => "updateUserTeamAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/UserTeamAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserTeamAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserTeamAssociationService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + */ + public function createUserTeamAssociation($userTeamAssociation) { + $arg = new createUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("createUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + */ + public function createUserTeamAssociations($userTeamAssociations) { + $arg = new createUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("createUserTeamAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + */ + public function getUserTeamAssociation($teamId, $userId) { + $arg = new getUserTeamAssociation($teamId, $userId); + $result = $this->__soapCall("getUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + */ + public function getUserTeamAssociationsByStatement($filterStatement) { + $arg = new getUserTeamAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + */ + public function performUserTeamAssociationAction($userTeamAssociationAction, $statement) { + $arg = new performUserTeamAssociationAction($userTeamAssociationAction, $statement); + $result = $this->__soapCall("performUserTeamAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + */ + public function updateUserTeamAssociation($userTeamAssociation) { + $arg = new updateUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("updateUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + */ + public function updateUserTeamAssociations($userTeamAssociations) { + $arg = new updateUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("updateUserTeamAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php b/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php new file mode 100755 index 000000000..03910f3a8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php @@ -0,0 +1,2158 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowAction", FALSE)) { +/** + * A {@code WorkflowAction} represents an executable in a workflow, such as requesting approval or + * sending notification. When the workflow has executed to a round, all of its actions will start. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class WorkflowAction { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer[] + */ + public $userIds; + + /** + * @access public + * @var tnsWorkflowActionType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowAction"; + } + + public function __construct($id = NULL, $name = NULL, $userIds = NULL, $type = NULL) { + $this->id = $id; + $this->name = $name; + $this->userIds = $userIds; + $this->type = $type; + } +}} + +if (!class_exists("WorkflowActionPage", FALSE)) { +/** + * Captures a page of {@link WorkflowAction} objects. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class WorkflowActionPage { + /** + * @access public + * @var WorkflowAction[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("WorkflowActionType", FALSE)) { +/** + * Represents the type of an workflow round action. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class WorkflowActionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("getWorkflowAction", FALSE)) { +/** + * Returns the {@link WorkflowAction} uniquely identified by the given ID. + * + * @param workflowActionId the ID of the workflow action, which must already exist + * @return the {@code WorkflowAction} uniquely identified by the given ID. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getWorkflowAction { + /** + * @access public + * @var integer + */ + public $workflowActionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($workflowActionId = NULL) { + $this->workflowActionId = $workflowActionId; + } +}} + +if (!class_exists("getWorkflowActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getWorkflowActionResponse { + /** + * @access public + * @var WorkflowAction + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getWorkflowActionsByStatement", FALSE)) { +/** + * Gets a {@link WorkflowActionPage} of {@link WorkflowAction} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      id{@link WorkflowAction#id}
      name{@link WorkflowAction#name}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * actions + * @return the {@link WorkflowAction workflow actions} that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getWorkflowActionsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getWorkflowActionsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class getWorkflowActionsByStatementResponse { + /** + * @access public + * @var WorkflowActionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201306 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201306"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowActionService", FALSE)) { +/** + * WorkflowActionService + * @package GoogleApiAdsDfp + * @subpackage v201306 + * @author WSDLInterpreter + */ +class WorkflowActionService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "WorkflowAction" => "WorkflowAction", + "WorkflowActionPage" => "WorkflowActionPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "WorkflowActionType" => "WorkflowActionType", + "getWorkflowAction" => "getWorkflowAction", + "getWorkflowActionResponse" => "getWorkflowActionResponse", + "getWorkflowActionsByStatement" => "getWorkflowActionsByStatement", + "getWorkflowActionsByStatementResponse" => "getWorkflowActionsByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201306/WorkflowActionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = WorkflowActionService::$classmap; + parent::__construct($wsdl, $options, $user, 'WorkflowActionService', 'https://www.google.com/apis/ads/publisher/v201306'); + } + + /** + * Returns the {@link WorkflowAction} uniquely identified by the given ID. + * + * @param workflowActionId the ID of the workflow action, which must already exist + * @return the {@code WorkflowAction} uniquely identified by the given ID. + */ + public function getWorkflowAction($workflowActionId) { + $arg = new getWorkflowAction($workflowActionId); + $result = $this->__soapCall("getWorkflowAction", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link WorkflowActionPage} of {@link WorkflowAction} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      id{@link WorkflowAction#id}
      name{@link WorkflowAction#name}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * actions + * @return the {@link WorkflowAction workflow actions} that match the given filter + */ + public function getWorkflowActionsByStatement($filterStatement) { + $arg = new getWorkflowActionsByStatement($filterStatement); + $result = $this->__soapCall("getWorkflowActionsByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php new file mode 100755 index 000000000..b66335050 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php @@ -0,0 +1,2841 @@ +id = $id; + $this->name = $name; + $this->companyIds = $companyIds; + $this->impressionsLookback = $impressionsLookback; + $this->clicksLookback = $clicksLookback; + $this->status = $status; + } +}} + +if (!class_exists("ActivityGroupPage", FALSE)) { +/** + * Captures a page of {@link ActivityGroup} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityGroupPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ActivityGroup[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityGroupPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityGroupStatus", FALSE)) { +/** + * The activity group status. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createActivityGroup", FALSE)) { +/** + * Creates a new {@link ActivityGroup}. + * + * @param activityGroup the activity group to be created. + * @return the created activity group with its ID filled in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createActivityGroup { + /** + * @access public + * @var ActivityGroup + */ + public $activityGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroup = NULL) { + $this->activityGroup = $activityGroup; + } +}} + +if (!class_exists("createActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createActivityGroups", FALSE)) { +/** + * Creates a new {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createActivityGroups { + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroups = NULL) { + $this->activityGroups = $activityGroups; + } +}} + +if (!class_exists("createActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createActivityGroupsResponse { + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivityGroup", FALSE)) { +/** + * Returns the {@link ActivityGroup} uniquely identified by the given ID. + * + * @param activityGroupId the ID of the activity group, which must already exist. + * @return the {@code ActivityGroup} uniquely identified by the given ID. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getActivityGroup { + /** + * @access public + * @var integer + */ + public $activityGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroupId = NULL) { + $this->activityGroupId = $activityGroupId; + } +}} + +if (!class_exists("getActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivityGroupsByStatement", FALSE)) { +/** + * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ActivityGroup#id}
      {@code name}{@link ActivityGroup#name}
      {@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
      {@code clicksLookback}{@link ActivityGroup#clicksLookback}
      {@code status}{@link ActivityGroup#status}
      + * + * @param filterStatement a statement used to filter a set of activity groups + * @return the activity groups that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getActivityGroupsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getActivityGroupsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getActivityGroupsByStatementResponse { + /** + * @access public + * @var ActivityGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivityGroup", FALSE)) { +/** + * Updates the specified {@link ActivityGroup}. + * + * @param activityGroup the activity group to update. + * @return the updated activity group. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateActivityGroup { + /** + * @access public + * @var ActivityGroup + */ + public $activityGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroup = NULL) { + $this->activityGroup = $activityGroup; + } +}} + +if (!class_exists("updateActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivityGroups", FALSE)) { +/** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateActivityGroups { + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroups = NULL) { + $this->activityGroups = $activityGroups; + } +}} + +if (!class_exists("updateActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateActivityGroupsResponse { + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivityError", FALSE)) { +/** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityError extends ApiError { + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityGroupService", FALSE)) { +/** + * ActivityGroupService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ActivityGroupService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivityError" => "ActivityError", + "ApiError" => "ApiError", + "ActivityGroup" => "ActivityGroup", + "ActivityGroupPage" => "ActivityGroupPage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ActivityError.Reason" => "ActivityErrorReason", + "ActivityGroup.Status" => "ActivityGroupStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createActivityGroup" => "createActivityGroup", + "createActivityGroupResponse" => "createActivityGroupResponse", + "createActivityGroups" => "createActivityGroups", + "createActivityGroupsResponse" => "createActivityGroupsResponse", + "getActivityGroup" => "getActivityGroup", + "getActivityGroupResponse" => "getActivityGroupResponse", + "getActivityGroupsByStatement" => "getActivityGroupsByStatement", + "getActivityGroupsByStatementResponse" => "getActivityGroupsByStatementResponse", + "updateActivityGroup" => "updateActivityGroup", + "updateActivityGroupResponse" => "updateActivityGroupResponse", + "updateActivityGroups" => "updateActivityGroups", + "updateActivityGroupsResponse" => "updateActivityGroupsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ActivityGroupService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ActivityGroupService::$classmap; + parent::__construct($wsdl, $options, $user, 'ActivityGroupService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link ActivityGroup}. + * + * @param activityGroup the activity group to be created. + * @return the created activity group with its ID filled in. + */ + public function createActivityGroup($activityGroup) { + $arg = new createActivityGroup($activityGroup); + $result = $this->__soapCall("createActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + */ + public function createActivityGroups($activityGroups) { + $arg = new createActivityGroups($activityGroups); + $result = $this->__soapCall("createActivityGroups", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ActivityGroup} uniquely identified by the given ID. + * + * @param activityGroupId the ID of the activity group, which must already exist. + * @return the {@code ActivityGroup} uniquely identified by the given ID. + */ + public function getActivityGroup($activityGroupId) { + $arg = new getActivityGroup($activityGroupId); + $result = $this->__soapCall("getActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ActivityGroup#id}
      {@code name}{@link ActivityGroup#name}
      {@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
      {@code clicksLookback}{@link ActivityGroup#clicksLookback}
      {@code status}{@link ActivityGroup#status}
      + * + * @param filterStatement a statement used to filter a set of activity groups + * @return the activity groups that match the given filter + */ + public function getActivityGroupsByStatement($filterStatement) { + $arg = new getActivityGroupsByStatement($filterStatement); + $result = $this->__soapCall("getActivityGroupsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ActivityGroup}. + * + * @param activityGroup the activity group to update. + * @return the updated activity group. + */ + public function updateActivityGroup($activityGroup) { + $arg = new updateActivityGroup($activityGroup); + $result = $this->__soapCall("updateActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + */ + public function updateActivityGroups($activityGroups) { + $arg = new updateActivityGroups($activityGroups); + $result = $this->__soapCall("updateActivityGroups", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ActivityService.php b/src/Google/Api/Ads/Dfp/v201308/ActivityService.php new file mode 100755 index 000000000..e290eb8fb --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ActivityService.php @@ -0,0 +1,2874 @@ +An activity is a specific user action that an advertiser wants to track, such as the + * completion of a purchase or a visit to a webpage. You create and manage activities in DFP. When + * a user performs the action after seeing an advertiser's ad, that's a conversion.

      + * + *

      For example, you set up an activity in DFP to track how many users visit an advertiser's + * promotional website after viewing or clicking on an ad. When a user views an ad, then visits the + * page, that's one conversion.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Activity { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $activityGroupId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $expectedURL; + + /** + * @access public + * @var tnsActivityStatus + */ + public $status; + + /** + * @access public + * @var tnsActivityType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity"; + } + + public function __construct($id = NULL, $activityGroupId = NULL, $name = NULL, $expectedURL = NULL, $status = NULL, $type = NULL) { + $this->id = $id; + $this->activityGroupId = $activityGroupId; + $this->name = $name; + $this->expectedURL = $expectedURL; + $this->status = $status; + $this->type = $type; + } +}} + +if (!class_exists("ActivityPage", FALSE)) { +/** + * Captures a page of {@link Activity} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Activity[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityStatus", FALSE)) { +/** + * The activity status. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityType", FALSE)) { +/** + * The activity type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createActivities", FALSE)) { +/** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createActivities { + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activities = NULL) { + $this->activities = $activities; + } +}} + +if (!class_exists("createActivitiesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createActivitiesResponse { + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createActivity", FALSE)) { +/** + * Creates a new {@link Activity}. + * + * @param activity to be created + * @return the created activity with its ID filled in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createActivity { + /** + * @access public + * @var Activity + */ + public $activity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activity = NULL) { + $this->activity = $activity; + } +}} + +if (!class_exists("createActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivitiesByStatement", FALSE)) { +/** + * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Activity#id}
      {@code name}{@link Activity#name}
      {@code expectedURL}{@link Activity#expectedURL}
      {@code status}{@link Activity#status}
      {@code activityGroupId}{@link Activity#activityGroupId}
      + * + * @param filterStatement a statement used to filter a set of activities. + * @return the activities that match the given filter. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getActivitiesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getActivitiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getActivitiesByStatementResponse { + /** + * @access public + * @var ActivityPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivity", FALSE)) { +/** + * Returns the {@link Activity} uniquely identified by the given ID. + * + * @param activityId the ID of the activity, which must already exist + * @return the {@code Activity} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getActivity { + /** + * @access public + * @var integer + */ + public $activityId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityId = NULL) { + $this->activityId = $activityId; + } +}} + +if (!class_exists("getActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivities", FALSE)) { +/** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateActivities { + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activities = NULL) { + $this->activities = $activities; + } +}} + +if (!class_exists("updateActivitiesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateActivitiesResponse { + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivity", FALSE)) { +/** + * Updates the specified {@link Activity}. + * + * @param activity to be updated. + * @return the updated activity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateActivity { + /** + * @access public + * @var Activity + */ + public $activity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activity = NULL) { + $this->activity = $activity; + } +}} + +if (!class_exists("updateActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivityError", FALSE)) { +/** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivityError extends ApiError { + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityService", FALSE)) { +/** + * ActivityService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ActivityService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "Activity" => "Activity", + "ActivityError" => "ActivityError", + "ApiError" => "ApiError", + "ActivityPage" => "ActivityPage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "Activity.Status" => "ActivityStatus", + "Activity.Type" => "ActivityType", + "ActivityError.Reason" => "ActivityErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createActivities" => "createActivities", + "createActivitiesResponse" => "createActivitiesResponse", + "createActivity" => "createActivity", + "createActivityResponse" => "createActivityResponse", + "getActivitiesByStatement" => "getActivitiesByStatement", + "getActivitiesByStatementResponse" => "getActivitiesByStatementResponse", + "getActivity" => "getActivity", + "getActivityResponse" => "getActivityResponse", + "updateActivities" => "updateActivities", + "updateActivitiesResponse" => "updateActivitiesResponse", + "updateActivity" => "updateActivity", + "updateActivityResponse" => "updateActivityResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ActivityService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ActivityService::$classmap; + parent::__construct($wsdl, $options, $user, 'ActivityService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + */ + public function createActivities($activities) { + $arg = new createActivities($activities); + $result = $this->__soapCall("createActivities", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Activity}. + * + * @param activity to be created + * @return the created activity with its ID filled in. + */ + public function createActivity($activity) { + $arg = new createActivity($activity); + $result = $this->__soapCall("createActivity", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Activity#id}
      {@code name}{@link Activity#name}
      {@code expectedURL}{@link Activity#expectedURL}
      {@code status}{@link Activity#status}
      {@code activityGroupId}{@link Activity#activityGroupId}
      + * + * @param filterStatement a statement used to filter a set of activities. + * @return the activities that match the given filter. + */ + public function getActivitiesByStatement($filterStatement) { + $arg = new getActivitiesByStatement($filterStatement); + $result = $this->__soapCall("getActivitiesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Activity} uniquely identified by the given ID. + * + * @param activityId the ID of the activity, which must already exist + * @return the {@code Activity} uniquely identified by the given ID + */ + public function getActivity($activityId) { + $arg = new getActivity($activityId); + $result = $this->__soapCall("getActivity", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + */ + public function updateActivities($activities) { + $arg = new updateActivities($activities); + $result = $this->__soapCall("updateActivities", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Activity}. + * + * @param activity to be updated. + * @return the updated activity. + */ + public function updateActivity($activity) { + $arg = new updateActivity($activity); + $result = $this->__soapCall("updateActivity", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php new file mode 100755 index 000000000..157a06713 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php @@ -0,0 +1,6583 @@ + "AdRuleActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleAction"; + } + + public function __construct($AdRuleActionType = NULL) { + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("AdRule", FALSE)) { +/** + * An {@link AdRule} contains data that the ad server will use to generate a playlist of video ads. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRule { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsAdRuleStatus + */ + public $status; + + /** + * @access public + * @var tnsFrequencyCapBehavior + */ + public $frequencyCapBehavior; + + /** + * @access public + * @var integer + */ + public $maxImpressionsPerLineItemPerStream; + + /** + * @access public + * @var integer + */ + public $maxImpressionsPerLineItemPerPod; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $preroll; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $midroll; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $postroll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRule"; + } + + public function __construct($id = NULL, $name = NULL, $priority = NULL, $targeting = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $frequencyCapBehavior = NULL, $maxImpressionsPerLineItemPerStream = NULL, $maxImpressionsPerLineItemPerPod = NULL, $preroll = NULL, $midroll = NULL, $postroll = NULL) { + $this->id = $id; + $this->name = $name; + $this->priority = $priority; + $this->targeting = $targeting; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->frequencyCapBehavior = $frequencyCapBehavior; + $this->maxImpressionsPerLineItemPerStream = $maxImpressionsPerLineItemPerStream; + $this->maxImpressionsPerLineItemPerPod = $maxImpressionsPerLineItemPerPod; + $this->preroll = $preroll; + $this->midroll = $midroll; + $this->postroll = $postroll; + } +}} + +if (!class_exists("AdRulePage", FALSE)) { +/** + * Captures a page of {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRulePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdRule[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("BaseAdRuleSlot", FALSE)) { +/** + * Simple object representing an ad slot within an {@link AdRule}. Ad rule slots + * contain information about the types/number of ads to display, as well + * as additional information on how the ad server will generate playlists. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseAdRuleSlot { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsAdRuleSlotBehavior + */ + public $slotBehavior; + + /** + * @access public + * @var integer + */ + public $minVideoAdDuration; + + /** + * @access public + * @var integer + */ + public $maxVideoAdDuration; + + /** + * @access public + * @var tnsMidrollFrequencyType + */ + public $videoMidrollFrequencyType; + + /** + * @access public + * @var string + */ + public $videoMidrollFrequency; + + /** + * @access public + * @var tnsAdRuleSlotBumper + */ + public $bumper; + + /** + * @access public + * @var integer + */ + public $maxBumperDuration; + + /** + * @access public + * @var integer + */ + public $minPodDuration; + + /** + * @access public + * @var integer + */ + public $maxPodDuration; + + /** + * @access public + * @var integer + */ + public $maxAdsInPod; + + /** + * @access public + * @var string + */ + public $BaseAdRuleSlotType; + + private $_parameterMap = array ( + "BaseAdRuleSlot.Type" => "BaseAdRuleSlotType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("StandardPoddingAdRuleSlot", FALSE)) { +/** + * An ad rule slot with standard podding. A standard pod is a series of video ads played + * back to back. Standard pods are defined by a {@link BaseAdRuleSlot#maxAdsInPod} and a + * {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StandardPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("AdUnitTargeting", FALSE)) { +/** + * Represents targeted or excluded ad units. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitTargeting { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * @access public + * @var boolean + */ + public $includeDescendants; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTargeting"; + } + + public function __construct($adUnitId = NULL, $includeDescendants = NULL) { + $this->adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DeactivateAdRules", FALSE)) { +/** + * The action used for pausing {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("DeleteAdRules", FALSE)) { +/** + * The action used for deleting {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeleteAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PoddingError", FALSE)) { +/** + * Errors related to podding fields in ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PoddingError extends ApiError { + /** + * @access public + * @var tnsPoddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PoddingError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnknownAdRuleSlot", FALSE)) { +/** + * The {@link BaseAdRuleSlot} subtype returned if the actual type is not exposed by the + * requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnknownAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnknownAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("AdRuleDateErrorReason", FALSE)) { +/** + * Describes reasons for {@code AdRuleDateError}s. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleFrequencyCapErrorReason", FALSE)) { +/** + * Describes reason for {@code AdRuleFrequencyCapError}s. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleFrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleFrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRulePriorityErrorReason", FALSE)) { +/** + * Reasons for an {@code AdRulePriorityError}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRulePriorityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePriorityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotBehavior", FALSE)) { +/** + * The types of behaviors for ads within a {@link BaseAdRuleSlot ad rule slot}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleSlotBehavior { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotBehavior"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotBumper", FALSE)) { +/** + * Types of bumper ads on an ad rule slot. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleSlotBumper { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotBumper"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotErrorReason", FALSE)) { +/** + * Describes reason for {@code AdRuleSlotError}s. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleSlotErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleStatus", FALSE)) { +/** + * Represents the status of ad rules and ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapBehavior", FALSE)) { +/** + * Types of behavior for frequency caps within ad rules. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapBehavior { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapBehavior"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MidrollFrequencyType", FALSE)) { +/** + * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MidrollFrequencyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MidrollFrequencyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PoddingErrorReason", FALSE)) { +/** + * Describes reason for {@code PoddingError}s. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PoddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PoddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdRule", FALSE)) { +/** + * Creates a new {@link AdRule}. + * + * The following fields are required: + *
        + *
      • {@link AdRule#id}
      • + *
      • {@link AdRule#name}
      • + *
      • {@link AdRule#priority}
      • + *
      • {@link AdRule#startDateTime}
      • + *
      • {@link AdRule#endDateTime}
      • + *
      • {@link AdRule#preroll}
      • + *
      • {@link AdRule#midroll}
      • + *
      • {@link AdRule#postroll}
      • + *
      + * + * @param adRule the ad rule to create + * @return the ad rule with its ID filled in + * @throws ApiException if there the ad rule is invalid or there is another + * error + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAdRule { + /** + * @access public + * @var AdRule + */ + public $adRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRule = NULL) { + $this->adRule = $adRule; + } +}} + +if (!class_exists("createAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdRules", FALSE)) { +/** + * Creates new {@link AdRule} objects. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAdRules { + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRules = NULL) { + $this->adRules = $adRules; + } +}} + +if (!class_exists("createAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAdRulesResponse { + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdRule", FALSE)) { +/** + * Returns the {@link AdRule} uniquely identified by the given ID. + * + * @param adRuleId the ID of the ad rule, which must already exist + * @return the {@code AdRule} uniquely identified by the given ID + * @throws ApiException if there is an error retrieving the ad rule + * or the ID is invalid + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdRule { + /** + * @access public + * @var integer + */ + public $adRuleId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRuleId = NULL) { + $this->adRuleId = $adRuleId; + } +}} + +if (!class_exists("getAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdRulesByStatement", FALSE)) { +/** + * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link AdRule#id}
      {@code name}{@link AdRule#name}
      {@code priority}{@link AdRule#priority}
      {@code status}{@link AdRule#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the ad rules that match the given filter + * @throws ApiException if the ID of the active network does not exist or + * there is a backend error + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdRulesByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getAdRulesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdRulesByStatementResponse { + /** + * @access public + * @var AdRulePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdRuleAction", FALSE)) { +/** + * Performs actions on {@link AdRule} objects that match the given + * {@link Statement#query}. + * + * @param adRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performAdRuleAction { + /** + * @access public + * @var AdRuleAction + */ + public $adRuleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRuleAction = NULL, $filterStatement = NULL) { + $this->adRuleAction = $adRuleAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdRuleActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performAdRuleActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdRule", FALSE)) { +/** + * Updates a previously-created {@link AdRule}. + * + * @param adRule the ad rule that should be updated + * @return the updated ad rule + * @throws ApiException if there is an error updating the ad rule + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAdRule { + /** + * @access public + * @var AdRule + */ + public $adRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRule = NULL) { + $this->adRule = $adRule; + } +}} + +if (!class_exists("updateAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdRules", FALSE)) { +/** + * Updates the specified {@link AdRule} objects. + * + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAdRules { + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRules = NULL) { + $this->adRules = $adRules; + } +}} + +if (!class_exists("updateAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAdRulesResponse { + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdRules", FALSE)) { +/** + * The action used for resuming {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("AdRuleDateError", FALSE)) { +/** + * Lists all errors associated with ad rule start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleDateError extends ApiError { + /** + * @access public + * @var tnsAdRuleDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleDateError"; + } + + 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("AdRuleFrequencyCapError", FALSE)) { +/** + * Errors related to ad rule frequency caps + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleFrequencyCapError extends ApiError { + /** + * @access public + * @var tnsAdRuleFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleFrequencyCapError"; + } + + 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("NoPoddingAdRuleSlot", FALSE)) { +/** + * An ad rule slot with no podding. It is defined by a {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("OptimizedPoddingAdRuleSlot", FALSE)) { +/** + * Ad rule slot with optimized podding. Optimized pods are defined by a + * {@link BaseAdRuleSlot#maxPodDuration} and a {@link BaseAdRuleSlot#maxAdsInPod}, and the ad + * server chooses the best ads for the alloted duration. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OptimizedPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("AdRulePriorityError", FALSE)) { +/** + * Errors associated with ad rule priorities. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRulePriorityError extends ApiError { + /** + * @access public + * @var tnsAdRulePriorityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePriorityError"; + } + + 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("AdRuleSlotError", FALSE)) { +/** + * Errors related to ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdRuleSlotError extends ApiError { + /** + * @access public + * @var tnsAdRuleSlotErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AdRuleService", FALSE)) { +/** + * AdRuleService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class AdRuleService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdRules" => "ActivateAdRules", + "AdRuleAction" => "AdRuleAction", + "AdRuleDateError" => "AdRuleDateError", + "ApiError" => "ApiError", + "AdRule" => "AdRule", + "AdRuleFrequencyCapError" => "AdRuleFrequencyCapError", + "NoPoddingAdRuleSlot" => "NoPoddingAdRuleSlot", + "BaseAdRuleSlot" => "BaseAdRuleSlot", + "OptimizedPoddingAdRuleSlot" => "OptimizedPoddingAdRuleSlot", + "AdRulePage" => "AdRulePage", + "AdRulePriorityError" => "AdRulePriorityError", + "AdRuleSlotError" => "AdRuleSlotError", + "StandardPoddingAdRuleSlot" => "StandardPoddingAdRuleSlot", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DeactivateAdRules" => "DeactivateAdRules", + "DeleteAdRules" => "DeleteAdRules", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "FeatureError" => "FeatureError", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "PermissionError" => "PermissionError", + "PoddingError" => "PoddingError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegionLocation" => "RegionLocation", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "UniqueError" => "UniqueError", + "UnknownAdRuleSlot" => "UnknownAdRuleSlot", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "AdRuleDateError.Reason" => "AdRuleDateErrorReason", + "AdRuleFrequencyCapError.Reason" => "AdRuleFrequencyCapErrorReason", + "AdRulePriorityError.Reason" => "AdRulePriorityErrorReason", + "AdRuleSlotBehavior" => "AdRuleSlotBehavior", + "AdRuleSlotBumper" => "AdRuleSlotBumper", + "AdRuleSlotError.Reason" => "AdRuleSlotErrorReason", + "AdRuleStatus" => "AdRuleStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DayOfWeek" => "DayOfWeek", + "DeliveryTimeZone" => "DeliveryTimeZone", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapBehavior" => "FrequencyCapBehavior", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "MidrollFrequencyType" => "MidrollFrequencyType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PoddingError.Reason" => "PoddingErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createAdRule" => "createAdRule", + "createAdRuleResponse" => "createAdRuleResponse", + "createAdRules" => "createAdRules", + "createAdRulesResponse" => "createAdRulesResponse", + "getAdRule" => "getAdRule", + "getAdRuleResponse" => "getAdRuleResponse", + "getAdRulesByStatement" => "getAdRulesByStatement", + "getAdRulesByStatementResponse" => "getAdRulesByStatementResponse", + "performAdRuleAction" => "performAdRuleAction", + "performAdRuleActionResponse" => "performAdRuleActionResponse", + "updateAdRule" => "updateAdRule", + "updateAdRuleResponse" => "updateAdRuleResponse", + "updateAdRules" => "updateAdRules", + "updateAdRulesResponse" => "updateAdRulesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/AdRuleService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdRuleService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdRuleService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link AdRule}. + * + * The following fields are required: + *
        + *
      • {@link AdRule#id}
      • + *
      • {@link AdRule#name}
      • + *
      • {@link AdRule#priority}
      • + *
      • {@link AdRule#startDateTime}
      • + *
      • {@link AdRule#endDateTime}
      • + *
      • {@link AdRule#preroll}
      • + *
      • {@link AdRule#midroll}
      • + *
      • {@link AdRule#postroll}
      • + *
      + * + * @param adRule the ad rule to create + * @return the ad rule with its ID filled in + * @throws ApiException if there the ad rule is invalid or there is another + * error + */ + public function createAdRule($adRule) { + $arg = new createAdRule($adRule); + $result = $this->__soapCall("createAdRule", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdRule} objects. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + */ + public function createAdRules($adRules) { + $arg = new createAdRules($adRules); + $result = $this->__soapCall("createAdRules", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdRule} uniquely identified by the given ID. + * + * @param adRuleId the ID of the ad rule, which must already exist + * @return the {@code AdRule} uniquely identified by the given ID + * @throws ApiException if there is an error retrieving the ad rule + * or the ID is invalid + */ + public function getAdRule($adRuleId) { + $arg = new getAdRule($adRuleId); + $result = $this->__soapCall("getAdRule", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link AdRule#id}
      {@code name}{@link AdRule#name}
      {@code priority}{@link AdRule#priority}
      {@code status}{@link AdRule#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the ad rules that match the given filter + * @throws ApiException if the ID of the active network does not exist or + * there is a backend error + */ + public function getAdRulesByStatement($statement) { + $arg = new getAdRulesByStatement($statement); + $result = $this->__soapCall("getAdRulesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdRule} objects that match the given + * {@link Statement#query}. + * + * @param adRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the result of the action performed + */ + public function performAdRuleAction($adRuleAction, $filterStatement) { + $arg = new performAdRuleAction($adRuleAction, $filterStatement); + $result = $this->__soapCall("performAdRuleAction", array($arg)); + return $result->rval; + } + + + /** + * Updates a previously-created {@link AdRule}. + * + * @param adRule the ad rule that should be updated + * @return the updated ad rule + * @throws ApiException if there is an error updating the ad rule + */ + public function updateAdRule($adRule) { + $arg = new updateAdRule($adRule); + $result = $this->__soapCall("updateAdRule", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdRule} objects. + * + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules + */ + public function updateAdRules($adRules) { + $arg = new updateAdRules($adRules); + $result = $this->__soapCall("updateAdRules", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php new file mode 100755 index 000000000..c0e3c7ab8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php @@ -0,0 +1,3741 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceSegmentDataProvider", FALSE)) { +/** + * Data provider that owns this segment. For a {@link FirstPartyAudienceSegment}, it would be the + * publisher network. For a {@link SharedAudienceSegment} or a {@link ThirdPartyAudienceSegment}, it + * would be the entity that provides that {@link AudienceSegment}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentDataProvider { + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentDataProvider"; + } + + public function __construct($name = NULL) { + $this->name = $name; + } +}} + +if (!class_exists("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AudienceSegment[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("FirstPartyAudienceSegmentRule", FALSE)) { +/** + * Rule of a {@link FirstPartyAudienceSegment} that defines user's eligibility criteria to be part + * of a segment. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FirstPartyAudienceSegmentRule { + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryRule; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customCriteriaRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FirstPartyAudienceSegmentRule"; + } + + public function __construct($inventoryRule = NULL, $customCriteriaRule = NULL) { + $this->inventoryRule = $inventoryRule; + $this->customCriteriaRule = $customCriteriaRule; + } +}} + +if (!class_exists("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("AudienceSegmentAction", FALSE)) { +/** + * Action that can be performed on {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentAction { + /** + * @access public + * @var string + */ + public $AudienceSegmentActionType; + + private $_parameterMap = array ( + "AudienceSegmentAction.Type" => "AudienceSegmentActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentAction"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAudienceSegmentStatus + */ + public $status; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var AudienceSegmentDataProvider + */ + public $dataProvider; + + /** + * @access public + * @var tnsAudienceSegmentAudienceSegmentType + */ + public $type; + + /** + * @access public + * @var string + */ + public $AudienceSegmentType; + + private $_parameterMap = array ( + "AudienceSegment.Type" => "AudienceSegmentType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("AudienceSegmentError", FALSE)) { +/** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentError extends ApiError { + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("SharedAudienceSegment", FALSE)) { +/** + * A {@link SharedAudienceSegment} is an {@link AudienceSegment} owned by another entity and shared + * with the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SharedAudienceSegment extends AudienceSegment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedAudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", FALSE)) { +/** + * Approval status values for {@link ThirdPartyAudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentAudienceSegmentType", FALSE)) { +/** + * Specifies types for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentAudienceSegmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment.AudienceSegmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentErrorReason", FALSE)) { +/** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAudienceSegments", FALSE)) { +/** + * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to create + * @return created first-party audience segments + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAudienceSegments { + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $segments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($segments = NULL) { + $this->segments = $segments; + } +}} + +if (!class_exists("createAudienceSegmentsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAudienceSegmentsResponse { + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAudienceSegmentsByStatement", FALSE)) { +/** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAudienceSegmentsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAudienceSegmentsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAudienceSegmentsByStatementResponse { + /** + * @access public + * @var AudienceSegmentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAudienceSegmentAction", FALSE)) { +/** + * Performs the given {@link AudienceSegmentAction} on the set of segments identified by the given + * statement. + * + * @param action {@link AudienceSegmentAction} to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return {@link UpdateResult} indicating the result + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performAudienceSegmentAction { + /** + * @access public + * @var AudienceSegmentAction + */ + public $action; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($action = NULL, $filterStatement = NULL) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAudienceSegmentActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performAudienceSegmentActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAudienceSegments", FALSE)) { +/** + * Updates the given {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to update + * @return updated first-party audience segments + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAudienceSegments { + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $segments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($segments = NULL) { + $this->segments = $segments; + } +}} + +if (!class_exists("updateAudienceSegmentsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAudienceSegmentsResponse { + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to activate them. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to approve them. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApproveAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("FirstPartyAudienceSegment", FALSE)) { +/** + * A {@link FirstPartyAudienceSegment} is an {@link AudienceSegment} owned by the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FirstPartyAudienceSegment extends AudienceSegment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FirstPartyAudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to deactivate them. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("ThirdPartyAudienceSegment", FALSE)) { +/** + * A {@link ThirdPartyAudienceSegment} is an {@link AudienceSegment} owned by a data provider and + * licensed to the DFP publisher. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ThirdPartyAudienceSegment extends AudienceSegment { + /** + * @access public + * @var tnsThirdPartyAudienceSegmentAudienceSegmentApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyAudienceSegment"; + } + + public function __construct($approvalStatus = NULL, $cost = NULL, $startDateTime = NULL, $endDateTime = NULL, $id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->approvalStatus = $approvalStatus; + $this->cost = $cost; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("NonRuleBasedFirstPartyAudienceSegment", FALSE)) { +/** + * A {@link NonRuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by + * the publisher network. It doesn't contain a rule. Cookies are usually added to this segment via + * cookie upload. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NonRuleBasedFirstPartyAudienceSegment extends FirstPartyAudienceSegment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NonRuleBasedFirstPartyAudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PopulateAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to populate them based + * on last 30 days of traffic. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PopulateAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PopulateAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("RejectAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to reject them. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RejectAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("RuleBasedFirstPartyAudienceSegmentSummary", FALSE)) { +/** + * A {@link RuleBasedFirstPartyAudienceSegmentSummary} is a {@link FirstPartyAudienceSegment} owned + * by the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RuleBasedFirstPartyAudienceSegmentSummary extends FirstPartyAudienceSegment { + /** + * @access public + * @var integer + */ + public $pageViews; + + /** + * @access public + * @var integer + */ + public $recencyDays; + + /** + * @access public + * @var integer + */ + public $membershipExpirationDays; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RuleBasedFirstPartyAudienceSegmentSummary"; + } + + public function __construct($pageViews = NULL, $recencyDays = NULL, $membershipExpirationDays = NULL, $id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->pageViews = $pageViews; + $this->recencyDays = $recencyDays; + $this->membershipExpirationDays = $membershipExpirationDays; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("RuleBasedFirstPartyAudienceSegment", FALSE)) { +/** + * A {@link RuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by the + * publisher network. It contains a rule. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RuleBasedFirstPartyAudienceSegment extends RuleBasedFirstPartyAudienceSegmentSummary { + /** + * @access public + * @var FirstPartyAudienceSegmentRule + */ + public $rule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RuleBasedFirstPartyAudienceSegment"; + } + + public function __construct($rule = NULL, $pageViews = NULL, $recencyDays = NULL, $membershipExpirationDays = NULL, $id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->rule = $rule; + $this->pageViews = $pageViews; + $this->recencyDays = $recencyDays; + $this->membershipExpirationDays = $membershipExpirationDays; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class AudienceSegmentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAudienceSegments" => "ActivateAudienceSegments", + "AudienceSegmentAction" => "AudienceSegmentAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveAudienceSegments" => "ApproveAudienceSegments", + "AudienceSegmentDataProvider" => "AudienceSegmentDataProvider", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", + "AudienceSegment" => "AudienceSegment", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateAudienceSegments" => "DeactivateAudienceSegments", + "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "Money" => "Money", + "NonRuleBasedFirstPartyAudienceSegment" => "NonRuleBasedFirstPartyAudienceSegment", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PopulateAudienceSegments" => "PopulateAudienceSegments", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "FirstPartyAudienceSegmentRule" => "FirstPartyAudienceSegmentRule", + "QuotaError" => "QuotaError", + "RejectAudienceSegments" => "RejectAudienceSegments", + "RequiredError" => "RequiredError", + "RuleBasedFirstPartyAudienceSegment" => "RuleBasedFirstPartyAudienceSegment", + "RuleBasedFirstPartyAudienceSegmentSummary" => "RuleBasedFirstPartyAudienceSegmentSummary", + "AudienceSegmentError" => "AudienceSegmentError", + "ServerError" => "ServerError", + "SharedAudienceSegment" => "SharedAudienceSegment", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.AudienceSegmentType" => "AudienceSegmentAudienceSegmentType", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createAudienceSegments" => "createAudienceSegments", + "createAudienceSegmentsResponse" => "createAudienceSegmentsResponse", + "getAudienceSegmentsByStatement" => "getAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "getAudienceSegmentsByStatementResponse", + "performAudienceSegmentAction" => "performAudienceSegmentAction", + "performAudienceSegmentActionResponse" => "performAudienceSegmentActionResponse", + "updateAudienceSegments" => "updateAudienceSegments", + "updateAudienceSegmentsResponse" => "updateAudienceSegmentsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/AudienceSegmentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AudienceSegmentService::$classmap; + parent::__construct($wsdl, $options, $user, 'AudienceSegmentService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to create + * @return created first-party audience segments + */ + public function createAudienceSegments($segments) { + $arg = new createAudienceSegments($segments); + $result = $this->__soapCall("createAudienceSegments", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + */ + public function getAudienceSegmentsByStatement($filterStatement) { + $arg = new getAudienceSegmentsByStatement($filterStatement); + $result = $this->__soapCall("getAudienceSegmentsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs the given {@link AudienceSegmentAction} on the set of segments identified by the given + * statement. + * + * @param action {@link AudienceSegmentAction} to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return {@link UpdateResult} indicating the result + */ + public function performAudienceSegmentAction($action, $filterStatement) { + $arg = new performAudienceSegmentAction($action, $filterStatement); + $result = $this->__soapCall("performAudienceSegmentAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the given {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to update + * @return updated first-party audience segments + */ + public function updateAudienceSegments($segments) { + $arg = new updateAudienceSegments($segments); + $result = $this->__soapCall("updateAudienceSegments", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201308/BaseRateService.php new file mode 100755 index 000000000..740ee064b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/BaseRateService.php @@ -0,0 +1,3297 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseRateAction", FALSE)) { +/** + * Represents the action that can be performed on {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateAction { + /** + * @access public + * @var string + */ + public $BaseRateActionType; + + private $_parameterMap = array ( + "BaseRateAction.Type" => "BaseRateActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateAction"; + } + + public function __construct($BaseRateActionType = NULL) { + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("BaseRateActionError", FALSE)) { +/** + * An error having to do with {@link BaseRate} when performing actions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateActionError extends ApiError { + /** + * @access public + * @var tnsBaseRateActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateActionError"; + } + + 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("BaseRate", FALSE)) { +/** + * A base rate that applies to a product template or product belonging to rate + * card. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRate { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsBaseRateStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $BaseRateType; + + private $_parameterMap = array ( + "BaseRate.Type" => "BaseRateType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRate"; + } + + public function __construct($rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BaseRatePage", FALSE)) { +/** + * Captures a page of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRatePage { + /** + * @access public + * @var BaseRate[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRatePage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateBaseRates", FALSE)) { +/** + * The action used to deactivate {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateBaseRates extends BaseRateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateBaseRates"; + } + + public function __construct($BaseRateActionType = NULL) { + parent::__construct(); + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("ProductBaseRate", FALSE)) { +/** + * A base rate applied to a {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductBaseRate extends BaseRate { + /** + * @access public + * @var string + */ + public $productId; + + /** + * @access public + * @var Money + */ + public $rate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductBaseRate"; + } + + public function __construct($productId = NULL, $rate = NULL, $rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + parent::__construct(); + $this->productId = $productId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("ProductTemplateBaseRate", FALSE)) { +/** + * A base rate applied to a {@link ProductTemplate}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateBaseRate extends BaseRate { + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * @access public + * @var Money + */ + public $rate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateBaseRate"; + } + + public function __construct($productTemplateId = NULL, $rate = NULL, $rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + parent::__construct(); + $this->productTemplateId = $productTemplateId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateStatus", FALSE)) { +/** + * The status of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createBaseRate", FALSE)) { +/** + * Creates a new {@link BaseRate} object. + * + * @param baseRate the base rate to be created + * @return the base rate with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createBaseRate { + /** + * @access public + * @var BaseRate + */ + public $baseRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRate = NULL) { + $this->baseRate = $baseRate; + } +}} + +if (!class_exists("createBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createBaseRates", FALSE)) { +/** + * Creates a list of new {@link BaseRate} objects. + * + * @param baseRates the base rates to be created + * @return the base rates with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createBaseRates { + /** + * @access public + * @var BaseRate[] + */ + public $baseRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRates = NULL) { + $this->baseRates = $baseRates; + } +}} + +if (!class_exists("createBaseRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createBaseRatesResponse { + /** + * @access public + * @var BaseRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBaseRate", FALSE)) { +/** + * Returns the {@link BaseRate} object uniquely identified by the given ID. + * + * @param baseRateId the ID of the base rate, which must already exist + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getBaseRate { + /** + * @access public + * @var integer + */ + public $baseRateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRateId = NULL) { + $this->baseRateId = $baseRateId; + } +}} + +if (!class_exists("getBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBaseRatesByStatement", FALSE)) { +/** + * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the page of base rates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getBaseRatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getBaseRatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getBaseRatesByStatementResponse { + /** + * @access public + * @var BaseRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performBaseRateAction", FALSE)) { +/** + * Performs actions on {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * @param baseRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performBaseRateAction { + /** + * @access public + * @var BaseRateAction + */ + public $baseRateAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRateAction = NULL, $filterStatement = NULL) { + $this->baseRateAction = $baseRateAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performBaseRateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performBaseRateActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateBaseRate", FALSE)) { +/** + * Updates the specified {@link BaseRate} object. + * + * @param baseRate the base rate to be updated + * @return the updated base rate + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateBaseRate { + /** + * @access public + * @var BaseRate + */ + public $baseRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRate = NULL) { + $this->baseRate = $baseRate; + } +}} + +if (!class_exists("updateBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateBaseRates", FALSE)) { +/** + * Updates the specified {@link BaseRate} objects. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateBaseRates { + /** + * @access public + * @var BaseRate[] + */ + public $baseRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRates = NULL) { + $this->baseRates = $baseRates; + } +}} + +if (!class_exists("updateBaseRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateBaseRatesResponse { + /** + * @access public + * @var BaseRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateBaseRates", FALSE)) { +/** + * The action used to activate {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateBaseRates extends BaseRateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateBaseRates"; + } + + public function __construct($BaseRateActionType = NULL) { + parent::__construct(); + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("BaseRateService", FALSE)) { +/** + * BaseRateService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class BaseRateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateBaseRates" => "ActivateBaseRates", + "BaseRateAction" => "BaseRateAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseRateActionError" => "BaseRateActionError", + "BaseRate" => "BaseRate", + "BaseRateError" => "BaseRateError", + "BaseRatePage" => "BaseRatePage", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateBaseRates" => "DeactivateBaseRates", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "ProductBaseRate" => "ProductBaseRate", + "ProductTemplateBaseRate" => "ProductTemplateBaseRate", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateActionError.Reason" => "BaseRateActionErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "BaseRateStatus" => "BaseRateStatus", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createBaseRate" => "createBaseRate", + "createBaseRateResponse" => "createBaseRateResponse", + "createBaseRates" => "createBaseRates", + "createBaseRatesResponse" => "createBaseRatesResponse", + "getBaseRate" => "getBaseRate", + "getBaseRateResponse" => "getBaseRateResponse", + "getBaseRatesByStatement" => "getBaseRatesByStatement", + "getBaseRatesByStatementResponse" => "getBaseRatesByStatementResponse", + "performBaseRateAction" => "performBaseRateAction", + "performBaseRateActionResponse" => "performBaseRateActionResponse", + "updateBaseRate" => "updateBaseRate", + "updateBaseRateResponse" => "updateBaseRateResponse", + "updateBaseRates" => "updateBaseRates", + "updateBaseRatesResponse" => "updateBaseRatesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/BaseRateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BaseRateService::$classmap; + parent::__construct($wsdl, $options, $user, 'BaseRateService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link BaseRate} object. + * + * @param baseRate the base rate to be created + * @return the base rate with its ID filled in + */ + public function createBaseRate($baseRate) { + $arg = new createBaseRate($baseRate); + $result = $this->__soapCall("createBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of new {@link BaseRate} objects. + * + * @param baseRates the base rates to be created + * @return the base rates with their IDs filled in + */ + public function createBaseRates($baseRates) { + $arg = new createBaseRates($baseRates); + $result = $this->__soapCall("createBaseRates", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link BaseRate} object uniquely identified by the given ID. + * + * @param baseRateId the ID of the base rate, which must already exist + */ + public function getBaseRate($baseRateId) { + $arg = new getBaseRate($baseRateId); + $result = $this->__soapCall("getBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link BaseRate#rateCardId}
      {@code id}{@link BaseRate#id}
      {@code status}{@link BaseRate#status}
      {@code productTemplateId}{@link ProductTemplateBaseRate#id}
      Note: Cannot be + * combined with {@code productId}. + *
      {@code productId}{@link ProductBaseRate#id}
      Note: Cannot be combined with + * {@code productTemplateId}. + *
      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the page of base rates that match the given filter + */ + public function getBaseRatesByStatement($filterStatement) { + $arg = new getBaseRatesByStatement($filterStatement); + $result = $this->__soapCall("getBaseRatesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * @param baseRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the result of the action performed + */ + public function performBaseRateAction($baseRateAction, $filterStatement) { + $arg = new performBaseRateAction($baseRateAction, $filterStatement); + $result = $this->__soapCall("performBaseRateAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link BaseRate} object. + * + * @param baseRate the base rate to be updated + * @return the updated base rate + */ + public function updateBaseRate($baseRate) { + $arg = new updateBaseRate($baseRate); + $result = $this->__soapCall("updateBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link BaseRate} objects. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + */ + public function updateBaseRates($baseRates) { + $arg = new updateBaseRates($baseRates); + $result = $this->__soapCall("updateBaseRates", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CompanyService.php b/src/Google/Api/Ads/Dfp/v201308/CompanyService.php new file mode 100755 index 000000000..38c71cb6d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CompanyService.php @@ -0,0 +1,3307 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("Company", FALSE)) { +/** + * A {@code Company} represents an agency, a single advertiser or an entire + * advertising network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Company { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCompanyType + */ + public $type; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $primaryPhone; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var tnsCompanyCreditStatus + */ + public $creditStatus; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var boolean + */ + public $enableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var integer + */ + public $primaryContactId; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var integer + */ + public $thirdPartyCompanyId; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $address = NULL, $email = NULL, $faxPhone = NULL, $primaryPhone = NULL, $externalId = NULL, $comment = NULL, $creditStatus = NULL, $appliedLabels = NULL, $enableSameAdvertiserCompetitiveExclusion = NULL, $primaryContactId = NULL, $appliedTeamIds = NULL, $thirdPartyCompanyId = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->address = $address; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->primaryPhone = $primaryPhone; + $this->externalId = $externalId; + $this->comment = $comment; + $this->creditStatus = $creditStatus; + $this->appliedLabels = $appliedLabels; + $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; + $this->primaryContactId = $primaryContactId; + $this->appliedTeamIds = $appliedTeamIds; + $this->thirdPartyCompanyId = $thirdPartyCompanyId; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CompanyError", FALSE)) { +/** + * A list of all errors associated with companies. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyError extends ApiError { + /** + * @access public + * @var tnsCompanyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError"; + } + + 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("CompanyPage", FALSE)) { +/** + * Captures a page of {@link Company} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Company[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatus", FALSE)) { +/** + * Specifies the credit-worthiness of the company for which the publisher runs + * an order. By doing so, the publisher can control the running of campaigns + * for the company. A publisher can choose between Basic and Advanced Credit + * Status settings. This feature needs to be enabled in the DoubleClick For + * Publishers web site. Also the kind of setting you need - Basic or Advanced + * must be configured. If Basic is enabled then, the values allowed are + * {@code ACTIVE} and {@code INACTIVE}. If Advanced is chosen, then all values + * are allowed. Choosing an Advanced setting when only the Basic feature has + * been enabled, or using the Basic setting without turning the feature on + * will result in an error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.CreditStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyType", FALSE)) { +/** + * The type of the company. Once a company is created, it is not possible to + * change its type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyErrorReason", FALSE)) { +/** + * Enumerates all possible company specific errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCompanies", FALSE)) { +/** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("createCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCompany", FALSE)) { +/** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("createCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompaniesByStatement", FALSE)) { +/** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link BaseRate#rateCardId}
      {@code id}{@link BaseRate#id}
      {@code status}{@link BaseRate#status}
      {@code productTemplateId}{@link ProductTemplateBaseRate#id}
      Note: Cannot be + * combined with {@code productId}. + *
      {@code productId}{@link ProductBaseRate#id}
      Note: Cannot be combined with + * {@code productTemplateId}. + *
      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCompaniesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCompaniesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCompaniesByStatementResponse { + /** + * @access public + * @var CompanyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompany", FALSE)) { +/** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCompany { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companyId = NULL) { + $this->companyId = $companyId; + } +}} + +if (!class_exists("getCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompanies", FALSE)) { +/** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("updateCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompany", FALSE)) { +/** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("updateCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CompanyService", FALSE)) { +/** + * CompanyService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class CompanyService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "Company" => "Company", + "CompanyError" => "CompanyError", + "CompanyPage" => "CompanyPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "Company.CreditStatus" => "CompanyCreditStatus", + "Company.Type" => "CompanyType", + "CompanyError.Reason" => "CompanyErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createCompanies" => "createCompanies", + "createCompaniesResponse" => "createCompaniesResponse", + "createCompany" => "createCompany", + "createCompanyResponse" => "createCompanyResponse", + "getCompaniesByStatement" => "getCompaniesByStatement", + "getCompaniesByStatementResponse" => "getCompaniesByStatementResponse", + "getCompany" => "getCompany", + "getCompanyResponse" => "getCompanyResponse", + "updateCompanies" => "updateCompanies", + "updateCompaniesResponse" => "updateCompaniesResponse", + "updateCompany" => "updateCompany", + "updateCompanyResponse" => "updateCompanyResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/CompanyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CompanyService::$classmap; + parent::__construct($wsdl, $options, $user, 'CompanyService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + */ + public function createCompanies($companies) { + $arg = new createCompanies($companies); + $result = $this->__soapCall("createCompanies", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + */ + public function createCompany($company) { + $arg = new createCompany($company); + $result = $this->__soapCall("createCompany", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + */ + public function getCompaniesByStatement($filterStatement) { + $arg = new getCompaniesByStatement($filterStatement); + $result = $this->__soapCall("getCompaniesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + */ + public function getCompany($companyId) { + $arg = new getCompany($companyId); + $result = $this->__soapCall("getCompany", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + */ + public function updateCompanies($companies) { + $arg = new updateCompanies($companies); + $result = $this->__soapCall("updateCompanies", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + */ + public function updateCompany($company) { + $arg = new updateCompany($company); + $result = $this->__soapCall("updateCompany", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ContactService.php b/src/Google/Api/Ads/Dfp/v201308/ContactService.php new file mode 100755 index 000000000..f8d8e9a42 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ContactService.php @@ -0,0 +1,3002 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContactError", FALSE)) { +/** + * Errors associated with {@code Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContactError extends ApiError { + /** + * @access public + * @var tnsContactErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactError"; + } + + 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("ContactPage", FALSE)) { +/** + * Captures a page of {@link Contact} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContactPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Contact[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("BaseContact", FALSE)) { +/** + * Base class for a {@link Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseContact { + /** + * @access public + * @var string + */ + public $BaseContactType; + + private $_parameterMap = array ( + "BaseContact.Type" => "BaseContactType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseContact"; + } + + public function __construct($BaseContactType = NULL) { + $this->BaseContactType = $BaseContactType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContactStatus", FALSE)) { +/** + * Describes the contact statuses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContactStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Contact.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContactErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContactErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createContact", FALSE)) { +/** + * Creates a new {@link Contact}. + * + * The following fields are required: + *
        + *
      • {@link Contact#companyId}
      • + *
      • {@link Contact#name}
      • + *
      + * + * @param contact the contact to create + * @return the contact with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createContact { + /** + * @access public + * @var Contact + */ + public $contact; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contact = NULL) { + $this->contact = $contact; + } +}} + +if (!class_exists("createContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createContacts", FALSE)) { +/** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createContacts { + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contacts = NULL) { + $this->contacts = $contacts; + } +}} + +if (!class_exists("createContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createContactsResponse { + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContact", FALSE)) { +/** + * Returns the {@link Contact} uniquely identified by the given ID. + * + * @param contactId the ID of the contact, which must already exist + * @return the {@code Contact} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContact { + /** + * @access public + * @var integer + */ + public $contactId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contactId = NULL) { + $this->contactId = $contactId; + } +}} + +if (!class_exists("getContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContactsByStatement", FALSE)) { +/** + * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code name}{@link Contact#name}
      {@code email}{@link Contact#email}
      {@code id}{@link Contact#id}
      {@code comment}{@link Contact#comment}
      {@code companyId}{@link Contact#companyId}
      {@code title}{@link Contact#title}
      {@code cellPhone}{@link Contact#cellPhone}
      {@code workPhone}{@link Contact#workPhone}
      {@code faxPhone}{@link Contact#faxPhone}
      {@code status}{@link Contact#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of contacts + * @return the contacts that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContactsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContactsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContactsByStatementResponse { + /** + * @access public + * @var ContactPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContact", FALSE)) { +/** + * Updates the specified {@link Contact}. + * + * @param contact the contact to update + * @return the updated contact + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateContact { + /** + * @access public + * @var Contact + */ + public $contact; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contact = NULL) { + $this->contact = $contact; + } +}} + +if (!class_exists("updateContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContacts", FALSE)) { +/** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateContacts { + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contacts = NULL) { + $this->contacts = $contacts; + } +}} + +if (!class_exists("updateContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateContactsResponse { + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Contact", FALSE)) { +/** + * A {@code Contact} represents a person who is affiliated with a single + * {@link Company}. A contact can have a variety of contact information + * associated to it, and can be invited to view their company's orders, line + * items, creatives, and reports. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Contact extends BaseContact { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var tnsContactStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $cellPhone; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $title; + + /** + * @access public + * @var string + */ + public $workPhone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Contact"; + } + + public function __construct($id = NULL, $name = NULL, $companyId = NULL, $status = NULL, $address = NULL, $cellPhone = NULL, $comment = NULL, $email = NULL, $faxPhone = NULL, $title = NULL, $workPhone = NULL, $BaseContactType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->companyId = $companyId; + $this->status = $status; + $this->address = $address; + $this->cellPhone = $cellPhone; + $this->comment = $comment; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->title = $title; + $this->workPhone = $workPhone; + $this->BaseContactType = $BaseContactType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContactService", FALSE)) { +/** + * ContactService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ContactService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Contact" => "Contact", + "BaseContact" => "BaseContact", + "ContactError" => "ContactError", + "ContactPage" => "ContactPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "Contact.Status" => "ContactStatus", + "ContactError.Reason" => "ContactErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createContact" => "createContact", + "createContactResponse" => "createContactResponse", + "createContacts" => "createContacts", + "createContactsResponse" => "createContactsResponse", + "getContact" => "getContact", + "getContactResponse" => "getContactResponse", + "getContactsByStatement" => "getContactsByStatement", + "getContactsByStatementResponse" => "getContactsByStatementResponse", + "updateContact" => "updateContact", + "updateContactResponse" => "updateContactResponse", + "updateContacts" => "updateContacts", + "updateContactsResponse" => "updateContactsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ContactService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContactService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContactService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link Contact}. + * + * The following fields are required: + *
        + *
      • {@link Contact#companyId}
      • + *
      • {@link Contact#name}
      • + *
      + * + * @param contact the contact to create + * @return the contact with its ID filled in + */ + public function createContact($contact) { + $arg = new createContact($contact); + $result = $this->__soapCall("createContact", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + */ + public function createContacts($contacts) { + $arg = new createContacts($contacts); + $result = $this->__soapCall("createContacts", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Contact} uniquely identified by the given ID. + * + * @param contactId the ID of the contact, which must already exist + * @return the {@code Contact} uniquely identified by the given ID + */ + public function getContact($contactId) { + $arg = new getContact($contactId); + $result = $this->__soapCall("getContact", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code name}{@link Contact#name}
      {@code email}{@link Contact#email}
      {@code id}{@link Contact#id}
      {@code comment}{@link Contact#comment}
      {@code companyId}{@link Contact#companyId}
      {@code title}{@link Contact#title}
      {@code cellPhone}{@link Contact#cellPhone}
      {@code workPhone}{@link Contact#workPhone}
      {@code faxPhone}{@link Contact#faxPhone}
      {@code status}{@link Contact#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of contacts + * @return the contacts that match the given filter + */ + public function getContactsByStatement($statement) { + $arg = new getContactsByStatement($statement); + $result = $this->__soapCall("getContactsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Contact}. + * + * @param contact the contact to update + * @return the updated contact + */ + public function updateContact($contact) { + $arg = new updateContact($contact); + $result = $this->__soapCall("updateContact", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + */ + public function updateContacts($contacts) { + $arg = new updateContacts($contacts); + $result = $this->__soapCall("updateContacts", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php new file mode 100755 index 000000000..37a185943 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php @@ -0,0 +1,3027 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentBundleAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentBundleAction { + /** + * @access public + * @var string + */ + public $ContentBundleActionType; + + private $_parameterMap = array ( + "ContentBundleAction.Type" => "ContentBundleActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundleAction"; + } + + public function __construct($ContentBundleActionType = NULL) { + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ContentBundle", FALSE)) { +/** + * A {@code ContentBundle} is a grouping of individual {@link Content}. A {@code ContentBundle} is + * defined as including the {@code Content} that match certain filter rules, along with the + * option to explicitly include or exclude certain {@code Content} IDs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentBundle { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsContentBundleStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundle"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + } +}} + +if (!class_exists("ContentBundlePage", FALSE)) { +/** + * Captures a page of {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentBundlePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ContentBundle[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundlePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateContentBundles", FALSE)) { +/** + * The action used for deactivating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateContentBundles extends ContentBundleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateContentBundles"; + } + + public function __construct($ContentBundleActionType = NULL) { + parent::__construct(); + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ExcludeContentFromContentBundle", FALSE)) { +/** + * The action used for explicitly excluding specific content from a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ExcludeContentFromContentBundle extends ContentBundleAction { + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExcludeContentFromContentBundle"; + } + + public function __construct($contentStatement = NULL, $ContentBundleActionType = NULL) { + parent::__construct(); + $this->contentStatement = $contentStatement; + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("IncludeContentInContentBundle", FALSE)) { +/** + * The action used for explicitly including specific content in a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class IncludeContentInContentBundle extends ContentBundleAction { + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IncludeContentInContentBundle"; + } + + public function __construct($contentStatement = NULL, $ContentBundleActionType = NULL) { + parent::__construct(); + $this->contentStatement = $contentStatement; + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentBundleStatus", FALSE)) { +/** + * Status for {@code ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentBundleStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundleStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createContentBundle", FALSE)) { +/** + * Creates a new {@link ContentBundle}. + * + * These fields are required: + *
        + *
      • {@link ContentBundle#name}
      • + *
      • {@link ContentBundle#description}
      • + *
      + * + * @param contentBundle the content bundle to create + * @return the content bundle with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createContentBundle { + /** + * @access public + * @var ContentBundle + */ + public $contentBundle; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundle = NULL) { + $this->contentBundle = $contentBundle; + } +}} + +if (!class_exists("createContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createContentBundles", FALSE)) { +/** + * Creates new {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createContentBundles { + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundles = NULL) { + $this->contentBundles = $contentBundles; + } +}} + +if (!class_exists("createContentBundlesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createContentBundlesResponse { + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentBundle", FALSE)) { +/** + * Returns the {@link ContentBundle} uniquely identified by the given ID. + * + * @param contentBundleId the ID of the content bundle, which must already exist + * @return the {@code ContentBundle} uniquely identified by the given ID + * @throws ApiException if there were errors, such as invalid ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContentBundle { + /** + * @access public + * @var integer + */ + public $contentBundleId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundleId = NULL) { + $this->contentBundleId = $contentBundleId; + } +}} + +if (!class_exists("getContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentBundlesByStatement", FALSE)) { +/** + * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentBundle#id}
      {@code name}{@link ContentBundle#name}
      {@code status}{@link ContentBundle#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the content bundles that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContentBundlesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getContentBundlesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContentBundlesByStatementResponse { + /** + * @access public + * @var ContentBundlePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performContentBundleAction", FALSE)) { +/** + * Performs actions on {@link ContentBundle} objects that match the given + * {@link Statement#query}. + * + * @param contentBundleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performContentBundleAction { + /** + * @access public + * @var ContentBundleAction + */ + public $contentBundleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundleAction = NULL, $filterStatement = NULL) { + $this->contentBundleAction = $contentBundleAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performContentBundleActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performContentBundleActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContentBundle", FALSE)) { +/** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateContentBundle { + /** + * @access public + * @var ContentBundle + */ + public $contentBundle; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundle = NULL) { + $this->contentBundle = $contentBundle; + } +}} + +if (!class_exists("updateContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContentBundles", FALSE)) { +/** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateContentBundles { + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundles = NULL) { + $this->contentBundles = $contentBundles; + } +}} + +if (!class_exists("updateContentBundlesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateContentBundlesResponse { + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateContentBundles", FALSE)) { +/** + * The action used for activating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateContentBundles extends ContentBundleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateContentBundles"; + } + + public function __construct($ContentBundleActionType = NULL) { + parent::__construct(); + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentBundleService", FALSE)) { +/** + * ContentBundleService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ContentBundleService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateContentBundles" => "ActivateContentBundles", + "ContentBundleAction" => "ContentBundleAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentBundle" => "ContentBundle", + "ContentBundlePage" => "ContentBundlePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateContentBundles" => "DeactivateContentBundles", + "ExcludeContentFromContentBundle" => "ExcludeContentFromContentBundle", + "FeatureError" => "FeatureError", + "IncludeContentInContentBundle" => "IncludeContentInContentBundle", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PlacementError" => "PlacementError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentBundleStatus" => "ContentBundleStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createContentBundle" => "createContentBundle", + "createContentBundleResponse" => "createContentBundleResponse", + "createContentBundles" => "createContentBundles", + "createContentBundlesResponse" => "createContentBundlesResponse", + "getContentBundle" => "getContentBundle", + "getContentBundleResponse" => "getContentBundleResponse", + "getContentBundlesByStatement" => "getContentBundlesByStatement", + "getContentBundlesByStatementResponse" => "getContentBundlesByStatementResponse", + "performContentBundleAction" => "performContentBundleAction", + "performContentBundleActionResponse" => "performContentBundleActionResponse", + "updateContentBundle" => "updateContentBundle", + "updateContentBundleResponse" => "updateContentBundleResponse", + "updateContentBundles" => "updateContentBundles", + "updateContentBundlesResponse" => "updateContentBundlesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ContentBundleService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentBundleService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentBundleService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link ContentBundle}. + * + * These fields are required: + *
        + *
      • {@link ContentBundle#name}
      • + *
      • {@link ContentBundle#description}
      • + *
      + * + * @param contentBundle the content bundle to create + * @return the content bundle with its ID filled in + */ + public function createContentBundle($contentBundle) { + $arg = new createContentBundle($contentBundle); + $result = $this->__soapCall("createContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + */ + public function createContentBundles($contentBundles) { + $arg = new createContentBundles($contentBundles); + $result = $this->__soapCall("createContentBundles", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ContentBundle} uniquely identified by the given ID. + * + * @param contentBundleId the ID of the content bundle, which must already exist + * @return the {@code ContentBundle} uniquely identified by the given ID + * @throws ApiException if there were errors, such as invalid ID + */ + public function getContentBundle($contentBundleId) { + $arg = new getContentBundle($contentBundleId); + $result = $this->__soapCall("getContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentBundle#id}
      {@code name}{@link ContentBundle#name}
      {@code status}{@link ContentBundle#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the content bundles that match the given filter + */ + public function getContentBundlesByStatement($filterStatement) { + $arg = new getContentBundlesByStatement($filterStatement); + $result = $this->__soapCall("getContentBundlesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ContentBundle} objects that match the given + * {@link Statement#query}. + * + * @param contentBundleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the result of the action performed + */ + public function performContentBundleAction($contentBundleAction, $filterStatement) { + $arg = new performContentBundleAction($contentBundleAction, $filterStatement); + $result = $this->__soapCall("performContentBundleAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + */ + public function updateContentBundle($contentBundle) { + $arg = new updateContentBundle($contentBundle); + $result = $this->__soapCall("updateContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + */ + public function updateContentBundles($contentBundles) { + $arg = new updateContentBundles($contentBundles); + $result = $this->__soapCall("updateContentBundles", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ContentService.php b/src/Google/Api/Ads/Dfp/v201308/ContentService.php new file mode 100755 index 000000000..b42042d50 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ContentService.php @@ -0,0 +1,2694 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CmsContent", FALSE)) { +/** + * Contains information about {@link Content} from the CMS it was ingested from. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CmsContent { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $cmsContentId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CmsContent"; + } + + public function __construct($id = NULL, $displayName = NULL, $cmsContentId = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->cmsContentId = $cmsContentId; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("Content", FALSE)) { +/** + * A {@code Content} represents video metadata from a publisher's + * Content Management System (CMS) that has been synced to DFP. + *

      + * Video line items can be targeted to {@code Content} + * to indicate what ads should match when the {@code Content} is being played. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Content { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsContentStatus + */ + public $status; + + /** + * @access public + * @var tnsContentStatusDefinedBy + */ + public $statusDefinedBy; + + /** + * @access public + * @var integer[] + */ + public $userDefinedCustomTargetingValueIds; + + /** + * @access public + * @var integer[] + */ + public $mappingRuleDefinedCustomTargetingValueIds; + + /** + * @access public + * @var CmsContent[] + */ + public $cmsSources; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Content"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $statusDefinedBy = NULL, $userDefinedCustomTargetingValueIds = NULL, $mappingRuleDefinedCustomTargetingValueIds = NULL, $cmsSources = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->statusDefinedBy = $statusDefinedBy; + $this->userDefinedCustomTargetingValueIds = $userDefinedCustomTargetingValueIds; + $this->mappingRuleDefinedCustomTargetingValueIds = $mappingRuleDefinedCustomTargetingValueIds; + $this->cmsSources = $cmsSources; + } +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Content[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ContentPartnerError", FALSE)) { +/** + * The content partner related validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentPartnerError extends ApiError { + /** + * @access public + * @var tnsContentPartnerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentPartnerErrorReason", FALSE)) { +/** + * Describes reason for {@code ContentPartnerError}s. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentPartnerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatus", FALSE)) { +/** + * Describes the status of a {@link Content} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatusDefinedBy", FALSE)) { +/** + * Describes who defined the effective status of the {@code Content}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentStatusDefinedBy { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatusDefinedBy"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContentByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContentByStatementResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValue", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContentByStatementAndCustomTargetingValue { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL, $customTargetingValueId = NULL) { + $this->filterStatement = $filterStatement; + $this->customTargetingValueId = $customTargetingValueId; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValueResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getContentByStatementAndCustomTargetingValueResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentService", FALSE)) { +/** + * ContentService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ContentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CmsContent" => "CmsContent", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentPartnerError.Reason" => "ContentPartnerErrorReason", + "ContentStatus" => "ContentStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ContentStatusDefinedBy" => "ContentStatusDefinedBy", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getContentByStatement" => "getContentByStatement", + "getContentByStatementResponse" => "getContentByStatementResponse", + "getContentByStatementAndCustomTargetingValue" => "getContentByStatementAndCustomTargetingValue", + "getContentByStatementAndCustomTargetingValueResponse" => "getContentByStatementAndCustomTargetingValueResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ContentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + */ + public function getContentByStatement($statement) { + $arg = new getContentByStatement($statement); + $result = $this->__soapCall("getContentByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + */ + public function getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId) { + $arg = new getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); + $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeService.php new file mode 100755 index 000000000..b6d749cbe --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CreativeService.php @@ -0,0 +1,7461 @@ + "BaseCreativeTemplateVariableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCreativeTemplateVariableValue"; + } + + public function __construct($uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AssetCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariableValue"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Asset", FALSE)) { +/** + * Base asset properties. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Asset { + /** + * @access public + * @var string + */ + public $AssetType; + + private $_parameterMap = array ( + "Asset.Type" => "AssetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Asset"; + } + + public function __construct($AssetType = NULL) { + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ConversionEvent_TrackingUrlsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type ConversionEvent + * and value of type TrackingUrls. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ConversionEvent_TrackingUrlsMapEntry { + /** + * @access public + * @var tnsConversionEvent + */ + public $key; + + /** + * @access public + * @var TrackingUrls + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent_TrackingUrlsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CreativeAsset", FALSE)) { +/** + * A {@code CreativeAsset} is an asset that can be used in creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeAsset { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $assetUrl; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsImageDensity + */ + public $imageDensity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAsset"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL, $assetUrl = NULL, $size = NULL, $imageDensity = NULL) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + $this->assetUrl = $assetUrl; + $this->size = $size; + $this->imageDensity = $imageDensity; + } +}} + +if (!class_exists("CustomCreativeAsset", FALSE)) { +/** + * A {@code CustomCreativeAsset} is an association between a + * {@link CustomCreative} and an asset. Any assets that are associated with a + * creative can be inserted into its HTML snippet. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCreativeAsset { + /** + * @access public + * @var string + */ + public $macroName; + + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeAsset"; + } + + public function __construct($macroName = NULL, $assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL) { + $this->macroName = $macroName; + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } +}} + +if (!class_exists("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("Creative", FALSE)) { +/** + * A {@code Creative} represents the media for the ad being served. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Creative { + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var string + */ + public $previewUrl; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $CreativeType; + + private $_parameterMap = array ( + "Creative.Type" => "CreativeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Creative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativePage", FALSE)) { +/** + * Captures a page of {@link Creative} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Creative[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("HasDestinationUrlCreative", FALSE)) { +/** + * A {@code Creative} that has a destination url + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class HasDestinationUrlCreative extends Creative { + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasDestinationUrlCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InternalRedirectCreative", FALSE)) { +/** + * A {@code Creative} hosted by either DoubleClick for Advertisers (DFA) or DART + * for Publishers. + *

      + * Similar to third-party creatives, a DoubleClick tag is used to retrieve a + * creative asset. However, DoubleClick tags are not sent to the user's browser. + * Instead, they are processed internally within the DoubleClick system.. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalRedirectCreative extends Creative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var string + */ + public $internalRedirectUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalRedirectCreative"; + } + + public function __construct($assetSize = NULL, $internalRedirectUrl = NULL, $overrideSize = NULL, $isInterstitial = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->internalRedirectUrl = $internalRedirectUrl; + $this->overrideSize = $overrideSize; + $this->isInterstitial = $isInterstitial; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LegacyDfpCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by Google DFP, but was migrated + * from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LegacyDfpCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LongCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RedirectAsset", FALSE)) { +/** + * An externally hosted asset. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RedirectAsset extends Asset { + /** + * @access public + * @var string + */ + public $redirectUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioChildAssetProperty", FALSE)) { +/** + * Represents a child asset in {@code RichMediaStudioCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioChildAssetProperty { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsRichMediaStudioChildAssetPropertyType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty"; + } + + public function __construct($name = NULL, $type = NULL, $totalFileSize = NULL, $width = NULL, $height = NULL, $url = NULL) { + $this->name = $name; + $this->type = $type; + $this->totalFileSize = $totalFileSize; + $this->width = $width; + $this->height = $height; + $this->url = $url; + } +}} + +if (!class_exists("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of + * {@link VariableType#STRING} and {@link VariableType#LIST}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SwiffyConversionError", FALSE)) { +/** + * Error for converting flash to swiffy asset. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SwiffyConversionError extends ApiError { + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError"; + } + + 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("SwiffyFallbackAsset", FALSE)) { +/** + * A fallback swiffy asset used for flash creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SwiffyFallbackAsset { + /** + * @access public + * @var CreativeAsset + */ + public $asset; + + /** + * @access public + * @var tnsHtml5Feature[] + */ + public $html5Features; + + /** + * @access public + * @var string[] + */ + public $localizedInfoMessages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyFallbackAsset"; + } + + public function __construct($asset = NULL, $html5Features = NULL, $localizedInfoMessages = NULL) { + $this->asset = $asset; + $this->html5Features = $html5Features; + $this->localizedInfoMessages = $localizedInfoMessages; + } +}} + +if (!class_exists("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TemplateCreative extends Creative { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BaseCreativeTemplateVariableValue[] + */ + public $creativeTemplateVariableValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateCreative"; + } + + public function __construct($creativeTemplateId = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $creativeTemplateVariableValues = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->creativeTemplateId = $creativeTemplateId; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ThirdPartyCreative extends Creative { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $expandedSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyCreative"; + } + + public function __construct($snippet = NULL, $expandedSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->expandedSnippet = $expandedSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TrackingUrls", FALSE)) { +/** + * A list of URLs that should be pinged for a conversion event. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TrackingUrls { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingUrls"; + } + + public function __construct($urls = NULL) { + $this->urls = $urls; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnsupportedCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by this version of the API. + * This object is readonly and when encountered should be reported + * on the DFP API forum. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnsupportedCreative extends Creative { + /** + * @access public + * @var string + */ + public $unsupportedCreativeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnsupportedCreative"; + } + + public function __construct($unsupportedCreativeType = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->unsupportedCreativeType = $unsupportedCreativeType; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VastRedirectCreative", FALSE)) { +/** + * A {@code Creative} that points to an externally hosted VAST ad and is + * served via VAST 2.0 XML as a VAST Wrapper. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VastRedirectCreative extends Creative { + /** + * @access public + * @var string + */ + public $vastXmlUrl; + + /** + * @access public + * @var tnsVastRedirectType + */ + public $vastRedirectType; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectCreative"; + } + + public function __construct($vastXmlUrl = NULL, $vastRedirectType = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $vastPreviewUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->vastXmlUrl = $vastXmlUrl; + $this->vastRedirectType = $vastRedirectType; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectAsset", FALSE)) { +/** + * An externally-hosted video asset. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoRedirectAsset extends RedirectAsset { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("VpaidLinearCreative", FALSE)) { +/** + * A {@code Creative} that displays a DFP-hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $overrideSize = NULL, $flashAssetSize = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->overrideSize = $overrideSize; + $this->flashAssetSize = $flashAssetSize; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VpaidLinearRedirectCreative", FALSE)) { +/** + * A {@code Creative} that displays an externally hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearRedirectCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $flashUrl = NULL, $flashAssetSize = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->flashUrl = $flashUrl; + $this->flashAssetSize = $flashAssetSize; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiFramework", FALSE)) { +/** + * The various ApiFramework types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiFramework { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiFramework"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionEvent", FALSE)) { +/** + * All possible tracking event types. Not all events are supported by every + * kind of creative. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ConversionEvent { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Html5Feature", FALSE)) { +/** + * An HTML5 features required by HTML5 assets. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Html5Feature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Html5Feature"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageDensity", FALSE)) { +/** + * Image densities. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageDensity { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageDensity"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioChildAssetPropertyType", FALSE)) { +/** + * Type of {@code RichMediaStudioChildAssetProperty} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioChildAssetPropertyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeArtworkType", FALSE)) { +/** + * Rich Media Studio creative artwork types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioCreativeArtworkType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeArtworkType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeBillingAttribute", FALSE)) { +/** + * Rich Media Studio creative supported billing attributes. + *

      + * This is determined by Rich Media Studio based on the content + * of the creative and is not updateable. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioCreativeBillingAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeBillingAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeFormat", FALSE)) { +/** + * Different creative format supported by Rich Media Studio creative. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioCreativeFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SwiffyConversionErrorReason", FALSE)) { +/** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SwiffyConversionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VastRedirectType", FALSE)) { +/** + * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VastRedirectType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreative", FALSE)) { +/** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("createCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreatives", FALSE)) { +/** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("createCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreative", FALSE)) { +/** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreative { + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeId = NULL) { + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativesByStatement", FALSE)) { +/** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativesByStatementResponse { + /** + * @access public + * @var CreativePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreative", FALSE)) { +/** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("updateCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreatives", FALSE)) { +/** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("updateCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BaseDynamicAllocationCreative", FALSE)) { +/** + * A base class for dynamic allocation creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseDynamicAllocationCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseDynamicAllocationCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AspectRatioImageCreative", FALSE)) { +/** + * A {@code Creative} intended for mobile platforms that displays an image, + * whose {@link LineItem#creativePlaceholders size} is defined as an + * {@link CreativeSizeType#ASPECT_RATIO aspect ratio}, i.e. + * {@link Size#isAspectRatio}. It can have multiple images whose dimensions + * conform to that aspect ratio. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AspectRatioImageCreative"; + } + + public function __construct($imageAssets = NULL, $altText = NULL, $thirdPartyImpressionUrl = NULL, $overrideSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->overrideSize = $overrideSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashCreative", FALSE)) { +/** + * A base type for creatives that display a Flash-based ad. If the Flash ad + * cannot load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $clickTagRequired; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var Size + */ + public $fallbackAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashRedirectCreative", FALSE)) { +/** + * The base type for creatives that load a Flash asset from a specified URL. + * If the remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var string + */ + public $fallbackUrl; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageCreative", FALSE)) { +/** + * The base type for creatives that display an image. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var CreativeAsset + */ + public $primaryImageAsset; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageCreative"; + } + + public function __construct($overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageRedirectCreative", FALSE)) { +/** + * The base type for creatives that load an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageRedirectCreative"; + } + + public function __construct($imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseRichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRichMediaStudioCreative extends Creative { + /** + * @access public + * @var integer + */ + public $studioCreativeId; + + /** + * @access public + * @var tnsRichMediaStudioCreativeFormat + */ + public $creativeFormat; + + /** + * @access public + * @var tnsRichMediaStudioCreativeArtworkType + */ + public $artworkType; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var string[] + */ + public $adTagKeys; + + /** + * @access public + * @var string[] + */ + public $customKeyValues; + + /** + * @access public + * @var string + */ + public $surveyUrl; + + /** + * @access public + * @var string + */ + public $allImpressionsUrl; + + /** + * @access public + * @var string + */ + public $richMediaImpressionsUrl; + + /** + * @access public + * @var string + */ + public $backupImageImpressionsUrl; + + /** + * @access public + * @var string + */ + public $overrideCss; + + /** + * @access public + * @var string + */ + public $requiredFlashPluginVersion; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var tnsRichMediaStudioCreativeBillingAttribute + */ + public $billingAttribute; + + /** + * @access public + * @var RichMediaStudioChildAssetProperty[] + */ + public $richMediaStudioChildAssetProperties; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRichMediaStudioCreative"; + } + + public function __construct($studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseVideoCreative", FALSE)) { +/** + * A base type for video creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var boolean + */ + public $allowDurationOverride; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseVideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ClickTrackingCreative", FALSE)) { +/** + * A creative that is used for tracking clicks on ads that are served directly + * from the customers' web servers or media servers. + * NOTE: The size attribute is not used for click tracking creative and it will + * not be persisted upon save. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClickTrackingCreative extends Creative { + /** + * @access public + * @var string + */ + public $clickTrackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingCreative"; + } + + public function __construct($clickTrackingUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->clickTrackingUrl = $clickTrackingUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CustomCreative", FALSE)) { +/** + * A {@code Creative} that contains an arbitrary HTML snippet and file assets. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * @access public + * @var CustomCreativeAsset[] + */ + public $customCreativeAssets; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreative"; + } + + public function __construct($htmlSnippet = NULL, $customCreativeAssets = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->htmlSnippet = $htmlSnippet; + $this->customCreativeAssets = $customCreativeAssets; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LegacyDfpMobileCreative", FALSE)) { +/** + * A mobile {@code Creative} that isn't supported by Google DFP, but was + * migrated from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpMobileCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashCreative", FALSE)) { +/** + * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot + * load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FlashCreative extends BaseFlashCreative { + /** + * @access public + * @var SwiffyFallbackAsset + */ + public $swiffyAsset; + + /** + * @access public + * @var boolean + */ + public $createSwiffyAsset; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashCreative"; + } + + public function __construct($swiffyAsset = NULL, $createSwiffyAsset = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->swiffyAsset = $swiffyAsset; + $this->createSwiffyAsset = $createSwiffyAsset; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays a Flash-based ad and is + * served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FlashOverlayCreative extends BaseFlashCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $vastPreviewUrl = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads a Flash asset from a specified URL. If the + * remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads a Flash asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashAssetSize = NULL, $vastPreviewUrl = NULL, $flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashAssetSize = $flashAssetSize; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + /** + * @access public + * @var string + */ + public $codeSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasHtmlSnippetDynamicAllocationCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageCreative", FALSE)) { +/** + * A {@code Creative} that displays an image. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageCreative extends BaseImageCreative { + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * @access public + * @var CreativeAsset[] + */ + public $secondaryImageAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageCreative"; + } + + public function __construct($altText = NULL, $thirdPartyImpressionUrl = NULL, $secondaryImageAssets = NULL, $overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->secondaryImageAssets = $secondaryImageAssets; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays an image and is served via VAST + * 2.0 XML. Overlays cover part of the video content they are displayed on + * top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageOverlayCreative extends BaseImageCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $vastPreviewUrl = NULL, $overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectCreative"; + } + + public function __construct($altText = NULL, $thirdPartyImpressionUrl = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads an image asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectOverlayCreative"; + } + + public function __construct($assetSize = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, + * but you can update some fields of this creative. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreative"; + } + + public function __construct($isInterstitial = NULL, $studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->isInterstitial = $isInterstitial; + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoCreative", FALSE)) { +/** + * A {@code Creative} that contains DFP-hosted video ads and is served + * via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoCreative extends BaseVideoCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectCreative", FALSE)) { +/** + * A {@code Creative} that contains externally hosted video ads and + * is served via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoRedirectCreative extends BaseVideoCreative { + /** + * @access public + * @var VideoRedirectAsset[] + */ + public $videoAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectCreative"; + } + + public function __construct($videoAssets = NULL, $duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExchangeCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdSenseCreative", FALSE)) { +/** + * An AdSense dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeService", FALSE)) { +/** + * CreativeService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class CreativeService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "Creative" => "Creative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "AdExchangeCreative" => "AdExchangeCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "AdSenseCreative" => "AdSenseCreative", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AspectRatioImageCreative" => "AspectRatioImageCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", + "Asset" => "Asset", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseFlashCreative" => "BaseFlashCreative", + "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", + "BaseImageCreative" => "BaseImageCreative", + "BaseImageRedirectCreative" => "BaseImageRedirectCreative", + "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", + "BaseVideoCreative" => "BaseVideoCreative", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingCreative" => "ClickTrackingCreative", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", + "CreativeAsset" => "CreativeAsset", + "CustomCreativeAsset" => "CustomCreativeAsset", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativePage" => "CreativePage", + "CreativeSetError" => "CreativeSetError", + "CustomCreative" => "CustomCreative", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValue" => "CustomFieldValue", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LegacyDfpCreative" => "LegacyDfpCreative", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RedirectAsset" => "RedirectAsset", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", + "RichMediaStudioCreative" => "RichMediaStudioCreative", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringCreativeTemplateVariableValue" => "StringCreativeTemplateVariableValue", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SwiffyConversionError" => "SwiffyConversionError", + "SwiffyFallbackAsset" => "SwiffyFallbackAsset", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "ThirdPartyCreative" => "ThirdPartyCreative", + "TrackingUrls" => "TrackingUrls", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UnsupportedCreative" => "UnsupportedCreative", + "UrlCreativeTemplateVariableValue" => "UrlCreativeTemplateVariableValue", + "VastRedirectCreative" => "VastRedirectCreative", + "VideoCreative" => "VideoCreative", + "VideoRedirectAsset" => "VideoRedirectAsset", + "VideoRedirectCreative" => "VideoRedirectCreative", + "VpaidLinearCreative" => "VpaidLinearCreative", + "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", + "ApiFramework" => "ApiFramework", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ConversionEvent" => "ConversionEvent", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "Html5Feature" => "Html5Feature", + "ImageDensity" => "ImageDensity", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", + "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", + "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "VastRedirectType" => "VastRedirectType", + "createCreative" => "createCreative", + "createCreativeResponse" => "createCreativeResponse", + "createCreatives" => "createCreatives", + "createCreativesResponse" => "createCreativesResponse", + "getCreative" => "getCreative", + "getCreativeResponse" => "getCreativeResponse", + "getCreativesByStatement" => "getCreativesByStatement", + "getCreativesByStatementResponse" => "getCreativesByStatementResponse", + "updateCreative" => "updateCreative", + "updateCreativeResponse" => "updateCreativeResponse", + "updateCreatives" => "updateCreatives", + "updateCreativesResponse" => "updateCreativesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/CreativeService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *
        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + */ + public function createCreative($creative) { + $arg = new createCreative($creative); + $result = $this->__soapCall("createCreative", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + */ + public function createCreatives($creatives) { + $arg = new createCreatives($creatives); + $result = $this->__soapCall("createCreatives", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + */ + public function getCreative($creativeId) { + $arg = new getCreative($creativeId); + $result = $this->__soapCall("getCreative", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + */ + public function getCreativesByStatement($filterStatement) { + $arg = new getCreativesByStatement($filterStatement); + $result = $this->__soapCall("getCreativesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + */ + public function updateCreative($creative) { + $arg = new updateCreative($creative); + $result = $this->__soapCall("updateCreative", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + */ + public function updateCreatives($creatives) { + $arg = new updateCreatives($creatives); + $result = $this->__soapCall("updateCreatives", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php new file mode 100755 index 000000000..d710464de --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php @@ -0,0 +1,3344 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSet", FALSE)) { +/** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSet { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $masterCreativeId; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSet"; + } + + public function __construct($id = NULL, $name = NULL, $masterCreativeId = NULL, $companionCreativeIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->masterCreativeId = $masterCreativeId; + $this->companionCreativeIds = $companionCreativeIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CreativeSetPage", FALSE)) { +/** + * Captures a page of {@link CreativeSet} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSetPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeSet[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeSet", FALSE)) { +/** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("createCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSet", FALSE)) { +/** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeSet { + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSetId = NULL) { + $this->creativeSetId = $creativeSetId; + } +}} + +if (!class_exists("getCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSetsByStatement", FALSE)) { +/** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeSetsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getCreativeSetsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeSetsByStatementResponse { + /** + * @access public + * @var CreativeSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeSet", FALSE)) { +/** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("updateCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeSetService", FALSE)) { +/** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class CreativeSetService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSet" => "CreativeSet", + "CreativeSetError" => "CreativeSetError", + "CreativeSetPage" => "CreativeSetPage", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCreativeSet" => "createCreativeSet", + "createCreativeSetResponse" => "createCreativeSetResponse", + "getCreativeSet" => "getCreativeSet", + "getCreativeSetResponse" => "getCreativeSetResponse", + "getCreativeSetsByStatement" => "getCreativeSetsByStatement", + "getCreativeSetsByStatementResponse" => "getCreativeSetsByStatementResponse", + "updateCreativeSet" => "updateCreativeSet", + "updateCreativeSetResponse" => "updateCreativeSetResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/CreativeSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeSetService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + */ + public function createCreativeSet($creativeSet) { + $arg = new createCreativeSet($creativeSet); + $result = $this->__soapCall("createCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + */ + public function getCreativeSet($creativeSetId) { + $arg = new getCreativeSet($creativeSetId); + $result = $this->__soapCall("getCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + */ + public function getCreativeSetsByStatement($statement) { + $arg = new getCreativeSetsByStatement($statement); + $result = $this->__soapCall("getCreativeSetsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + */ + public function updateCreativeSet($creativeSet) { + $arg = new updateCreativeSet($creativeSet); + $result = $this->__soapCall("updateCreativeSet", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php new file mode 100755 index 000000000..3157fc5e3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php @@ -0,0 +1,3192 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeTemplate", FALSE)) { +/** + * A template upon which a creative can be created. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var CreativeTemplateVariable[] + */ + public $variables; + + /** + * @access public + * @var tnsCreativeTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsCreativeTemplateType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $variables = NULL, $status = NULL, $type = NULL, $isInterstitial = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->variables = $variables; + $this->status = $status; + $this->type = $type; + $this->isInterstitial = $isInterstitial; + } +}} + +if (!class_exists("CreativeTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeTemplateError extends ApiError { + /** + * @access public + * @var tnsCreativeTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError"; + } + + 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("ListStringCreativeTemplateVariableVariableChoice", FALSE)) { +/** + * Stores variable choices that users can select from + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ListStringCreativeTemplateVariableVariableChoice { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable.VariableChoice"; + } + + public function __construct($label = NULL, $value = NULL) { + $this->label = $label; + $this->value = $value; + } +}} + +if (!class_exists("CreativeTemplatePage", FALSE)) { +/** + * Captures a page of {@link CreativeTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeTemplateVariable", FALSE)) { +/** + * Represents a variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isRequired; + + /** + * @access public + * @var string + */ + public $CreativeTemplateVariableType; + + private $_parameterMap = array ( + "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateVariable"; + } + + public function __construct($label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetCreativeTemplateVariableMimeType", FALSE)) { +/** + * Different mime type that the asset variable supports. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetCreativeTemplateVariableMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateStatus", FALSE)) { +/** + * Describes status of the creative template + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateType", FALSE)) { +/** + * Describes type of the creative template. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeTemplateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getCreativeTemplate", FALSE)) { +/** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeTemplate { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeTemplateId = NULL) { + $this->creativeTemplateId = $creativeTemplateId; + } +}} + +if (!class_exists("getCreativeTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeTemplateResponse { + /** + * @access public + * @var CreativeTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeTemplatesByStatement", FALSE)) { +/** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeTemplatesByStatementResponse { + /** + * @access public + * @var CreativeTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AssetCreativeTemplateVariable", FALSE)) { +/** + * Represents a file asset variable defined in a creative template. + *

      + * Use {@link AssetCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var tnsAssetCreativeTemplateVariableMimeType[] + */ + public $mimeTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable"; + } + + public function __construct($mimeTypes = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->mimeTypes = $mimeTypes; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("LongCreativeTemplateVariable", FALSE)) { +/** + * Represents a long variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var integer + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("StringCreativeTemplateVariable", FALSE)) { +/** + * Represents a string variable defined in a creative template. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariable", FALSE)) { +/** + * Represents a url variable defined in a creative template. + *

      + * Use {@link UrlCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ListStringCreativeTemplateVariable", FALSE)) { +/** + * Represents a list variable defined in a creative template. This is similar to + * {@link StringCreativeTemplateVariable}, except that there are possible choices to + * choose from. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + /** + * @access public + * @var ListStringCreativeTemplateVariableVariableChoice[] + */ + public $choices; + + /** + * @access public + * @var boolean + */ + public $allowOtherChoice; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable"; + } + + public function __construct($choices = NULL, $allowOtherChoice = NULL, $defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->choices = $choices; + $this->allowOtherChoice = $allowOtherChoice; + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("CreativeTemplateService", FALSE)) { +/** + * CreativeTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class CreativeTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", + "CreativeTemplateVariable" => "CreativeTemplateVariable", + "CreativeTemplate" => "CreativeTemplate", + "CreativeTemplateError" => "CreativeTemplateError", + "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", + "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", + "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", + "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", + "CreativeTemplatePage" => "CreativeTemplatePage", + "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", + "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", + "CreativeTemplateStatus" => "CreativeTemplateStatus", + "CreativeTemplateType" => "CreativeTemplateType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getCreativeTemplate" => "getCreativeTemplate", + "getCreativeTemplateResponse" => "getCreativeTemplateResponse", + "getCreativeTemplatesByStatement" => "getCreativeTemplatesByStatement", + "getCreativeTemplatesByStatementResponse" => "getCreativeTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/CreativeTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeTemplateService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + */ + public function getCreativeTemplate($creativeTemplateId) { + $arg = new getCreativeTemplate($creativeTemplateId); + $result = $this->__soapCall("getCreativeTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + */ + public function getCreativeTemplatesByStatement($filterStatement) { + $arg = new getCreativeTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getCreativeTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php new file mode 100755 index 000000000..f8c58646c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php @@ -0,0 +1,3385 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CreativeWrapper} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperAction { + /** + * @access public + * @var string + */ + public $CreativeWrapperActionType; + + private $_parameterMap = array ( + "CreativeWrapperAction.Type" => "CreativeWrapperActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperAction"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("CreativeWrapper", FALSE)) { +/** + * A {@code CreativeWrapper} allows the wrapping of HTML snippets to be + * served along with {@code Creative} objects. + *

      + * Creative wrappers must be associated with a + * {@link LabelType#CREATIVE_WRAPPER} label and applied to ad units by + * {@link AdUnit#appliedLabels}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapper { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $header; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $footer; + + /** + * @access public + * @var tnsCreativeWrapperOrdering + */ + public $ordering; + + /** + * @access public + * @var tnsCreativeWrapperStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapper"; + } + + public function __construct($id = NULL, $labelId = NULL, $header = NULL, $footer = NULL, $ordering = NULL, $status = NULL) { + $this->id = $id; + $this->labelId = $labelId; + $this->header = $header; + $this->footer = $footer; + $this->ordering = $ordering; + $this->status = $status; + } +}} + +if (!class_exists("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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("CreativeWrapperPage", FALSE)) { +/** + * Captures a page of {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCreativeWrappers", FALSE)) { +/** + * The action used for deactivating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("CreativeWrapperHtmlSnippet", FALSE)) { +/** + * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is + * delivered as the header or footer. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperHtmlSnippet { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperHtmlSnippet"; + } + + public function __construct($htmlSnippet = NULL) { + $this->htmlSnippet = $htmlSnippet; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperOrdering", FALSE)) { +/** + * Defines the order in which the header and footer HTML snippets will be + * wrapped around the served creative. {@code INNER} snippets will be wrapped + * first, followed by {@code NO_PREFERENCE} and finally {@code OUTER}. If the + * creative needs to be wrapped with more than one snippet with the same + * {@link CreativeWrapperOrdering}, then the order is unspecified. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperOrdering { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperOrdering"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperStatus", FALSE)) { +/** + * Indicates whether the {@code CreativeWrapper} is active. HTML snippets + * are served to creatives only when the creative wrapper is active. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeWrapper", FALSE)) { +/** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("createCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreativeWrappers", FALSE)) { +/** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("createCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrapper", FALSE)) { +/** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeWrapper { + /** + * @access public + * @var integer + */ + public $creativeWrapperId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperId = NULL) { + $this->creativeWrapperId = $creativeWrapperId; + } +}} + +if (!class_exists("getCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrappersByStatement", FALSE)) { +/** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeWrappersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeWrappersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCreativeWrappersByStatementResponse { + /** + * @access public + * @var CreativeWrapperPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCreativeWrapperAction", FALSE)) { +/** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performCreativeWrapperAction { + /** + * @access public + * @var CreativeWrapperAction + */ + public $creativeWrapperAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperAction = NULL, $filterStatement = NULL) { + $this->creativeWrapperAction = $creativeWrapperAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCreativeWrapperActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performCreativeWrapperActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrapper", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("updateCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrappers", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("updateCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCreativeWrappers", FALSE)) { +/** + * The action used for activating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeWrapperService", FALSE)) { +/** + * CreativeWrapperService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class CreativeWrapperService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCreativeWrappers" => "ActivateCreativeWrappers", + "CreativeWrapperAction" => "CreativeWrapperAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapper" => "CreativeWrapper", + "CreativeWrapperError" => "CreativeWrapperError", + "CreativeWrapperPage" => "CreativeWrapperPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateCreativeWrappers" => "DeactivateCreativeWrappers", + "FeatureError" => "FeatureError", + "CreativeWrapperHtmlSnippet" => "CreativeWrapperHtmlSnippet", + "InternalApiError" => "InternalApiError", + "LabelError" => "LabelError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "CreativeWrapperOrdering" => "CreativeWrapperOrdering", + "CreativeWrapperStatus" => "CreativeWrapperStatus", + "LabelError.Reason" => "LabelErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createCreativeWrapper" => "createCreativeWrapper", + "createCreativeWrapperResponse" => "createCreativeWrapperResponse", + "createCreativeWrappers" => "createCreativeWrappers", + "createCreativeWrappersResponse" => "createCreativeWrappersResponse", + "getCreativeWrapper" => "getCreativeWrapper", + "getCreativeWrapperResponse" => "getCreativeWrapperResponse", + "getCreativeWrappersByStatement" => "getCreativeWrappersByStatement", + "getCreativeWrappersByStatementResponse" => "getCreativeWrappersByStatementResponse", + "performCreativeWrapperAction" => "performCreativeWrapperAction", + "performCreativeWrapperActionResponse" => "performCreativeWrapperActionResponse", + "updateCreativeWrapper" => "updateCreativeWrapper", + "updateCreativeWrapperResponse" => "updateCreativeWrapperResponse", + "updateCreativeWrappers" => "updateCreativeWrappers", + "updateCreativeWrappersResponse" => "updateCreativeWrappersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/CreativeWrapperService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeWrapperService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeWrapperService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + */ + public function createCreativeWrapper($creativeWrapper) { + $arg = new createCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("createCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + */ + public function createCreativeWrappers($creativeWrappers) { + $arg = new createCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("createCreativeWrappers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + */ + public function getCreativeWrapper($creativeWrapperId) { + $arg = new getCreativeWrapper($creativeWrapperId); + $result = $this->__soapCall("getCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + */ + public function getCreativeWrappersByStatement($filterStatement) { + $arg = new getCreativeWrappersByStatement($filterStatement); + $result = $this->__soapCall("getCreativeWrappersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performCreativeWrapperAction($creativeWrapperAction, $filterStatement) { + $arg = new performCreativeWrapperAction($creativeWrapperAction, $filterStatement); + $result = $this->__soapCall("performCreativeWrapperAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + */ + public function updateCreativeWrapper($creativeWrapper) { + $arg = new updateCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("updateCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + */ + public function updateCreativeWrappers($creativeWrappers) { + $arg = new updateCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("updateCreativeWrappers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php new file mode 100755 index 000000000..0bc0123e7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php @@ -0,0 +1,3856 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldAction { + /** + * @access public + * @var string + */ + public $CustomFieldActionType; + + private $_parameterMap = array ( + "CustomFieldAction.Type" => "CustomFieldActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldAction"; + } + + public function __construct($CustomFieldActionType = NULL) { + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("CustomField", FALSE)) { +/** + * An additional, user-created field on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomField { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsCustomFieldEntityType + */ + public $entityType; + + /** + * @access public + * @var tnsCustomFieldDataType + */ + public $dataType; + + /** + * @access public + * @var tnsCustomFieldVisibility + */ + public $visibility; + + /** + * @access public + * @var string + */ + public $CustomFieldType; + + private $_parameterMap = array ( + "CustomField.Type" => "CustomFieldType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomField"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("CustomFieldError", FALSE)) { +/** + * Errors specific to editing custom fields + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldError extends ApiError { + /** + * @access public + * @var tnsCustomFieldErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError"; + } + + 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("CustomFieldOption", FALSE)) { +/** + * An option represents a permitted value for a custom field that + * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldOption { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldOption"; + } + + public function __construct($id = NULL, $customFieldId = NULL, $displayName = NULL) { + $this->id = $id; + $this->customFieldId = $customFieldId; + $this->displayName = $displayName; + } +}} + +if (!class_exists("CustomFieldPage", FALSE)) { +/** + * Captures a page of {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomField[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCustomFields", FALSE)) { +/** + * The action used for deactivating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("DropDownCustomField", FALSE)) { +/** + * A custom field that has the drop-down data type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomField extends CustomField { + /** + * @access public + * @var CustomFieldOption[] + */ + public $options; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomField"; + } + + public function __construct($options = NULL, $id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + parent::__construct(); + $this->options = $options; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldDataType", FALSE)) { +/** + * The data types allowed for {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldDataType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldDataType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldEntityType", FALSE)) { +/** + * Entity types recognized by custom fields + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldEntityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldEntityType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldVisibility", FALSE)) { +/** + * The visibility levels of a custom field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldVisibility { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldVisibility"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomField", FALSE)) { +/** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("createCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOption", FALSE)) { +/** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("createCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOptions", FALSE)) { +/** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("createCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFields", FALSE)) { +/** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("createCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomField", FALSE)) { +/** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomField { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldId = NULL) { + $this->customFieldId = $customFieldId; + } +}} + +if (!class_exists("getCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldOption", FALSE)) { +/** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomFieldOption { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptionId = NULL) { + $this->customFieldOptionId = $customFieldOptionId; + } +}} + +if (!class_exists("getCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldsByStatement", FALSE)) { +/** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomFieldsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomFieldsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomFieldsByStatementResponse { + /** + * @access public + * @var CustomFieldPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomFieldAction", FALSE)) { +/** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performCustomFieldAction { + /** + * @access public + * @var CustomFieldAction + */ + public $customFieldAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldAction = NULL, $filterStatement = NULL) { + $this->customFieldAction = $customFieldAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomFieldActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performCustomFieldActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomField", FALSE)) { +/** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("updateCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOption", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("updateCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOptions", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("updateCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFields", FALSE)) { +/** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("updateCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCustomFields", FALSE)) { +/** + * The action used for activating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomFieldService", FALSE)) { +/** + * CustomFieldService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class CustomFieldService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCustomFields" => "ActivateCustomFields", + "CustomFieldAction" => "CustomFieldAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomField" => "CustomField", + "CustomFieldError" => "CustomFieldError", + "CustomFieldOption" => "CustomFieldOption", + "CustomFieldPage" => "CustomFieldPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateCustomFields" => "DeactivateCustomFields", + "DropDownCustomField" => "DropDownCustomField", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldDataType" => "CustomFieldDataType", + "CustomFieldEntityType" => "CustomFieldEntityType", + "CustomFieldError.Reason" => "CustomFieldErrorReason", + "CustomFieldVisibility" => "CustomFieldVisibility", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomField" => "createCustomField", + "createCustomFieldResponse" => "createCustomFieldResponse", + "createCustomFieldOption" => "createCustomFieldOption", + "createCustomFieldOptionResponse" => "createCustomFieldOptionResponse", + "createCustomFieldOptions" => "createCustomFieldOptions", + "createCustomFieldOptionsResponse" => "createCustomFieldOptionsResponse", + "createCustomFields" => "createCustomFields", + "createCustomFieldsResponse" => "createCustomFieldsResponse", + "getCustomField" => "getCustomField", + "getCustomFieldResponse" => "getCustomFieldResponse", + "getCustomFieldOption" => "getCustomFieldOption", + "getCustomFieldOptionResponse" => "getCustomFieldOptionResponse", + "getCustomFieldsByStatement" => "getCustomFieldsByStatement", + "getCustomFieldsByStatementResponse" => "getCustomFieldsByStatementResponse", + "performCustomFieldAction" => "performCustomFieldAction", + "performCustomFieldActionResponse" => "performCustomFieldActionResponse", + "updateCustomField" => "updateCustomField", + "updateCustomFieldResponse" => "updateCustomFieldResponse", + "updateCustomFieldOption" => "updateCustomFieldOption", + "updateCustomFieldOptionResponse" => "updateCustomFieldOptionResponse", + "updateCustomFieldOptions" => "updateCustomFieldOptions", + "updateCustomFieldOptionsResponse" => "updateCustomFieldOptionsResponse", + "updateCustomFields" => "updateCustomFields", + "updateCustomFieldsResponse" => "updateCustomFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/CustomFieldService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomFieldService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomFieldService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + */ + public function createCustomField($customField) { + $arg = new createCustomField($customField); + $result = $this->__soapCall("createCustomField", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + */ + public function createCustomFieldOption($customFieldOption) { + $arg = new createCustomFieldOption($customFieldOption); + $result = $this->__soapCall("createCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + */ + public function createCustomFieldOptions($customFieldOptions) { + $arg = new createCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("createCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + */ + public function createCustomFields($customFields) { + $arg = new createCustomFields($customFields); + $result = $this->__soapCall("createCustomFields", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + */ + public function getCustomField($customFieldId) { + $arg = new getCustomField($customFieldId); + $result = $this->__soapCall("getCustomField", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + */ + public function getCustomFieldOption($customFieldOptionId) { + $arg = new getCustomFieldOption($customFieldOptionId); + $result = $this->__soapCall("getCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + */ + public function getCustomFieldsByStatement($filterStatement) { + $arg = new getCustomFieldsByStatement($filterStatement); + $result = $this->__soapCall("getCustomFieldsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + */ + public function performCustomFieldAction($customFieldAction, $filterStatement) { + $arg = new performCustomFieldAction($customFieldAction, $filterStatement); + $result = $this->__soapCall("performCustomFieldAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + */ + public function updateCustomField($customField) { + $arg = new updateCustomField($customField); + $result = $this->__soapCall("updateCustomField", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + */ + public function updateCustomFieldOption($customFieldOption) { + $arg = new updateCustomFieldOption($customFieldOption); + $result = $this->__soapCall("updateCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + */ + public function updateCustomFieldOptions($customFieldOptions) { + $arg = new updateCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("updateCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + */ + public function updateCustomFields($customFields) { + $arg = new updateCustomFields($customFields); + $result = $this->__soapCall("updateCustomFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php new file mode 100755 index 000000000..7bfd37b4b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php @@ -0,0 +1,3556 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomTargetingKeyAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingKey} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingKeyAction { + /** + * @access public + * @var string + */ + public $CustomTargetingKeyActionType; + + private $_parameterMap = array ( + "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyAction"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("CustomTargetingKey", FALSE)) { +/** + * {@code CustomTargetingKey} represents a key used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingKey { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingKeyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey"; + } + + public function __construct($id = NULL, $name = NULL, $displayName = NULL, $type = NULL) { + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->type = $type; + } +}} + +if (!class_exists("CustomTargetingKeyPage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingKeyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomTargetingValueAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingValue} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingValueAction { + /** + * @access public + * @var string + */ + public $CustomTargetingValueActionType; + + private $_parameterMap = array ( + "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValueAction"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("CustomTargetingValue", FALSE)) { +/** + * {@code CustomTargetingValue} represents a value used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingValue { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingValueMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue"; + } + + public function __construct($customTargetingKeyId = NULL, $id = NULL, $name = NULL, $displayName = NULL, $matchType = NULL) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->matchType = $matchType; + } +}} + +if (!class_exists("CustomTargetingValuePage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingValuePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValuePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeleteCustomTargetingKeys", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingKey} objects. Deleting a key will not delete the + * {@link CustomTargetingValue} objects associated with it. Also, if a custom + * targeting key that has been deleted is recreated, any previous custom + * targeting values associated with it that were not deleted will continue to + * exist. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingKeys"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + parent::__construct(); + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("DeleteCustomTargetingValues", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingValues"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + parent::__construct(); + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingKeyType", FALSE)) { +/** + * Specifies the types for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingKeyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingValueMatchType", FALSE)) { +/** + * Represents the ways in which {@link CustomTargetingValue#name} strings will + * be matched with ad requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingValueMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue.MatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomTargetingKeys", FALSE)) { +/** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("createCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomTargetingValues", FALSE)) { +/** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("createCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomTargetingKeysByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomTargetingKeysByStatementResponse { + /** + * @access public + * @var CustomTargetingKeyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomTargetingValuesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCustomTargetingValuesByStatementResponse { + /** + * @access public + * @var CustomTargetingValuePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingKeyAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performCustomTargetingKeyAction { + /** + * @access public + * @var CustomTargetingKeyAction + */ + public $customTargetingKeyAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingKeyAction = NULL, $filterStatement = NULL) { + $this->customTargetingKeyAction = $customTargetingKeyAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingKeyActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performCustomTargetingKeyActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingValueAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performCustomTargetingValueAction { + /** + * @access public + * @var CustomTargetingValueAction + */ + public $customTargetingValueAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingValueAction = NULL, $filterStatement = NULL) { + $this->customTargetingValueAction = $customTargetingValueAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingValueActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performCustomTargetingValueActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingKeys", FALSE)) { +/** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("updateCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingValues", FALSE)) { +/** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("updateCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomTargetingService", FALSE)) { +/** + * CustomTargetingService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class CustomTargetingService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", + "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "CustomTargetingKey.Type" => "CustomTargetingKeyType", + "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomTargetingKeys" => "createCustomTargetingKeys", + "createCustomTargetingKeysResponse" => "createCustomTargetingKeysResponse", + "createCustomTargetingValues" => "createCustomTargetingValues", + "createCustomTargetingValuesResponse" => "createCustomTargetingValuesResponse", + "getCustomTargetingKeysByStatement" => "getCustomTargetingKeysByStatement", + "getCustomTargetingKeysByStatementResponse" => "getCustomTargetingKeysByStatementResponse", + "getCustomTargetingValuesByStatement" => "getCustomTargetingValuesByStatement", + "getCustomTargetingValuesByStatementResponse" => "getCustomTargetingValuesByStatementResponse", + "performCustomTargetingKeyAction" => "performCustomTargetingKeyAction", + "performCustomTargetingKeyActionResponse" => "performCustomTargetingKeyActionResponse", + "performCustomTargetingValueAction" => "performCustomTargetingValueAction", + "performCustomTargetingValueActionResponse" => "performCustomTargetingValueActionResponse", + "updateCustomTargetingKeys" => "updateCustomTargetingKeys", + "updateCustomTargetingKeysResponse" => "updateCustomTargetingKeysResponse", + "updateCustomTargetingValues" => "updateCustomTargetingValues", + "updateCustomTargetingValuesResponse" => "updateCustomTargetingValuesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/CustomTargetingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomTargetingService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomTargetingService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingKeys($keys) { + $arg = new createCustomTargetingKeys($keys); + $result = $this->__soapCall("createCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingValues($values) { + $arg = new createCustomTargetingValues($values); + $result = $this->__soapCall("createCustomTargetingValues", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + */ + public function getCustomTargetingKeysByStatement($filterStatement) { + $arg = new getCustomTargetingKeysByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + */ + public function getCustomTargetingValuesByStatement($filterStatement) { + $arg = new getCustomTargetingValuesByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + */ + public function performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement) { + $arg = new performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingKeyAction", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performCustomTargetingValueAction($customTargetingValueAction, $filterStatement) { + $arg = new performCustomTargetingValueAction($customTargetingValueAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingValueAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function updateCustomTargetingKeys($keys) { + $arg = new updateCustomTargetingKeys($keys); + $result = $this->__soapCall("updateCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + */ + public function updateCustomTargetingValues($values) { + $arg = new updateCustomTargetingValues($values); + $result = $this->__soapCall("updateCustomTargetingValues", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ForecastService.php b/src/Google/Api/Ads/Dfp/v201308/ForecastService.php new file mode 100755 index 000000000..226394db6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ForecastService.php @@ -0,0 +1,8593 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContendingLineItem", FALSE)) { +/** + * Describes contending line items for a {@link Forecast}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContendingLineItem { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $contendingImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContendingLineItem"; + } + + public function __construct($lineItemId = NULL, $contendingImpressions = NULL) { + $this->lineItemId = $lineItemId; + $this->contendingImpressions = $contendingImpressions; + } +}} + +if (!class_exists("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("Forecast", FALSE)) { +/** + * Describes predicted inventory availability for a line item with the specified + * properties. + * + *

      Inventory has three threshold values along a line of possible inventory. + * From least to most, these are: + * + *

        + *
      • Available units -- How many units can be booked without affecting any + * other line items. Booking more than this number can overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because if more impressions are + * served than are predicted, the extra available inventory might enable all + * inventory guarantees to be met without overbooking. + * + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Forecast { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $deliveredUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var integer + */ + public $possibleUnits; + + /** + * @access public + * @var integer + */ + public $reservedUnits; + + /** + * @access public + * @var ContendingLineItem[] + */ + public $contendingLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Forecast"; + } + + public function __construct($id = NULL, $orderId = NULL, $unitType = NULL, $availableUnits = NULL, $deliveredUnits = NULL, $matchedUnits = NULL, $possibleUnits = NULL, $reservedUnits = NULL, $contendingLineItems = NULL) { + $this->id = $id; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->availableUnits = $availableUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + $this->possibleUnits = $possibleUnits; + $this->reservedUnits = $reservedUnits; + $this->contendingLineItems = $contendingLineItems; + } +}} + +if (!class_exists("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var boolean + */ + public $isMissingCreatives; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * @access public + * @var integer + */ + public $videoCompletionsDelivered; + + /** + * @access public + * @var integer + */ + public $videoStartsDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL, $videoCompletionsDelivered = NULL, $videoStartsDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + $this->videoCompletionsDelivered = $videoCompletionsDelivered; + $this->videoStartsDelivered = $videoStartsDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("getForecast", FALSE)) { +/** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getForecast { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("getForecastResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getForecastResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getForecastById", FALSE)) { +/** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getForecastById { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getForecastByIdResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getForecastByIdResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ForecastService", FALSE)) { +/** + * ForecastService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ForecastService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContendingLineItem" => "ContendingLineItem", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "Forecast" => "Forecast", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "getForecast" => "getForecast", + "getForecastResponse" => "getForecastResponse", + "getForecastById" => "getForecastById", + "getForecastByIdResponse" => "getForecastByIdResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ForecastService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ForecastService::$classmap; + parent::__construct($wsdl, $options, $user, 'ForecastService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + */ + public function getForecast($lineItem) { + $arg = new getForecast($lineItem); + $result = $this->__soapCall("getForecast", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + */ + public function getForecastById($lineItemId) { + $arg = new getForecastById($lineItemId); + $result = $this->__soapCall("getForecastById", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/InventoryService.php b/src/Google/Api/Ads/Dfp/v201308/InventoryService.php new file mode 100755 index 000000000..245e8d64e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/InventoryService.php @@ -0,0 +1,5256 @@ +adSenseEnabled = $adSenseEnabled; + $this->borderColor = $borderColor; + $this->titleColor = $titleColor; + $this->backgroundColor = $backgroundColor; + $this->textColor = $textColor; + $this->urlColor = $urlColor; + $this->adType = $adType; + $this->borderStyle = $borderStyle; + $this->fontFamily = $fontFamily; + $this->fontSize = $fontSize; + $this->afcFormats = $afcFormats; + } +}} + +if (!class_exists("AdSenseSettingsInheritedProperty", FALSE)) { +/** + * The property of the AdUnit that specifies how and from where the + * AdSenseSettings are inherited. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseSettingsInheritedProperty { + /** + * @access public + * @var AdSenseSettings + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettingsInheritedProperty"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("AdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitAction { + /** + * @access public + * @var string + */ + public $AdUnitActionType; + + private $_parameterMap = array ( + "AdUnitAction.Type" => "AdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAction"; + } + + public function __construct($AdUnitActionType = NULL) { + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdUnit", FALSE)) { +/** + * An {@code AdUnit} represents a chunk of identified inventory for the + * publisher. It contains all the settings that need to be associated with + * inventory in order to serve ads to it. An {@code AdUnit} can also be the + * parent of other ad units in the inventory hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $parentId; + + /** + * @access public + * @var boolean + */ + public $hasChildren; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $adUnitCode; + + /** + * @access public + * @var AdUnitSize[] + */ + public $adUnitSizes; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsMobilePlatform + */ + public $mobilePlatform; + + /** + * @access public + * @var boolean + */ + public $explicitlyTargeted; + + /** + * @access public + * @var AdSenseSettingsInheritedProperty + */ + public $inheritedAdSenseSettings; + + /** + * @access public + * @var integer + */ + public $partnerId; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $appliedLabelFrequencyCaps; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $effectiveLabelFrequencyCaps; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer[] + */ + public $effectiveTeamIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var tnsSmartSizeMode + */ + public $smartSizeMode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit"; + } + + public function __construct($id = NULL, $parentId = NULL, $hasChildren = NULL, $parentPath = NULL, $name = NULL, $description = NULL, $targetWindow = NULL, $status = NULL, $adUnitCode = NULL, $adUnitSizes = NULL, $targetPlatform = NULL, $mobilePlatform = NULL, $explicitlyTargeted = NULL, $inheritedAdSenseSettings = NULL, $partnerId = NULL, $appliedLabelFrequencyCaps = NULL, $effectiveLabelFrequencyCaps = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $effectiveTeamIds = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $smartSizeMode = NULL) { + $this->id = $id; + $this->parentId = $parentId; + $this->hasChildren = $hasChildren; + $this->parentPath = $parentPath; + $this->name = $name; + $this->description = $description; + $this->targetWindow = $targetWindow; + $this->status = $status; + $this->adUnitCode = $adUnitCode; + $this->adUnitSizes = $adUnitSizes; + $this->targetPlatform = $targetPlatform; + $this->mobilePlatform = $mobilePlatform; + $this->explicitlyTargeted = $explicitlyTargeted; + $this->inheritedAdSenseSettings = $inheritedAdSenseSettings; + $this->partnerId = $partnerId; + $this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; + $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->effectiveTeamIds = $effectiveTeamIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->smartSizeMode = $smartSizeMode; + } +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("AdUnitParent", FALSE)) { +/** + * The summary of a parent {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitParent { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitParent"; + } + + public function __construct($id = NULL, $name = NULL) { + $this->id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("ArchiveAdUnits", FALSE)) { +/** + * The action used for archiving {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchiveAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AssignAdUnitsToPlacement", FALSE)) { +/** + * The action used for assigning a group of {@link AdUnit} objects to a + * {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssignAdUnitsToPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateAdUnits", FALSE)) { +/** + * The action used for deactivating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidColorError", FALSE)) { +/** + * A list of all errors associated with a color attribute. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidColorError extends ApiError { + /** + * @access public + * @var tnsInvalidColorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("InventoryUnitPartnerAssociationError", FALSE)) { +/** + * Errors relating to the association of partner companies with inventory units. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitPartnerAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("InventoryUnitSizesError", FALSE)) { +/** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitSizesError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError"; + } + + 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("AdUnitTypeError", FALSE)) { +/** + * Lists the errors associated with the type of {@link AdUnit} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitTypeError extends ApiError { + /** + * @access public + * @var tnsAdUnitTypeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError"; + } + + 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("LabelFrequencyCap", FALSE)) { +/** + * A {@code LabelFrequencyCap} assigns a frequency cap to a label. The + * frequency cap will limit the cumulative number of impressions of any ad + * units with this label that may be shown to a particular user over a time + * unit. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelFrequencyCap { + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelFrequencyCap"; + } + + public function __construct($frequencyCap = NULL, $labelId = NULL) { + $this->frequencyCap = $frequencyCap; + $this->labelId = $labelId; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RemoveAdUnitsFromPlacement", FALSE)) { +/** + * The action used for removing a group of {@link AdUnit} objects + * from a {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RemoveAdUnitsFromPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RemoveAdUnitsFromPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size_StringMapEntry { + /** + * @access public + * @var Size + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsAdType", FALSE)) { +/** + * Specifies the type of ads that can be served through this {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseSettingsAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.AdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsBorderStyle", FALSE)) { +/** + * Describes the border of the HTML elements used to surround an ad + * displayed by the {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseSettingsBorderStyle { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.BorderStyle"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontFamily", FALSE)) { +/** + * List of all possible font families. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseSettingsFontFamily { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontFamily"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontSize", FALSE)) { +/** + * List of all possible font sizes the user can choose. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseSettingsFontSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontSize"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidColorErrorReason", FALSE)) { +/** + * The provided value is not a valid hexadecimal color. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidColorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitPartnerAssociationErrorReason", FALSE)) { +/** + * Partner association error reason types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitPartnerAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitSizesErrorReason", FALSE)) { +/** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitSizesErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTypeErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitTypeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobilePlatform", FALSE)) { +/** + * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit + * appears in a mobile application or in a mobile web site. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobilePlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobilePlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SmartSizeMode", FALSE)) { +/** + * Represents smart size modes. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SmartSizeMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SmartSizeMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdUnit", FALSE)) { +/** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("createAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdUnits", FALSE)) { +/** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("createAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnit", FALSE)) { +/** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdUnit { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitId = NULL) { + $this->adUnitId = $adUnitId; + } +}} + +if (!class_exists("getAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitSizesByStatement", FALSE)) { +/** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdUnitSizesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitSizesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdUnitSizesByStatementResponse { + /** + * @access public + * @var AdUnitSize[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAdUnitsByStatementResponse { + /** + * @access public + * @var AdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdUnitAction", FALSE)) { +/** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performAdUnitAction { + /** + * @access public + * @var AdUnitAction + */ + public $adUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitAction = NULL, $filterStatement = NULL) { + $this->adUnitAction = $adUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performAdUnitActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnit", FALSE)) { +/** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("updateAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnits", FALSE)) { +/** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("updateAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdUnits", FALSE)) { +/** + * The action used for activating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("InventoryService", FALSE)) { +/** + * InventoryService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class InventoryService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdUnits" => "ActivateAdUnits", + "AdUnitAction" => "AdUnitAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "AdSenseSettings" => "AdSenseSettings", + "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnit" => "AdUnit", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "AdUnitPage" => "AdUnitPage", + "AdUnitParent" => "AdUnitParent", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveAdUnits" => "ArchiveAdUnits", + "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateAdUnits" => "DeactivateAdUnits", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "InternalApiError" => "InternalApiError", + "InvalidColorError" => "InvalidColorError", + "InventoryUnitError" => "InventoryUnitError", + "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", + "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", + "AdUnitTypeError" => "AdUnitTypeError", + "LabelFrequencyCap" => "LabelFrequencyCap", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegExError" => "RegExError", + "RemoveAdUnitsFromPlacement" => "RemoveAdUnitsFromPlacement", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "Size_StringMapEntry" => "Size_StringMapEntry", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "AdSenseSettings.AdType" => "AdSenseSettingsAdType", + "AdSenseSettings.BorderStyle" => "AdSenseSettingsBorderStyle", + "AdSenseSettings.FontFamily" => "AdSenseSettingsFontFamily", + "AdSenseSettings.FontSize" => "AdSenseSettingsFontSize", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidColorError.Reason" => "InvalidColorErrorReason", + "InventoryStatus" => "InventoryStatus", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", + "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", + "MobilePlatform" => "MobilePlatform", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SmartSizeMode" => "SmartSizeMode", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TimeUnit" => "TimeUnit", + "createAdUnit" => "createAdUnit", + "createAdUnitResponse" => "createAdUnitResponse", + "createAdUnits" => "createAdUnits", + "createAdUnitsResponse" => "createAdUnitsResponse", + "getAdUnit" => "getAdUnit", + "getAdUnitResponse" => "getAdUnitResponse", + "getAdUnitSizesByStatement" => "getAdUnitSizesByStatement", + "getAdUnitSizesByStatementResponse" => "getAdUnitSizesByStatementResponse", + "getAdUnitsByStatement" => "getAdUnitsByStatement", + "getAdUnitsByStatementResponse" => "getAdUnitsByStatementResponse", + "performAdUnitAction" => "performAdUnitAction", + "performAdUnitActionResponse" => "performAdUnitActionResponse", + "updateAdUnit" => "updateAdUnit", + "updateAdUnitResponse" => "updateAdUnitResponse", + "updateAdUnits" => "updateAdUnits", + "updateAdUnitsResponse" => "updateAdUnitsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/InventoryService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = InventoryService::$classmap; + parent::__construct($wsdl, $options, $user, 'InventoryService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + */ + public function createAdUnit($adUnit) { + $arg = new createAdUnit($adUnit); + $result = $this->__soapCall("createAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + */ + public function createAdUnits($adUnits) { + $arg = new createAdUnits($adUnits); + $result = $this->__soapCall("createAdUnits", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + */ + public function getAdUnit($adUnitId) { + $arg = new getAdUnit($adUnitId); + $result = $this->__soapCall("getAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + */ + public function getAdUnitSizesByStatement($filterStatement) { + $arg = new getAdUnitSizesByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitSizesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + */ + public function getAdUnitsByStatement($filterStatement) { + $arg = new getAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performAdUnitAction($adUnitAction, $filterStatement) { + $arg = new performAdUnitAction($adUnitAction, $filterStatement); + $result = $this->__soapCall("performAdUnitAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + */ + public function updateAdUnit($adUnit) { + $arg = new updateAdUnit($adUnit); + $result = $this->__soapCall("updateAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + */ + public function updateAdUnits($adUnits) { + $arg = new updateAdUnits($adUnits); + $result = $this->__soapCall("updateAdUnits", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/LabelService.php b/src/Google/Api/Ads/Dfp/v201308/LabelService.php new file mode 100755 index 000000000..e4d78e94c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/LabelService.php @@ -0,0 +1,3281 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelAction { + /** + * @access public + * @var string + */ + public $LabelActionType; + + private $_parameterMap = array ( + "LabelAction.Type" => "LabelActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelAction"; + } + + public function __construct($LabelActionType = NULL) { + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Label { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Label"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $types = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLabel", FALSE)) { +/** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("createLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLabels", FALSE)) { +/** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("createLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabel", FALSE)) { +/** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelId = NULL) { + $this->labelId = $labelId; + } +}} + +if (!class_exists("getLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabelsByStatement", FALSE)) { +/** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLabelsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLabelsByStatementResponse { + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performLabelAction { + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelAction = NULL, $filterStatement = NULL) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performLabelActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("updateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("updateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class LabelService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLabels" => "ActivateLabels", + "LabelAction" => "LabelAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createLabel" => "createLabel", + "createLabelResponse" => "createLabelResponse", + "createLabels" => "createLabels", + "createLabelsResponse" => "createLabelsResponse", + "getLabel" => "getLabel", + "getLabelResponse" => "getLabelResponse", + "getLabelsByStatement" => "getLabelsByStatement", + "getLabelsByStatementResponse" => "getLabelsByStatementResponse", + "performLabelAction" => "performLabelAction", + "performLabelActionResponse" => "performLabelActionResponse", + "updateLabel" => "updateLabel", + "updateLabelResponse" => "updateLabelResponse", + "updateLabels" => "updateLabels", + "updateLabelsResponse" => "updateLabelsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/LabelService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LabelService::$classmap; + parent::__construct($wsdl, $options, $user, 'LabelService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + */ + public function createLabel($label) { + $arg = new createLabel($label); + $result = $this->__soapCall("createLabel", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + */ + public function createLabels($labels) { + $arg = new createLabels($labels); + $result = $this->__soapCall("createLabels", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + */ + public function getLabel($labelId) { + $arg = new getLabel($labelId); + $result = $this->__soapCall("getLabel", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $arg = new getLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performLabelAction($labelAction, $filterStatement) { + $arg = new performLabelAction($labelAction, $filterStatement); + $result = $this->__soapCall("performLabelAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + */ + public function updateLabel($label) { + $arg = new updateLabel($label); + $result = $this->__soapCall("updateLabel", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $arg = new updateLabels($labels); + $result = $this->__soapCall("updateLabels", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..44f103e91 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php @@ -0,0 +1,4944 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on + * {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationAction { + /** + * @access public + * @var string + */ + public $LineItemCreativeAssociationActionType; + + private $_parameterMap = array ( + "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationAction"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociation", FALSE)) { +/** + * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a + * {@link LineItem} so that the creative can be served in ad units targeted by the line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * @access public + * @var double + */ + public $manualCreativeRotationWeight; + + /** + * @access public + * @var integer + */ + public $sequentialCreativeRotationIndex; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var Size[] + */ + public $sizes; + + /** + * @access public + * @var tnsLineItemCreativeAssociationStatus + */ + public $status; + + /** + * @access public + * @var LineItemCreativeAssociationStats + */ + public $stats; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation"; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $creativeSetId = NULL, $manualCreativeRotationWeight = NULL, $sequentialCreativeRotationIndex = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $destinationUrl = NULL, $sizes = NULL, $status = NULL, $stats = NULL, $lastModifiedDateTime = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->creativeSetId = $creativeSetId; + $this->manualCreativeRotationWeight = $manualCreativeRotationWeight; + $this->sequentialCreativeRotationIndex = $sequentialCreativeRotationIndex; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->destinationUrl = $destinationUrl; + $this->sizes = $sizes; + $this->status = $status; + $this->stats = $stats; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemCreativeAssociationOperationError", FALSE)) { +/** + * Lists all errors for executing operations on + * line item-to-creative associations + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError"; + } + + 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("LineItemCreativeAssociationPage", FALSE)) { +/** + * Captures a page of {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemCreativeAssociationStats", FALSE)) { +/** + * Contains statistics such as impressions, clicks delivered and cost + * for {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationStats { + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var Long_StatsMapEntry[] + */ + public $creativeSetStats; + + /** + * @access public + * @var Money + */ + public $costInOrderCurrency; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationStats"; + } + + public function __construct($stats = NULL, $creativeSetStats = NULL, $costInOrderCurrency = NULL) { + $this->stats = $stats; + $this->creativeSetStats = $creativeSetStats; + $this->costInOrderCurrency = $costInOrderCurrency; + } +}} + +if (!class_exists("Long_StatsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Long + * and value of type Stats. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Long_StatsMapEntry { + /** + * @access public + * @var integer + */ + public $key; + + /** + * @access public + * @var Stats + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Long_StatsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * @access public + * @var integer + */ + public $videoCompletionsDelivered; + + /** + * @access public + * @var integer + */ + public $videoStartsDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL, $videoCompletionsDelivered = NULL, $videoStartsDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + $this->videoCompletionsDelivered = $videoCompletionsDelivered; + $this->videoStartsDelivered = $videoStartsDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SwiffyConversionError", FALSE)) { +/** + * Error for converting flash to swiffy asset. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SwiffyConversionError extends ApiError { + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationStatus", FALSE)) { +/** + * Describes the status of the association. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SwiffyConversionErrorReason", FALSE)) { +/** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SwiffyConversionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItemCreativeAssociation", FALSE)) { +/** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("createLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItemCreativeAssociations", FALSE)) { +/** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("createLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociation", FALSE)) { +/** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatement", FALSE)) { +/** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemCreativeAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemCreativeAssociationsByStatementResponse { + /** + * @access public + * @var LineItemCreativeAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPreviewUrl", FALSE)) { +/** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getPreviewUrl { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var string + */ + public $siteUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $siteUrl = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->siteUrl = $siteUrl; + } +}} + +if (!class_exists("getPreviewUrlResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getPreviewUrlResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemCreativeAssociationAction", FALSE)) { +/** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performLineItemCreativeAssociationAction { + /** + * @access public + * @var LineItemCreativeAssociationAction + */ + public $lineItemCreativeAssociationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociationAction = NULL, $filterStatement = NULL) { + $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemCreativeAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performLineItemCreativeAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociation", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociations", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for activating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemCreativeAssociationService", FALSE)) { +/** + * LineItemCreativeAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", + "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSetError" => "CreativeSetError", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociation" => "LineItemCreativeAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", + "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", + "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", + "Long_StatsMapEntry" => "Long_StatsMapEntry", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SwiffyConversionError" => "SwiffyConversionError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createLineItemCreativeAssociation" => "createLineItemCreativeAssociation", + "createLineItemCreativeAssociationResponse" => "createLineItemCreativeAssociationResponse", + "createLineItemCreativeAssociations" => "createLineItemCreativeAssociations", + "createLineItemCreativeAssociationsResponse" => "createLineItemCreativeAssociationsResponse", + "getLineItemCreativeAssociation" => "getLineItemCreativeAssociation", + "getLineItemCreativeAssociationResponse" => "getLineItemCreativeAssociationResponse", + "getLineItemCreativeAssociationsByStatement" => "getLineItemCreativeAssociationsByStatement", + "getLineItemCreativeAssociationsByStatementResponse" => "getLineItemCreativeAssociationsByStatementResponse", + "getPreviewUrl" => "getPreviewUrl", + "getPreviewUrlResponse" => "getPreviewUrlResponse", + "performLineItemCreativeAssociationAction" => "performLineItemCreativeAssociationAction", + "performLineItemCreativeAssociationActionResponse" => "performLineItemCreativeAssociationActionResponse", + "updateLineItemCreativeAssociation" => "updateLineItemCreativeAssociation", + "updateLineItemCreativeAssociationResponse" => "updateLineItemCreativeAssociationResponse", + "updateLineItemCreativeAssociations" => "updateLineItemCreativeAssociations", + "updateLineItemCreativeAssociationsResponse" => "updateLineItemCreativeAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/LineItemCreativeAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemCreativeAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemCreativeAssociationService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + */ + public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new createLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("createLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + */ + public function createLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new createLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("createLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + */ + public function getLineItemCreativeAssociation($lineItemId, $creativeId) { + $arg = new getLineItemCreativeAssociation($lineItemId, $creativeId); + $result = $this->__soapCall("getLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + */ + public function getLineItemCreativeAssociationsByStatement($filterStatement) { + $arg = new getLineItemCreativeAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + */ + public function getPreviewUrl($lineItemId, $creativeId, $siteUrl) { + $arg = new getPreviewUrl($lineItemId, $creativeId, $siteUrl); + $result = $this->__soapCall("getPreviewUrl", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + */ + public function performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement) { + $arg = new performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); + $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + */ + public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new updateLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("updateLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + */ + public function updateLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new updateLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("updateLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemService.php new file mode 100755 index 000000000..d41e6621d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/LineItemService.php @@ -0,0 +1,9302 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemAction { + /** + * @access public + * @var string + */ + public $LineItemActionType; + + private $_parameterMap = array ( + "LineItemAction.Type" => "LineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemAction"; + } + + public function __construct($LineItemActionType = NULL) { + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemPage", FALSE)) { +/** + * Captures a page of {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItem[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var boolean + */ + public $isMissingCreatives; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseLineItems", FALSE)) { +/** + * The action used for pausing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PauseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ReleaseLineItems", FALSE)) { +/** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReleaseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReleaseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ReserveLineItems", FALSE)) { +/** + * The action used for reserving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReserveLineItems extends LineItemAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ResumeLineItems extends LineItemAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * @access public + * @var integer + */ + public $videoCompletionsDelivered; + + /** + * @access public + * @var integer + */ + public $videoStartsDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL, $videoCompletionsDelivered = NULL, $videoStartsDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + $this->videoCompletionsDelivered = $videoCompletionsDelivered; + $this->videoStartsDelivered = $videoStartsDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveLineItems", FALSE)) { +/** + * The action used for unarchiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnarchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItem", FALSE)) { +/** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("createLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItems", FALSE)) { +/** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("createLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItem", FALSE)) { +/** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItem { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemsByStatement", FALSE)) { +/** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemsByStatementResponse { + /** + * @access public + * @var LineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemAction", FALSE)) { +/** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performLineItemAction { + /** + * @access public + * @var LineItemAction + */ + public $lineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemAction = NULL, $filterStatement = NULL) { + $this->lineItemAction = $lineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItem", FALSE)) { +/** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("updateLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItems", FALSE)) { +/** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("updateLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItems", FALSE)) { +/** + * The action used for activating {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveLineItems", FALSE)) { +/** + * The action used for archiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteLineItems", FALSE)) { +/** + * The action used for deleting {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeleteLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("ReserveAndOverbookLineItems", FALSE)) { +/** + * The action used for reserving and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveAndOverbookLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("LineItemService", FALSE)) { +/** + * LineItemService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class LineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItems" => "ActivateLineItems", + "LineItemAction" => "LineItemAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveLineItems" => "ArchiveLineItems", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeleteLineItems" => "DeleteLineItems", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemPage" => "LineItemPage", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PauseLineItems" => "PauseLineItems", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "ReleaseLineItems" => "ReleaseLineItems", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", + "ReserveLineItems" => "ReserveLineItems", + "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", + "ResumeLineItems" => "ResumeLineItems", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UnarchiveLineItems" => "UnarchiveLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createLineItem" => "createLineItem", + "createLineItemResponse" => "createLineItemResponse", + "createLineItems" => "createLineItems", + "createLineItemsResponse" => "createLineItemsResponse", + "getLineItem" => "getLineItem", + "getLineItemResponse" => "getLineItemResponse", + "getLineItemsByStatement" => "getLineItemsByStatement", + "getLineItemsByStatementResponse" => "getLineItemsByStatementResponse", + "performLineItemAction" => "performLineItemAction", + "performLineItemActionResponse" => "performLineItemActionResponse", + "updateLineItem" => "updateLineItem", + "updateLineItemResponse" => "updateLineItemResponse", + "updateLineItems" => "updateLineItems", + "updateLineItemsResponse" => "updateLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/LineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + */ + public function createLineItem($lineItem) { + $arg = new createLineItem($lineItem); + $result = $this->__soapCall("createLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + */ + public function createLineItems($lineItems) { + $arg = new createLineItems($lineItems); + $result = $this->__soapCall("createLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + */ + public function getLineItem($lineItemId) { + $arg = new getLineItem($lineItemId); + $result = $this->__soapCall("getLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + */ + public function getLineItemsByStatement($filterStatement) { + $arg = new getLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + */ + public function performLineItemAction($lineItemAction, $filterStatement) { + $arg = new performLineItemAction($lineItemAction, $filterStatement); + $result = $this->__soapCall("performLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + */ + public function updateLineItem($lineItem) { + $arg = new updateLineItem($lineItem); + $result = $this->__soapCall("updateLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + */ + public function updateLineItems($lineItems) { + $arg = new updateLineItems($lineItems); + $result = $this->__soapCall("updateLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php new file mode 100755 index 000000000..5a0489476 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php @@ -0,0 +1,4459 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemTemplate", FALSE)) { +/** + * Represents the template that populates the fields of a new line item being + * created. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var boolean + */ + public $isDefault; + + /** + * @access public + * @var string + */ + public $lineItemName; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var boolean + */ + public $enabledForSameAdvertiserException; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var DateTime + */ + public $startTime; + + /** + * @access public + * @var DateTime + */ + public $endTime; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $isDefault = NULL, $lineItemName = NULL, $targetPlatform = NULL, $enabledForSameAdvertiserException = NULL, $notes = NULL, $lineItemType = NULL, $startTime = NULL, $endTime = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $creativeRotationType = NULL) { + $this->id = $id; + $this->name = $name; + $this->isDefault = $isDefault; + $this->lineItemName = $lineItemName; + $this->targetPlatform = $targetPlatform; + $this->enabledForSameAdvertiserException = $enabledForSameAdvertiserException; + $this->notes = $notes; + $this->lineItemType = $lineItemType; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->creativeRotationType = $creativeRotationType; + } +}} + +if (!class_exists("LineItemTemplatePage", FALSE)) { +/** + * Captures a page of {@link LineItemTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getLineItemTemplatesByStatement", FALSE)) { +/** + * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link LineItemTemplate#id}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item templates + * @return the line item templates that match the given filter + * @throws ApiException if a RuntimeException is thrown + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getLineItemTemplatesByStatementResponse { + /** + * @access public + * @var LineItemTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemTemplateService", FALSE)) { +/** + * LineItemTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class LineItemTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPartTargetingError" => "DayPartTargetingError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemTemplate" => "LineItemTemplate", + "LineItemTemplatePage" => "LineItemTemplatePage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargetingError" => "UserDomainTargetingError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryRateType" => "DeliveryRateType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "getLineItemTemplatesByStatement" => "getLineItemTemplatesByStatement", + "getLineItemTemplatesByStatementResponse" => "getLineItemTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/LineItemTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemTemplateService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link LineItemTemplate#id}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item templates + * @return the line item templates that match the given filter + * @throws ApiException if a RuntimeException is thrown + */ + public function getLineItemTemplatesByStatement($filterStatement) { + $arg = new getLineItemTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getLineItemTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/NetworkService.php b/src/Google/Api/Ads/Dfp/v201308/NetworkService.php new file mode 100755 index 000000000..ed085683b --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/NetworkService.php @@ -0,0 +1,2248 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("Network", FALSE)) { +/** + * {@code Network} represents a network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Network { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $propertyCode; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string[] + */ + public $secondaryCurrencyCodes; + + /** + * @access public + * @var string + */ + public $effectiveRootAdUnitId; + + /** + * @access public + * @var integer + */ + public $contentBrowseCustomTargetingKeyId; + + /** + * @access public + * @var boolean + */ + public $isTest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Network"; + } + + public function __construct($id = NULL, $displayName = NULL, $networkCode = NULL, $propertyCode = NULL, $timeZone = NULL, $currencyCode = NULL, $secondaryCurrencyCodes = NULL, $effectiveRootAdUnitId = NULL, $contentBrowseCustomTargetingKeyId = NULL, $isTest = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->networkCode = $networkCode; + $this->propertyCode = $propertyCode; + $this->timeZone = $timeZone; + $this->currencyCode = $currencyCode; + $this->secondaryCurrencyCodes = $secondaryCurrencyCodes; + $this->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } +}} + +if (!class_exists("NetworkError", FALSE)) { +/** + * An error for a network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NetworkError extends ApiError { + /** + * @access public + * @var tnsNetworkErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NetworkErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NetworkErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworks", FALSE)) { +/** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAllNetworks { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworksResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAllNetworksResponse { + /** + * @access public + * @var Network[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentNetwork", FALSE)) { +/** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCurrentNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCurrentNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("makeTestNetwork", FALSE)) { +/** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class makeTestNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("makeTestNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class makeTestNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateNetwork", FALSE)) { +/** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateNetwork { + /** + * @access public + * @var Network + */ + public $network; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($network = NULL) { + $this->network = $network; + } +}} + +if (!class_exists("updateNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NetworkService", FALSE)) { +/** + * NetworkService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class NetworkService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "Network" => "Network", + "NetworkError" => "NetworkError", + "NotNullError" => "NotNullError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NetworkError.Reason" => "NetworkErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getAllNetworks" => "getAllNetworks", + "getAllNetworksResponse" => "getAllNetworksResponse", + "getCurrentNetwork" => "getCurrentNetwork", + "getCurrentNetworkResponse" => "getCurrentNetworkResponse", + "makeTestNetwork" => "makeTestNetwork", + "makeTestNetworkResponse" => "makeTestNetworkResponse", + "updateNetwork" => "updateNetwork", + "updateNetworkResponse" => "updateNetworkResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/NetworkService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = NetworkService::$classmap; + parent::__construct($wsdl, $options, $user, 'NetworkService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + */ + public function getAllNetworks() { + $arg = new getAllNetworks(); + $result = $this->__soapCall("getAllNetworks", array($arg)); + return $result->rval; + } + + + /** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + */ + public function getCurrentNetwork() { + $arg = new getCurrentNetwork(); + $result = $this->__soapCall("getCurrentNetwork", array($arg)); + return $result->rval; + } + + + /** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + */ + public function makeTestNetwork() { + $arg = new makeTestNetwork(); + $result = $this->__soapCall("makeTestNetwork", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + */ + public function updateNetwork($network) { + $arg = new updateNetwork($network); + $result = $this->__soapCall("updateNetwork", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/OrderService.php b/src/Google/Api/Ads/Dfp/v201308/OrderService.php new file mode 100755 index 000000000..7ed5392bf --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/OrderService.php @@ -0,0 +1,4964 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderAction { + /** + * @access public + * @var string + */ + public $OrderActionType; + + private $_parameterMap = array ( + "OrderAction.Type" => "OrderActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderAction"; + } + + public function __construct($OrderActionType = NULL) { + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("Order", FALSE)) { +/** + * An {@code Order} represents a grouping of individual {@link LineItem} + * objects, each of which fulfill an ad request from a particular advertiser. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Order { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsOrderStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var integer + */ + public $externalOrderId; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer[] + */ + public $advertiserContactIds; + + /** + * @access public + * @var integer + */ + public $agencyId; + + /** + * @access public + * @var integer[] + */ + public $agencyContactIds; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var integer + */ + public $traffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer + */ + public $salespersonId; + + /** + * @access public + * @var integer[] + */ + public $secondarySalespersonIds; + + /** + * @access public + * @var integer + */ + public $totalImpressionsDelivered; + + /** + * @access public + * @var integer + */ + public $totalClicksDelivered; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Order"; + } + + public function __construct($id = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $isArchived = NULL, $notes = NULL, $externalOrderId = NULL, $poNumber = NULL, $currencyCode = NULL, $advertiserId = NULL, $advertiserContactIds = NULL, $agencyId = NULL, $agencyContactIds = NULL, $creatorId = NULL, $traffickerId = NULL, $secondaryTraffickerIds = NULL, $salespersonId = NULL, $secondarySalespersonIds = NULL, $totalImpressionsDelivered = NULL, $totalClicksDelivered = NULL, $totalBudget = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $lastModifiedByApp = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->notes = $notes; + $this->externalOrderId = $externalOrderId; + $this->poNumber = $poNumber; + $this->currencyCode = $currencyCode; + $this->advertiserId = $advertiserId; + $this->advertiserContactIds = $advertiserContactIds; + $this->agencyId = $agencyId; + $this->agencyContactIds = $agencyContactIds; + $this->creatorId = $creatorId; + $this->traffickerId = $traffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->salespersonId = $salespersonId; + $this->secondarySalespersonIds = $secondarySalespersonIds; + $this->totalImpressionsDelivered = $totalImpressionsDelivered; + $this->totalClicksDelivered = $totalClicksDelivered; + $this->totalBudget = $totalBudget; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("OrderPage", FALSE)) { +/** + * Captures a page of {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Order[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseOrders", FALSE)) { +/** + * The action used for pausing {@link Order} objects. All {@link LineItem} + * objects within the order will be paused as well. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PauseOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ResumeOrders extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RetractOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for retracting {@link Order} objects. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitOrdersForApproval", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SubmitOrdersForApproval extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApproval"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalAndOverbook"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalWithoutReservationChanges", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. This + * action does not make any changes to the {@link LineItem#reservationStatus} + * of the line items within the order. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveOrders", FALSE)) { +/** + * The action used for unarchiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnarchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderStatus", FALSE)) { +/** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createOrder", FALSE)) { +/** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("createOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createOrders", FALSE)) { +/** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("createOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrder", FALSE)) { +/** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getOrder { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderId = NULL) { + $this->orderId = $orderId; + } +}} + +if (!class_exists("getOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrdersByStatement", FALSE)) { +/** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getOrdersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getOrdersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getOrdersByStatementResponse { + /** + * @access public + * @var OrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performOrderAction", FALSE)) { +/** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performOrderAction { + /** + * @access public + * @var OrderAction + */ + public $orderAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderAction = NULL, $filterStatement = NULL) { + $this->orderAction = $orderAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performOrderActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performOrderActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrder", FALSE)) { +/** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("updateOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrders", FALSE)) { +/** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("updateOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveOrders", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApproveOrders extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ApproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line + * items within the order. If there are reservable line items that have not + * been reserved the operation will not succeed. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ArchiveOrders", FALSE)) { +/** + * The action used for archiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteOrders", FALSE)) { +/** + * The action used for deleting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeleteOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrders", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DisapproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ResumeAndOverbookOrders", FALSE)) { +/** + * The action used for resuming and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApproveAndOverbookOrders", FALSE)) { +/** + * The action used for approving and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveAndOverbookOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class OrderService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", + "ApproveOrders" => "ApproveOrders", + "OrderAction" => "OrderAction", + "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", + "ArchiveOrders" => "ArchiveOrders", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "Order" => "Order", + "OrderError" => "OrderError", + "OrderPage" => "OrderPage", + "ParseError" => "ParseError", + "PauseOrders" => "PauseOrders", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "OrderStatus" => "OrderStatus", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createOrder" => "createOrder", + "createOrderResponse" => "createOrderResponse", + "createOrders" => "createOrders", + "createOrdersResponse" => "createOrdersResponse", + "getOrder" => "getOrder", + "getOrderResponse" => "getOrderResponse", + "getOrdersByStatement" => "getOrdersByStatement", + "getOrdersByStatementResponse" => "getOrdersByStatementResponse", + "performOrderAction" => "performOrderAction", + "performOrderActionResponse" => "performOrderActionResponse", + "updateOrder" => "updateOrder", + "updateOrderResponse" => "updateOrderResponse", + "updateOrders" => "updateOrders", + "updateOrdersResponse" => "updateOrdersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/OrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = OrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'OrderService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + */ + public function createOrder($order) { + $arg = new createOrder($order); + $result = $this->__soapCall("createOrder", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + */ + public function createOrders($orders) { + $arg = new createOrders($orders); + $result = $this->__soapCall("createOrders", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + */ + public function getOrder($orderId) { + $arg = new getOrder($orderId); + $result = $this->__soapCall("getOrder", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + */ + public function getOrdersByStatement($filterStatement) { + $arg = new getOrdersByStatement($filterStatement); + $result = $this->__soapCall("getOrdersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + */ + public function performOrderAction($orderAction, $filterStatement) { + $arg = new performOrderAction($orderAction, $filterStatement); + $result = $this->__soapCall("performOrderAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + */ + public function updateOrder($order) { + $arg = new updateOrder($order); + $result = $this->__soapCall("updateOrder", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + */ + public function updateOrders($orders) { + $arg = new updateOrders($orders); + $result = $this->__soapCall("updateOrders", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/PlacementService.php b/src/Google/Api/Ads/Dfp/v201308/PlacementService.php new file mode 100755 index 000000000..0ec929ecd --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/PlacementService.php @@ -0,0 +1,3625 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementAction { + /** + * @access public + * @var string + */ + public $PlacementActionType; + + private $_parameterMap = array ( + "PlacementAction.Type" => "PlacementActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAction"; + } + + public function __construct($PlacementActionType = NULL) { + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PlacementPage", FALSE)) { +/** + * Captures a page of {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Placement[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("SiteTargetingInfo", FALSE)) { +/** + * Contains information required for AdWords advertisers to place their ads. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SiteTargetingInfo { + /** + * @access public + * @var string + */ + public $targetingDescription; + + /** + * @access public + * @var string + */ + public $targetingSiteName; + + /** + * @access public + * @var string + */ + public $targetingAdLocation; + + /** + * @access public + * @var string + */ + public $SiteTargetingInfoType; + + private $_parameterMap = array ( + "SiteTargetingInfo.Type" => "SiteTargetingInfoType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteTargetingInfo"; + } + + public function __construct($targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createPlacement", FALSE)) { +/** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createPlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("createPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createPlacements", FALSE)) { +/** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createPlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("createPlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createPlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacement", FALSE)) { +/** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getPlacement { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementId = NULL) { + $this->placementId = $placementId; + } +}} + +if (!class_exists("getPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacementsByStatement", FALSE)) { +/** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getPlacementsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getPlacementsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getPlacementsByStatementResponse { + /** + * @access public + * @var PlacementPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performPlacementAction", FALSE)) { +/** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performPlacementAction { + /** + * @access public + * @var PlacementAction + */ + public $placementAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementAction = NULL, $filterStatement = NULL) { + $this->placementAction = $placementAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performPlacementActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performPlacementActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacement", FALSE)) { +/** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updatePlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("updatePlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updatePlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacements", FALSE)) { +/** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updatePlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("updatePlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updatePlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivatePlacements", FALSE)) { +/** + * The action used for activating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchivePlacements", FALSE)) { +/** + * The action used for archiving {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchivePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchivePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A {@code Placement} groups related {@code AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Placement extends SiteTargetingInfo { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $placementCode; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isAdSenseTargetingEnabled; + + /** + * @access public + * @var boolean + */ + public $isAdPlannerTargetingEnabled; + + /** + * @access public + * @var string + */ + public $adSenseTargetingLocale; + + /** + * @access public + * @var string[] + */ + public $targetedAdUnitIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $placementCode = NULL, $status = NULL, $isAdSenseTargetingEnabled = NULL, $isAdPlannerTargetingEnabled = NULL, $adSenseTargetingLocale = NULL, $targetedAdUnitIds = NULL, $lastModifiedDateTime = NULL, $targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->placementCode = $placementCode; + $this->status = $status; + $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; + $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; + $this->adSenseTargetingLocale = $adSenseTargetingLocale; + $this->targetedAdUnitIds = $targetedAdUnitIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PlacementService", FALSE)) { +/** + * PlacementService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class PlacementService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivatePlacements" => "ActivatePlacements", + "PlacementAction" => "PlacementAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchivePlacements" => "ArchivePlacements", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivatePlacements" => "DeactivatePlacements", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "Placement" => "Placement", + "SiteTargetingInfo" => "SiteTargetingInfo", + "PlacementError" => "PlacementError", + "PlacementPage" => "PlacementPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryStatus" => "InventoryStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createPlacement" => "createPlacement", + "createPlacementResponse" => "createPlacementResponse", + "createPlacements" => "createPlacements", + "createPlacementsResponse" => "createPlacementsResponse", + "getPlacement" => "getPlacement", + "getPlacementResponse" => "getPlacementResponse", + "getPlacementsByStatement" => "getPlacementsByStatement", + "getPlacementsByStatementResponse" => "getPlacementsByStatementResponse", + "performPlacementAction" => "performPlacementAction", + "performPlacementActionResponse" => "performPlacementActionResponse", + "updatePlacement" => "updatePlacement", + "updatePlacementResponse" => "updatePlacementResponse", + "updatePlacements" => "updatePlacements", + "updatePlacementsResponse" => "updatePlacementsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/PlacementService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PlacementService::$classmap; + parent::__construct($wsdl, $options, $user, 'PlacementService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + */ + public function createPlacement($placement) { + $arg = new createPlacement($placement); + $result = $this->__soapCall("createPlacement", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + */ + public function createPlacements($placements) { + $arg = new createPlacements($placements); + $result = $this->__soapCall("createPlacements", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + */ + public function getPlacement($placementId) { + $arg = new getPlacement($placementId); + $result = $this->__soapCall("getPlacement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + */ + public function getPlacementsByStatement($filterStatement) { + $arg = new getPlacementsByStatement($filterStatement); + $result = $this->__soapCall("getPlacementsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + */ + public function performPlacementAction($placementAction, $filterStatement) { + $arg = new performPlacementAction($placementAction, $filterStatement); + $result = $this->__soapCall("performPlacementAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + */ + public function updatePlacement($placement) { + $arg = new updatePlacement($placement); + $result = $this->__soapCall("updatePlacement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + */ + public function updatePlacements($placements) { + $arg = new updatePlacements($placements); + $result = $this->__soapCall("updatePlacements", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ProductService.php b/src/Google/Api/Ads/Dfp/v201308/ProductService.php new file mode 100755 index 000000000..c4eff68f0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ProductService.php @@ -0,0 +1,5429 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ProductAction", FALSE)) { +/** + * Represents the actions that can be performed on products. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductAction { + /** + * @access public + * @var string + */ + public $ProductActionType; + + private $_parameterMap = array ( + "ProductAction.Type" => "ProductActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAction"; + } + + public function __construct($ProductActionType = NULL) { + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("ProductActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action on {@link Product} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductActionError extends ApiError { + /** + * @access public + * @var tnsProductActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductActionError"; + } + + 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("Product", FALSE)) { +/** + * {@link ProposalLineItem Proposal line items} are created from products, + * from which their properties are copied. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Product { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsProductStatus + */ + public $status; + + /** + * @access public + * @var tnsProductType + */ + public $productType; + + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var string + */ + public $productTemplateDescription; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var boolean + */ + public $allowFrequencyCapsCustomization; + + /** + * @access public + * @var ProductTemplateTargeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($name = NULL, $status = NULL, $productType = NULL, $productTemplateId = NULL, $id = NULL, $notes = NULL, $productTemplateDescription = NULL, $lastModifiedDateTime = NULL, $rateType = NULL, $roadblockingType = NULL, $creativePlaceholders = NULL, $lineItemType = NULL, $priority = NULL, $frequencyCaps = NULL, $allowFrequencyCapsCustomization = NULL, $targeting = NULL, $customFieldValues = NULL) { + $this->name = $name; + $this->status = $status; + $this->productType = $productType; + $this->productTemplateId = $productTemplateId; + $this->id = $id; + $this->notes = $notes; + $this->productTemplateDescription = $productTemplateDescription; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->rateType = $rateType; + $this->roadblockingType = $roadblockingType; + $this->creativePlaceholders = $creativePlaceholders; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->frequencyCaps = $frequencyCaps; + $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProductPage", FALSE)) { +/** + * Captures a page of {@link ProductDto} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Product[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ProductTemplateTargeting", FALSE)) { +/** + * Contains targeting criteria for {@link ProductTemplate} objects. + * {@link ProposalLineItem Proposal line items} created from {@link Product products} + * of this template will have this criteria added to {@link ProposalLineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateTargeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var boolean + */ + public $allowGeoTargetingCustomization; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowAdUnitTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $allowPlacementTargetingCustomization; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var boolean + */ + public $allowUserDomainTargetingCustomization; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBandwidthGroupTargetingCustomization; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserTargetingCustomization; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserLanguageTargetingCustomization; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var boolean + */ + public $allowOperatingSystemTargetingCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateTargeting"; + } + + public function __construct($geoTargeting = NULL, $allowGeoTargetingCustomization = NULL, $inventoryTargeting = NULL, $allowAdUnitTargetingCustomization = NULL, $allowPlacementTargetingCustomization = NULL, $customizableCustomTargetingKeyIds = NULL, $userDomainTargeting = NULL, $allowUserDomainTargetingCustomization = NULL, $bandwidthGroupTargeting = NULL, $allowBandwidthGroupTargetingCustomization = NULL, $browserTargeting = NULL, $allowBrowserTargetingCustomization = NULL, $browserLanguageTargeting = NULL, $allowBrowserLanguageTargetingCustomization = NULL, $operatingSystemTargeting = NULL, $allowOperatingSystemTargetingCustomization = NULL) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->userDomainTargeting = $userDomainTargeting; + $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; + $this->browserTargeting = $browserTargeting; + $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductStatus", FALSE)) { +/** + * Describes the different statuses for {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductType", FALSE)) { +/** + * Describes the type of {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("getProduct", FALSE)) { +/** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProduct { + /** + * @access public + * @var string + */ + public $productId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productId = NULL) { + $this->productId = $productId; + } +}} + +if (!class_exists("getProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProductResponse { + /** + * @access public + * @var Product + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductsByStatement", FALSE)) { +/** + * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by + * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject PropertyFilterableSortable
      {@code rateCardId}Rate card ID which the product is associated withYesNo
      {@code status}{@link Product#status}YesYes
      {@code lineItemType}{@link Product#lineItemType}YesYes
      {@code productType}{@link Product#productType}YesYes
      {@code rateType}{@link Product#rateType}YesYes
      {@code productTemplateId}{@link Product#productTemplateId}YesNo
      {@code name}{@link Product#name}YesYes
      {@code description}{@link Product#description}YesNo
      {@code id}{@link Product#id}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @param statement a Publisher Query Language statement which specifies the filtering + * criteria over products + * @return the products that match the given statement + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProductsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getProductsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProductsByStatementResponse { + /** + * @access public + * @var ProductPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProductAction", FALSE)) { +/** + * Performs action on {@link Product} objects that satisfy the given {@link Statement}. + * + * @param productAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of products. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performProductAction { + /** + * @access public + * @var ProductAction + */ + public $productAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productAction = NULL, $filterStatement = NULL) { + $this->productAction = $productAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProductActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performProductActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProduct", FALSE)) { +/** + * Updates the specified {@link Product}. + * Note non-updatable fields will not be backfilled. + * + * @param product the product to update + * @return the updated product + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProduct { + /** + * @access public + * @var Product + */ + public $product; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($product = NULL) { + $this->product = $product; + } +}} + +if (!class_exists("updateProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProductResponse { + /** + * @access public + * @var Product + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProducts", FALSE)) { +/** + * Updates the specified {@link Product} objects. + * Note non-updatable fields will not be backfilled. + * + * @param products the products to update + * @return the updated products + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProducts { + /** + * @access public + * @var Product[] + */ + public $products; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($products = NULL) { + $this->products = $products; + } +}} + +if (!class_exists("updateProductsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProductsResponse { + /** + * @access public + * @var Product[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateProducts", FALSE)) { +/** + * The action used to activate products. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProducts", FALSE)) { +/** + * The action used to archive products. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchiveProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateProducts", FALSE)) { +/** + * The action used to deactivate products. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProductService", FALSE)) { +/** + * ProductService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ProductService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateProducts" => "ActivateProducts", + "ProductAction" => "ProductAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProducts" => "ArchiveProducts", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProducts" => "DeactivateProducts", + "DeviceCapability" => "DeviceCapability", + "DeviceCategory" => "DeviceCategory", + "DeviceManufacturer" => "DeviceManufacturer", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "ProductActionError" => "ProductActionError", + "Product" => "Product", + "ProductError" => "ProductError", + "ProductPage" => "ProductPage", + "ProductTemplateTargeting" => "ProductTemplateTargeting", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeSizeType" => "CreativeSizeType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductActionError.Reason" => "ProductActionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProductStatus" => "ProductStatus", + "ProductType" => "ProductType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TimeUnit" => "TimeUnit", + "getProduct" => "getProduct", + "getProductResponse" => "getProductResponse", + "getProductsByStatement" => "getProductsByStatement", + "getProductsByStatementResponse" => "getProductsByStatementResponse", + "performProductAction" => "performProductAction", + "performProductActionResponse" => "performProductActionResponse", + "updateProduct" => "updateProduct", + "updateProductResponse" => "updateProductResponse", + "updateProducts" => "updateProducts", + "updateProductsResponse" => "updateProductsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ProductService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProductService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProductService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + */ + public function getProduct($productId) { + $arg = new getProduct($productId); + $result = $this->__soapCall("getProduct", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by + * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject PropertyFilterableSortable
      {@code rateCardId}Rate card ID which the product is associated withYesNo
      {@code status}{@link Product#status}YesYes
      {@code lineItemType}{@link Product#lineItemType}YesYes
      {@code productType}{@link Product#productType}YesYes
      {@code rateType}{@link Product#rateType}YesYes
      {@code productTemplateId}{@link Product#productTemplateId}YesNo
      {@code name}{@link Product#name}YesYes
      {@code description}{@link Product#description}YesNo
      {@code id}{@link Product#id}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @param statement a Publisher Query Language statement which specifies the filtering + * criteria over products + * @return the products that match the given statement + */ + public function getProductsByStatement($statement) { + $arg = new getProductsByStatement($statement); + $result = $this->__soapCall("getProductsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link Product} objects that satisfy the given {@link Statement}. + * + * @param productAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of products. + * @return the result of the action performed + */ + public function performProductAction($productAction, $filterStatement) { + $arg = new performProductAction($productAction, $filterStatement); + $result = $this->__soapCall("performProductAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Product}. + * Note non-updatable fields will not be backfilled. + * + * @param product the product to update + * @return the updated product + */ + public function updateProduct($product) { + $arg = new updateProduct($product); + $result = $this->__soapCall("updateProduct", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Product} objects. + * Note non-updatable fields will not be backfilled. + * + * @param products the products to update + * @return the updated products + */ + public function updateProducts($products) { + $arg = new updateProducts($products); + $result = $this->__soapCall("updateProducts", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php new file mode 100755 index 000000000..d49a44f98 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php @@ -0,0 +1,6136 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementTargeting", FALSE)) { +/** + * Specifies what {@link Placement placements} are targeted. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTargeting"; + } + + public function __construct($targetedPlacementIds = NULL) { + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("ProductTemplateAction", FALSE)) { +/** + * Represents the actions that can be performed on product templates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateAction { + /** + * @access public + * @var string + */ + public $ProductTemplateActionType; + + private $_parameterMap = array ( + "ProductTemplateAction.Type" => "ProductTemplateActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateAction"; + } + + public function __construct($ProductTemplateActionType = NULL) { + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("ProductTemplateActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action on + * {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateActionError extends ApiError { + /** + * @access public + * @var tnsProductTemplateActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateActionError"; + } + + 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("ProductTemplate", FALSE)) { +/** + * {@code ProductTemplate} is used to generate products. All generated products will + * inherit all attributes from their {@code ProductTemplate}, except for segmentation, + * which will be included in the {@link Product#targeting}. The generated products in turn will be + * used to create {@link ProposalLineItem proposal line items} so that almost all attributes + * in the product template are properties of the proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $nameMacro; + + /** + * @access public + * @var tnsProductTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsProductType + */ + public $productType; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var boolean + */ + public $allowFrequencyCapsCustomization; + + /** + * @access public + * @var ProductSegmentation + */ + public $productSegmentation; + + /** + * @access public + * @var ProductTemplateTargeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $creationDateTime = NULL, $lastModifiedDateTime = NULL, $description = NULL, $nameMacro = NULL, $status = NULL, $productType = NULL, $creatorId = NULL, $rateType = NULL, $roadblockingType = NULL, $creativePlaceholders = NULL, $lineItemType = NULL, $priority = NULL, $frequencyCaps = NULL, $allowFrequencyCapsCustomization = NULL, $productSegmentation = NULL, $targeting = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->creationDateTime = $creationDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->description = $description; + $this->nameMacro = $nameMacro; + $this->status = $status; + $this->productType = $productType; + $this->creatorId = $creatorId; + $this->rateType = $rateType; + $this->roadblockingType = $roadblockingType; + $this->creativePlaceholders = $creativePlaceholders; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->frequencyCaps = $frequencyCaps; + $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; + $this->productSegmentation = $productSegmentation; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("ProductTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with ProductTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateError extends ApiError { + /** + * @access public + * @var tnsProductTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateError"; + } + + 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("ProductTemplatePage", FALSE)) { +/** + * Captures a page of {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ProductTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ProductSegmentation", FALSE)) { +/** + * Segmentations used to create products. Within a product template, for each segmentation, + * a product will be created for the combination of all other segments within other segmentations. + *

      + * For example, a product with 3 segmentations with only 1 segment for each will produce + * {@code 1 x 1 x 1 = 1} product. + * A product with 3 segmentations with 2 segments for each will produce {@code 2 x 2 x 2 = 8} + * products. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductSegmentation { + /** + * @access public + * @var GeoTargeting + */ + public $geoSegment; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $adUnitSegments; + + /** + * @access public + * @var PlacementTargeting + */ + public $placementSegment; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainSegment; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthSegment; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserSegment; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageSegment; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemSegment; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductSegmentation"; + } + + public function __construct($geoSegment = NULL, $adUnitSegments = NULL, $placementSegment = NULL, $userDomainSegment = NULL, $bandwidthSegment = NULL, $browserSegment = NULL, $browserLanguageSegment = NULL, $operatingSystemSegment = NULL) { + $this->geoSegment = $geoSegment; + $this->adUnitSegments = $adUnitSegments; + $this->placementSegment = $placementSegment; + $this->userDomainSegment = $userDomainSegment; + $this->bandwidthSegment = $bandwidthSegment; + $this->browserSegment = $browserSegment; + $this->browserLanguageSegment = $browserLanguageSegment; + $this->operatingSystemSegment = $operatingSystemSegment; + } +}} + +if (!class_exists("ProductTemplateTargeting", FALSE)) { +/** + * Contains targeting criteria for {@link ProductTemplate} objects. + * {@link ProposalLineItem Proposal line items} created from {@link Product products} + * of this template will have this criteria added to {@link ProposalLineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateTargeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var boolean + */ + public $allowGeoTargetingCustomization; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowAdUnitTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $allowPlacementTargetingCustomization; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var boolean + */ + public $allowUserDomainTargetingCustomization; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBandwidthGroupTargetingCustomization; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserTargetingCustomization; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserLanguageTargetingCustomization; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var boolean + */ + public $allowOperatingSystemTargetingCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateTargeting"; + } + + public function __construct($geoTargeting = NULL, $allowGeoTargetingCustomization = NULL, $inventoryTargeting = NULL, $allowAdUnitTargetingCustomization = NULL, $allowPlacementTargetingCustomization = NULL, $customizableCustomTargetingKeyIds = NULL, $userDomainTargeting = NULL, $allowUserDomainTargetingCustomization = NULL, $bandwidthGroupTargeting = NULL, $allowBandwidthGroupTargetingCustomization = NULL, $browserTargeting = NULL, $allowBrowserTargetingCustomization = NULL, $browserLanguageTargeting = NULL, $allowBrowserLanguageTargetingCustomization = NULL, $operatingSystemTargeting = NULL, $allowOperatingSystemTargetingCustomization = NULL) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->userDomainTargeting = $userDomainTargeting; + $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; + $this->browserTargeting = $browserTargeting; + $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateStatus", FALSE)) { +/** + * Describes the different statuses for ProductTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductType", FALSE)) { +/** + * Describes the type of {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProductTemplate", FALSE)) { +/** + * Creates a new {@link ProductTemplate}. + * + * The following fields are required: + *
        + *
      • {@link ProductTemplate#name}
      • + *
      • {@link ProductTemplate#nameMacro}
      • + *
      • {@link ProductTemplate#productType}
      • + *
      • {@link ProductTemplate#rateType}
      • + *
      • {@link ProductTemplate#creativePlaceholders} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#lineItemType} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is + * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} + * is not specified)
      • + *
      + * + * @param productTemplate the product template to create + * @return the persisted product template with tis ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProductTemplate { + /** + * @access public + * @var ProductTemplate + */ + public $productTemplate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplate = NULL) { + $this->productTemplate = $productTemplate; + } +}} + +if (!class_exists("createProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProductTemplates", FALSE)) { +/** + * Creates new {@link ProductTemplate} objects. + * + * @param productTemplates the productTemplates to create + * @return the persisted product templates with their Ids filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProductTemplates { + /** + * @access public + * @var ProductTemplate[] + */ + public $productTemplates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplates = NULL) { + $this->productTemplates = $productTemplates; + } +}} + +if (!class_exists("createProductTemplatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProductTemplatesResponse { + /** + * @access public + * @var ProductTemplate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductTemplate", FALSE)) { +/** + * Returns the {@link ProductTemplate} uniquely identified by the given ID. + * + * @param productTemplateId the ID of the product template, which must already + * exist + * @return the {@code ProductTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProductTemplate { + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplateId = NULL) { + $this->productTemplateId = $productTemplateId; + } +}} + +if (!class_exists("getProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductTemplatesByStatement", FALSE)) { +/** + * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProductTemplate#id}
      {@code name}{@link ProductTemplate#name}
      {@code nameMacro}{@link ProductTemplate#nameMacro}
      {@code description}{@link ProductTemplate#description}
      {@code status}{@link ProductTemplate#status}
      {@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
      {@code lineItemType}{@link LineItemType}
      {@code productType}{@link ProductType}
      {@code rateType}{@link RateType}
      + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over productTemplates + * @return the productTemplates that match the given statement + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProductTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getProductTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProductTemplatesByStatementResponse { + /** + * @access public + * @var ProductTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProductTemplateAction", FALSE)) { +/** + * Performs action on {@link ProductTemplate} objects that satisfy the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of product templates + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performProductTemplateAction { + /** + * @access public + * @var ProductTemplateAction + */ + public $action; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($action = NULL, $filterStatement = NULL) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProductTemplateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performProductTemplateActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProductTemplate", FALSE)) { +/** + * Updates the specified {@link ProductTemplate}. + * + * @param productTemplate the product template to update + * @return the updated product template + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProductTemplate { + /** + * @access public + * @var ProductTemplate + */ + public $productTemplate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplate = NULL) { + $this->productTemplate = $productTemplate; + } +}} + +if (!class_exists("updateProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProductTemplates", FALSE)) { +/** + * Updates the specified {@link ProductTemplate} objects. + * + * @param productTemplates the product templates to update + * @return the updated product templates + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProductTemplates { + /** + * @access public + * @var ProductTemplate[] + */ + public $productTemplates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplates = NULL) { + $this->productTemplates = $productTemplates; + } +}} + +if (!class_exists("updateProductTemplatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProductTemplatesResponse { + /** + * @access public + * @var ProductTemplate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateProductTemplates", FALSE)) { +/** + * The action used for activating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateProductTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateProductTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProducTemplates", FALSE)) { +/** + * The action used for archiving product template. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchiveProducTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProducTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateProductTemplates", FALSE)) { +/** + * The action used for deactivating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateProductTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateProductTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProductTemplateService", FALSE)) { +/** + * ProductTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ProductTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateProductTemplates" => "ActivateProductTemplates", + "ProductTemplateAction" => "ProductTemplateAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProducTemplates" => "ArchiveProducTemplates", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProductTemplates" => "DeactivateProductTemplates", + "DeviceCapability" => "DeviceCapability", + "DeviceCategory" => "DeviceCategory", + "DeviceManufacturer" => "DeviceManufacturer", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "PermissionError" => "PermissionError", + "PlacementTargeting" => "PlacementTargeting", + "PostalCodeLocation" => "PostalCodeLocation", + "ProductTemplateActionError" => "ProductTemplateActionError", + "ProductTemplate" => "ProductTemplate", + "ProductTemplateError" => "ProductTemplateError", + "ProductTemplatePage" => "ProductTemplatePage", + "ProductSegmentation" => "ProductSegmentation", + "ProductTemplateTargeting" => "ProductTemplateTargeting", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeSizeType" => "CreativeSizeType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductTemplateActionError.Reason" => "ProductTemplateActionErrorReason", + "ProductTemplateError.Reason" => "ProductTemplateErrorReason", + "ProductTemplateStatus" => "ProductTemplateStatus", + "ProductType" => "ProductType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TimeUnit" => "TimeUnit", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "createProductTemplate" => "createProductTemplate", + "createProductTemplateResponse" => "createProductTemplateResponse", + "createProductTemplates" => "createProductTemplates", + "createProductTemplatesResponse" => "createProductTemplatesResponse", + "getProductTemplate" => "getProductTemplate", + "getProductTemplateResponse" => "getProductTemplateResponse", + "getProductTemplatesByStatement" => "getProductTemplatesByStatement", + "getProductTemplatesByStatementResponse" => "getProductTemplatesByStatementResponse", + "performProductTemplateAction" => "performProductTemplateAction", + "performProductTemplateActionResponse" => "performProductTemplateActionResponse", + "updateProductTemplate" => "updateProductTemplate", + "updateProductTemplateResponse" => "updateProductTemplateResponse", + "updateProductTemplates" => "updateProductTemplates", + "updateProductTemplatesResponse" => "updateProductTemplatesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ProductTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProductTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProductTemplateService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link ProductTemplate}. + * + * The following fields are required: + *
        + *
      • {@link ProductTemplate#name}
      • + *
      • {@link ProductTemplate#nameMacro}
      • + *
      • {@link ProductTemplate#productType}
      • + *
      • {@link ProductTemplate#rateType}
      • + *
      • {@link ProductTemplate#creativePlaceholders} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#lineItemType} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is + * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} + * is not specified)
      • + *
      + * + * @param productTemplate the product template to create + * @return the persisted product template with tis ID filled in + */ + public function createProductTemplate($productTemplate) { + $arg = new createProductTemplate($productTemplate); + $result = $this->__soapCall("createProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ProductTemplate} objects. + * + * @param productTemplates the productTemplates to create + * @return the persisted product templates with their Ids filled in + */ + public function createProductTemplates($productTemplates) { + $arg = new createProductTemplates($productTemplates); + $result = $this->__soapCall("createProductTemplates", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ProductTemplate} uniquely identified by the given ID. + * + * @param productTemplateId the ID of the product template, which must already + * exist + * @return the {@code ProductTemplate} uniquely identified by the given ID + */ + public function getProductTemplate($productTemplateId) { + $arg = new getProductTemplate($productTemplateId); + $result = $this->__soapCall("getProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProductTemplate#id}
      {@code name}{@link ProductTemplate#name}
      {@code nameMacro}{@link ProductTemplate#nameMacro}
      {@code description}{@link ProductTemplate#description}
      {@code status}{@link ProductTemplate#status}
      {@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
      {@code lineItemType}{@link LineItemType}
      {@code productType}{@link ProductType}
      {@code rateType}{@link RateType}
      + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over productTemplates + * @return the productTemplates that match the given statement + */ + public function getProductTemplatesByStatement($statement) { + $arg = new getProductTemplatesByStatement($statement); + $result = $this->__soapCall("getProductTemplatesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link ProductTemplate} objects that satisfy the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of product templates + * @return the result of the action performed + */ + public function performProductTemplateAction($action, $filterStatement) { + $arg = new performProductTemplateAction($action, $filterStatement); + $result = $this->__soapCall("performProductTemplateAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProductTemplate}. + * + * @param productTemplate the product template to update + * @return the updated product template + */ + public function updateProductTemplate($productTemplate) { + $arg = new updateProductTemplate($productTemplate); + $result = $this->__soapCall("updateProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProductTemplate} objects. + * + * @param productTemplates the product templates to update + * @return the updated product templates + */ + public function updateProductTemplates($productTemplates) { + $arg = new updateProductTemplates($productTemplates); + $result = $this->__soapCall("updateProductTemplates", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php new file mode 100755 index 000000000..a8e003a1f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php @@ -0,0 +1,7985 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BillingError", FALSE)) { +/** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingError extends ApiError { + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $LocationType = NULL) { + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MetroLocation", FALSE)) { +/** + * Represents a metropolitan area for geographical targeting. Currently, + * metropolitan areas only within the United States can be targeted. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MetroLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $metroCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MetroLocation"; + } + + public function __construct($metroCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->metroCode = $metroCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PostalCodeLocation", FALSE)) { +/** + * Represents a postal code for geographical targeting. On input, + * {@link Location} should be used instead and the {@link Location#id} field + * should be set. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PostalCodeLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $postalCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PostalCodeLocation"; + } + + public function __construct($postalCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->postalCode = $postalCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("PrecisionError", FALSE)) { +/** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PrecisionError extends ApiError { + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalError extends ApiError { + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError"; + } + + 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("ProposalLineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemAction { + /** + * @access public + * @var string + */ + public $ProposalLineItemActionType; + + private $_parameterMap = array ( + "ProposalLineItemAction.Type" => "ProposalLineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemAction"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("ProposalLineItemActionError", FALSE)) { +/** + * Lists all errors for executing operations on proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemActionError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemActionError"; + } + + 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("ProposalLineItem", FALSE)) { +/** + * A {@code ProposalLineItem} is an instance of sales {@link Product}. It belongs to + * a {@link Proposal} and is created according to a {@link Product} and + * {@link RateCard}. When the proposal is turned into an {@link Order}, this object is + * turned into a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItem { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var string + */ + public $productId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsCostAdjustment + */ + public $costAdjustment; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var integer + */ + public $unitsBoughtBuffer; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $lineItemPriority; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var ProposalLineItemPremium[] + */ + public $premiums; + + /** + * @access public + * @var Money + */ + public $baseRate; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var tnsComputedStatus + */ + public $computedStatus; + + /** + * @access public + * @var tnsBillingCap + */ + public $billingCap; + + /** + * @access public + * @var tnsBillingSchedule + */ + public $billingSchedule; + + /** + * @access public + * @var tnsBillingSource + */ + public $billingSource; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItem"; + } + + public function __construct($id = NULL, $proposalId = NULL, $rateCardId = NULL, $productId = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $notes = NULL, $costAdjustment = NULL, $isArchived = NULL, $unitsBought = NULL, $unitsBoughtBuffer = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $companionDeliveryOption = NULL, $creativeRotationType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $lineItemPriority = NULL, $costType = NULL, $creativePlaceholders = NULL, $targeting = NULL, $customFieldValues = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $premiums = NULL, $baseRate = NULL, $costPerUnit = NULL, $cost = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $computedStatus = NULL, $billingCap = NULL, $billingSchedule = NULL, $billingSource = NULL) { + $this->id = $id; + $this->proposalId = $proposalId; + $this->rateCardId = $rateCardId; + $this->productId = $productId; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->notes = $notes; + $this->costAdjustment = $costAdjustment; + $this->isArchived = $isArchived; + $this->unitsBought = $unitsBought; + $this->unitsBoughtBuffer = $unitsBoughtBuffer; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativeRotationType = $creativeRotationType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->lineItemPriority = $lineItemPriority; + $this->costType = $costType; + $this->creativePlaceholders = $creativePlaceholders; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->premiums = $premiums; + $this->baseRate = $baseRate; + $this->costPerUnit = $costPerUnit; + $this->cost = $cost; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->computedStatus = $computedStatus; + $this->billingCap = $billingCap; + $this->billingSchedule = $billingSchedule; + $this->billingSource = $billingSource; + } +}} + +if (!class_exists("ProposalLineItemError", FALSE)) { +/** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError"; + } + + 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("ProposalLineItemPage", FALSE)) { +/** + * Captures a page of {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemPage { + /** + * @access public + * @var ProposalLineItem[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ProposalLineItemPremium", FALSE)) { +/** + * Represents the status of triggered {@link RateCardCustomization} premiums. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemPremium { + /** + * @access public + * @var integer + */ + public $rateCardCustomizationId; + + /** + * @access public + * @var tnsProposalLineItemPremiumStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPremium"; + } + + public function __construct($rateCardCustomizationId = NULL, $status = NULL) { + $this->rateCardCustomizationId = $rateCardCustomizationId; + $this->status = $status; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegionLocation", FALSE)) { +/** + * Represents a principal subdivision (eg. province or state) of a country for + * geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegionLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegionLocation"; + } + + public function __construct($regionCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->regionCode = $regionCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("UnarchiveProposalLineItems", FALSE)) { +/** + * The action used for unarchiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnarchiveProposalLineItems extends ProposalLineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveProposalLineItems"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + parent::__construct(); + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingCap", FALSE)) { +/** + * Determines how the revenue amount will be capped for each billing month. This cannot be used when + * {@link BillingSource} is {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingCap { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingCap"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSchedule", FALSE)) { +/** + * Determines how much to bill in each billing cycle when a proposal is charged based on the + * contracted value. This can only be used when {@link BillingSource} is + * {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingSchedule { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSchedule"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSource", FALSE)) { +/** + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostAdjustment", FALSE)) { +/** + * Describes the cost adjustment of {@link ProposalLineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CostAdjustment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostAdjustment"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PrecisionErrorReason", FALSE)) { +/** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PrecisionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemPremiumStatus", FALSE)) { +/** + * Status of the premium triggered by a proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemPremiumStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPremiumStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProposalLineItem", FALSE)) { +/** + * Creates a new {@link ProposalLineItem}. + * + * The following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItem the proposal line item to create + * @return the created proposal line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProposalLineItem { + /** + * @access public + * @var ProposalLineItem + */ + public $proposalLineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItem = NULL) { + $this->proposalLineItem = $proposalLineItem; + } +}} + +if (!class_exists("createProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProposalLineItems", FALSE)) { +/** + * Creates new {@link ProposalLineItem} objects. + * + * For each proposal line item, the following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItems the proposal line items to create + * @return the created proposal line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProposalLineItems { + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItems = NULL) { + $this->proposalLineItems = $proposalLineItems; + } +}} + +if (!class_exists("createProposalLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProposalLineItemsResponse { + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalLineItem", FALSE)) { +/** + * Returns the {@link ProposalLineItem} uniquely identified by the given ID. + * + * @param proposalLineItemId the ID of the proposal line item, which must already exist + * @return the proposal line item uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProposalLineItem { + /** + * @access public + * @var integer + */ + public $proposalLineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItemId = NULL) { + $this->proposalLineItemId = $proposalLineItemId; + } +}} + +if (!class_exists("getProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalLineItemsByStatement", FALSE)) { +/** + * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProposalLineItem#id}
      {@code name}{@link ProposalLineItem#name}
      {@code proposalId}{@link ProposalLineItem#proposalId}
      {@code isArchived}{@link ProposalLineItem#isArchived}
      {@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposal line items + * @return the proposal line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProposalLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getProposalLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProposalLineItemsByStatementResponse { + /** + * @access public + * @var ProposalLineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProposalLineItemAction", FALSE)) { +/** + * Performs actions on {@link ProposalLineItem} objects that match + * the given {@link Statement#query}. + * + * @param proposalLineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of + * proposal line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performProposalLineItemAction { + /** + * @access public + * @var ProposalLineItemAction + */ + public $proposalLineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItemAction = NULL, $filterStatement = NULL) { + $this->proposalLineItemAction = $proposalLineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProposalLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performProposalLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposalLineItem", FALSE)) { +/** + * Updates the specified {@link ProposalLineItem}. + * + * @param proposalLineItem the proposal line item to update + * @return the updated proposal line item + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProposalLineItem { + /** + * @access public + * @var ProposalLineItem + */ + public $proposalLineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItem = NULL) { + $this->proposalLineItem = $proposalLineItem; + } +}} + +if (!class_exists("updateProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposalLineItems", FALSE)) { +/** + * Updates the specified {@link ProposalLineItem} objects. + * + * @param proposalLineItems the proposal line items to update + * @return the updated proposal line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProposalLineItems { + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItems = NULL) { + $this->proposalLineItems = $proposalLineItems; + } +}} + +if (!class_exists("updateProposalLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProposalLineItemsResponse { + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProposalLineItems", FALSE)) { +/** + * The action used for archiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchiveProposalLineItems extends ProposalLineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProposalLineItems"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + parent::__construct(); + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CityLocation", FALSE)) { +/** + * Represents a city for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CityLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $cityName; + + /** + * @access public + * @var string + */ + public $regionCode; + + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CityLocation"; + } + + public function __construct($cityName = NULL, $regionCode = NULL, $countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->cityName = $cityName; + $this->regionCode = $regionCode; + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CountryLocation", FALSE)) { +/** + * Represents a country for geographical targeting. + *

      + * Since {@code v201104}, fields of this class are ignored on input. Instead + * {@link Location} should be used and the {@link Location#id} field should be + * set. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CountryLocation extends DfpLocation { + /** + * @access public + * @var string + */ + public $countryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CountryLocation"; + } + + public function __construct($countryCode = NULL, $id = NULL, $LocationType = NULL) { + parent::__construct(); + $this->countryCode = $countryCode; + $this->id = $id; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ProposalLineItemService", FALSE)) { +/** + * ProposalLineItemService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ProposalLineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProposalLineItems" => "ArchiveProposalLineItems", + "ProposalLineItemAction" => "ProposalLineItemAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CityLocation" => "CityLocation", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentTargeting" => "ContentTargeting", + "CountryLocation" => "CountryLocation", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "MetroLocation" => "MetroLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "PermissionError" => "PermissionError", + "PostalCodeLocation" => "PostalCodeLocation", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalError" => "ProposalError", + "ProposalLineItemActionError" => "ProposalLineItemActionError", + "ProposalLineItem" => "ProposalLineItem", + "ProposalLineItemError" => "ProposalLineItemError", + "ProposalLineItemPage" => "ProposalLineItemPage", + "ProposalLineItemPremium" => "ProposalLineItemPremium", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegionLocation" => "RegionLocation", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "UnarchiveProposalLineItems" => "UnarchiveProposalLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillingCap" => "BillingCap", + "BillingError.Reason" => "BillingErrorReason", + "BillingSchedule" => "BillingSchedule", + "BillingSource" => "BillingSource", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "ComputedStatus" => "ComputedStatus", + "CostAdjustment" => "CostAdjustment", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProposalError.Reason" => "ProposalErrorReason", + "ProposalLineItemActionError.Reason" => "ProposalLineItemActionErrorReason", + "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", + "ProposalLineItemPremiumStatus" => "ProposalLineItemPremiumStatus", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createProposalLineItem" => "createProposalLineItem", + "createProposalLineItemResponse" => "createProposalLineItemResponse", + "createProposalLineItems" => "createProposalLineItems", + "createProposalLineItemsResponse" => "createProposalLineItemsResponse", + "getProposalLineItem" => "getProposalLineItem", + "getProposalLineItemResponse" => "getProposalLineItemResponse", + "getProposalLineItemsByStatement" => "getProposalLineItemsByStatement", + "getProposalLineItemsByStatementResponse" => "getProposalLineItemsByStatementResponse", + "performProposalLineItemAction" => "performProposalLineItemAction", + "performProposalLineItemActionResponse" => "performProposalLineItemActionResponse", + "updateProposalLineItem" => "updateProposalLineItem", + "updateProposalLineItemResponse" => "updateProposalLineItemResponse", + "updateProposalLineItems" => "updateProposalLineItems", + "updateProposalLineItemsResponse" => "updateProposalLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ProposalLineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProposalLineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProposalLineItemService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link ProposalLineItem}. + * + * The following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItem the proposal line item to create + * @return the created proposal line item with its ID filled in + */ + public function createProposalLineItem($proposalLineItem) { + $arg = new createProposalLineItem($proposalLineItem); + $result = $this->__soapCall("createProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ProposalLineItem} objects. + * + * For each proposal line item, the following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItems the proposal line items to create + * @return the created proposal line items with their IDs filled in + */ + public function createProposalLineItems($proposalLineItems) { + $arg = new createProposalLineItems($proposalLineItems); + $result = $this->__soapCall("createProposalLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ProposalLineItem} uniquely identified by the given ID. + * + * @param proposalLineItemId the ID of the proposal line item, which must already exist + * @return the proposal line item uniquely identified by the given ID + */ + public function getProposalLineItem($proposalLineItemId) { + $arg = new getProposalLineItem($proposalLineItemId); + $result = $this->__soapCall("getProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProposalLineItem#id}
      {@code name}{@link ProposalLineItem#name}
      {@code proposalId}{@link ProposalLineItem#proposalId}
      {@code isArchived}{@link ProposalLineItem#isArchived}
      {@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposal line items + * @return the proposal line items that match the given filter + */ + public function getProposalLineItemsByStatement($filterStatement) { + $arg = new getProposalLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getProposalLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ProposalLineItem} objects that match + * the given {@link Statement#query}. + * + * @param proposalLineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of + * proposal line items + * @return the result of the action performed + */ + public function performProposalLineItemAction($proposalLineItemAction, $filterStatement) { + $arg = new performProposalLineItemAction($proposalLineItemAction, $filterStatement); + $result = $this->__soapCall("performProposalLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProposalLineItem}. + * + * @param proposalLineItem the proposal line item to update + * @return the updated proposal line item + */ + public function updateProposalLineItem($proposalLineItem) { + $arg = new updateProposalLineItem($proposalLineItem); + $result = $this->__soapCall("updateProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProposalLineItem} objects. + * + * @param proposalLineItems the proposal line items to update + * @return the updated proposal line items + */ + public function updateProposalLineItems($proposalLineItems) { + $arg = new updateProposalLineItems($proposalLineItems); + $result = $this->__soapCall("updateProposalLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ProposalService.php b/src/Google/Api/Ads/Dfp/v201308/ProposalService.php new file mode 100755 index 000000000..6b9a26664 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ProposalService.php @@ -0,0 +1,4935 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BillingError", FALSE)) { +/** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingError extends ApiError { + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PrecisionError", FALSE)) { +/** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PrecisionError extends ApiError { + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProposalAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalAction { + /** + * @access public + * @var string + */ + public $ProposalActionType; + + private $_parameterMap = array ( + "ProposalAction.Type" => "ProposalActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalAction"; + } + + public function __construct($ProposalActionType = NULL) { + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("ProposalActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalActionError extends ApiError { + /** + * @access public + * @var tnsProposalActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalActionError"; + } + + 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("ProposalCompanyAssociation", FALSE)) { +/** + * A {@code ProposalCompanyAssociation} represents a {@link Company} associated with the + * {@link Proposal} and a set of {@link Contact} objects belonging to the company. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalCompanyAssociation { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var tnsProposalCompanyAssociationType + */ + public $type; + + /** + * @access public + * @var integer[] + */ + public $contactIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalCompanyAssociation"; + } + + public function __construct($companyId = NULL, $type = NULL, $contactIds = NULL) { + $this->companyId = $companyId; + $this->type = $type; + $this->contactIds = $contactIds; + } +}} + +if (!class_exists("Proposal", FALSE)) { +/** + * A {@code Proposal} represents an agreement between an interactive + * advertising seller and a buyer that specifies the details of an + * advertising campaign. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Proposal { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var tnsProposalStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var ProposalCompanyAssociation + */ + public $advertiser; + + /** + * @access public + * @var ProposalCompanyAssociation[] + */ + public $agencies; + + /** + * @access public + * @var integer + */ + public $probabilityToClose; + + /** + * @access public + * @var tnsBillingCap + */ + public $billingCap; + + /** + * @access public + * @var tnsBillingSchedule + */ + public $billingSchedule; + + /** + * @access public + * @var tnsBillingSource + */ + public $billingSource; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var SalespersonSplit + */ + public $primarySalesperson; + + /** + * @access public + * @var SalespersonSplit[] + */ + public $secondarySalespeople; + + /** + * @access public + * @var integer[] + */ + public $salesPlannerIds; + + /** + * @access public + * @var integer + */ + public $primaryTraffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $advertiserDiscount; + + /** + * @access public + * @var integer + */ + public $proposalDiscount; + + /** + * @access public + * @var Money + */ + public $additionalAdjustment; + + /** + * @access public + * @var integer + */ + public $exchangeRate; + + /** + * @access public + * @var boolean + */ + public $refreshExchangeRate; + + /** + * @access public + * @var integer + */ + public $agencyCommission; + + /** + * @access public + * @var integer + */ + public $valueAddedTax; + + /** + * @access public + * @var integer[] + */ + public $approvalWorkflowActionIds; + + /** + * @access public + * @var tnsProposalApprovalStatus + */ + public $approvalStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proposal"; + } + + public function __construct($id = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $status = NULL, $isArchived = NULL, $advertiser = NULL, $agencies = NULL, $probabilityToClose = NULL, $billingCap = NULL, $billingSchedule = NULL, $billingSource = NULL, $poNumber = NULL, $notes = NULL, $budget = NULL, $primarySalesperson = NULL, $secondarySalespeople = NULL, $salesPlannerIds = NULL, $primaryTraffickerId = NULL, $secondaryTraffickerIds = NULL, $appliedTeamIds = NULL, $customFieldValues = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $advertiserDiscount = NULL, $proposalDiscount = NULL, $additionalAdjustment = NULL, $exchangeRate = NULL, $refreshExchangeRate = NULL, $agencyCommission = NULL, $valueAddedTax = NULL, $approvalWorkflowActionIds = NULL, $approvalStatus = NULL) { + $this->id = $id; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->advertiser = $advertiser; + $this->agencies = $agencies; + $this->probabilityToClose = $probabilityToClose; + $this->billingCap = $billingCap; + $this->billingSchedule = $billingSchedule; + $this->billingSource = $billingSource; + $this->poNumber = $poNumber; + $this->notes = $notes; + $this->budget = $budget; + $this->primarySalesperson = $primarySalesperson; + $this->secondarySalespeople = $secondarySalespeople; + $this->salesPlannerIds = $salesPlannerIds; + $this->primaryTraffickerId = $primaryTraffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->customFieldValues = $customFieldValues; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->advertiserDiscount = $advertiserDiscount; + $this->proposalDiscount = $proposalDiscount; + $this->additionalAdjustment = $additionalAdjustment; + $this->exchangeRate = $exchangeRate; + $this->refreshExchangeRate = $refreshExchangeRate; + $this->agencyCommission = $agencyCommission; + $this->valueAddedTax = $valueAddedTax; + $this->approvalWorkflowActionIds = $approvalWorkflowActionIds; + $this->approvalStatus = $approvalStatus; + } +}} + +if (!class_exists("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalError extends ApiError { + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError"; + } + + 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("ProposalLineItemError", FALSE)) { +/** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError"; + } + + 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("ProposalPage", FALSE)) { +/** + * Captures a page of {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Proposal[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RejectProposals", FALSE)) { +/** + * The action used for rejecting {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RejectProposals extends ProposalAction { + /** + * @access public + * @var integer[] + */ + public $workflowActionIds; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectProposals"; + } + + public function __construct($workflowActionIds = NULL, $comment = NULL, $ProposalActionType = NULL) { + parent::__construct(); + $this->workflowActionIds = $workflowActionIds; + $this->comment = $comment; + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RetractProposals", FALSE)) { +/** + * The action used for retracting {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RetractProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("SalespersonSplit", FALSE)) { +/** + * A {@code SalespersonSplit} represents a salesperson and his/her split. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SalespersonSplit { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * @access public + * @var integer + */ + public $split; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SalespersonSplit"; + } + + public function __construct($userId = NULL, $split = NULL) { + $this->userId = $userId; + $this->split = $split; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitProposalsForApproval", FALSE)) { +/** + * The action used for submitting {@link Proposal} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SubmitProposalsForApproval extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitProposalsForApproval"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveProposals", FALSE)) { +/** + * The action used for unarchiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnarchiveProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowActionError", FALSE)) { +/** + * Lists all errors associated with performing actions within {@link WorkflowAction}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class WorkflowActionError extends ApiError { + /** + * @access public + * @var tnsWorkflowActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingCap", FALSE)) { +/** + * Determines how the revenue amount will be capped for each billing month. This cannot be used when + * {@link BillingSource} is {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingCap { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingCap"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSchedule", FALSE)) { +/** + * Determines how much to bill in each billing cycle when a proposal is charged based on the + * contracted value. This can only be used when {@link BillingSource} is + * {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingSchedule { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSchedule"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSource", FALSE)) { +/** + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillingSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalApprovalStatus", FALSE)) { +/** + * Describes the {@link Proposal} status in terms of pending approvals of active user. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PrecisionErrorReason", FALSE)) { +/** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PrecisionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalCompanyAssociationType", FALSE)) { +/** + * Describes the type of a {@link Company} associated with a {@link Proposal}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalCompanyAssociationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalCompanyAssociationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalStatus", FALSE)) { +/** + * Describes the {@link Proposal} status. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProposalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("WorkflowActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class WorkflowActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProposal", FALSE)) { +/** + * Creates a new {@link Proposal}. + * + * The following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposal the proposal to create + * @return the created proposal with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProposal { + /** + * @access public + * @var Proposal + */ + public $proposal; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposal = NULL) { + $this->proposal = $proposal; + } +}} + +if (!class_exists("createProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProposals", FALSE)) { +/** + * Creates new {@link Proposal} objects. + * + * For each proposal, the following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposals the proposals to create + * @return the created proposals with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProposals { + /** + * @access public + * @var Proposal[] + */ + public $proposals; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposals = NULL) { + $this->proposals = $proposals; + } +}} + +if (!class_exists("createProposalsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createProposalsResponse { + /** + * @access public + * @var Proposal[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposal", FALSE)) { +/** + * Returns the {@link Proposal} uniquely identified by the given ID. + * + * @param proposalId the ID of the proposal, which must already exist + * @return the proposal uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProposal { + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalId = NULL) { + $this->proposalId = $proposalId; + } +}} + +if (!class_exists("getProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalsByStatement", FALSE)) { +/** + * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link Proposal#id}
      {@code name}{@link Proposal#name}
      {@code status}{@link Proposal#status}
      {@code isArchived}{@link Proposal#isArchived}
      {@code approvalStatus}{@link Proposal#approvalStatus}
      {@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposals + * @return the proposals that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProposalsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getProposalsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getProposalsByStatementResponse { + /** + * @access public + * @var ProposalPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProposalAction", FALSE)) { +/** + * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. + * + * The following fields are also required when submitting proposals for approval: + *
        + *
      • {@link Proposal#advertiser}
      • + *
      • {@link Proposal#primarySalesperson}
      • + *
      • {@link Proposal#primaryTraffickerId}
      • + *
      + * + * @param proposalAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performProposalAction { + /** + * @access public + * @var ProposalAction + */ + public $proposalAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalAction = NULL, $filterStatement = NULL) { + $this->proposalAction = $proposalAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProposalActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performProposalActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposal", FALSE)) { +/** + * Updates the specified {@link Proposal}. + * + * @param proposal the proposal to update + * @return the updated proposal + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProposal { + /** + * @access public + * @var Proposal + */ + public $proposal; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposal = NULL) { + $this->proposal = $proposal; + } +}} + +if (!class_exists("updateProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposals", FALSE)) { +/** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProposals { + /** + * @access public + * @var Proposal[] + */ + public $proposals; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposals = NULL) { + $this->proposals = $proposals; + } +}} + +if (!class_exists("updateProposalsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateProposalsResponse { + /** + * @access public + * @var Proposal[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveProposals", FALSE)) { +/** + * The action used for approving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApproveProposals extends ProposalAction { + /** + * @access public + * @var integer[] + */ + public $workflowActionIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveProposals"; + } + + public function __construct($workflowActionIds = NULL, $ProposalActionType = NULL) { + parent::__construct(); + $this->workflowActionIds = $workflowActionIds; + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("ArchiveProposals", FALSE)) { +/** + * The action used for archiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ArchiveProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProposalService", FALSE)) { +/** + * ProposalService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ProposalService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ApproveProposals" => "ApproveProposals", + "ProposalAction" => "ProposalAction", + "ArchiveProposals" => "ArchiveProposals", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemOperationError" => "LineItemOperationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalActionError" => "ProposalActionError", + "ProposalCompanyAssociation" => "ProposalCompanyAssociation", + "Proposal" => "Proposal", + "ProposalError" => "ProposalError", + "ProposalLineItemError" => "ProposalLineItemError", + "ProposalPage" => "ProposalPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RejectProposals" => "RejectProposals", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RetractProposals" => "RetractProposals", + "SalespersonSplit" => "SalespersonSplit", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitProposalsForApproval" => "SubmitProposalsForApproval", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveProposals" => "UnarchiveProposals", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "WorkflowActionError" => "WorkflowActionError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillingCap" => "BillingCap", + "BillingError.Reason" => "BillingErrorReason", + "BillingSchedule" => "BillingSchedule", + "BillingSource" => "BillingSource", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "ProposalApprovalStatus" => "ProposalApprovalStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProposalActionError.Reason" => "ProposalActionErrorReason", + "ProposalCompanyAssociationType" => "ProposalCompanyAssociationType", + "ProposalError.Reason" => "ProposalErrorReason", + "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", + "ProposalStatus" => "ProposalStatus", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "createProposal" => "createProposal", + "createProposalResponse" => "createProposalResponse", + "createProposals" => "createProposals", + "createProposalsResponse" => "createProposalsResponse", + "getProposal" => "getProposal", + "getProposalResponse" => "getProposalResponse", + "getProposalsByStatement" => "getProposalsByStatement", + "getProposalsByStatementResponse" => "getProposalsByStatementResponse", + "performProposalAction" => "performProposalAction", + "performProposalActionResponse" => "performProposalActionResponse", + "updateProposal" => "updateProposal", + "updateProposalResponse" => "updateProposalResponse", + "updateProposals" => "updateProposals", + "updateProposalsResponse" => "updateProposalsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ProposalService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProposalService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProposalService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link Proposal}. + * + * The following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposal the proposal to create + * @return the created proposal with its ID filled in + */ + public function createProposal($proposal) { + $arg = new createProposal($proposal); + $result = $this->__soapCall("createProposal", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Proposal} objects. + * + * For each proposal, the following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposals the proposals to create + * @return the created proposals with their IDs filled in + */ + public function createProposals($proposals) { + $arg = new createProposals($proposals); + $result = $this->__soapCall("createProposals", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Proposal} uniquely identified by the given ID. + * + * @param proposalId the ID of the proposal, which must already exist + * @return the proposal uniquely identified by the given ID + */ + public function getProposal($proposalId) { + $arg = new getProposal($proposalId); + $result = $this->__soapCall("getProposal", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link Proposal#id}
      {@code name}{@link Proposal#name}
      {@code status}{@link Proposal#status}
      {@code isArchived}{@link Proposal#isArchived}
      {@code approvalStatus}{@link Proposal#approvalStatus}
      {@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposals + * @return the proposals that match the given filter + */ + public function getProposalsByStatement($filterStatement) { + $arg = new getProposalsByStatement($filterStatement); + $result = $this->__soapCall("getProposalsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. + * + * The following fields are also required when submitting proposals for approval: + *
        + *
      • {@link Proposal#advertiser}
      • + *
      • {@link Proposal#primarySalesperson}
      • + *
      • {@link Proposal#primaryTraffickerId}
      • + *
      + * + * @param proposalAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the result of the action performed + */ + public function performProposalAction($proposalAction, $filterStatement) { + $arg = new performProposalAction($proposalAction, $filterStatement); + $result = $this->__soapCall("performProposalAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Proposal}. + * + * @param proposal the proposal to update + * @return the updated proposal + */ + public function updateProposal($proposal) { + $arg = new updateProposal($proposal); + $result = $this->__soapCall("updateProposal", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + */ + public function updateProposals($proposals) { + $arg = new updateProposals($proposals); + $result = $this->__soapCall("updateProposals", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php new file mode 100755 index 000000000..d25d35554 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php @@ -0,0 +1,3597 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ColumnType", FALSE)) { +/** + * Contains information about a column in a {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ColumnType { + /** + * @access public + * @var string + */ + public $labelName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ColumnType"; + } + + public function __construct($labelName = NULL) { + $this->labelName = $labelName; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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)) { +/** + * Caused by supplying a non-null value for an attribute that should be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ResultSet", FALSE)) { +/** + * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link + * Statement}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ResultSet { + /** + * @access public + * @var ColumnType[] + */ + public $columnTypes; + + /** + * @access public + * @var Row[] + */ + public $rows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResultSet"; + } + + public function __construct($columnTypes = NULL, $rows = NULL) { + $this->columnTypes = $columnTypes; + $this->rows = $rows; + } +}} + +if (!class_exists("Row", FALSE)) { +/** + * Each {@link Row} object represents data about one entity in a + * {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Row { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Row"; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("select", FALSE)) { +/** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class select { + /** + * @access public + * @var Statement + */ + public $selectStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selectStatement = NULL) { + $this->selectStatement = $selectStatement; + } +}} + +if (!class_exists("selectResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class selectResponse { + /** + * @access public + * @var ResultSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PublisherQueryLanguageService", FALSE)) { +/** + * PublisherQueryLanguageService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class PublisherQueryLanguageService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "ColumnType" => "ColumnType", + "CommonError" => "CommonError", + "CreativeError" => "CreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResultSet" => "ResultSet", + "Row" => "Row", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "select" => "select", + "selectResponse" => "selectResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/PublisherQueryLanguageService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PublisherQueryLanguageService::$classmap; + parent::__construct($wsdl, $options, $user, 'PublisherQueryLanguageService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + */ + public function select($selectStatement) { + $arg = new select($selectStatement); + $result = $this->__soapCall("select", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php new file mode 100755 index 000000000..b73f8a0ae --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php @@ -0,0 +1,3542 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RateCardCustomizationAction", FALSE)) { +/** + * Represents the action that can be performed on {@link RateCardCustomization} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardCustomizationAction { + /** + * @access public + * @var string + */ + public $RateCardCustomizationActionType; + + private $_parameterMap = array ( + "RateCardCustomizationAction.Type" => "RateCardCustomizationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationAction"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("RateCardCustomization", FALSE)) { +/** + * A customization of a {@link RateCard} which could be applied to the line item + * and charges extra premiums. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardCustomization { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsRateCardCustomizationStatus + */ + public $status; + + /** + * @access public + * @var RateCardFeature + */ + public $rateCardFeature; + + /** + * @access public + * @var tnsRateCardCustomizationAdjustmentType + */ + public $adjustmentType; + + /** + * @access public + * @var integer + */ + public $adjustmentSize; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomization"; + } + + public function __construct($rateCardId = NULL, $id = NULL, $status = NULL, $rateCardFeature = NULL, $adjustmentType = NULL, $adjustmentSize = NULL, $rateType = NULL) { + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->rateCardFeature = $rateCardFeature; + $this->adjustmentType = $adjustmentType; + $this->adjustmentSize = $adjustmentSize; + $this->rateType = $rateType; + } +}} + +if (!class_exists("RateCardCustomizationError", FALSE)) { +/** + * An error having to do with {@link RateCardCustomization}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardCustomizationError extends ApiError { + /** + * @access public + * @var tnsRateCardCustomizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationError"; + } + + 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("RateCardCustomizationPage", FALSE)) { +/** + * Captures a page of {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardCustomizationPage { + /** + * @access public + * @var RateCardCustomization[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("RateCardFeature", FALSE)) { +/** + * The feature of a {@link RateCardCustomization} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardFeature { + /** + * @access public + * @var string + */ + public $RateCardFeatureType; + + private $_parameterMap = array ( + "RateCardFeature.Type" => "RateCardFeatureType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UnknownRateCardFeature", FALSE)) { +/** + * The {@link RateCardFeature} returned if the actual feature is not exposed by + * the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UnknownRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnknownRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainRateCardFeature", FALSE)) { +/** + * A rate customization applied to user domain targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserDomainRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardCustomizationAdjustmentType", FALSE)) { +/** + * Describes how to apply the adjustment to the base rate. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardCustomizationAdjustmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationAdjustmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardCustomizationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardCustomizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardCustomizationStatus", FALSE)) { +/** + * The status of {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardCustomizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createRateCardCustomization", FALSE)) { +/** + * Creates a new {@link RateCardCustomization} object. + * + * @param rateCardCustomization the {@link RateCardCustomization} to be + * created + * @return the {@link RateCardCustomization} with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createRateCardCustomization { + /** + * @access public + * @var RateCardCustomization + */ + public $rateCardCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomization = NULL) { + $this->rateCardCustomization = $rateCardCustomization; + } +}} + +if (!class_exists("createRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createRateCardCustomizations", FALSE)) { +/** + * Creates a list of new {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be created + * @return the rate card customizations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createRateCardCustomizations { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rateCardCustomizations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizations = NULL) { + $this->rateCardCustomizations = $rateCardCustomizations; + } +}} + +if (!class_exists("createRateCardCustomizationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createRateCardCustomizationsResponse { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardCustomization", FALSE)) { +/** + * Returns the {@link RateCardCustomization} object uniquely identified by the + * given ID. + * + * @param rateCardCustomizationId the ID of the rate card customization, which + * must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getRateCardCustomization { + /** + * @access public + * @var integer + */ + public $rateCardCustomizationId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizationId = NULL) { + $this->rateCardCustomizationId = $rateCardCustomizationId; + } +}} + +if (!class_exists("getRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardCustomizationsByStatement", FALSE)) { +/** + * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} + * objects that satisfy the given {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link RateCardCustomization#rateCardId}
      {@code id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the rate card customizations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getRateCardCustomizationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getRateCardCustomizationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getRateCardCustomizationsByStatementResponse { + /** + * @access public + * @var RateCardCustomizationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performRateCardCustomizationAction", FALSE)) { +/** + * Performs actions on {@link RateCardCustomization} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardCustomizationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performRateCardCustomizationAction { + /** + * @access public + * @var RateCardCustomizationAction + */ + public $rateCardCustomizationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizationAction = NULL, $filterStatement = NULL) { + $this->rateCardCustomizationAction = $rateCardCustomizationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performRateCardCustomizationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performRateCardCustomizationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCardCustomization", FALSE)) { +/** + * Updates the specified {@link RateCardCustomization} object. + * + * @param rateCardCustomization the rate card customization to be updated + * @return the updated rate card customization + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateRateCardCustomization { + /** + * @access public + * @var RateCardCustomization + */ + public $rateCardCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomization = NULL) { + $this->rateCardCustomization = $rateCardCustomization; + } +}} + +if (!class_exists("updateRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCardCustomizations", FALSE)) { +/** + * Updates the specified {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be updated + * @return the updated rate card customizations + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateRateCardCustomizations { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rateCardCustomizations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizations = NULL) { + $this->rateCardCustomizations = $rateCardCustomizations; + } +}} + +if (!class_exists("updateRateCardCustomizationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateRateCardCustomizationsResponse { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateRateCardCustomizations", FALSE)) { +/** + * The action used to activate {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateRateCardCustomizations extends RateCardCustomizationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateRateCardCustomizations"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + parent::__construct(); + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("AdUnitRateCardFeature", FALSE)) { +/** + * A rate customization applied to ad unit targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthRateCardFeature", FALSE)) { +/** + * A rate customization applied to bandwidth targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BandwidthRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("BrowserRateCardFeature", FALSE)) { +/** + * A rate customization applied to browser targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("BrowserLanguageRateCardFeature", FALSE)) { +/** + * A rate customization applied to browser language targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BrowserLanguageRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("CustomTargetingRateCardFeature", FALSE)) { +/** + * A rate customization applied to custom criteria targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingRateCardFeature extends RateCardFeature { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingRateCardFeature"; + } + + public function __construct($customTargetingKeyId = NULL, $customTargetingValueId = NULL, $RateCardFeatureType = NULL) { + parent::__construct(); + $this->customTargetingKeyId = $customTargetingKeyId; + $this->customTargetingValueId = $customTargetingValueId; + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateRateCardCustomizations", FALSE)) { +/** + * The action used to deactivate {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateRateCardCustomizations extends RateCardCustomizationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateRateCardCustomizations"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + parent::__construct(); + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("FrequencyCapRateCardFeature", FALSE)) { +/** + * A rate customization applied to frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FrequencyCapRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("GeographyRateCardFeature", FALSE)) { +/** + * A rate customization applied to geography targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class GeographyRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeographyRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystemRateCardFeature", FALSE)) { +/** + * A rate customization applied to operating system targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class OperatingSystemRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("PlacementRateCardFeature", FALSE)) { +/** + * A rate customization applied to placement targeting. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PlacementRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardCustomizationService", FALSE)) { +/** + * RateCardCustomizationService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class RateCardCustomizationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateRateCardCustomizations" => "ActivateRateCardCustomizations", + "RateCardCustomizationAction" => "RateCardCustomizationAction", + "AdUnitRateCardFeature" => "AdUnitRateCardFeature", + "RateCardFeature" => "RateCardFeature", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthRateCardFeature" => "BandwidthRateCardFeature", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "BrowserRateCardFeature" => "BrowserRateCardFeature", + "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateRateCardCustomizations" => "DeactivateRateCardCustomizations", + "FeatureError" => "FeatureError", + "FrequencyCapRateCardFeature" => "FrequencyCapRateCardFeature", + "GeographyRateCardFeature" => "GeographyRateCardFeature", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystemRateCardFeature" => "OperatingSystemRateCardFeature", + "PermissionError" => "PermissionError", + "PlacementRateCardFeature" => "PlacementRateCardFeature", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateCardCustomization" => "RateCardCustomization", + "RateCardCustomizationError" => "RateCardCustomizationError", + "RateCardCustomizationPage" => "RateCardCustomizationPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UnknownRateCardFeature" => "UnknownRateCardFeature", + "UpdateResult" => "UpdateResult", + "UserDomainRateCardFeature" => "UserDomainRateCardFeature", + "RateCardCustomizationAdjustmentType" => "RateCardCustomizationAdjustmentType", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateCardCustomizationError.Reason" => "RateCardCustomizationErrorReason", + "RateCardCustomizationStatus" => "RateCardCustomizationStatus", + "RateType" => "RateType", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createRateCardCustomization" => "createRateCardCustomization", + "createRateCardCustomizationResponse" => "createRateCardCustomizationResponse", + "createRateCardCustomizations" => "createRateCardCustomizations", + "createRateCardCustomizationsResponse" => "createRateCardCustomizationsResponse", + "getRateCardCustomization" => "getRateCardCustomization", + "getRateCardCustomizationResponse" => "getRateCardCustomizationResponse", + "getRateCardCustomizationsByStatement" => "getRateCardCustomizationsByStatement", + "getRateCardCustomizationsByStatementResponse" => "getRateCardCustomizationsByStatementResponse", + "performRateCardCustomizationAction" => "performRateCardCustomizationAction", + "performRateCardCustomizationActionResponse" => "performRateCardCustomizationActionResponse", + "updateRateCardCustomization" => "updateRateCardCustomization", + "updateRateCardCustomizationResponse" => "updateRateCardCustomizationResponse", + "updateRateCardCustomizations" => "updateRateCardCustomizations", + "updateRateCardCustomizationsResponse" => "updateRateCardCustomizationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/RateCardCustomizationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = RateCardCustomizationService::$classmap; + parent::__construct($wsdl, $options, $user, 'RateCardCustomizationService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link RateCardCustomization} object. + * + * @param rateCardCustomization the {@link RateCardCustomization} to be + * created + * @return the {@link RateCardCustomization} with its ID filled in + */ + public function createRateCardCustomization($rateCardCustomization) { + $arg = new createRateCardCustomization($rateCardCustomization); + $result = $this->__soapCall("createRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of new {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be created + * @return the rate card customizations with their IDs filled in + */ + public function createRateCardCustomizations($rateCardCustomizations) { + $arg = new createRateCardCustomizations($rateCardCustomizations); + $result = $this->__soapCall("createRateCardCustomizations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link RateCardCustomization} object uniquely identified by the + * given ID. + * + * @param rateCardCustomizationId the ID of the rate card customization, which + * must already exist. + */ + public function getRateCardCustomization($rateCardCustomizationId) { + $arg = new getRateCardCustomization($rateCardCustomizationId); + $result = $this->__soapCall("getRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} + * objects that satisfy the given {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link RateCardCustomization#rateCardId}
      {@code id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the rate card customizations that match the given filter + */ + public function getRateCardCustomizationsByStatement($filterStatement) { + $arg = new getRateCardCustomizationsByStatement($filterStatement); + $result = $this->__soapCall("getRateCardCustomizationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link RateCardCustomization} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardCustomizationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the result of the action performed + */ + public function performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement) { + $arg = new performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement); + $result = $this->__soapCall("performRateCardCustomizationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCardCustomization} object. + * + * @param rateCardCustomization the rate card customization to be updated + * @return the updated rate card customization + */ + public function updateRateCardCustomization($rateCardCustomization) { + $arg = new updateRateCardCustomization($rateCardCustomization); + $result = $this->__soapCall("updateRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be updated + * @return the updated rate card customizations + */ + public function updateRateCardCustomizations($rateCardCustomizations) { + $arg = new updateRateCardCustomizations($rateCardCustomizations); + $result = $this->__soapCall("updateRateCardCustomizations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/RateCardService.php b/src/Google/Api/Ads/Dfp/v201308/RateCardService.php new file mode 100755 index 000000000..87c748d2d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/RateCardService.php @@ -0,0 +1,3662 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RateCardAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardAction { + /** + * @access public + * @var string + */ + public $RateCardActionType; + + private $_parameterMap = array ( + "RateCardAction.Type" => "RateCardActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardAction"; + } + + public function __construct($RateCardActionType = NULL) { + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("RateCardActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action + * on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardActionError extends ApiError { + /** + * @access public + * @var tnsRateCardActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardActionError"; + } + + 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("RateCard", FALSE)) { +/** + * Defines a collection of rules, including base rates for product templates and products, premiums, + * proposal line item level adjustments and proposal level adjustments. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCard { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsRateCardStatus + */ + public $status; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCard"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $appliedTeamIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->appliedTeamIds = $appliedTeamIds; + } +}} + +if (!class_exists("RateCardPage", FALSE)) { +/** + * Captures a page of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardPage { + /** + * @access public + * @var RateCard[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardStatus", FALSE)) { +/** + * Describes the status of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RateCardStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createRateCard", FALSE)) { +/** + * Creates a new {@link RateCard}. Rate cards must be activated before being + * associated with proposal line items and products. + * + * @param rateCard the rate card to be created + * @return the rate card with corresponding fields set by Google. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createRateCard { + /** + * @access public + * @var RateCard + */ + public $rateCard; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCard = NULL) { + $this->rateCard = $rateCard; + } +}} + +if (!class_exists("createRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createRateCards", FALSE)) { +/** + * Creates a list of {@link RateCard} objects. Rate cards must be activated + * before being associated with proposal line items and products. + * + * @param rateCards the rate cards to be created + * @return the created rate cards. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createRateCards { + /** + * @access public + * @var RateCard[] + */ + public $rateCards; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCards = NULL) { + $this->rateCards = $rateCards; + } +}} + +if (!class_exists("createRateCardsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createRateCardsResponse { + /** + * @access public + * @var RateCard[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCard", FALSE)) { +/** + * Returns the {@link RateCard} uniquely identified by the given ID. + * + * @param rateCardId the ID of the rate card, which must already exist + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getRateCard { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardId = NULL) { + $this->rateCardId = $rateCardId; + } +}} + +if (!class_exists("getRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardsByStatement", FALSE)) { +/** + * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link RateCard#id}
      {@code name}{@link RateCard#name}
      {@code status}{@link RateCard#status}
      {@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. + * @return the rate cards that match the filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getRateCardsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getRateCardsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getRateCardsByStatementResponse { + /** + * @access public + * @var RateCardPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performRateCardAction", FALSE)) { +/** + * Performs action on {@link RateCard} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate cards. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performRateCardAction { + /** + * @access public + * @var RateCardAction + */ + public $rateCardAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardAction = NULL, $filterStatement = NULL) { + $this->rateCardAction = $rateCardAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performRateCardActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performRateCardActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCard", FALSE)) { +/** + * Updates the specified {@link RateCard}. + * + * @param rateCard the rate card to be updated + * @return the updated rate card + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateRateCard { + /** + * @access public + * @var RateCard + */ + public $rateCard; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCard = NULL) { + $this->rateCard = $rateCard; + } +}} + +if (!class_exists("updateRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCards", FALSE)) { +/** + * Updates a list of {@link RateCard} objects. + * + * @param rateCards the rate cards to be updated + * @return the updated rate cards + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateRateCards { + /** + * @access public + * @var RateCard[] + */ + public $rateCards; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCards = NULL) { + $this->rateCards = $rateCards; + } +}} + +if (!class_exists("updateRateCardsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateRateCardsResponse { + /** + * @access public + * @var RateCard[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateRateCards", FALSE)) { +/** + * The action used to activate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateRateCards extends RateCardAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateRateCards"; + } + + public function __construct($RateCardActionType = NULL) { + parent::__construct(); + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateRateCards", FALSE)) { +/** + * The action used to deactivate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateRateCards extends RateCardAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateRateCards"; + } + + public function __construct($RateCardActionType = NULL) { + parent::__construct(); + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardService", FALSE)) { +/** + * RateCardService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class RateCardService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateRateCards" => "ActivateRateCards", + "RateCardAction" => "RateCardAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateRateCards" => "DeactivateRateCards", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "ProductError" => "ProductError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateCardActionError" => "RateCardActionError", + "RateCard" => "RateCard", + "RateCardPage" => "RateCardPage", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateCardActionError.Reason" => "RateCardActionErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "RateCardStatus" => "RateCardStatus", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createRateCard" => "createRateCard", + "createRateCardResponse" => "createRateCardResponse", + "createRateCards" => "createRateCards", + "createRateCardsResponse" => "createRateCardsResponse", + "getRateCard" => "getRateCard", + "getRateCardResponse" => "getRateCardResponse", + "getRateCardsByStatement" => "getRateCardsByStatement", + "getRateCardsByStatementResponse" => "getRateCardsByStatementResponse", + "performRateCardAction" => "performRateCardAction", + "performRateCardActionResponse" => "performRateCardActionResponse", + "updateRateCard" => "updateRateCard", + "updateRateCardResponse" => "updateRateCardResponse", + "updateRateCards" => "updateRateCards", + "updateRateCardsResponse" => "updateRateCardsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/RateCardService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = RateCardService::$classmap; + parent::__construct($wsdl, $options, $user, 'RateCardService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link RateCard}. Rate cards must be activated before being + * associated with proposal line items and products. + * + * @param rateCard the rate card to be created + * @return the rate card with corresponding fields set by Google. + */ + public function createRateCard($rateCard) { + $arg = new createRateCard($rateCard); + $result = $this->__soapCall("createRateCard", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of {@link RateCard} objects. Rate cards must be activated + * before being associated with proposal line items and products. + * + * @param rateCards the rate cards to be created + * @return the created rate cards. + */ + public function createRateCards($rateCards) { + $arg = new createRateCards($rateCards); + $result = $this->__soapCall("createRateCards", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link RateCard} uniquely identified by the given ID. + * + * @param rateCardId the ID of the rate card, which must already exist + */ + public function getRateCard($rateCardId) { + $arg = new getRateCard($rateCardId); + $result = $this->__soapCall("getRateCard", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link RateCard#id}
      {@code name}{@link RateCard#name}
      {@code status}{@link RateCard#status}
      {@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. + * @return the rate cards that match the filter + */ + public function getRateCardsByStatement($filterStatement) { + $arg = new getRateCardsByStatement($filterStatement); + $result = $this->__soapCall("getRateCardsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link RateCard} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate cards. + * @return the result of the action performed + */ + public function performRateCardAction($rateCardAction, $filterStatement) { + $arg = new performRateCardAction($rateCardAction, $filterStatement); + $result = $this->__soapCall("performRateCardAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCard}. + * + * @param rateCard the rate card to be updated + * @return the updated rate card + */ + public function updateRateCard($rateCard) { + $arg = new updateRateCard($rateCard); + $result = $this->__soapCall("updateRateCard", array($arg)); + return $result->rval; + } + + + /** + * Updates a list of {@link RateCard} objects. + * + * @param rateCards the rate cards to be updated + * @return the updated rate cards + */ + public function updateRateCards($rateCards) { + $arg = new updateRateCards($rateCards); + $result = $this->__soapCall("updateRateCards", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php new file mode 100755 index 000000000..8782bf9e3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php @@ -0,0 +1,2785 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ReconciliationOrderReportAction", FALSE)) { +/** + * Represents the actions that can be performed on the {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationOrderReportAction { + /** + * @access public + * @var string + */ + public $ReconciliationOrderReportActionType; + + private $_parameterMap = array ( + "ReconciliationOrderReportAction.Type" => "ReconciliationOrderReportActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportAction"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ReconciliationOrderReport", FALSE)) { +/** + * A {@link ReconciliationOrderReport} represents one order + * in the reconciliation report. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationOrderReport { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsReconciliationOrderReportStatus + */ + public $status; + + /** + * @access public + * @var DateTime + */ + public $submissionDateTime; + + /** + * @access public + * @var integer + */ + public $submitterId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReport"; + } + + public function __construct($id = NULL, $reconciliationReportId = NULL, $orderId = NULL, $status = NULL, $submissionDateTime = NULL, $submitterId = NULL) { + $this->id = $id; + $this->reconciliationReportId = $reconciliationReportId; + $this->orderId = $orderId; + $this->status = $status; + $this->submissionDateTime = $submissionDateTime; + $this->submitterId = $submitterId; + } +}} + +if (!class_exists("ReconciliationOrderReportPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationOrderReportPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationOrderReport[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("SubmitReconciliationOrderReports", FALSE)) { +/** + * The action used for submit the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitReconciliationOrderReports"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + parent::__construct(); + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RevertReconciliationOrderReports", FALSE)) { +/** + * The action used to revert the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RevertReconciliationOrderReports"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + parent::__construct(); + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationOrderReportStatus", FALSE)) { +/** + * The status of the reconciliation order report. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationOrderReportStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationOrderReport", FALSE)) { +/** + * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. + * + * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, + * which must already exist. + * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationOrderReport { + /** + * @access public + * @var integer + */ + public $reconciliationOrderReportId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationOrderReportId = NULL) { + $this->reconciliationOrderReportId = $reconciliationOrderReportId; + } +}} + +if (!class_exists("getReconciliationOrderReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationOrderReportResponse { + /** + * @access public + * @var ReconciliationOrderReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReconciliationOrderReportsByStatement", FALSE)) { +/** + * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects + * that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      {@code id}{@link ReconciliationOrderReport#id}
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code status}{@link ReconciliationOrderReport#status}
      {@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
      {@code submitterId}{@link ReconciliationOrderReport#submitterId}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of reconciliation order reports. + * @return the reconciliation order reports that match the given filter. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationOrderReportsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationOrderReportsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationOrderReportsByStatementResponse { + /** + * @access public + * @var ReconciliationOrderReportPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performReconciliationOrderReportAction", FALSE)) { +/** + * Performs actions on the {@link ReconciliationOrderReport} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * Only orders to which the API user has access will be included. + * + * @param reconciliationOrderReportAction the action to perform. + * @param filterStatement a Publisher Query Language statement used to filter a set of orders and + * one reconciliation report. + * @return the result of the action performed. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performReconciliationOrderReportAction { + /** + * @access public + * @var ReconciliationOrderReportAction + */ + public $reconciliationOrderReportAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationOrderReportAction = NULL, $filterStatement = NULL) { + $this->reconciliationOrderReportAction = $reconciliationOrderReportAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performReconciliationOrderReportActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performReconciliationOrderReportActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationOrderReportService", FALSE)) { +/** + * ReconciliationOrderReportService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ReconciliationOrderReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ReconciliationOrderReportAction" => "ReconciliationOrderReportAction", + "ReconciliationOrderReport" => "ReconciliationOrderReport", + "ReconciliationOrderReportPage" => "ReconciliationOrderReportPage", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "SubmitReconciliationOrderReports" => "SubmitReconciliationOrderReports", + "ReconciliationError" => "ReconciliationError", + "RequiredError" => "RequiredError", + "RevertReconciliationOrderReports" => "RevertReconciliationOrderReports", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationOrderReportStatus" => "ReconciliationOrderReportStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationOrderReport" => "getReconciliationOrderReport", + "getReconciliationOrderReportResponse" => "getReconciliationOrderReportResponse", + "getReconciliationOrderReportsByStatement" => "getReconciliationOrderReportsByStatement", + "getReconciliationOrderReportsByStatementResponse" => "getReconciliationOrderReportsByStatementResponse", + "performReconciliationOrderReportAction" => "performReconciliationOrderReportAction", + "performReconciliationOrderReportActionResponse" => "performReconciliationOrderReportActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ReconciliationOrderReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationOrderReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationOrderReportService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. + * + * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, + * which must already exist. + * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. + */ + public function getReconciliationOrderReport($reconciliationOrderReportId) { + $arg = new getReconciliationOrderReport($reconciliationOrderReportId); + $result = $this->__soapCall("getReconciliationOrderReport", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects + * that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      {@code id}{@link ReconciliationOrderReport#id}
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code status}{@link ReconciliationOrderReport#status}
      {@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
      {@code submitterId}{@link ReconciliationOrderReport#submitterId}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of reconciliation order reports. + * @return the reconciliation order reports that match the given filter. + */ + public function getReconciliationOrderReportsByStatement($filterStatement) { + $arg = new getReconciliationOrderReportsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationOrderReportsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on the {@link ReconciliationOrderReport} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * Only orders to which the API user has access will be included. + * + * @param reconciliationOrderReportAction the action to perform. + * @param filterStatement a Publisher Query Language statement used to filter a set of orders and + * one reconciliation report. + * @return the result of the action performed. + */ + public function performReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement) { + $arg = new performReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement); + $result = $this->__soapCall("performReconciliationOrderReportAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php new file mode 100755 index 000000000..9bb7ae8b4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php @@ -0,0 +1,2866 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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("ReconciliationImportError", FALSE)) { +/** + * The API errors for reconciliation CSV import. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationImportError extends ApiError { + /** + * @access public + * @var tnsReconciliationImportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError"; + } + + 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("ReconciliationReportRow", FALSE)) { +/** + * A {@code ReconciliationReportRow} represents each row in the reconciliation report. + * Each row is identified by its {@link #reconciliationReportId}, {@link #lineItemId}, + * {@link #creativeId}, and {@link #proposalLineItemId}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationReportRow { + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var tnsBillFrom + */ + public $billFrom; + + /** + * @access public + * @var tnsCostType + */ + public $lineItemCostType; + + /** + * @access public + * @var Money + */ + public $lineItemCostPerUnit; + + /** + * @access public + * @var integer + */ + public $lineItemContractedUnitsBought; + + /** + * @access public + * @var integer + */ + public $dfpClicks; + + /** + * @access public + * @var integer + */ + public $dfpImpressions; + + /** + * @access public + * @var integer + */ + public $dfpLineItemDays; + + /** + * @access public + * @var integer + */ + public $thirdPartyClicks; + + /** + * @access public + * @var integer + */ + public $thirdPartyImpressions; + + /** + * @access public + * @var integer + */ + public $thirdPartyLineItemDays; + + /** + * @access public + * @var integer + */ + public $manualClicks; + + /** + * @access public + * @var integer + */ + public $manualImpressions; + + /** + * @access public + * @var integer + */ + public $manualLineItemDays; + + /** + * @access public + * @var integer + */ + public $reconciledClicks; + + /** + * @access public + * @var integer + */ + public $reconciledImpressions; + + /** + * @access public + * @var integer + */ + public $reconciledLineItemDays; + + /** + * @access public + * @var Money + */ + public $contractedRevenue; + + /** + * @access public + * @var Money + */ + public $dfpRevenue; + + /** + * @access public + * @var Money + */ + public $thirdPartyRevenue; + + /** + * @access public + * @var Money + */ + public $manualRevenue; + + /** + * @access public + * @var Money + */ + public $reconciledRevenue; + + /** + * @access public + * @var string + */ + public $comments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportRow"; + } + + public function __construct($reconciliationReportId = NULL, $lineItemId = NULL, $creativeId = NULL, $orderId = NULL, $advertiserId = NULL, $billFrom = NULL, $lineItemCostType = NULL, $lineItemCostPerUnit = NULL, $lineItemContractedUnitsBought = NULL, $dfpClicks = NULL, $dfpImpressions = NULL, $dfpLineItemDays = NULL, $thirdPartyClicks = NULL, $thirdPartyImpressions = NULL, $thirdPartyLineItemDays = NULL, $manualClicks = NULL, $manualImpressions = NULL, $manualLineItemDays = NULL, $reconciledClicks = NULL, $reconciledImpressions = NULL, $reconciledLineItemDays = NULL, $contractedRevenue = NULL, $dfpRevenue = NULL, $thirdPartyRevenue = NULL, $manualRevenue = NULL, $reconciledRevenue = NULL, $comments = NULL) { + $this->reconciliationReportId = $reconciliationReportId; + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->orderId = $orderId; + $this->advertiserId = $advertiserId; + $this->billFrom = $billFrom; + $this->lineItemCostType = $lineItemCostType; + $this->lineItemCostPerUnit = $lineItemCostPerUnit; + $this->lineItemContractedUnitsBought = $lineItemContractedUnitsBought; + $this->dfpClicks = $dfpClicks; + $this->dfpImpressions = $dfpImpressions; + $this->dfpLineItemDays = $dfpLineItemDays; + $this->thirdPartyClicks = $thirdPartyClicks; + $this->thirdPartyImpressions = $thirdPartyImpressions; + $this->thirdPartyLineItemDays = $thirdPartyLineItemDays; + $this->manualClicks = $manualClicks; + $this->manualImpressions = $manualImpressions; + $this->manualLineItemDays = $manualLineItemDays; + $this->reconciledClicks = $reconciledClicks; + $this->reconciledImpressions = $reconciledImpressions; + $this->reconciledLineItemDays = $reconciledLineItemDays; + $this->contractedRevenue = $contractedRevenue; + $this->dfpRevenue = $dfpRevenue; + $this->thirdPartyRevenue = $thirdPartyRevenue; + $this->manualRevenue = $manualRevenue; + $this->reconciledRevenue = $reconciledRevenue; + $this->comments = $comments; + } +}} + +if (!class_exists("ReconciliationReportRowPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationReportRow} objects + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationReportRowPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportRowPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillFrom", FALSE)) { +/** + * Values for which to bill from. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BillFrom { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillFrom"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationImportErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationImportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationReportRowsByStatement", FALSE)) { +/** + * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that + * satisfy the given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
      {@code advertiserId}{@link ReconciliationReportRow#advertiserId}
      {@code orderId}{@link ReconciliationReportRow#orderId}
      {@code lineItemId}{@link ReconciliationReportRow#lineItemId}
      {@code creativeId}{@link ReconciliationReportRow#creativeId}
      {@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
      {@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
      {@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
      {@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
      {@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
      {@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
      {@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
      {@code manualClicks}{@link ReconciliationReportRow#manualClicks}
      {@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
      {@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
      {@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
      {@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
      {@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation report rows + * @return the reconciliation report rows that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationReportRowsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationReportRowsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationReportRowsByStatementResponse { + /** + * @access public + * @var ReconciliationReportRowPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReportRows", FALSE)) { +/** + * Updates a list of {@link ReconciliationReportRow} which belong to same + * {@link ReconciliationReport}. + * + * @param reconciliationReportRows a list of reconciliation report rows to update + * @return the updated reconciliation report rows + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateReconciliationReportRows { + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $reconciliationReportRows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReportRows = NULL) { + $this->reconciliationReportRows = $reconciliationReportRows; + } +}} + +if (!class_exists("updateReconciliationReportRowsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateReconciliationReportRowsResponse { + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationReportRowService", FALSE)) { +/** + * ReconciliationReportRowService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ReconciliationReportRowService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReconciliationError" => "ReconciliationError", + "ReconciliationImportError" => "ReconciliationImportError", + "ReconciliationReportRow" => "ReconciliationReportRow", + "ReconciliationReportRowPage" => "ReconciliationReportRowPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillFrom" => "BillFrom", + "CommonError.Reason" => "CommonErrorReason", + "CostType" => "CostType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationReportRowsByStatement" => "getReconciliationReportRowsByStatement", + "getReconciliationReportRowsByStatementResponse" => "getReconciliationReportRowsByStatementResponse", + "updateReconciliationReportRows" => "updateReconciliationReportRows", + "updateReconciliationReportRowsResponse" => "updateReconciliationReportRowsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ReconciliationReportRowService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationReportRowService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationReportRowService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that + * satisfy the given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
      {@code advertiserId}{@link ReconciliationReportRow#advertiserId}
      {@code orderId}{@link ReconciliationReportRow#orderId}
      {@code lineItemId}{@link ReconciliationReportRow#lineItemId}
      {@code creativeId}{@link ReconciliationReportRow#creativeId}
      {@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
      {@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
      {@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
      {@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
      {@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
      {@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
      {@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
      {@code manualClicks}{@link ReconciliationReportRow#manualClicks}
      {@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
      {@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
      {@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
      {@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
      {@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation report rows + * @return the reconciliation report rows that match the given filter + */ + public function getReconciliationReportRowsByStatement($filterStatement) { + $arg = new getReconciliationReportRowsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationReportRowsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates a list of {@link ReconciliationReportRow} which belong to same + * {@link ReconciliationReport}. + * + * @param reconciliationReportRows a list of reconciliation report rows to update + * @return the updated reconciliation report rows + */ + public function updateReconciliationReportRows($reconciliationReportRows) { + $arg = new updateReconciliationReportRows($reconciliationReportRows); + $result = $this->__soapCall("updateReconciliationReportRows", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php new file mode 100755 index 000000000..36a3a6c68 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php @@ -0,0 +1,2677 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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("ReconciliationImportError", FALSE)) { +/** + * The API errors for reconciliation CSV import. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationImportError extends ApiError { + /** + * @access public + * @var tnsReconciliationImportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError"; + } + + 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("ReconciliationReport", FALSE)) { +/** + * A {@code ReconciliationReport} represents a report that can be reconciled. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationReport { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsReconciliationReportStatus + */ + public $status; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReport"; + } + + public function __construct($id = NULL, $status = NULL, $startDate = NULL, $notes = NULL) { + $this->id = $id; + $this->status = $status; + $this->startDate = $startDate; + $this->notes = $notes; + } +}} + +if (!class_exists("ReconciliationReportPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationReport} objects + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationReportPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationReport[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationImportErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationImportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationReportStatus", FALSE)) { +/** + * A {@code ReconciliationReportStatus} represents the status of a {@link ReconciliationReport}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReconciliationReportStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationReport", FALSE)) { +/** + * Returns the {@link ReconciliationReport} object uniquely identified by given ID. + * + * @param reconciliationReportId the ID of the reconciliation report, which must already exist + * @return the {@code ReconciliationReport} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationReport { + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReportId = NULL) { + $this->reconciliationReportId = $reconciliationReportId; + } +}} + +if (!class_exists("getReconciliationReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationReportResponse { + /** + * @access public + * @var ReconciliationReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReconciliationReportsByStatement", FALSE)) { +/** + * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy + * the given {@link Statement#query}. The following fields are supported for filtering. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ReconciliationReport#id}
      {@code status}{@link ReconciliationReport#status}
      {@code startDate}{@link ReconciliationReport#startDate}
      + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation reports + * @return the reconciliation reports that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationReportsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationReportsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReconciliationReportsByStatementResponse { + /** + * @access public + * @var ReconciliationReportPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReport", FALSE)) { +/** + * Updates the specified {@link ReconciliationReport}. + * + * @param reconciliationReport the reconciliation report to be updated + * @return the updated reconciliation report + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateReconciliationReport { + /** + * @access public + * @var ReconciliationReport + */ + public $reconciliationReport; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReport = NULL) { + $this->reconciliationReport = $reconciliationReport; + } +}} + +if (!class_exists("updateReconciliationReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateReconciliationReportResponse { + /** + * @access public + * @var ReconciliationReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReports", FALSE)) { +/** + * Updates the specified {@link ReconciliationReport} objects. + * + * @param reconciliationReports the reconciliation reports to update + * @return the updated reconciliation reports + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateReconciliationReports { + /** + * @access public + * @var ReconciliationReport[] + */ + public $reconciliationReports; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReports = NULL) { + $this->reconciliationReports = $reconciliationReports; + } +}} + +if (!class_exists("updateReconciliationReportsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateReconciliationReportsResponse { + /** + * @access public + * @var ReconciliationReport[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationReportService", FALSE)) { +/** + * ReconciliationReportService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ReconciliationReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReconciliationError" => "ReconciliationError", + "ReconciliationImportError" => "ReconciliationImportError", + "ReconciliationReport" => "ReconciliationReport", + "ReconciliationReportPage" => "ReconciliationReportPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", + "ReconciliationReportStatus" => "ReconciliationReportStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationReport" => "getReconciliationReport", + "getReconciliationReportResponse" => "getReconciliationReportResponse", + "getReconciliationReportsByStatement" => "getReconciliationReportsByStatement", + "getReconciliationReportsByStatementResponse" => "getReconciliationReportsByStatementResponse", + "updateReconciliationReport" => "updateReconciliationReport", + "updateReconciliationReportResponse" => "updateReconciliationReportResponse", + "updateReconciliationReports" => "updateReconciliationReports", + "updateReconciliationReportsResponse" => "updateReconciliationReportsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ReconciliationReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationReportService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Returns the {@link ReconciliationReport} object uniquely identified by given ID. + * + * @param reconciliationReportId the ID of the reconciliation report, which must already exist + * @return the {@code ReconciliationReport} uniquely identified by the given ID + */ + public function getReconciliationReport($reconciliationReportId) { + $arg = new getReconciliationReport($reconciliationReportId); + $result = $this->__soapCall("getReconciliationReport", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy + * the given {@link Statement#query}. The following fields are supported for filtering. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ReconciliationReport#id}
      {@code status}{@link ReconciliationReport#status}
      {@code startDate}{@link ReconciliationReport#startDate}
      + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation reports + * @return the reconciliation reports that match the given filter + */ + public function getReconciliationReportsByStatement($filterStatement) { + $arg = new getReconciliationReportsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationReportsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ReconciliationReport}. + * + * @param reconciliationReport the reconciliation report to be updated + * @return the updated reconciliation report + */ + public function updateReconciliationReport($reconciliationReport) { + $arg = new updateReconciliationReport($reconciliationReport); + $result = $this->__soapCall("updateReconciliationReport", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ReconciliationReport} objects. + * + * @param reconciliationReports the reconciliation reports to update + * @return the updated reconciliation reports + * @throws ApiException + */ + public function updateReconciliationReports($reconciliationReports) { + $arg = new updateReconciliationReports($reconciliationReports); + $result = $this->__soapCall("updateReconciliationReports", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/ReportService.php b/src/Google/Api/Ads/Dfp/v201308/ReportService.php new file mode 100755 index 000000000..a13991a99 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/ReportService.php @@ -0,0 +1,2856 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ReportDownloadOptions", FALSE)) { +/** + * Represents the options for an API report download request. + * See {@link ReportService#getReportDownloadUrlWithOptions}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportDownloadOptions { + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * @access public + * @var boolean + */ + public $includeReportProperties; + + /** + * @access public + * @var boolean + */ + public $includeTotalsRow; + + /** + * @access public + * @var boolean + */ + public $useGzipCompression; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDownloadOptions"; + } + + public function __construct($exportFormat = NULL, $includeReportProperties = NULL, $includeTotalsRow = NULL, $useGzipCompression = NULL) { + $this->exportFormat = $exportFormat; + $this->includeReportProperties = $includeReportProperties; + $this->includeTotalsRow = $includeTotalsRow; + $this->useGzipCompression = $useGzipCompression; + } +}} + +if (!class_exists("ReportError", FALSE)) { +/** + * An error for an exception that occurred while running the report. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportError extends ApiError { + /** + * @access public + * @var tnsReportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError"; + } + + 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("ReportJob", FALSE)) { +/** + * Represents a report job that will be run to retrieve performance and + * statistics information about ad campaigns, networks, inventory and sales. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportJob { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var ReportQuery + */ + public $reportQuery; + + /** + * @access public + * @var tnsReportJobStatus + */ + public $reportJobStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJob"; + } + + public function __construct($id = NULL, $reportQuery = NULL, $reportJobStatus = NULL) { + $this->id = $id; + $this->reportQuery = $reportQuery; + $this->reportJobStatus = $reportJobStatus; + } +}} + +if (!class_exists("ReportQuery", FALSE)) { +/** + * A {@code ReportQuery} object allows you to specify the selection criteria for + * generating a report. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportQuery { + /** + * @access public + * @var tnsDimension[] + */ + public $dimensions; + + /** + * @access public + * @var tnsReportQueryAdUnitView + */ + public $adUnitView; + + /** + * @access public + * @var tnsColumn[] + */ + public $columns; + + /** + * @access public + * @var tnsDimensionAttribute[] + */ + public $dimensionAttributes; + + /** + * @access public + * @var integer[] + */ + public $customFieldIds; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var Date + */ + public $endDate; + + /** + * @access public + * @var tnsDateRangeType + */ + public $dateRangeType; + + /** + * @access public + * @var tnsDimensionFilter[] + */ + public $dimensionFilters; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery"; + } + + public function __construct($dimensions = NULL, $adUnitView = NULL, $columns = NULL, $dimensionAttributes = NULL, $customFieldIds = NULL, $startDate = NULL, $endDate = NULL, $dateRangeType = NULL, $dimensionFilters = NULL, $statement = NULL, $timeZone = NULL) { + $this->dimensions = $dimensions; + $this->adUnitView = $adUnitView; + $this->columns = $columns; + $this->dimensionAttributes = $dimensionAttributes; + $this->customFieldIds = $customFieldIds; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->dateRangeType = $dateRangeType; + $this->dimensionFilters = $dimensionFilters; + $this->statement = $statement; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportQueryAdUnitView", FALSE)) { +/** + * A view for an ad unit report. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportQueryAdUnitView { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery.AdUnitView"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Column", FALSE)) { +/** + * {@code Column} provides all the trafficking statistics and revenue + * information available for the chosen {@link Dimension} objects. + *

      + * Columns with {@code INVENTORY_LEVEL} should not be used with dimensions + * relating to line items, orders, companies and creatives, such as {@link Dimension#LINE_ITEM}. + * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level + * dynamic allocation enabled on your network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Column { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Column"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateRangeType", FALSE)) { +/** + * Represents a period of time. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Dimension", FALSE)) { +/** + * {@code Dimension} provides the break-down and filterable types available for + * running a {@link ReportJob}. Aggregate and percentage columns will be + * calculated based on these groupings. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Dimension { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimension"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionAttribute", FALSE)) { +/** + * {@code DimensionAttribute} provides additional fields associated with a + * {@link Dimension}. It can only be selected with its corresponding + * {@link Dimension}. For example, {@link DimensionAttribute#ORDER_PO_NUMBER} + * can only be used if the {@link ReportQuery#dimensions} contains + * {@link Dimension#ORDER_NAME}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DimensionAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionFilter", FALSE)) { +/** + * {@code DimensionFilter} filters the data used during report creation. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DimensionFilter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionFilter"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExportFormat", FALSE)) { +/** + * The file formats available for creating the report. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ExportFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExportFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportErrorReason", FALSE)) { +/** + * Default {@code ReportError} when the reason is not among any already + * defined. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportJobStatus", FALSE)) { +/** + * Represents the status of a {@link ReportJob} running on the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ReportJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportDownloadURL", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReportDownloadURL { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $exportFormat = NULL) { + $this->reportJobId = $reportJobId; + $this->exportFormat = $exportFormat; + } +}} + +if (!class_exists("getReportDownloadURLResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReportDownloadURLResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptions", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReportDownloadUrlWithOptions { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var ReportDownloadOptions + */ + public $reportDownloadOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $reportDownloadOptions = NULL) { + $this->reportJobId = $reportJobId; + $this->reportDownloadOptions = $reportDownloadOptions; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReportDownloadUrlWithOptionsResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportJob", FALSE)) { +/** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReportJob { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL) { + $this->reportJobId = $reportJobId; + } +}} + +if (!class_exists("getReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("runReportJob", FALSE)) { +/** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class runReportJob { + /** + * @access public + * @var ReportJob + */ + public $reportJob; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJob = NULL) { + $this->reportJob = $reportJob; + } +}} + +if (!class_exists("runReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class runReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportService", FALSE)) { +/** + * ReportService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class ReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ReportDownloadOptions" => "ReportDownloadOptions", + "ReportError" => "ReportError", + "ReportJob" => "ReportJob", + "ReportQuery" => "ReportQuery", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "Column" => "Column", + "CommonError.Reason" => "CommonErrorReason", + "DateRangeType" => "DateRangeType", + "Dimension" => "Dimension", + "DimensionAttribute" => "DimensionAttribute", + "DimensionFilter" => "DimensionFilter", + "ExportFormat" => "ExportFormat", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ReportError.Reason" => "ReportErrorReason", + "ReportJobStatus" => "ReportJobStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReportDownloadURL" => "getReportDownloadURL", + "getReportDownloadURLResponse" => "getReportDownloadURLResponse", + "getReportDownloadUrlWithOptions" => "getReportDownloadUrlWithOptions", + "getReportDownloadUrlWithOptionsResponse" => "getReportDownloadUrlWithOptionsResponse", + "getReportJob" => "getReportJob", + "getReportJobResponse" => "getReportJobResponse", + "runReportJob" => "runReportJob", + "runReportJobResponse" => "runReportJobResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/ReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + */ + public function getReportDownloadURL($reportJobId, $exportFormat) { + $arg = new getReportDownloadURL($reportJobId, $exportFormat); + $result = $this->__soapCall("getReportDownloadURL", array($arg)); + return $result->rval; + } + + + /** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + */ + public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions) { + $arg = new getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); + $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + */ + public function getReportJob($reportJobId) { + $arg = new getReportJob($reportJobId); + $result = $this->__soapCall("getReportJob", array($arg)); + return $result->rval; + } + + + /** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + */ + public function runReportJob($reportJob) { + $arg = new runReportJob($reportJob); + $result = $this->__soapCall("runReportJob", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php new file mode 100755 index 000000000..8354a5fbc --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php @@ -0,0 +1,2928 @@ +id = $id; + $this->name = $name; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SuggestedAdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SuggestedAdUnitAction { + /** + * @access public + * @var string + */ + public $SuggestedAdUnitActionType; + + private $_parameterMap = array ( + "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitAction"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("SuggestedAdUnit", FALSE)) { +/** + * A {@code SuggestedAdUnit} represents a suggestion for a new ad unit, based on an ad tag that has + * been served at least ten times in the past week, but which does not correspond to a defined ad + * unit. This type is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SuggestedAdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var integer + */ + public $numRequests; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var AdUnitSize[] + */ + public $suggestedAdUnitSizes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnit"; + } + + public function __construct($id = NULL, $numRequests = NULL, $path = NULL, $parentPath = NULL, $targetWindow = NULL, $targetPlatform = NULL, $suggestedAdUnitSizes = NULL) { + $this->id = $id; + $this->numRequests = $numRequests; + $this->path = $path; + $this->parentPath = $parentPath; + $this->targetWindow = $targetWindow; + $this->targetPlatform = $targetPlatform; + $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; + } +}} + +if (!class_exists("SuggestedAdUnitPage", FALSE)) { +/** + * Contains a page of {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SuggestedAdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var SuggestedAdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("SuggestedAdUnitUpdateResult", FALSE)) { +/** + * Represents the result of performing an action on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SuggestedAdUnitUpdateResult { + /** + * @access public + * @var string[] + */ + public $newAdUnitIds; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitUpdateResult"; + } + + public function __construct($newAdUnitIds = NULL, $numChanges = NULL) { + $this->newAdUnitIds = $newAdUnitIds; + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("getSuggestedAdUnit", FALSE)) { +/** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getSuggestedAdUnit { + /** + * @access public + * @var string + */ + public $suggestedAdUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitId = NULL) { + $this->suggestedAdUnitId = $suggestedAdUnitId; + } +}} + +if (!class_exists("getSuggestedAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getSuggestedAdUnitResponse { + /** + * @access public + * @var SuggestedAdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getSuggestedAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getSuggestedAdUnitsByStatementResponse { + /** + * @access public + * @var SuggestedAdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performSuggestedAdUnitAction", FALSE)) { +/** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performSuggestedAdUnitAction { + /** + * @access public + * @var SuggestedAdUnitAction + */ + public $suggestedAdUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitAction = NULL, $filterStatement = NULL) { + $this->suggestedAdUnitAction = $suggestedAdUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performSuggestedAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performSuggestedAdUnitActionResponse { + /** + * @access public + * @var SuggestedAdUnitUpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveSuggestedAdUnit", FALSE)) { +/** + * Action to approve {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveSuggestedAdUnit"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + parent::__construct(); + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SuggestedAdUnitService", FALSE)) { +/** + * SuggestedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class SuggestedAdUnitService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitParent" => "AdUnitParent", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", + "SuggestedAdUnitAction" => "SuggestedAdUnitAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SuggestedAdUnit" => "SuggestedAdUnit", + "SuggestedAdUnitPage" => "SuggestedAdUnitPage", + "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TargetPlatform" => "TargetPlatform", + "getSuggestedAdUnit" => "getSuggestedAdUnit", + "getSuggestedAdUnitResponse" => "getSuggestedAdUnitResponse", + "getSuggestedAdUnitsByStatement" => "getSuggestedAdUnitsByStatement", + "getSuggestedAdUnitsByStatementResponse" => "getSuggestedAdUnitsByStatementResponse", + "performSuggestedAdUnitAction" => "performSuggestedAdUnitAction", + "performSuggestedAdUnitActionResponse" => "performSuggestedAdUnitActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/SuggestedAdUnitService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SuggestedAdUnitService::$classmap; + parent::__construct($wsdl, $options, $user, 'SuggestedAdUnitService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + */ + public function getSuggestedAdUnit($suggestedAdUnitId) { + $arg = new getSuggestedAdUnit($suggestedAdUnitId); + $result = $this->__soapCall("getSuggestedAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + */ + public function getSuggestedAdUnitsByStatement($filterStatement) { + $arg = new getSuggestedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + */ + public function performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement) { + $arg = new performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSuggestedAdUnitAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/TeamService.php b/src/Google/Api/Ads/Dfp/v201308/TeamService.php new file mode 100755 index 000000000..e7c04e901 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/TeamService.php @@ -0,0 +1,2828 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Team", FALSE)) { +/** + * A {@code Team} defines a grouping of users and what entities they have access + * to. Users are added to teams with {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Team { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $hasAllCompanies; + + /** + * @access public + * @var boolean + */ + public $hasAllInventory; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $teamAccessType; + + /** + * @access public + * @var integer[] + */ + public $companyIds; + + /** + * @access public + * @var string[] + */ + public $adUnitIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Team"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $hasAllCompanies = NULL, $hasAllInventory = NULL, $teamAccessType = NULL, $companyIds = NULL, $adUnitIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->hasAllCompanies = $hasAllCompanies; + $this->hasAllInventory = $hasAllInventory; + $this->teamAccessType = $teamAccessType; + $this->companyIds = $companyIds; + $this->adUnitIds = $adUnitIds; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TeamPage", FALSE)) { +/** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Team[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createTeam", FALSE)) { +/** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("createTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createTeams", FALSE)) { +/** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("createTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeam", FALSE)) { +/** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getTeam { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL) { + $this->teamId = $teamId; + } +}} + +if (!class_exists("getTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeamsByStatement", FALSE)) { +/** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getTeamsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getTeamsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getTeamsByStatementResponse { + /** + * @access public + * @var TeamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeam", FALSE)) { +/** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("updateTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeams", FALSE)) { +/** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("updateTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TeamService", FALSE)) { +/** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class TeamService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Team" => "Team", + "TeamError" => "TeamError", + "TeamPage" => "TeamPage", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "TeamError.Reason" => "TeamErrorReason", + "createTeam" => "createTeam", + "createTeamResponse" => "createTeamResponse", + "createTeams" => "createTeams", + "createTeamsResponse" => "createTeamsResponse", + "getTeam" => "getTeam", + "getTeamResponse" => "getTeamResponse", + "getTeamsByStatement" => "getTeamsByStatement", + "getTeamsByStatementResponse" => "getTeamsByStatementResponse", + "updateTeam" => "updateTeam", + "updateTeamResponse" => "updateTeamResponse", + "updateTeams" => "updateTeams", + "updateTeamsResponse" => "updateTeamsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/TeamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TeamService::$classmap; + parent::__construct($wsdl, $options, $user, 'TeamService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + */ + public function createTeam($team) { + $arg = new createTeam($team); + $result = $this->__soapCall("createTeam", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + */ + public function createTeams($teams) { + $arg = new createTeams($teams); + $result = $this->__soapCall("createTeams", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + */ + public function getTeam($teamId) { + $arg = new getTeam($teamId); + $result = $this->__soapCall("getTeam", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + */ + public function getTeamsByStatement($filterStatement) { + $arg = new getTeamsByStatement($filterStatement); + $result = $this->__soapCall("getTeamsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + */ + public function updateTeam($team) { + $arg = new updateTeam($team); + $result = $this->__soapCall("updateTeam", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + */ + public function updateTeams($teams) { + $arg = new updateTeams($teams); + $result = $this->__soapCall("updateTeams", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/UserService.php b/src/Google/Api/Ads/Dfp/v201308/UserService.php new file mode 100755 index 000000000..c98731cfb --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/UserService.php @@ -0,0 +1,3673 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("Role", FALSE)) { +/** + * Each {@code Role} provides a user with permissions to perform specific + * operations in the system. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Role { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Role"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserAction { + /** + * @access public + * @var string + */ + public $UserActionType; + + private $_parameterMap = array ( + "UserAction.Type" => "UserActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserAction"; + } + + public function __construct($UserActionType = NULL) { + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("UserPage", FALSE)) { +/** + * Captures a page of {@link User} objects + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var User[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UserRecord", FALSE)) { +/** + * The {@code UserRecord} represents the base class from which a {@code User} is + * derived. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserRecord { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var integer + */ + public $roleId; + + /** + * @access public + * @var string + */ + public $roleName; + + /** + * @access public + * @var string + */ + public $preferredLocale; + + /** + * @access public + * @var string + */ + public $UserRecordType; + + private $_parameterMap = array ( + "UserRecord.Type" => "UserRecordType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecord"; + } + + public function __construct($id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUser", FALSE)) { +/** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("createUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUsers", FALSE)) { +/** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("createUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAllRoles", FALSE)) { +/** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAllRoles { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllRolesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getAllRolesResponse { + /** + * @access public + * @var Role[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentUser", FALSE)) { +/** + * Returns the current {@link User}. + * + * @return the current user + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCurrentUser { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getCurrentUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUser", FALSE)) { +/** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getUser { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userId = NULL) { + $this->userId = $userId; + } +}} + +if (!class_exists("getUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUsersByStatement", FALSE)) { +/** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getUsersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUsersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getUsersByStatementResponse { + /** + * @access public + * @var UserPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserAction", FALSE)) { +/** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performUserAction { + /** + * @access public + * @var UserAction + */ + public $userAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userAction = NULL, $filterStatement = NULL) { + $this->userAction = $userAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performUserActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performUserActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUser", FALSE)) { +/** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("updateUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUsers", FALSE)) { +/** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("updateUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateUsers", FALSE)) { +/** + * The action used for activating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ActivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeactivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("User", FALSE)) { +/** + * Represents a user of the system. + *

      + * Users may be assigned at most one {@link Role} per network. Each role + * provides a user with permissions to perform specific operations. Without a + * role, they will not be able to perform any actions. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class User extends UserRecord { + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $ordersUiLocalTimeZoneId; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "User"; + } + + public function __construct($isActive = NULL, $isEmailNotificationAllowed = NULL, $externalId = NULL, $ordersUiLocalTimeZoneId = NULL, $customFieldValues = NULL, $id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->externalId = $externalId; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $this->customFieldValues = $customFieldValues; + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("UserService", FALSE)) { +/** + * UserService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class UserService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateUsers" => "ActivateUsers", + "UserAction" => "UserAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateUsers" => "DeactivateUsers", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "Role" => "Role", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "User" => "User", + "UserRecord" => "UserRecord", + "UserPage" => "UserPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createUser" => "createUser", + "createUserResponse" => "createUserResponse", + "createUsers" => "createUsers", + "createUsersResponse" => "createUsersResponse", + "getAllRoles" => "getAllRoles", + "getAllRolesResponse" => "getAllRolesResponse", + "getCurrentUser" => "getCurrentUser", + "getCurrentUserResponse" => "getCurrentUserResponse", + "getUser" => "getUser", + "getUserResponse" => "getUserResponse", + "getUsersByStatement" => "getUsersByStatement", + "getUsersByStatementResponse" => "getUsersByStatementResponse", + "performUserAction" => "performUserAction", + "performUserActionResponse" => "performUserActionResponse", + "updateUser" => "updateUser", + "updateUserResponse" => "updateUserResponse", + "updateUsers" => "updateUsers", + "updateUsersResponse" => "updateUsersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/UserService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + */ + public function createUser($user) { + $arg = new createUser($user); + $result = $this->__soapCall("createUser", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + */ + public function createUsers($users) { + $arg = new createUsers($users); + $result = $this->__soapCall("createUsers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + */ + public function getAllRoles() { + $arg = new getAllRoles(); + $result = $this->__soapCall("getAllRoles", array($arg)); + return $result->rval; + } + + + /** + * Returns the current {@link User}. + * + * @return the current user + */ + public function getCurrentUser() { + $arg = new getCurrentUser(); + $result = $this->__soapCall("getCurrentUser", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + */ + public function getUser($userId) { + $arg = new getUser($userId); + $result = $this->__soapCall("getUser", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + */ + public function getUsersByStatement($filterStatement) { + $arg = new getUsersByStatement($filterStatement); + $result = $this->__soapCall("getUsersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + */ + public function performUserAction($userAction, $filterStatement) { + $arg = new performUserAction($userAction, $filterStatement); + $result = $this->__soapCall("performUserAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + */ + public function updateUser($user) { + $arg = new updateUser($user); + $result = $this->__soapCall("updateUser", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + */ + public function updateUsers($users) { + $arg = new updateUsers($users); + $result = $this->__soapCall("updateUsers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php new file mode 100755 index 000000000..9e0b7cf4d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php @@ -0,0 +1,2900 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserRecordTeamAssociation", FALSE)) { +/** + * {@code UserRecordTeamAssociation} represents the association between a + * {@link UserRecord} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $overriddenTeamAccessType; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $defaultTeamAccessType; + + /** + * @access public + * @var string + */ + public $UserRecordTeamAssociationType; + + private $_parameterMap = array ( + "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecordTeamAssociation"; + } + + public function __construct($teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link UserTeamAssociation} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserTeamAssociationAction { + /** + * @access public + * @var string + */ + public $UserTeamAssociationActionType; + + private $_parameterMap = array ( + "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationAction"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("UserTeamAssociation", FALSE)) { +/** + * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} + * to provide the user access to the entities that belong to the team. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociation"; + } + + public function __construct($userId = NULL, $teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + parent::__construct(); + $this->userId = $userId; + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationPage", FALSE)) { +/** + * Captures a page of {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class UserTeamAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUserTeamAssociation", FALSE)) { +/** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("createUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUserTeamAssociations", FALSE)) { +/** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("createUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class createUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociation", FALSE)) { +/** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getUserTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL, $userId = NULL) { + $this->teamId = $teamId; + $this->userId = $userId; + } +}} + +if (!class_exists("getUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatement", FALSE)) { +/** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getUserTeamAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getUserTeamAssociationsByStatementResponse { + /** + * @access public + * @var UserTeamAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserTeamAssociationAction", FALSE)) { +/** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performUserTeamAssociationAction { + /** + * @access public + * @var UserTeamAssociationAction + */ + public $userTeamAssociationAction; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociationAction = NULL, $statement = NULL) { + $this->userTeamAssociationAction = $userTeamAssociationAction; + $this->statement = $statement; + } +}} + +if (!class_exists("performUserTeamAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class performUserTeamAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociation", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("updateUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociations", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("updateUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class updateUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteUserTeamAssociations"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + parent::__construct(); + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("UserTeamAssociationService", FALSE)) { +/** + * UserTeamAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class UserTeamAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", + "UserTeamAssociationAction" => "UserTeamAssociationAction", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "UserRecordTeamAssociation" => "UserRecordTeamAssociation", + "UserTeamAssociation" => "UserTeamAssociation", + "UserTeamAssociationPage" => "UserTeamAssociationPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "createUserTeamAssociation" => "createUserTeamAssociation", + "createUserTeamAssociationResponse" => "createUserTeamAssociationResponse", + "createUserTeamAssociations" => "createUserTeamAssociations", + "createUserTeamAssociationsResponse" => "createUserTeamAssociationsResponse", + "getUserTeamAssociation" => "getUserTeamAssociation", + "getUserTeamAssociationResponse" => "getUserTeamAssociationResponse", + "getUserTeamAssociationsByStatement" => "getUserTeamAssociationsByStatement", + "getUserTeamAssociationsByStatementResponse" => "getUserTeamAssociationsByStatementResponse", + "performUserTeamAssociationAction" => "performUserTeamAssociationAction", + "performUserTeamAssociationActionResponse" => "performUserTeamAssociationActionResponse", + "updateUserTeamAssociation" => "updateUserTeamAssociation", + "updateUserTeamAssociationResponse" => "updateUserTeamAssociationResponse", + "updateUserTeamAssociations" => "updateUserTeamAssociations", + "updateUserTeamAssociationsResponse" => "updateUserTeamAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/UserTeamAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserTeamAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserTeamAssociationService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + */ + public function createUserTeamAssociation($userTeamAssociation) { + $arg = new createUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("createUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + */ + public function createUserTeamAssociations($userTeamAssociations) { + $arg = new createUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("createUserTeamAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + */ + public function getUserTeamAssociation($teamId, $userId) { + $arg = new getUserTeamAssociation($teamId, $userId); + $result = $this->__soapCall("getUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + */ + public function getUserTeamAssociationsByStatement($filterStatement) { + $arg = new getUserTeamAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + */ + public function performUserTeamAssociationAction($userTeamAssociationAction, $statement) { + $arg = new performUserTeamAssociationAction($userTeamAssociationAction, $statement); + $result = $this->__soapCall("performUserTeamAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + */ + public function updateUserTeamAssociation($userTeamAssociation) { + $arg = new updateUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("updateUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + */ + public function updateUserTeamAssociations($userTeamAssociations) { + $arg = new updateUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("updateUserTeamAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php b/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php new file mode 100755 index 000000000..1fa396ff4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php @@ -0,0 +1,2158 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowAction", FALSE)) { +/** + * A {@code WorkflowAction} represents an executable in a workflow, such as requesting approval or + * sending notification. When the workflow has executed to a round, all of its actions will start. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class WorkflowAction { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer[] + */ + public $userIds; + + /** + * @access public + * @var tnsWorkflowActionType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowAction"; + } + + public function __construct($id = NULL, $name = NULL, $userIds = NULL, $type = NULL) { + $this->id = $id; + $this->name = $name; + $this->userIds = $userIds; + $this->type = $type; + } +}} + +if (!class_exists("WorkflowActionPage", FALSE)) { +/** + * Captures a page of {@link WorkflowAction} objects. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class WorkflowActionPage { + /** + * @access public + * @var WorkflowAction[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("WorkflowActionType", FALSE)) { +/** + * Represents the type of an workflow round action. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class WorkflowActionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionType"; + } + + public function __construct() { + } +}} + +if (!class_exists("getWorkflowAction", FALSE)) { +/** + * Returns the {@link WorkflowAction} uniquely identified by the given ID. + * + * @param workflowActionId the ID of the workflow action, which must already exist + * @return the {@code WorkflowAction} uniquely identified by the given ID. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getWorkflowAction { + /** + * @access public + * @var integer + */ + public $workflowActionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($workflowActionId = NULL) { + $this->workflowActionId = $workflowActionId; + } +}} + +if (!class_exists("getWorkflowActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getWorkflowActionResponse { + /** + * @access public + * @var WorkflowAction + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getWorkflowActionsByStatement", FALSE)) { +/** + * Gets a {@link WorkflowActionPage} of {@link WorkflowAction} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      id{@link WorkflowAction#id}
      name{@link WorkflowAction#name}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * actions + * @return the {@link WorkflowAction workflow actions} that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getWorkflowActionsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getWorkflowActionsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class getWorkflowActionsByStatementResponse { + /** + * @access public + * @var WorkflowActionPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201308 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201308"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowActionService", FALSE)) { +/** + * WorkflowActionService + * @package GoogleApiAdsDfp + * @subpackage v201308 + * @author WSDLInterpreter + */ +class WorkflowActionService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "WorkflowAction" => "WorkflowAction", + "WorkflowActionPage" => "WorkflowActionPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "WorkflowActionType" => "WorkflowActionType", + "getWorkflowAction" => "getWorkflowAction", + "getWorkflowActionResponse" => "getWorkflowActionResponse", + "getWorkflowActionsByStatement" => "getWorkflowActionsByStatement", + "getWorkflowActionsByStatementResponse" => "getWorkflowActionsByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201308/WorkflowActionService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = WorkflowActionService::$classmap; + parent::__construct($wsdl, $options, $user, 'WorkflowActionService', 'https://www.google.com/apis/ads/publisher/v201308'); + } + + /** + * Returns the {@link WorkflowAction} uniquely identified by the given ID. + * + * @param workflowActionId the ID of the workflow action, which must already exist + * @return the {@code WorkflowAction} uniquely identified by the given ID. + */ + public function getWorkflowAction($workflowActionId) { + $arg = new getWorkflowAction($workflowActionId); + $result = $this->__soapCall("getWorkflowAction", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link WorkflowActionPage} of {@link WorkflowAction} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      id{@link WorkflowAction#id}
      name{@link WorkflowAction#name}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * actions + * @return the {@link WorkflowAction workflow actions} that match the given filter + */ + public function getWorkflowActionsByStatement($filterStatement) { + $arg = new getWorkflowActionsByStatement($filterStatement); + $result = $this->__soapCall("getWorkflowActionsByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php new file mode 100755 index 000000000..1aef1653c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php @@ -0,0 +1,2878 @@ +id = $id; + $this->name = $name; + $this->companyIds = $companyIds; + $this->impressionsLookback = $impressionsLookback; + $this->clicksLookback = $clicksLookback; + $this->status = $status; + } +}} + +if (!class_exists("ActivityGroupPage", FALSE)) { +/** + * Captures a page of {@link ActivityGroup} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityGroupPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ActivityGroup[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityGroupPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityGroupStatus", FALSE)) { +/** + * The activity group status. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityGroupStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityGroup.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createActivityGroup", FALSE)) { +/** + * Creates a new {@link ActivityGroup}. + * + * @param activityGroup the activity group to be created. + * @return the created activity group with its ID filled in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createActivityGroup { + /** + * @access public + * @var ActivityGroup + */ + public $activityGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroup = NULL) { + $this->activityGroup = $activityGroup; + } +}} + +if (!class_exists("createActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createActivityGroups", FALSE)) { +/** + * Creates a new {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createActivityGroups { + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroups = NULL) { + $this->activityGroups = $activityGroups; + } +}} + +if (!class_exists("createActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createActivityGroupsResponse { + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivityGroup", FALSE)) { +/** + * Returns the {@link ActivityGroup} uniquely identified by the given ID. + * + * @param activityGroupId the ID of the activity group, which must already exist. + * @return the {@code ActivityGroup} uniquely identified by the given ID. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getActivityGroup { + /** + * @access public + * @var integer + */ + public $activityGroupId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroupId = NULL) { + $this->activityGroupId = $activityGroupId; + } +}} + +if (!class_exists("getActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivityGroupsByStatement", FALSE)) { +/** + * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ActivityGroup#id}
      {@code name}{@link ActivityGroup#name}
      {@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
      {@code clicksLookback}{@link ActivityGroup#clicksLookback}
      {@code status}{@link ActivityGroup#status}
      + * + * @param filterStatement a statement used to filter a set of activity groups + * @return the activity groups that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getActivityGroupsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getActivityGroupsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getActivityGroupsByStatementResponse { + /** + * @access public + * @var ActivityGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivityGroup", FALSE)) { +/** + * Updates the specified {@link ActivityGroup}. + * + * @param activityGroup the activity group to update. + * @return the updated activity group. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateActivityGroup { + /** + * @access public + * @var ActivityGroup + */ + public $activityGroup; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroup = NULL) { + $this->activityGroup = $activityGroup; + } +}} + +if (!class_exists("updateActivityGroupResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateActivityGroupResponse { + /** + * @access public + * @var ActivityGroup + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivityGroups", FALSE)) { +/** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateActivityGroups { + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityGroups = NULL) { + $this->activityGroups = $activityGroups; + } +}} + +if (!class_exists("updateActivityGroupsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateActivityGroupsResponse { + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivityError", FALSE)) { +/** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityError extends ApiError { + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityGroupService", FALSE)) { +/** + * ActivityGroupService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ActivityGroupService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivityError" => "ActivityError", + "ApiError" => "ApiError", + "ActivityGroup" => "ActivityGroup", + "ActivityGroupPage" => "ActivityGroupPage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ActivityError.Reason" => "ActivityErrorReason", + "ActivityGroup.Status" => "ActivityGroupStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createActivityGroup" => "createActivityGroup", + "createActivityGroupResponse" => "createActivityGroupResponse", + "createActivityGroups" => "createActivityGroups", + "createActivityGroupsResponse" => "createActivityGroupsResponse", + "getActivityGroup" => "getActivityGroup", + "getActivityGroupResponse" => "getActivityGroupResponse", + "getActivityGroupsByStatement" => "getActivityGroupsByStatement", + "getActivityGroupsByStatementResponse" => "getActivityGroupsByStatementResponse", + "updateActivityGroup" => "updateActivityGroup", + "updateActivityGroupResponse" => "updateActivityGroupResponse", + "updateActivityGroups" => "updateActivityGroups", + "updateActivityGroupsResponse" => "updateActivityGroupsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ActivityGroupService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ActivityGroupService::$classmap; + parent::__construct($wsdl, $options, $user, 'ActivityGroupService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link ActivityGroup}. + * + * @param activityGroup the activity group to be created. + * @return the created activity group with its ID filled in. + */ + public function createActivityGroup($activityGroup) { + $arg = new createActivityGroup($activityGroup); + $result = $this->__soapCall("createActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to be created. + * @return the created activity groups with their IDs filled in. + */ + public function createActivityGroups($activityGroups) { + $arg = new createActivityGroups($activityGroups); + $result = $this->__soapCall("createActivityGroups", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ActivityGroup} uniquely identified by the given ID. + * + * @param activityGroupId the ID of the activity group, which must already exist. + * @return the {@code ActivityGroup} uniquely identified by the given ID. + */ + public function getActivityGroup($activityGroupId) { + $arg = new getActivityGroup($activityGroupId); + $result = $this->__soapCall("getActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ActivityGroup#id}
      {@code name}{@link ActivityGroup#name}
      {@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
      {@code clicksLookback}{@link ActivityGroup#clicksLookback}
      {@code status}{@link ActivityGroup#status}
      + * + * @param filterStatement a statement used to filter a set of activity groups + * @return the activity groups that match the given filter + */ + public function getActivityGroupsByStatement($filterStatement) { + $arg = new getActivityGroupsByStatement($filterStatement); + $result = $this->__soapCall("getActivityGroupsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ActivityGroup}. + * + * @param activityGroup the activity group to update. + * @return the updated activity group. + */ + public function updateActivityGroup($activityGroup) { + $arg = new updateActivityGroup($activityGroup); + $result = $this->__soapCall("updateActivityGroup", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + */ + public function updateActivityGroups($activityGroups) { + $arg = new updateActivityGroups($activityGroups); + $result = $this->__soapCall("updateActivityGroups", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ActivityService.php b/src/Google/Api/Ads/Dfp/v201311/ActivityService.php new file mode 100755 index 000000000..e21cdf9a1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ActivityService.php @@ -0,0 +1,2911 @@ +An activity is a specific user action that an advertiser wants to track, such as the + * completion of a purchase or a visit to a webpage. You create and manage activities in DFP. When + * a user performs the action after seeing an advertiser's ad, that's a conversion.

      + * + *

      For example, you set up an activity in DFP to track how many users visit an advertiser's + * promotional website after viewing or clicking on an ad. When a user views an ad, then visits the + * page, that's one conversion.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Activity { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $activityGroupId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $expectedURL; + + /** + * @access public + * @var tnsActivityStatus + */ + public $status; + + /** + * @access public + * @var tnsActivityType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity"; + } + + public function __construct($id = NULL, $activityGroupId = NULL, $name = NULL, $expectedURL = NULL, $status = NULL, $type = NULL) { + $this->id = $id; + $this->activityGroupId = $activityGroupId; + $this->name = $name; + $this->expectedURL = $expectedURL; + $this->status = $status; + $this->type = $type; + } +}} + +if (!class_exists("ActivityPage", FALSE)) { +/** + * Captures a page of {@link Activity} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Activity[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityStatus", FALSE)) { +/** + * The activity status. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityType", FALSE)) { +/** + * The activity type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Activity.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("ActivityErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createActivities", FALSE)) { +/** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createActivities { + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activities = NULL) { + $this->activities = $activities; + } +}} + +if (!class_exists("createActivitiesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createActivitiesResponse { + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createActivity", FALSE)) { +/** + * Creates a new {@link Activity}. + * + * @param activity to be created + * @return the created activity with its ID filled in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createActivity { + /** + * @access public + * @var Activity + */ + public $activity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activity = NULL) { + $this->activity = $activity; + } +}} + +if (!class_exists("createActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivitiesByStatement", FALSE)) { +/** + * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Activity#id}
      {@code name}{@link Activity#name}
      {@code expectedURL}{@link Activity#expectedURL}
      {@code status}{@link Activity#status}
      {@code activityGroupId}{@link Activity#activityGroupId}
      + * + * @param filterStatement a statement used to filter a set of activities. + * @return the activities that match the given filter. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getActivitiesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getActivitiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getActivitiesByStatementResponse { + /** + * @access public + * @var ActivityPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getActivity", FALSE)) { +/** + * Returns the {@link Activity} uniquely identified by the given ID. + * + * @param activityId the ID of the activity, which must already exist + * @return the {@code Activity} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getActivity { + /** + * @access public + * @var integer + */ + public $activityId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activityId = NULL) { + $this->activityId = $activityId; + } +}} + +if (!class_exists("getActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivities", FALSE)) { +/** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateActivities { + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activities = NULL) { + $this->activities = $activities; + } +}} + +if (!class_exists("updateActivitiesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateActivitiesResponse { + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateActivity", FALSE)) { +/** + * Updates the specified {@link Activity}. + * + * @param activity to be updated. + * @return the updated activity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateActivity { + /** + * @access public + * @var Activity + */ + public $activity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($activity = NULL) { + $this->activity = $activity; + } +}} + +if (!class_exists("updateActivityResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateActivityResponse { + /** + * @access public + * @var Activity + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivityError", FALSE)) { +/** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivityError extends ApiError { + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivityError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ActivityService", FALSE)) { +/** + * ActivityService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ActivityService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "Activity" => "Activity", + "ActivityError" => "ActivityError", + "ApiError" => "ApiError", + "ActivityPage" => "ActivityPage", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "Activity.Status" => "ActivityStatus", + "Activity.Type" => "ActivityType", + "ActivityError.Reason" => "ActivityErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createActivities" => "createActivities", + "createActivitiesResponse" => "createActivitiesResponse", + "createActivity" => "createActivity", + "createActivityResponse" => "createActivityResponse", + "getActivitiesByStatement" => "getActivitiesByStatement", + "getActivitiesByStatementResponse" => "getActivitiesByStatementResponse", + "getActivity" => "getActivity", + "getActivityResponse" => "getActivityResponse", + "updateActivities" => "updateActivities", + "updateActivitiesResponse" => "updateActivitiesResponse", + "updateActivity" => "updateActivity", + "updateActivityResponse" => "updateActivityResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ActivityService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ActivityService::$classmap; + parent::__construct($wsdl, $options, $user, 'ActivityService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + */ + public function createActivities($activities) { + $arg = new createActivities($activities); + $result = $this->__soapCall("createActivities", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Activity}. + * + * @param activity to be created + * @return the created activity with its ID filled in. + */ + public function createActivity($activity) { + $arg = new createActivity($activity); + $result = $this->__soapCall("createActivity", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Activity#id}
      {@code name}{@link Activity#name}
      {@code expectedURL}{@link Activity#expectedURL}
      {@code status}{@link Activity#status}
      {@code activityGroupId}{@link Activity#activityGroupId}
      + * + * @param filterStatement a statement used to filter a set of activities. + * @return the activities that match the given filter. + */ + public function getActivitiesByStatement($filterStatement) { + $arg = new getActivitiesByStatement($filterStatement); + $result = $this->__soapCall("getActivitiesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Activity} uniquely identified by the given ID. + * + * @param activityId the ID of the activity, which must already exist + * @return the {@code Activity} uniquely identified by the given ID + */ + public function getActivity($activityId) { + $arg = new getActivity($activityId); + $result = $this->__soapCall("getActivity", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + */ + public function updateActivities($activities) { + $arg = new updateActivities($activities); + $result = $this->__soapCall("updateActivities", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Activity}. + * + * @param activity to be updated. + * @return the updated activity. + */ + public function updateActivity($activity) { + $arg = new updateActivity($activity); + $result = $this->__soapCall("updateActivity", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201311/AdRuleService.php new file mode 100755 index 000000000..b82acf946 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/AdRuleService.php @@ -0,0 +1,6531 @@ + "AdRuleActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleAction"; + } + + public function __construct($AdRuleActionType = NULL) { + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("AdRule", FALSE)) { +/** + * An {@link AdRule} contains data that the ad server will use to generate a playlist of video ads. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRule { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsAdRuleStatus + */ + public $status; + + /** + * @access public + * @var tnsFrequencyCapBehavior + */ + public $frequencyCapBehavior; + + /** + * @access public + * @var integer + */ + public $maxImpressionsPerLineItemPerStream; + + /** + * @access public + * @var integer + */ + public $maxImpressionsPerLineItemPerPod; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $preroll; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $midroll; + + /** + * @access public + * @var BaseAdRuleSlot + */ + public $postroll; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRule"; + } + + public function __construct($id = NULL, $name = NULL, $priority = NULL, $targeting = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $frequencyCapBehavior = NULL, $maxImpressionsPerLineItemPerStream = NULL, $maxImpressionsPerLineItemPerPod = NULL, $preroll = NULL, $midroll = NULL, $postroll = NULL) { + $this->id = $id; + $this->name = $name; + $this->priority = $priority; + $this->targeting = $targeting; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->frequencyCapBehavior = $frequencyCapBehavior; + $this->maxImpressionsPerLineItemPerStream = $maxImpressionsPerLineItemPerStream; + $this->maxImpressionsPerLineItemPerPod = $maxImpressionsPerLineItemPerPod; + $this->preroll = $preroll; + $this->midroll = $midroll; + $this->postroll = $postroll; + } +}} + +if (!class_exists("AdRulePage", FALSE)) { +/** + * Captures a page of {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRulePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdRule[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("BaseAdRuleSlot", FALSE)) { +/** + * Simple object representing an ad slot within an {@link AdRule}. Ad rule slots + * contain information about the types/number of ads to display, as well + * as additional information on how the ad server will generate playlists. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseAdRuleSlot { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsAdRuleSlotBehavior + */ + public $slotBehavior; + + /** + * @access public + * @var integer + */ + public $minVideoAdDuration; + + /** + * @access public + * @var integer + */ + public $maxVideoAdDuration; + + /** + * @access public + * @var tnsMidrollFrequencyType + */ + public $videoMidrollFrequencyType; + + /** + * @access public + * @var string + */ + public $videoMidrollFrequency; + + /** + * @access public + * @var tnsAdRuleSlotBumper + */ + public $bumper; + + /** + * @access public + * @var integer + */ + public $maxBumperDuration; + + /** + * @access public + * @var integer + */ + public $minPodDuration; + + /** + * @access public + * @var integer + */ + public $maxPodDuration; + + /** + * @access public + * @var integer + */ + public $maxAdsInPod; + + /** + * @access public + * @var string + */ + public $BaseAdRuleSlotType; + + private $_parameterMap = array ( + "BaseAdRuleSlot.Type" => "BaseAdRuleSlotType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("StandardPoddingAdRuleSlot", FALSE)) { +/** + * An ad rule slot with standard podding. A standard pod is a series of video ads played + * back to back. Standard pods are defined by a {@link BaseAdRuleSlot#maxAdsInPod} and a + * {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StandardPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("AdUnitTargeting", FALSE)) { +/** + * Represents targeted or excluded ad units. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitTargeting { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * @access public + * @var boolean + */ + public $includeDescendants; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTargeting"; + } + + public function __construct($adUnitId = NULL, $includeDescendants = NULL) { + $this->adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyTargeting { + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchyTargeting"; + } + + public function __construct($customTargetingValueIds = NULL) { + $this->customTargetingValueIds = $customTargetingValueIds; + } +}} + +if (!class_exists("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingError extends ApiError { + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataTargetingError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoContentBundleIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoContentBundleIds; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $targetedContentMetadata; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $excludedContentMetadata; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL, $targetedVideoContentBundleIds = NULL, $excludedVideoContentBundleIds = NULL, $targetedContentMetadata = NULL, $excludedContentMetadata = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + $this->targetedVideoContentBundleIds = $targetedVideoContentBundleIds; + $this->excludedVideoContentBundleIds = $excludedVideoContentBundleIds; + $this->targetedContentMetadata = $targetedContentMetadata; + $this->excludedContentMetadata = $excludedContentMetadata; + } +}} + +if (!class_exists("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DeactivateAdRules", FALSE)) { +/** + * The action used for pausing {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("DeleteAdRules", FALSE)) { +/** + * The action used for deleting {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeleteAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $type = NULL, $canonicalParentId = NULL, $displayName = NULL, $LocationType = NULL) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PoddingError", FALSE)) { +/** + * Errors related to podding fields in ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PoddingError extends ApiError { + /** + * @access public + * @var tnsPoddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PoddingError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnknownAdRuleSlot", FALSE)) { +/** + * The {@link BaseAdRuleSlot} subtype returned if the actual type is not exposed by the + * requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnknownAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnknownAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("AdRuleDateErrorReason", FALSE)) { +/** + * Describes reasons for {@code AdRuleDateError}s. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleFrequencyCapErrorReason", FALSE)) { +/** + * Describes reason for {@code AdRuleFrequencyCapError}s. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleFrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleFrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRulePriorityErrorReason", FALSE)) { +/** + * Reasons for an {@code AdRulePriorityError}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRulePriorityErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePriorityError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotBehavior", FALSE)) { +/** + * The types of behaviors for ads within a {@link BaseAdRuleSlot ad rule slot}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleSlotBehavior { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotBehavior"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotBumper", FALSE)) { +/** + * Types of bumper ads on an ad rule slot. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleSlotBumper { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotBumper"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleSlotErrorReason", FALSE)) { +/** + * Describes reason for {@code AdRuleSlotError}s. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleSlotErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdRuleStatus", FALSE)) { +/** + * Represents the status of ad rules and ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapBehavior", FALSE)) { +/** + * Types of behavior for frequency caps within ad rules. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapBehavior { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapBehavior"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MidrollFrequencyType", FALSE)) { +/** + * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MidrollFrequencyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MidrollFrequencyType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PoddingErrorReason", FALSE)) { +/** + * Describes reason for {@code PoddingError}s. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PoddingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PoddingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdRule", FALSE)) { +/** + * Creates a new {@link AdRule}. + * + * The following fields are required: + *
        + *
      • {@link AdRule#id}
      • + *
      • {@link AdRule#name}
      • + *
      • {@link AdRule#priority}
      • + *
      • {@link AdRule#startDateTime}
      • + *
      • {@link AdRule#endDateTime}
      • + *
      • {@link AdRule#preroll}
      • + *
      • {@link AdRule#midroll}
      • + *
      • {@link AdRule#postroll}
      • + *
      + * + * @param adRule the ad rule to create + * @return the ad rule with its ID filled in + * @throws ApiException if there the ad rule is invalid or there is another + * error + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAdRule { + /** + * @access public + * @var AdRule + */ + public $adRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRule = NULL) { + $this->adRule = $adRule; + } +}} + +if (!class_exists("createAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdRules", FALSE)) { +/** + * Creates new {@link AdRule} objects. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAdRules { + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRules = NULL) { + $this->adRules = $adRules; + } +}} + +if (!class_exists("createAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAdRulesResponse { + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdRule", FALSE)) { +/** + * Returns the {@link AdRule} uniquely identified by the given ID. + * + * @param adRuleId the ID of the ad rule, which must already exist + * @return the {@code AdRule} uniquely identified by the given ID + * @throws ApiException if there is an error retrieving the ad rule + * or the ID is invalid + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdRule { + /** + * @access public + * @var integer + */ + public $adRuleId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRuleId = NULL) { + $this->adRuleId = $adRuleId; + } +}} + +if (!class_exists("getAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdRulesByStatement", FALSE)) { +/** + * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link AdRule#id}
      {@code name}{@link AdRule#name}
      {@code priority}{@link AdRule#priority}
      {@code status}{@link AdRule#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the ad rules that match the given filter + * @throws ApiException if the ID of the active network does not exist or + * there is a backend error + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdRulesByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getAdRulesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdRulesByStatementResponse { + /** + * @access public + * @var AdRulePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdRuleAction", FALSE)) { +/** + * Performs actions on {@link AdRule} objects that match the given + * {@link Statement#query}. + * + * @param adRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performAdRuleAction { + /** + * @access public + * @var AdRuleAction + */ + public $adRuleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRuleAction = NULL, $filterStatement = NULL) { + $this->adRuleAction = $adRuleAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdRuleActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performAdRuleActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdRule", FALSE)) { +/** + * Updates a previously-created {@link AdRule}. + * + * @param adRule the ad rule that should be updated + * @return the updated ad rule + * @throws ApiException if there is an error updating the ad rule + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAdRule { + /** + * @access public + * @var AdRule + */ + public $adRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRule = NULL) { + $this->adRule = $adRule; + } +}} + +if (!class_exists("updateAdRuleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAdRuleResponse { + /** + * @access public + * @var AdRule + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdRules", FALSE)) { +/** + * Updates the specified {@link AdRule} objects. + * + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAdRules { + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adRules = NULL) { + $this->adRules = $adRules; + } +}} + +if (!class_exists("updateAdRulesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAdRulesResponse { + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdRules", FALSE)) { +/** + * The action used for resuming {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateAdRules extends AdRuleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdRules"; + } + + public function __construct($AdRuleActionType = NULL) { + parent::__construct(); + $this->AdRuleActionType = $AdRuleActionType; + } +}} + +if (!class_exists("AdRuleDateError", FALSE)) { +/** + * Lists all errors associated with ad rule start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleDateError extends ApiError { + /** + * @access public + * @var tnsAdRuleDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleDateError"; + } + + 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("AdRuleFrequencyCapError", FALSE)) { +/** + * Errors related to ad rule frequency caps + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleFrequencyCapError extends ApiError { + /** + * @access public + * @var tnsAdRuleFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleFrequencyCapError"; + } + + 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("NoPoddingAdRuleSlot", FALSE)) { +/** + * An ad rule slot with no podding. It is defined by a {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NoPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("OptimizedPoddingAdRuleSlot", FALSE)) { +/** + * Ad rule slot with optimized podding. Optimized pods are defined by a + * {@link BaseAdRuleSlot#maxPodDuration} and a {@link BaseAdRuleSlot#maxAdsInPod}, and the ad + * server chooses the best ads for the alloted duration. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OptimizedPoddingAdRuleSlot"; + } + + public function __construct($id = NULL, $slotBehavior = NULL, $minVideoAdDuration = NULL, $maxVideoAdDuration = NULL, $videoMidrollFrequencyType = NULL, $videoMidrollFrequency = NULL, $bumper = NULL, $maxBumperDuration = NULL, $minPodDuration = NULL, $maxPodDuration = NULL, $maxAdsInPod = NULL, $BaseAdRuleSlotType = NULL) { + parent::__construct(); + $this->id = $id; + $this->slotBehavior = $slotBehavior; + $this->minVideoAdDuration = $minVideoAdDuration; + $this->maxVideoAdDuration = $maxVideoAdDuration; + $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; + $this->videoMidrollFrequency = $videoMidrollFrequency; + $this->bumper = $bumper; + $this->maxBumperDuration = $maxBumperDuration; + $this->minPodDuration = $minPodDuration; + $this->maxPodDuration = $maxPodDuration; + $this->maxAdsInPod = $maxAdsInPod; + $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + } +}} + +if (!class_exists("AdRulePriorityError", FALSE)) { +/** + * Errors associated with ad rule priorities. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRulePriorityError extends ApiError { + /** + * @access public + * @var tnsAdRulePriorityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRulePriorityError"; + } + + 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("AdRuleSlotError", FALSE)) { +/** + * Errors related to ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdRuleSlotError extends ApiError { + /** + * @access public + * @var tnsAdRuleSlotErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdRuleSlotError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AdRuleService", FALSE)) { +/** + * AdRuleService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class AdRuleService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdRules" => "ActivateAdRules", + "AdRuleAction" => "AdRuleAction", + "AdRuleDateError" => "AdRuleDateError", + "ApiError" => "ApiError", + "AdRule" => "AdRule", + "AdRuleFrequencyCapError" => "AdRuleFrequencyCapError", + "NoPoddingAdRuleSlot" => "NoPoddingAdRuleSlot", + "BaseAdRuleSlot" => "BaseAdRuleSlot", + "OptimizedPoddingAdRuleSlot" => "OptimizedPoddingAdRuleSlot", + "AdRulePage" => "AdRulePage", + "AdRulePriorityError" => "AdRulePriorityError", + "AdRuleSlotError" => "AdRuleSlotError", + "StandardPoddingAdRuleSlot" => "StandardPoddingAdRuleSlot", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DeactivateAdRules" => "DeactivateAdRules", + "DeleteAdRules" => "DeleteAdRules", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "FeatureError" => "FeatureError", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "PermissionError" => "PermissionError", + "PoddingError" => "PoddingError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "UniqueError" => "UniqueError", + "UnknownAdRuleSlot" => "UnknownAdRuleSlot", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "AdRuleDateError.Reason" => "AdRuleDateErrorReason", + "AdRuleFrequencyCapError.Reason" => "AdRuleFrequencyCapErrorReason", + "AdRulePriorityError.Reason" => "AdRulePriorityErrorReason", + "AdRuleSlotBehavior" => "AdRuleSlotBehavior", + "AdRuleSlotBumper" => "AdRuleSlotBumper", + "AdRuleSlotError.Reason" => "AdRuleSlotErrorReason", + "AdRuleStatus" => "AdRuleStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DayOfWeek" => "DayOfWeek", + "DeliveryTimeZone" => "DeliveryTimeZone", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapBehavior" => "FrequencyCapBehavior", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "MidrollFrequencyType" => "MidrollFrequencyType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PoddingError.Reason" => "PoddingErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createAdRule" => "createAdRule", + "createAdRuleResponse" => "createAdRuleResponse", + "createAdRules" => "createAdRules", + "createAdRulesResponse" => "createAdRulesResponse", + "getAdRule" => "getAdRule", + "getAdRuleResponse" => "getAdRuleResponse", + "getAdRulesByStatement" => "getAdRulesByStatement", + "getAdRulesByStatementResponse" => "getAdRulesByStatementResponse", + "performAdRuleAction" => "performAdRuleAction", + "performAdRuleActionResponse" => "performAdRuleActionResponse", + "updateAdRule" => "updateAdRule", + "updateAdRuleResponse" => "updateAdRuleResponse", + "updateAdRules" => "updateAdRules", + "updateAdRulesResponse" => "updateAdRulesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/AdRuleService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AdRuleService::$classmap; + parent::__construct($wsdl, $options, $user, 'AdRuleService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link AdRule}. + * + * The following fields are required: + *
        + *
      • {@link AdRule#id}
      • + *
      • {@link AdRule#name}
      • + *
      • {@link AdRule#priority}
      • + *
      • {@link AdRule#startDateTime}
      • + *
      • {@link AdRule#endDateTime}
      • + *
      • {@link AdRule#preroll}
      • + *
      • {@link AdRule#midroll}
      • + *
      • {@link AdRule#postroll}
      • + *
      + * + * @param adRule the ad rule to create + * @return the ad rule with its ID filled in + * @throws ApiException if there the ad rule is invalid or there is another + * error + */ + public function createAdRule($adRule) { + $arg = new createAdRule($adRule); + $result = $this->__soapCall("createAdRule", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdRule} objects. + * + * @param adRules the ad rules to create + * @return the created ad rules with their IDs filled in + */ + public function createAdRules($adRules) { + $arg = new createAdRules($adRules); + $result = $this->__soapCall("createAdRules", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdRule} uniquely identified by the given ID. + * + * @param adRuleId the ID of the ad rule, which must already exist + * @return the {@code AdRule} uniquely identified by the given ID + * @throws ApiException if there is an error retrieving the ad rule + * or the ID is invalid + */ + public function getAdRule($adRuleId) { + $arg = new getAdRule($adRuleId); + $result = $this->__soapCall("getAdRule", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link AdRule#id}
      {@code name}{@link AdRule#name}
      {@code priority}{@link AdRule#priority}
      {@code status}{@link AdRule#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the ad rules that match the given filter + * @throws ApiException if the ID of the active network does not exist or + * there is a backend error + */ + public function getAdRulesByStatement($statement) { + $arg = new getAdRulesByStatement($statement); + $result = $this->__soapCall("getAdRulesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdRule} objects that match the given + * {@link Statement#query}. + * + * @param adRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad rules + * @return the result of the action performed + */ + public function performAdRuleAction($adRuleAction, $filterStatement) { + $arg = new performAdRuleAction($adRuleAction, $filterStatement); + $result = $this->__soapCall("performAdRuleAction", array($arg)); + return $result->rval; + } + + + /** + * Updates a previously-created {@link AdRule}. + * + * @param adRule the ad rule that should be updated + * @return the updated ad rule + * @throws ApiException if there is an error updating the ad rule + */ + public function updateAdRule($adRule) { + $arg = new updateAdRule($adRule); + $result = $this->__soapCall("updateAdRule", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdRule} objects. + * + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules + */ + public function updateAdRules($adRules) { + $arg = new updateAdRules($adRules); + $result = $this->__soapCall("updateAdRules", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php new file mode 100755 index 000000000..32915fec8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php @@ -0,0 +1,3778 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceSegmentDataProvider", FALSE)) { +/** + * Data provider that owns this segment. For a {@link FirstPartyAudienceSegment}, it would be the + * publisher network. For a {@link SharedAudienceSegment} or a {@link ThirdPartyAudienceSegment}, it + * would be the entity that provides that {@link AudienceSegment}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentDataProvider { + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentDataProvider"; + } + + public function __construct($name = NULL) { + $this->name = $name; + } +}} + +if (!class_exists("AudienceSegmentPage", FALSE)) { +/** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AudienceSegment[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("FirstPartyAudienceSegmentRule", FALSE)) { +/** + * Rule of a {@link FirstPartyAudienceSegment} that defines user's eligibility criteria to be part + * of a segment. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FirstPartyAudienceSegmentRule { + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryRule; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customCriteriaRule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FirstPartyAudienceSegmentRule"; + } + + public function __construct($inventoryRule = NULL, $customCriteriaRule = NULL) { + $this->inventoryRule = $inventoryRule; + $this->customCriteriaRule = $customCriteriaRule; + } +}} + +if (!class_exists("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("AudienceSegmentAction", FALSE)) { +/** + * Action that can be performed on {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentAction { + /** + * @access public + * @var string + */ + public $AudienceSegmentActionType; + + private $_parameterMap = array ( + "AudienceSegmentAction.Type" => "AudienceSegmentActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentAction"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("AudienceSegment", FALSE)) { +/** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegment { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAudienceSegmentStatus + */ + public $status; + + /** + * @access public + * @var integer + */ + public $size; + + /** + * @access public + * @var AudienceSegmentDataProvider + */ + public $dataProvider; + + /** + * @access public + * @var tnsAudienceSegmentAudienceSegmentType + */ + public $type; + + /** + * @access public + * @var string + */ + public $AudienceSegmentType; + + private $_parameterMap = array ( + "AudienceSegment.Type" => "AudienceSegmentType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("AudienceSegmentError", FALSE)) { +/** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentError extends ApiError { + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("SharedAudienceSegment", FALSE)) { +/** + * A {@link SharedAudienceSegment} is an {@link AudienceSegment} owned by another entity and shared + * with the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SharedAudienceSegment extends AudienceSegment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SharedAudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", FALSE)) { +/** + * Approval status values for {@link ThirdPartyAudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentAudienceSegmentType", FALSE)) { +/** + * Specifies types for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentAudienceSegmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment.AudienceSegmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentStatus", FALSE)) { +/** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegment.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentErrorReason", FALSE)) { +/** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAudienceSegments", FALSE)) { +/** + * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to create + * @return created first-party audience segments + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAudienceSegments { + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $segments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($segments = NULL) { + $this->segments = $segments; + } +}} + +if (!class_exists("createAudienceSegmentsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAudienceSegmentsResponse { + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAudienceSegmentsByStatement", FALSE)) { +/** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAudienceSegmentsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAudienceSegmentsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAudienceSegmentsByStatementResponse { + /** + * @access public + * @var AudienceSegmentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAudienceSegmentAction", FALSE)) { +/** + * Performs the given {@link AudienceSegmentAction} on the set of segments identified by the given + * statement. + * + * @param action {@link AudienceSegmentAction} to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return {@link UpdateResult} indicating the result + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performAudienceSegmentAction { + /** + * @access public + * @var AudienceSegmentAction + */ + public $action; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($action = NULL, $filterStatement = NULL) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAudienceSegmentActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performAudienceSegmentActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAudienceSegments", FALSE)) { +/** + * Updates the given {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to update + * @return updated first-party audience segments + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAudienceSegments { + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $segments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($segments = NULL) { + $this->segments = $segments; + } +}} + +if (!class_exists("updateAudienceSegmentsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAudienceSegmentsResponse { + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to activate them. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to approve them. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApproveAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("FirstPartyAudienceSegment", FALSE)) { +/** + * A {@link FirstPartyAudienceSegment} is an {@link AudienceSegment} owned by the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FirstPartyAudienceSegment extends AudienceSegment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FirstPartyAudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to deactivate them. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("ThirdPartyAudienceSegment", FALSE)) { +/** + * A {@link ThirdPartyAudienceSegment} is an {@link AudienceSegment} owned by a data provider and + * licensed to the DFP publisher. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ThirdPartyAudienceSegment extends AudienceSegment { + /** + * @access public + * @var tnsThirdPartyAudienceSegmentAudienceSegmentApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyAudienceSegment"; + } + + public function __construct($approvalStatus = NULL, $cost = NULL, $startDateTime = NULL, $endDateTime = NULL, $id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->approvalStatus = $approvalStatus; + $this->cost = $cost; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("NonRuleBasedFirstPartyAudienceSegment", FALSE)) { +/** + * A {@link NonRuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by + * the publisher network. It doesn't contain a rule. Cookies are usually added to this segment via + * cookie upload. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NonRuleBasedFirstPartyAudienceSegment extends FirstPartyAudienceSegment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NonRuleBasedFirstPartyAudienceSegment"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PopulateAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to populate them based + * on last 30 days of traffic. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PopulateAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PopulateAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("RejectAudienceSegments", FALSE)) { +/** + * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to reject them. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RejectAudienceSegments extends AudienceSegmentAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectAudienceSegments"; + } + + public function __construct($AudienceSegmentActionType = NULL) { + parent::__construct(); + $this->AudienceSegmentActionType = $AudienceSegmentActionType; + } +}} + +if (!class_exists("RuleBasedFirstPartyAudienceSegmentSummary", FALSE)) { +/** + * A {@link RuleBasedFirstPartyAudienceSegmentSummary} is a {@link FirstPartyAudienceSegment} owned + * by the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RuleBasedFirstPartyAudienceSegmentSummary extends FirstPartyAudienceSegment { + /** + * @access public + * @var integer + */ + public $pageViews; + + /** + * @access public + * @var integer + */ + public $recencyDays; + + /** + * @access public + * @var integer + */ + public $membershipExpirationDays; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RuleBasedFirstPartyAudienceSegmentSummary"; + } + + public function __construct($pageViews = NULL, $recencyDays = NULL, $membershipExpirationDays = NULL, $id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->pageViews = $pageViews; + $this->recencyDays = $recencyDays; + $this->membershipExpirationDays = $membershipExpirationDays; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("RuleBasedFirstPartyAudienceSegment", FALSE)) { +/** + * A {@link RuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by the + * publisher network. It contains a rule. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RuleBasedFirstPartyAudienceSegment extends RuleBasedFirstPartyAudienceSegmentSummary { + /** + * @access public + * @var FirstPartyAudienceSegmentRule + */ + public $rule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RuleBasedFirstPartyAudienceSegment"; + } + + public function __construct($rule = NULL, $pageViews = NULL, $recencyDays = NULL, $membershipExpirationDays = NULL, $id = NULL, $name = NULL, $description = NULL, $status = NULL, $size = NULL, $dataProvider = NULL, $type = NULL, $AudienceSegmentType = NULL) { + parent::__construct(); + $this->rule = $rule; + $this->pageViews = $pageViews; + $this->recencyDays = $recencyDays; + $this->membershipExpirationDays = $membershipExpirationDays; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + $this->AudienceSegmentType = $AudienceSegmentType; + } +}} + +if (!class_exists("AudienceSegmentService", FALSE)) { +/** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class AudienceSegmentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAudienceSegments" => "ActivateAudienceSegments", + "AudienceSegmentAction" => "AudienceSegmentAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveAudienceSegments" => "ApproveAudienceSegments", + "AudienceSegmentDataProvider" => "AudienceSegmentDataProvider", + "AudienceSegmentPage" => "AudienceSegmentPage", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", + "AudienceSegment" => "AudienceSegment", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateAudienceSegments" => "DeactivateAudienceSegments", + "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "Money" => "Money", + "NonRuleBasedFirstPartyAudienceSegment" => "NonRuleBasedFirstPartyAudienceSegment", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PopulateAudienceSegments" => "PopulateAudienceSegments", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "FirstPartyAudienceSegmentRule" => "FirstPartyAudienceSegmentRule", + "QuotaError" => "QuotaError", + "RejectAudienceSegments" => "RejectAudienceSegments", + "RequiredError" => "RequiredError", + "RuleBasedFirstPartyAudienceSegment" => "RuleBasedFirstPartyAudienceSegment", + "RuleBasedFirstPartyAudienceSegmentSummary" => "RuleBasedFirstPartyAudienceSegmentSummary", + "AudienceSegmentError" => "AudienceSegmentError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SharedAudienceSegment" => "SharedAudienceSegment", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "AudienceSegment.AudienceSegmentType" => "AudienceSegmentAudienceSegmentType", + "AudienceSegment.Status" => "AudienceSegmentStatus", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createAudienceSegments" => "createAudienceSegments", + "createAudienceSegmentsResponse" => "createAudienceSegmentsResponse", + "getAudienceSegmentsByStatement" => "getAudienceSegmentsByStatement", + "getAudienceSegmentsByStatementResponse" => "getAudienceSegmentsByStatementResponse", + "performAudienceSegmentAction" => "performAudienceSegmentAction", + "performAudienceSegmentActionResponse" => "performAudienceSegmentActionResponse", + "updateAudienceSegments" => "updateAudienceSegments", + "updateAudienceSegmentsResponse" => "updateAudienceSegmentsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/AudienceSegmentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = AudienceSegmentService::$classmap; + parent::__construct($wsdl, $options, $user, 'AudienceSegmentService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to create + * @return created first-party audience segments + */ + public function createAudienceSegments($segments) { + $arg = new createAudienceSegments($segments); + $result = $this->__soapCall("createAudienceSegments", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link AudienceSegment#id}
      {@code name}{@link AudienceSegment#name}
      {@code status}{@link AudienceSegment#status}
      {@code type}{@link AudienceSegment#type}
      {@code size}{@link AudienceSegment#size}
      {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
      {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
      {@code cost}{@link ThirdPartyAudienceSegment#cost}
      {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
      {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return the audience segments that match the given filter + */ + public function getAudienceSegmentsByStatement($filterStatement) { + $arg = new getAudienceSegmentsByStatement($filterStatement); + $result = $this->__soapCall("getAudienceSegmentsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs the given {@link AudienceSegmentAction} on the set of segments identified by the given + * statement. + * + * @param action {@link AudienceSegmentAction} to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of audience + * segments + * @return {@link UpdateResult} indicating the result + */ + public function performAudienceSegmentAction($action, $filterStatement) { + $arg = new performAudienceSegmentAction($action, $filterStatement); + $result = $this->__soapCall("performAudienceSegmentAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the given {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to update + * @return updated first-party audience segments + */ + public function updateAudienceSegments($segments) { + $arg = new updateAudienceSegments($segments); + $result = $this->__soapCall("updateAudienceSegments", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201311/BaseRateService.php new file mode 100755 index 000000000..b8c48f9db --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/BaseRateService.php @@ -0,0 +1,3334 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseRateAction", FALSE)) { +/** + * Represents the action that can be performed on {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateAction { + /** + * @access public + * @var string + */ + public $BaseRateActionType; + + private $_parameterMap = array ( + "BaseRateAction.Type" => "BaseRateActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateAction"; + } + + public function __construct($BaseRateActionType = NULL) { + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("BaseRateActionError", FALSE)) { +/** + * An error having to do with {@link BaseRate} when performing actions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateActionError extends ApiError { + /** + * @access public + * @var tnsBaseRateActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateActionError"; + } + + 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("BaseRate", FALSE)) { +/** + * A base rate that applies to a product template or product belonging to rate + * card. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRate { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsBaseRateStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $BaseRateType; + + private $_parameterMap = array ( + "BaseRate.Type" => "BaseRateType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRate"; + } + + public function __construct($rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BaseRatePage", FALSE)) { +/** + * Captures a page of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRatePage { + /** + * @access public + * @var BaseRate[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRatePage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateBaseRates", FALSE)) { +/** + * The action used to deactivate {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateBaseRates extends BaseRateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateBaseRates"; + } + + public function __construct($BaseRateActionType = NULL) { + parent::__construct(); + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("ProductBaseRate", FALSE)) { +/** + * A base rate applied to a {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductBaseRate extends BaseRate { + /** + * @access public + * @var string + */ + public $productId; + + /** + * @access public + * @var Money + */ + public $rate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductBaseRate"; + } + + public function __construct($productId = NULL, $rate = NULL, $rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + parent::__construct(); + $this->productId = $productId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("ProductTemplateBaseRate", FALSE)) { +/** + * A base rate applied to a {@link ProductTemplate}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateBaseRate extends BaseRate { + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * @access public + * @var Money + */ + public $rate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateBaseRate"; + } + + public function __construct($productTemplateId = NULL, $rate = NULL, $rateCardId = NULL, $id = NULL, $status = NULL, $BaseRateType = NULL) { + parent::__construct(); + $this->productTemplateId = $productTemplateId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->BaseRateType = $BaseRateType; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateStatus", FALSE)) { +/** + * The status of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createBaseRate", FALSE)) { +/** + * Creates a new {@link BaseRate} object. + * + * @param baseRate the base rate to be created + * @return the base rate with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createBaseRate { + /** + * @access public + * @var BaseRate + */ + public $baseRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRate = NULL) { + $this->baseRate = $baseRate; + } +}} + +if (!class_exists("createBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createBaseRates", FALSE)) { +/** + * Creates a list of new {@link BaseRate} objects. + * + * @param baseRates the base rates to be created + * @return the base rates with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createBaseRates { + /** + * @access public + * @var BaseRate[] + */ + public $baseRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRates = NULL) { + $this->baseRates = $baseRates; + } +}} + +if (!class_exists("createBaseRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createBaseRatesResponse { + /** + * @access public + * @var BaseRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBaseRate", FALSE)) { +/** + * Returns the {@link BaseRate} object uniquely identified by the given ID. + * + * @param baseRateId the ID of the base rate, which must already exist + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getBaseRate { + /** + * @access public + * @var integer + */ + public $baseRateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRateId = NULL) { + $this->baseRateId = $baseRateId; + } +}} + +if (!class_exists("getBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getBaseRatesByStatement", FALSE)) { +/** + * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the page of base rates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getBaseRatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getBaseRatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getBaseRatesByStatementResponse { + /** + * @access public + * @var BaseRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performBaseRateAction", FALSE)) { +/** + * Performs actions on {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * @param baseRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performBaseRateAction { + /** + * @access public + * @var BaseRateAction + */ + public $baseRateAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRateAction = NULL, $filterStatement = NULL) { + $this->baseRateAction = $baseRateAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performBaseRateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performBaseRateActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateBaseRate", FALSE)) { +/** + * Updates the specified {@link BaseRate} object. + * + * @param baseRate the base rate to be updated + * @return the updated base rate + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateBaseRate { + /** + * @access public + * @var BaseRate + */ + public $baseRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRate = NULL) { + $this->baseRate = $baseRate; + } +}} + +if (!class_exists("updateBaseRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateBaseRateResponse { + /** + * @access public + * @var BaseRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateBaseRates", FALSE)) { +/** + * Updates the specified {@link BaseRate} objects. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateBaseRates { + /** + * @access public + * @var BaseRate[] + */ + public $baseRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($baseRates = NULL) { + $this->baseRates = $baseRates; + } +}} + +if (!class_exists("updateBaseRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateBaseRatesResponse { + /** + * @access public + * @var BaseRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateBaseRates", FALSE)) { +/** + * The action used to activate {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateBaseRates extends BaseRateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateBaseRates"; + } + + public function __construct($BaseRateActionType = NULL) { + parent::__construct(); + $this->BaseRateActionType = $BaseRateActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("BaseRateService", FALSE)) { +/** + * BaseRateService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class BaseRateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateBaseRates" => "ActivateBaseRates", + "BaseRateAction" => "BaseRateAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseRateActionError" => "BaseRateActionError", + "BaseRate" => "BaseRate", + "BaseRateError" => "BaseRateError", + "BaseRatePage" => "BaseRatePage", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateBaseRates" => "DeactivateBaseRates", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "ProductBaseRate" => "ProductBaseRate", + "ProductTemplateBaseRate" => "ProductTemplateBaseRate", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateActionError.Reason" => "BaseRateActionErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "BaseRateStatus" => "BaseRateStatus", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createBaseRate" => "createBaseRate", + "createBaseRateResponse" => "createBaseRateResponse", + "createBaseRates" => "createBaseRates", + "createBaseRatesResponse" => "createBaseRatesResponse", + "getBaseRate" => "getBaseRate", + "getBaseRateResponse" => "getBaseRateResponse", + "getBaseRatesByStatement" => "getBaseRatesByStatement", + "getBaseRatesByStatementResponse" => "getBaseRatesByStatementResponse", + "performBaseRateAction" => "performBaseRateAction", + "performBaseRateActionResponse" => "performBaseRateActionResponse", + "updateBaseRate" => "updateBaseRate", + "updateBaseRateResponse" => "updateBaseRateResponse", + "updateBaseRates" => "updateBaseRates", + "updateBaseRatesResponse" => "updateBaseRatesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/BaseRateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = BaseRateService::$classmap; + parent::__construct($wsdl, $options, $user, 'BaseRateService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link BaseRate} object. + * + * @param baseRate the base rate to be created + * @return the base rate with its ID filled in + */ + public function createBaseRate($baseRate) { + $arg = new createBaseRate($baseRate); + $result = $this->__soapCall("createBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of new {@link BaseRate} objects. + * + * @param baseRates the base rates to be created + * @return the base rates with their IDs filled in + */ + public function createBaseRates($baseRates) { + $arg = new createBaseRates($baseRates); + $result = $this->__soapCall("createBaseRates", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link BaseRate} object uniquely identified by the given ID. + * + * @param baseRateId the ID of the base rate, which must already exist + */ + public function getBaseRate($baseRateId) { + $arg = new getBaseRate($baseRateId); + $result = $this->__soapCall("getBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * The following fields are supported for filtering: + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link BaseRate#rateCardId}
      {@code id}{@link BaseRate#id}
      {@code status}{@link BaseRate#status}
      {@code productTemplateId}{@link ProductTemplateBaseRate#id}
      Note: Cannot be + * combined with {@code productId}. + *
      {@code productId}{@link ProductBaseRate#id}
      Note: Cannot be combined with + * {@code productTemplateId}. + *
      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the page of base rates that match the given filter + */ + public function getBaseRatesByStatement($filterStatement) { + $arg = new getBaseRatesByStatement($filterStatement); + $result = $this->__soapCall("getBaseRatesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link BaseRate} objects that satisfy the given + * {@link Statement#query}. + * + * @param baseRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of base rates. + * @return the result of the action performed + */ + public function performBaseRateAction($baseRateAction, $filterStatement) { + $arg = new performBaseRateAction($baseRateAction, $filterStatement); + $result = $this->__soapCall("performBaseRateAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link BaseRate} object. + * + * @param baseRate the base rate to be updated + * @return the updated base rate + */ + public function updateBaseRate($baseRate) { + $arg = new updateBaseRate($baseRate); + $result = $this->__soapCall("updateBaseRate", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link BaseRate} objects. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + */ + public function updateBaseRates($baseRates) { + $arg = new updateBaseRates($baseRates); + $result = $this->__soapCall("updateBaseRates", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CompanyService.php b/src/Google/Api/Ads/Dfp/v201311/CompanyService.php new file mode 100755 index 000000000..ae5217b69 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CompanyService.php @@ -0,0 +1,3344 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("Company", FALSE)) { +/** + * A {@code Company} represents an agency, a single advertiser or an entire + * advertising network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Company { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsCompanyType + */ + public $type; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $primaryPhone; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var tnsCompanyCreditStatus + */ + public $creditStatus; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var boolean + */ + public $enableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var integer + */ + public $primaryContactId; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var integer + */ + public $thirdPartyCompanyId; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company"; + } + + public function __construct($id = NULL, $name = NULL, $type = NULL, $address = NULL, $email = NULL, $faxPhone = NULL, $primaryPhone = NULL, $externalId = NULL, $comment = NULL, $creditStatus = NULL, $appliedLabels = NULL, $enableSameAdvertiserCompetitiveExclusion = NULL, $primaryContactId = NULL, $appliedTeamIds = NULL, $thirdPartyCompanyId = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->type = $type; + $this->address = $address; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->primaryPhone = $primaryPhone; + $this->externalId = $externalId; + $this->comment = $comment; + $this->creditStatus = $creditStatus; + $this->appliedLabels = $appliedLabels; + $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; + $this->primaryContactId = $primaryContactId; + $this->appliedTeamIds = $appliedTeamIds; + $this->thirdPartyCompanyId = $thirdPartyCompanyId; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CompanyError", FALSE)) { +/** + * A list of all errors associated with companies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyError extends ApiError { + /** + * @access public + * @var tnsCompanyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError"; + } + + 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("CompanyPage", FALSE)) { +/** + * Captures a page of {@link Company} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Company[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatus", FALSE)) { +/** + * Specifies the credit-worthiness of the company for which the publisher runs + * an order. By doing so, the publisher can control the running of campaigns + * for the company. A publisher can choose between Basic and Advanced Credit + * Status settings. This feature needs to be enabled in the DoubleClick For + * Publishers web site. Also the kind of setting you need - Basic or Advanced + * must be configured. If Basic is enabled then, the values allowed are + * {@code ACTIVE} and {@code INACTIVE}. If Advanced is chosen, then all values + * are allowed. Choosing an Advanced setting when only the Basic feature has + * been enabled, or using the Basic setting without turning the feature on + * will result in an error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.CreditStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyType", FALSE)) { +/** + * The type of the company. Once a company is created, it is not possible to + * change its type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Company.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyErrorReason", FALSE)) { +/** + * Enumerates all possible company specific errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCompanies", FALSE)) { +/** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("createCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCompany", FALSE)) { +/** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("createCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompaniesByStatement", FALSE)) { +/** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link BaseRate#rateCardId}
      {@code id}{@link BaseRate#id}
      {@code status}{@link BaseRate#status}
      {@code productTemplateId}{@link ProductTemplateBaseRate#id}
      Note: Cannot be + * combined with {@code productId}. + *
      {@code productId}{@link ProductBaseRate#id}
      Note: Cannot be combined with + * {@code productTemplateId}. + *
      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCompaniesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCompaniesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCompaniesByStatementResponse { + /** + * @access public + * @var CompanyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCompany", FALSE)) { +/** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCompany { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companyId = NULL) { + $this->companyId = $companyId; + } +}} + +if (!class_exists("getCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompanies", FALSE)) { +/** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCompanies { + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($companies = NULL) { + $this->companies = $companies; + } +}} + +if (!class_exists("updateCompaniesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCompaniesResponse { + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCompany", FALSE)) { +/** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCompany { + /** + * @access public + * @var Company + */ + public $company; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($company = NULL) { + $this->company = $company; + } +}} + +if (!class_exists("updateCompanyResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCompanyResponse { + /** + * @access public + * @var Company + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CompanyService", FALSE)) { +/** + * CompanyService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class CompanyService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "Company" => "Company", + "CompanyError" => "CompanyError", + "CompanyPage" => "CompanyPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "Company.CreditStatus" => "CompanyCreditStatus", + "Company.Type" => "CompanyType", + "CompanyError.Reason" => "CompanyErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createCompanies" => "createCompanies", + "createCompaniesResponse" => "createCompaniesResponse", + "createCompany" => "createCompany", + "createCompanyResponse" => "createCompanyResponse", + "getCompaniesByStatement" => "getCompaniesByStatement", + "getCompaniesByStatementResponse" => "getCompaniesByStatementResponse", + "getCompany" => "getCompany", + "getCompanyResponse" => "getCompanyResponse", + "updateCompanies" => "updateCompanies", + "updateCompaniesResponse" => "updateCompaniesResponse", + "updateCompany" => "updateCompany", + "updateCompanyResponse" => "updateCompanyResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/CompanyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CompanyService::$classmap; + parent::__construct($wsdl, $options, $user, 'CompanyService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + */ + public function createCompanies($companies) { + $arg = new createCompanies($companies); + $result = $this->__soapCall("createCompanies", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link Company}. + * + * The following fields are required: + *
        + *
      • {@link Company#name}
      • + *
      • {@link Company#type}
      • + *
      + * + * @param company the company to create + * @return the new company with its ID filled in + */ + public function createCompany($company) { + $arg = new createCompany($company); + $result = $this->__soapCall("createCompany", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Company#id}
      {@code name}{@link Company#name}
      {@code type}{@link Company#type}
      {@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of companies + * @return the companies that match the given filter + */ + public function getCompaniesByStatement($filterStatement) { + $arg = new getCompaniesByStatement($filterStatement); + $result = $this->__soapCall("getCompaniesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Company} uniquely identified by the given ID. + * + * @param companyId ID of the company, which must already exist + * @return the {@code Company} uniquely identified by the given ID + */ + public function getCompany($companyId) { + $arg = new getCompany($companyId); + $result = $this->__soapCall("getCompany", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + */ + public function updateCompanies($companies) { + $arg = new updateCompanies($companies); + $result = $this->__soapCall("updateCompanies", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Company}. + * + * @param company the company to update + * @return the updated company + */ + public function updateCompany($company) { + $arg = new updateCompany($company); + $result = $this->__soapCall("updateCompany", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ContactService.php b/src/Google/Api/Ads/Dfp/v201311/ContactService.php new file mode 100755 index 000000000..6fd743559 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ContactService.php @@ -0,0 +1,3039 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContactError", FALSE)) { +/** + * Errors associated with {@code Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContactError extends ApiError { + /** + * @access public + * @var tnsContactErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactError"; + } + + 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("ContactPage", FALSE)) { +/** + * Captures a page of {@link Contact} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContactPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Contact[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("BaseContact", FALSE)) { +/** + * Base class for a {@link Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseContact { + /** + * @access public + * @var string + */ + public $BaseContactType; + + private $_parameterMap = array ( + "BaseContact.Type" => "BaseContactType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseContact"; + } + + public function __construct($BaseContactType = NULL) { + $this->BaseContactType = $BaseContactType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContactStatus", FALSE)) { +/** + * Describes the contact statuses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContactStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Contact.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContactErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContactErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContactError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createContact", FALSE)) { +/** + * Creates a new {@link Contact}. + * + * The following fields are required: + *
        + *
      • {@link Contact#companyId}
      • + *
      • {@link Contact#name}
      • + *
      + * + * @param contact the contact to create + * @return the contact with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createContact { + /** + * @access public + * @var Contact + */ + public $contact; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contact = NULL) { + $this->contact = $contact; + } +}} + +if (!class_exists("createContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createContacts", FALSE)) { +/** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createContacts { + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contacts = NULL) { + $this->contacts = $contacts; + } +}} + +if (!class_exists("createContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createContactsResponse { + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContact", FALSE)) { +/** + * Returns the {@link Contact} uniquely identified by the given ID. + * + * @param contactId the ID of the contact, which must already exist + * @return the {@code Contact} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContact { + /** + * @access public + * @var integer + */ + public $contactId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contactId = NULL) { + $this->contactId = $contactId; + } +}} + +if (!class_exists("getContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContactsByStatement", FALSE)) { +/** + * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code name}{@link Contact#name}
      {@code email}{@link Contact#email}
      {@code id}{@link Contact#id}
      {@code comment}{@link Contact#comment}
      {@code companyId}{@link Contact#companyId}
      {@code title}{@link Contact#title}
      {@code cellPhone}{@link Contact#cellPhone}
      {@code workPhone}{@link Contact#workPhone}
      {@code faxPhone}{@link Contact#faxPhone}
      {@code status}{@link Contact#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of contacts + * @return the contacts that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContactsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContactsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContactsByStatementResponse { + /** + * @access public + * @var ContactPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContact", FALSE)) { +/** + * Updates the specified {@link Contact}. + * + * @param contact the contact to update + * @return the updated contact + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateContact { + /** + * @access public + * @var Contact + */ + public $contact; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contact = NULL) { + $this->contact = $contact; + } +}} + +if (!class_exists("updateContactResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateContactResponse { + /** + * @access public + * @var Contact + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContacts", FALSE)) { +/** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateContacts { + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contacts = NULL) { + $this->contacts = $contacts; + } +}} + +if (!class_exists("updateContactsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateContactsResponse { + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Contact", FALSE)) { +/** + * A {@code Contact} represents a person who is affiliated with a single + * {@link Company}. A contact can have a variety of contact information + * associated to it, and can be invited to view their company's orders, line + * items, creatives, and reports. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Contact extends BaseContact { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var tnsContactStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $address; + + /** + * @access public + * @var string + */ + public $cellPhone; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var string + */ + public $faxPhone; + + /** + * @access public + * @var string + */ + public $title; + + /** + * @access public + * @var string + */ + public $workPhone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Contact"; + } + + public function __construct($id = NULL, $name = NULL, $companyId = NULL, $status = NULL, $address = NULL, $cellPhone = NULL, $comment = NULL, $email = NULL, $faxPhone = NULL, $title = NULL, $workPhone = NULL, $BaseContactType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->companyId = $companyId; + $this->status = $status; + $this->address = $address; + $this->cellPhone = $cellPhone; + $this->comment = $comment; + $this->email = $email; + $this->faxPhone = $faxPhone; + $this->title = $title; + $this->workPhone = $workPhone; + $this->BaseContactType = $BaseContactType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContactService", FALSE)) { +/** + * ContactService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ContactService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Contact" => "Contact", + "BaseContact" => "BaseContact", + "ContactError" => "ContactError", + "ContactPage" => "ContactPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "Contact.Status" => "ContactStatus", + "ContactError.Reason" => "ContactErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createContact" => "createContact", + "createContactResponse" => "createContactResponse", + "createContacts" => "createContacts", + "createContactsResponse" => "createContactsResponse", + "getContact" => "getContact", + "getContactResponse" => "getContactResponse", + "getContactsByStatement" => "getContactsByStatement", + "getContactsByStatementResponse" => "getContactsByStatementResponse", + "updateContact" => "updateContact", + "updateContactResponse" => "updateContactResponse", + "updateContacts" => "updateContacts", + "updateContactsResponse" => "updateContactsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ContactService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContactService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContactService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link Contact}. + * + * The following fields are required: + *
        + *
      • {@link Contact#companyId}
      • + *
      • {@link Contact#name}
      • + *
      + * + * @param contact the contact to create + * @return the contact with its ID filled in + */ + public function createContact($contact) { + $arg = new createContact($contact); + $result = $this->__soapCall("createContact", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + */ + public function createContacts($contacts) { + $arg = new createContacts($contacts); + $result = $this->__soapCall("createContacts", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Contact} uniquely identified by the given ID. + * + * @param contactId the ID of the contact, which must already exist + * @return the {@code Contact} uniquely identified by the given ID + */ + public function getContact($contactId) { + $arg = new getContact($contactId); + $result = $this->__soapCall("getContact", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code name}{@link Contact#name}
      {@code email}{@link Contact#email}
      {@code id}{@link Contact#id}
      {@code comment}{@link Contact#comment}
      {@code companyId}{@link Contact#companyId}
      {@code title}{@link Contact#title}
      {@code cellPhone}{@link Contact#cellPhone}
      {@code workPhone}{@link Contact#workPhone}
      {@code faxPhone}{@link Contact#faxPhone}
      {@code status}{@link Contact#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of contacts + * @return the contacts that match the given filter + */ + public function getContactsByStatement($statement) { + $arg = new getContactsByStatement($statement); + $result = $this->__soapCall("getContactsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Contact}. + * + * @param contact the contact to update + * @return the updated contact + */ + public function updateContact($contact) { + $arg = new updateContact($contact); + $result = $this->__soapCall("updateContact", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + */ + public function updateContacts($contacts) { + $arg = new updateContacts($contacts); + $result = $this->__soapCall("updateContacts", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php new file mode 100755 index 000000000..e5c7b92f3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php @@ -0,0 +1,3064 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentBundleAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentBundleAction { + /** + * @access public + * @var string + */ + public $ContentBundleActionType; + + private $_parameterMap = array ( + "ContentBundleAction.Type" => "ContentBundleActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundleAction"; + } + + public function __construct($ContentBundleActionType = NULL) { + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ContentBundle", FALSE)) { +/** + * A {@code ContentBundle} is a grouping of individual {@link Content}. A {@code ContentBundle} is + * defined as including the {@code Content} that match certain filter rules, along with the + * option to explicitly include or exclude certain {@code Content} IDs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentBundle { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsContentBundleStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundle"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $status = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + } +}} + +if (!class_exists("ContentBundlePage", FALSE)) { +/** + * Captures a page of {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentBundlePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ContentBundle[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundlePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateContentBundles", FALSE)) { +/** + * The action used for deactivating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateContentBundles extends ContentBundleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateContentBundles"; + } + + public function __construct($ContentBundleActionType = NULL) { + parent::__construct(); + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ExcludeContentFromContentBundle", FALSE)) { +/** + * The action used for explicitly excluding specific content from a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExcludeContentFromContentBundle extends ContentBundleAction { + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExcludeContentFromContentBundle"; + } + + public function __construct($contentStatement = NULL, $ContentBundleActionType = NULL) { + parent::__construct(); + $this->contentStatement = $contentStatement; + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("IncludeContentInContentBundle", FALSE)) { +/** + * The action used for explicitly including specific content in a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class IncludeContentInContentBundle extends ContentBundleAction { + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "IncludeContentInContentBundle"; + } + + public function __construct($contentStatement = NULL, $ContentBundleActionType = NULL) { + parent::__construct(); + $this->contentStatement = $contentStatement; + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentBundleStatus", FALSE)) { +/** + * Status for {@code ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentBundleStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentBundleStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createContentBundle", FALSE)) { +/** + * Creates a new {@link ContentBundle}. + * + * These fields are required: + *
        + *
      • {@link ContentBundle#name}
      • + *
      • {@link ContentBundle#description}
      • + *
      + * + * @param contentBundle the content bundle to create + * @return the content bundle with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createContentBundle { + /** + * @access public + * @var ContentBundle + */ + public $contentBundle; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundle = NULL) { + $this->contentBundle = $contentBundle; + } +}} + +if (!class_exists("createContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createContentBundles", FALSE)) { +/** + * Creates new {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createContentBundles { + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundles = NULL) { + $this->contentBundles = $contentBundles; + } +}} + +if (!class_exists("createContentBundlesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createContentBundlesResponse { + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentBundle", FALSE)) { +/** + * Returns the {@link ContentBundle} uniquely identified by the given ID. + * + * @param contentBundleId the ID of the content bundle, which must already exist + * @return the {@code ContentBundle} uniquely identified by the given ID + * @throws ApiException if there were errors, such as invalid ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentBundle { + /** + * @access public + * @var integer + */ + public $contentBundleId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundleId = NULL) { + $this->contentBundleId = $contentBundleId; + } +}} + +if (!class_exists("getContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentBundlesByStatement", FALSE)) { +/** + * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentBundle#id}
      {@code name}{@link ContentBundle#name}
      {@code status}{@link ContentBundle#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the content bundles that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentBundlesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getContentBundlesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentBundlesByStatementResponse { + /** + * @access public + * @var ContentBundlePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performContentBundleAction", FALSE)) { +/** + * Performs actions on {@link ContentBundle} objects that match the given + * {@link Statement#query}. + * + * @param contentBundleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performContentBundleAction { + /** + * @access public + * @var ContentBundleAction + */ + public $contentBundleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundleAction = NULL, $filterStatement = NULL) { + $this->contentBundleAction = $contentBundleAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performContentBundleActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performContentBundleActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContentBundle", FALSE)) { +/** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateContentBundle { + /** + * @access public + * @var ContentBundle + */ + public $contentBundle; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundle = NULL) { + $this->contentBundle = $contentBundle; + } +}} + +if (!class_exists("updateContentBundleResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateContentBundleResponse { + /** + * @access public + * @var ContentBundle + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateContentBundles", FALSE)) { +/** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateContentBundles { + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($contentBundles = NULL) { + $this->contentBundles = $contentBundles; + } +}} + +if (!class_exists("updateContentBundlesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateContentBundlesResponse { + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateContentBundles", FALSE)) { +/** + * The action used for activating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateContentBundles extends ContentBundleAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateContentBundles"; + } + + public function __construct($ContentBundleActionType = NULL) { + parent::__construct(); + $this->ContentBundleActionType = $ContentBundleActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentBundleService", FALSE)) { +/** + * ContentBundleService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ContentBundleService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateContentBundles" => "ActivateContentBundles", + "ContentBundleAction" => "ContentBundleAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentBundle" => "ContentBundle", + "ContentBundlePage" => "ContentBundlePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateContentBundles" => "DeactivateContentBundles", + "ExcludeContentFromContentBundle" => "ExcludeContentFromContentBundle", + "FeatureError" => "FeatureError", + "IncludeContentInContentBundle" => "IncludeContentInContentBundle", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PlacementError" => "PlacementError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentBundleStatus" => "ContentBundleStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createContentBundle" => "createContentBundle", + "createContentBundleResponse" => "createContentBundleResponse", + "createContentBundles" => "createContentBundles", + "createContentBundlesResponse" => "createContentBundlesResponse", + "getContentBundle" => "getContentBundle", + "getContentBundleResponse" => "getContentBundleResponse", + "getContentBundlesByStatement" => "getContentBundlesByStatement", + "getContentBundlesByStatementResponse" => "getContentBundlesByStatementResponse", + "performContentBundleAction" => "performContentBundleAction", + "performContentBundleActionResponse" => "performContentBundleActionResponse", + "updateContentBundle" => "updateContentBundle", + "updateContentBundleResponse" => "updateContentBundleResponse", + "updateContentBundles" => "updateContentBundles", + "updateContentBundlesResponse" => "updateContentBundlesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ContentBundleService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentBundleService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentBundleService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link ContentBundle}. + * + * These fields are required: + *
        + *
      • {@link ContentBundle#name}
      • + *
      • {@link ContentBundle#description}
      • + *
      + * + * @param contentBundle the content bundle to create + * @return the content bundle with its ID filled in + */ + public function createContentBundle($contentBundle) { + $arg = new createContentBundle($contentBundle); + $result = $this->__soapCall("createContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to create + * @return the created content bundles with their IDs filled in + */ + public function createContentBundles($contentBundles) { + $arg = new createContentBundles($contentBundles); + $result = $this->__soapCall("createContentBundles", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ContentBundle} uniquely identified by the given ID. + * + * @param contentBundleId the ID of the content bundle, which must already exist + * @return the {@code ContentBundle} uniquely identified by the given ID + * @throws ApiException if there were errors, such as invalid ID + */ + public function getContentBundle($contentBundleId) { + $arg = new getContentBundle($contentBundleId); + $result = $this->__soapCall("getContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentBundle#id}
      {@code name}{@link ContentBundle#name}
      {@code status}{@link ContentBundle#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the content bundles that match the given filter + */ + public function getContentBundlesByStatement($filterStatement) { + $arg = new getContentBundlesByStatement($filterStatement); + $result = $this->__soapCall("getContentBundlesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ContentBundle} objects that match the given + * {@link Statement#query}. + * + * @param contentBundleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of content bundles + * @return the result of the action performed + */ + public function performContentBundleAction($contentBundleAction, $filterStatement) { + $arg = new performContentBundleAction($contentBundleAction, $filterStatement); + $result = $this->__soapCall("performContentBundleAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ContentBundle}. + * + * @param contentBundle the content bundle to update + * @return the updated content bundle + */ + public function updateContentBundle($contentBundle) { + $arg = new updateContentBundle($contentBundle); + $result = $this->__soapCall("updateContentBundle", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + */ + public function updateContentBundles($contentBundles) { + $arg = new updateContentBundles($contentBundles); + $result = $this->__soapCall("updateContentBundles", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php new file mode 100755 index 000000000..613dbec29 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php @@ -0,0 +1,2463 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentMetadataKeyHierarchy", FALSE)) { +/** + * A {@code ContentMetadataKeyHierarchy} defines a hierarchical relationship between content + * metadata keys. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchy { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var ContentMetadataKeyHierarchyLevel[] + */ + public $hierarchyLevels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchy"; + } + + public function __construct($id = NULL, $name = NULL, $hierarchyLevels = NULL) { + $this->id = $id; + $this->name = $name; + $this->hierarchyLevels = $hierarchyLevels; + } +}} + +if (!class_exists("ContentMetadataKeyHierarchyError", FALSE)) { +/** + * Lists all errors associated with content hierarchies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyError extends ApiError { + /** + * @access public + * @var tnsContentMetadataKeyHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchyError"; + } + + 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("ContentMetadataKeyHierarchyLevel", FALSE)) { +/** + * A {@code ContentMetadataKeyHierarchyLevel} represents one level in a + * {@link ContentMetadataKeyHierarchy}. The level consists of a {@link CustomTargetingKey} + * and an integer that represents the level's position in the hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyLevel { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $hierarchyLevel; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchyLevel"; + } + + public function __construct($customTargetingKeyId = NULL, $hierarchyLevel = NULL) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->hierarchyLevel = $hierarchyLevel; + } +}} + +if (!class_exists("ContentMetadataKeyHierarchyPage", FALSE)) { +/** + * Captures a page of {@link ContentMetadataKeyHierarchy} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentMetadataKeyHierarchyErrorReason", FALSE)) { +/** + * The reasons for the {@link ContentMetadataKeyHierarchyError}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getContentMetadataKeyHierarchiesByStatement", FALSE)) { +/** + * Gets a {@link ContentMetadataKeyHierarchyPage} of {@link ContentMetadataKeyHierarchy} + * objects that satisfy the given {@link Statement#query}. The following fields are supported + * for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentMetadataKeyHierarchy#id}
      {@code name}{@link ContentMetadataKeyHierarchy#name}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of + * content metadata key hierarchies + * @return the content metadata key hierarchies that match the given filter + * @throws ApiException if the ID of the active network does not exist or there is a + * backend error + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentMetadataKeyHierarchiesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getContentMetadataKeyHierarchiesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentMetadataKeyHierarchiesByStatementResponse { + /** + * @access public + * @var ContentMetadataKeyHierarchyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentMetadataKeyHierarchyService", FALSE)) { +/** + * ContentMetadataKeyHierarchyService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ContentMetadataKeyHierarchyService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", + "ContentMetadataKeyHierarchyError" => "ContentMetadataKeyHierarchyError", + "ContentMetadataKeyHierarchyLevel" => "ContentMetadataKeyHierarchyLevel", + "ContentMetadataKeyHierarchyPage" => "ContentMetadataKeyHierarchyPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getContentMetadataKeyHierarchiesByStatement" => "getContentMetadataKeyHierarchiesByStatement", + "getContentMetadataKeyHierarchiesByStatementResponse" => "getContentMetadataKeyHierarchiesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ContentMetadataKeyHierarchyService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentMetadataKeyHierarchyService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentMetadataKeyHierarchyService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Gets a {@link ContentMetadataKeyHierarchyPage} of {@link ContentMetadataKeyHierarchy} + * objects that satisfy the given {@link Statement#query}. The following fields are supported + * for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ContentMetadataKeyHierarchy#id}
      {@code name}{@link ContentMetadataKeyHierarchy#name}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of + * content metadata key hierarchies + * @return the content metadata key hierarchies that match the given filter + * @throws ApiException if the ID of the active network does not exist or there is a + * backend error + */ + public function getContentMetadataKeyHierarchiesByStatement($filterStatement) { + $arg = new getContentMetadataKeyHierarchiesByStatement($filterStatement); + $result = $this->__soapCall("getContentMetadataKeyHierarchiesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentService.php b/src/Google/Api/Ads/Dfp/v201311/ContentService.php new file mode 100755 index 000000000..54f22698a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ContentService.php @@ -0,0 +1,2738 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CmsContent", FALSE)) { +/** + * Contains information about {@link Content} from the CMS it was ingested from. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CmsContent { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $cmsContentId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CmsContent"; + } + + public function __construct($id = NULL, $displayName = NULL, $cmsContentId = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->cmsContentId = $cmsContentId; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("Content", FALSE)) { +/** + * A {@code Content} represents video metadata from a publisher's + * Content Management System (CMS) that has been synced to DFP. + *

      + * Video line items can be targeted to {@code Content} + * to indicate what ads should match when the {@code Content} is being played. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Content { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsContentStatus + */ + public $status; + + /** + * @access public + * @var tnsContentStatusDefinedBy + */ + public $statusDefinedBy; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var integer[] + */ + public $userDefinedCustomTargetingValueIds; + + /** + * @access public + * @var integer[] + */ + public $mappingRuleDefinedCustomTargetingValueIds; + + /** + * @access public + * @var CmsContent[] + */ + public $cmsSources; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Content"; + } + + public function __construct($id = NULL, $name = NULL, $status = NULL, $statusDefinedBy = NULL, $lastModifiedDateTime = NULL, $userDefinedCustomTargetingValueIds = NULL, $mappingRuleDefinedCustomTargetingValueIds = NULL, $cmsSources = NULL) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->statusDefinedBy = $statusDefinedBy; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->userDefinedCustomTargetingValueIds = $userDefinedCustomTargetingValueIds; + $this->mappingRuleDefinedCustomTargetingValueIds = $mappingRuleDefinedCustomTargetingValueIds; + $this->cmsSources = $cmsSources; + } +}} + +if (!class_exists("ContentPage", FALSE)) { +/** + * Captures a page of {@code Content} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Content[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ContentPartnerError", FALSE)) { +/** + * The content partner related validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentPartnerError extends ApiError { + /** + * @access public + * @var tnsContentPartnerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentPartnerErrorReason", FALSE)) { +/** + * Describes reason for {@code ContentPartnerError}s. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentPartnerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentPartnerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatus", FALSE)) { +/** + * Describes the status of a {@link Content} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentStatusDefinedBy", FALSE)) { +/** + * Describes who defined the effective status of the {@code Content}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentStatusDefinedBy { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentStatusDefinedBy"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getContentByStatement", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getContentByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentByStatementResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValue", FALSE)) { +/** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentByStatementAndCustomTargetingValue { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL, $customTargetingValueId = NULL) { + $this->filterStatement = $filterStatement; + $this->customTargetingValueId = $customTargetingValueId; + } +}} + +if (!class_exists("getContentByStatementAndCustomTargetingValueResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getContentByStatementAndCustomTargetingValueResponse { + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ContentService", FALSE)) { +/** + * ContentService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ContentService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CmsContent" => "CmsContent", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentPartnerError.Reason" => "ContentPartnerErrorReason", + "ContentStatus" => "ContentStatus", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "ContentStatusDefinedBy" => "ContentStatusDefinedBy", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getContentByStatement" => "getContentByStatement", + "getContentByStatementResponse" => "getContentByStatementResponse", + "getContentByStatementAndCustomTargetingValue" => "getContentByStatementAndCustomTargetingValue", + "getContentByStatementAndCustomTargetingValueResponse" => "getContentByStatementAndCustomTargetingValueResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ContentService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ContentService::$classmap; + parent::__construct($wsdl, $options, $user, 'ContentService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @return the content that matches the given filter + */ + public function getContentByStatement($statement) { + $arg = new getContentByStatement($statement); + $result = $this->__soapCall("getContentByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ContentPage} of {@link Content} objects that satisfy the + * given {@link Statement#query}. Additionally, filters on the given value ID + * and key ID that the value belongs to. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Content#id}
      {@code status}{@link Content#status}
      {@code name}{@link Content#name}
      + * + * @params filterStatement a Publisher Query Language statement used to + * filter a set of content + * @param customTargetingValueId the id of the value to match + * @return the content that matches the given filter + */ + public function getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId) { + $arg = new getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); + $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeService.php new file mode 100755 index 000000000..21f042726 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CreativeService.php @@ -0,0 +1,7550 @@ + "BaseCreativeTemplateVariableValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCreativeTemplateVariableValue"; + } + + public function __construct($uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AssetCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariableValue"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Asset", FALSE)) { +/** + * Base asset properties. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Asset { + /** + * @access public + * @var string + */ + public $AssetType; + + private $_parameterMap = array ( + "Asset.Type" => "AssetType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Asset"; + } + + public function __construct($AssetType = NULL) { + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ConversionEvent_TrackingUrlsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type ConversionEvent + * and value of type TrackingUrls. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ConversionEvent_TrackingUrlsMapEntry { + /** + * @access public + * @var tnsConversionEvent + */ + public $key; + + /** + * @access public + * @var TrackingUrls + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent_TrackingUrlsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("CreativeAsset", FALSE)) { +/** + * A {@code CreativeAsset} is an asset that can be used in creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeAsset { + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * @access public + * @var string + */ + public $assetUrl; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsImageDensity + */ + public $imageDensity; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAsset"; + } + + public function __construct($assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL, $assetUrl = NULL, $size = NULL, $imageDensity = NULL) { + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + $this->assetUrl = $assetUrl; + $this->size = $size; + $this->imageDensity = $imageDensity; + } +}} + +if (!class_exists("CustomCreativeAsset", FALSE)) { +/** + * A {@code CustomCreativeAsset} is an association between a + * {@link CustomCreative} and an asset. Any assets that are associated with a + * creative can be inserted into its HTML snippet. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCreativeAsset { + /** + * @access public + * @var string + */ + public $macroName; + + /** + * @access public + * @var integer + */ + public $assetId; + + /** + * @access public + * @var base64Binary + */ + public $assetByteArray; + + /** + * @access public + * @var string + */ + public $fileName; + + /** + * @access public + * @var integer + */ + public $fileSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeAsset"; + } + + public function __construct($macroName = NULL, $assetId = NULL, $assetByteArray = NULL, $fileName = NULL, $fileSize = NULL) { + $this->macroName = $macroName; + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->fileSize = $fileSize; + } +}} + +if (!class_exists("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("Creative", FALSE)) { +/** + * A {@code Creative} represents the media for the ad being served. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Creative { + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var string + */ + public $previewUrl; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var string + */ + public $CreativeType; + + private $_parameterMap = array ( + "Creative.Type" => "CreativeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Creative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativePage", FALSE)) { +/** + * Captures a page of {@link Creative} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Creative[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("HasDestinationUrlCreative", FALSE)) { +/** + * A {@code Creative} that has a destination url + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class HasDestinationUrlCreative extends Creative { + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasDestinationUrlCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InternalRedirectCreative", FALSE)) { +/** + * A {@code Creative} hosted by either DoubleClick for Advertisers (DFA) or DART + * for Publishers. + *

      + * Similar to third-party creatives, a DoubleClick tag is used to retrieve a + * creative asset. However, DoubleClick tags are not sent to the user's browser. + * Instead, they are processed internally within the DoubleClick system.. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalRedirectCreative extends Creative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var string + */ + public $internalRedirectUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalRedirectCreative"; + } + + public function __construct($assetSize = NULL, $internalRedirectUrl = NULL, $overrideSize = NULL, $isInterstitial = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->internalRedirectUrl = $internalRedirectUrl; + $this->overrideSize = $overrideSize; + $this->isInterstitial = $isInterstitial; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LegacyDfpCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by Google DFP, but was migrated + * from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LegacyDfpCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LongCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RedirectAsset", FALSE)) { +/** + * An externally hosted asset. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RedirectAsset extends Asset { + /** + * @access public + * @var string + */ + public $redirectUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioChildAssetProperty", FALSE)) { +/** + * Represents a child asset in {@code RichMediaStudioCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioChildAssetProperty { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsRichMediaStudioChildAssetPropertyType + */ + public $type; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty"; + } + + public function __construct($name = NULL, $type = NULL, $totalFileSize = NULL, $width = NULL, $height = NULL, $url = NULL) { + $this->name = $name; + $this->type = $type; + $this->totalFileSize = $totalFileSize; + $this->width = $width; + $this->height = $height; + $this->url = $url; + } +}} + +if (!class_exists("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of + * {@link VariableType#STRING} and {@link VariableType#LIST}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SwiffyConversionError", FALSE)) { +/** + * Error for converting flash to swiffy asset. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SwiffyConversionError extends ApiError { + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError"; + } + + 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("SwiffyFallbackAsset", FALSE)) { +/** + * A fallback swiffy asset used for flash creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SwiffyFallbackAsset { + /** + * @access public + * @var CreativeAsset + */ + public $asset; + + /** + * @access public + * @var tnsHtml5Feature[] + */ + public $html5Features; + + /** + * @access public + * @var string[] + */ + public $localizedInfoMessages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyFallbackAsset"; + } + + public function __construct($asset = NULL, $html5Features = NULL, $localizedInfoMessages = NULL) { + $this->asset = $asset; + $this->html5Features = $html5Features; + $this->localizedInfoMessages = $localizedInfoMessages; + } +}} + +if (!class_exists("TemplateCreative", FALSE)) { +/** + * A {@code Creative} that is created by the specified creative template. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TemplateCreative extends Creative { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BaseCreativeTemplateVariableValue[] + */ + public $creativeTemplateVariableValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateCreative"; + } + + public function __construct($creativeTemplateId = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $creativeTemplateVariableValues = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->creativeTemplateId = $creativeTemplateId; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("ThirdPartyCreative", FALSE)) { +/** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ThirdPartyCreative extends Creative { + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $expandedSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ThirdPartyCreative"; + } + + public function __construct($snippet = NULL, $expandedSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->snippet = $snippet; + $this->expandedSnippet = $expandedSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("TrackingUrls", FALSE)) { +/** + * A list of URLs that should be pinged for a conversion event. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TrackingUrls { + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TrackingUrls"; + } + + public function __construct($urls = NULL) { + $this->urls = $urls; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UnsupportedCreative", FALSE)) { +/** + * A {@code Creative} that isn't supported by this version of the API. + * This object is readonly and when encountered should be reported + * on the DFP API forum. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnsupportedCreative extends Creative { + /** + * @access public + * @var string + */ + public $unsupportedCreativeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnsupportedCreative"; + } + + public function __construct($unsupportedCreativeType = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->unsupportedCreativeType = $unsupportedCreativeType; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariableValue", FALSE)) { +/** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariableValue"; + } + + public function __construct($value = NULL, $uniqueName = NULL, $BaseCreativeTemplateVariableValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VastRedirectCreative", FALSE)) { +/** + * A {@code Creative} that points to an externally hosted VAST ad and is + * served via VAST 2.0 XML as a VAST Wrapper. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VastRedirectCreative extends Creative { + /** + * @access public + * @var string + */ + public $vastXmlUrl; + + /** + * @access public + * @var tnsVastRedirectType + */ + public $vastRedirectType; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectCreative"; + } + + public function __construct($vastXmlUrl = NULL, $vastRedirectType = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $vastPreviewUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->vastXmlUrl = $vastXmlUrl; + $this->vastRedirectType = $vastRedirectType; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectAsset", FALSE)) { +/** + * An externally-hosted video asset. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoRedirectAsset extends RedirectAsset { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectAsset"; + } + + public function __construct($redirectUrl = NULL, $AssetType = NULL) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + $this->AssetType = $AssetType; + } +}} + +if (!class_exists("VpaidLinearCreative", FALSE)) { +/** + * A {@code Creative} that displays a DFP-hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VpaidLinearCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $overrideSize = NULL, $flashAssetSize = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->overrideSize = $overrideSize; + $this->flashAssetSize = $flashAssetSize; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VpaidLinearRedirectCreative", FALSE)) { +/** + * A {@code Creative} that displays an externally hosted Flash-based ad + * and is served via VAST 2.0 XML. It is displayed in a linear fashion + * with a video (before, after, interrupting). This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VpaidLinearRedirectCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $flashUrl = NULL, $flashAssetSize = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->flashUrl = $flashUrl; + $this->flashAssetSize = $flashAssetSize; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiFramework", FALSE)) { +/** + * The various ApiFramework types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiFramework { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiFramework"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ConversionEvent", FALSE)) { +/** + * All possible tracking event types. Not all events are supported by every + * kind of creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ConversionEvent { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ConversionEvent"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Html5Feature", FALSE)) { +/** + * An HTML5 features required by HTML5 assets. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Html5Feature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Html5Feature"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageDensity", FALSE)) { +/** + * Image densities. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageDensity { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageDensity"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioChildAssetPropertyType", FALSE)) { +/** + * Type of {@code RichMediaStudioChildAssetProperty} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioChildAssetPropertyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioChildAssetProperty.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeArtworkType", FALSE)) { +/** + * Rich Media Studio creative artwork types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreativeArtworkType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeArtworkType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeBillingAttribute", FALSE)) { +/** + * Rich Media Studio creative supported billing attributes. + *

      + * This is determined by Rich Media Studio based on the content + * of the creative and is not updateable. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreativeBillingAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeBillingAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeFormat", FALSE)) { +/** + * Different creative format supported by Rich Media Studio creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreativeFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SwiffyConversionErrorReason", FALSE)) { +/** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SwiffyConversionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VastRedirectType", FALSE)) { +/** + * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VastRedirectType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VastRedirectType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreative", FALSE)) { +/** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *

        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("createCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreatives", FALSE)) { +/** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("createCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreative", FALSE)) { +/** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreative { + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeId = NULL) { + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativesByStatement", FALSE)) { +/** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativesByStatementResponse { + /** + * @access public + * @var CreativePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreative", FALSE)) { +/** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreative { + /** + * @access public + * @var Creative + */ + public $creative; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creative = NULL) { + $this->creative = $creative; + } +}} + +if (!class_exists("updateCreativeResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreativeResponse { + /** + * @access public + * @var Creative + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreatives", FALSE)) { +/** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreatives { + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creatives = NULL) { + $this->creatives = $creatives; + } +}} + +if (!class_exists("updateCreativesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreativesResponse { + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("BaseDynamicAllocationCreative", FALSE)) { +/** + * A base class for dynamic allocation creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseDynamicAllocationCreative extends Creative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseDynamicAllocationCreative"; + } + + public function __construct($advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdMobBackfillCreative", FALSE)) { +/** + * An AdMob backfill creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdMobBackfillCreative extends BaseDynamicAllocationCreative { + /** + * @access public + * @var string + */ + public $additionalParameters; + + /** + * @access public + * @var string + */ + public $publisherId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdMobBackfillCreative"; + } + + public function __construct($additionalParameters = NULL, $publisherId = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->additionalParameters = $additionalParameters; + $this->publisherId = $publisherId; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AspectRatioImageCreative", FALSE)) { +/** + * A {@code Creative} intended for mobile platforms that displays an image, + * whose {@link LineItem#creativePlaceholders size} is defined as an + * {@link CreativeSizeType#ASPECT_RATIO aspect ratio}, i.e. + * {@link Size#isAspectRatio}. It can have multiple images whose dimensions + * conform to that aspect ratio. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AspectRatioImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var CreativeAsset[] + */ + public $imageAssets; + + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AspectRatioImageCreative"; + } + + public function __construct($imageAssets = NULL, $altText = NULL, $thirdPartyImpressionUrl = NULL, $overrideSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->overrideSize = $overrideSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashCreative", FALSE)) { +/** + * A base type for creatives that display a Flash-based ad. If the Flash ad + * cannot load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseFlashCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashName; + + /** + * @access public + * @var base64Binary + */ + public $flashByteArray; + + /** + * @access public + * @var string + */ + public $fallbackImageName; + + /** + * @access public + * @var base64Binary + */ + public $fallbackImageByteArray; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $clickTagRequired; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var Size + */ + public $fallbackAssetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashCreative"; + } + + public function __construct($flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseFlashRedirectCreative", FALSE)) { +/** + * The base type for creatives that load a Flash asset from a specified URL. + * If the remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var string + */ + public $fallbackUrl; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseFlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageCreative", FALSE)) { +/** + * The base type for creatives that display an image. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseImageCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var CreativeAsset + */ + public $primaryImageAsset; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageCreative"; + } + + public function __construct($overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseImageRedirectCreative", FALSE)) { +/** + * The base type for creatives that load an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseImageRedirectCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseImageRedirectCreative"; + } + + public function __construct($imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseRichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRichMediaStudioCreative extends Creative { + /** + * @access public + * @var integer + */ + public $studioCreativeId; + + /** + * @access public + * @var tnsRichMediaStudioCreativeFormat + */ + public $creativeFormat; + + /** + * @access public + * @var tnsRichMediaStudioCreativeArtworkType + */ + public $artworkType; + + /** + * @access public + * @var integer + */ + public $totalFileSize; + + /** + * @access public + * @var string[] + */ + public $adTagKeys; + + /** + * @access public + * @var string[] + */ + public $customKeyValues; + + /** + * @access public + * @var string + */ + public $surveyUrl; + + /** + * @access public + * @var string + */ + public $allImpressionsUrl; + + /** + * @access public + * @var string + */ + public $richMediaImpressionsUrl; + + /** + * @access public + * @var string + */ + public $backupImageImpressionsUrl; + + /** + * @access public + * @var string + */ + public $overrideCss; + + /** + * @access public + * @var string + */ + public $requiredFlashPluginVersion; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var tnsRichMediaStudioCreativeBillingAttribute + */ + public $billingAttribute; + + /** + * @access public + * @var RichMediaStudioChildAssetProperty[] + */ + public $richMediaStudioChildAssetProperties; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRichMediaStudioCreative"; + } + + public function __construct($studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BaseVideoCreative", FALSE)) { +/** + * A base type for video creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseVideoCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var boolean + */ + public $allowDurationOverride; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseVideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ClickTrackingCreative", FALSE)) { +/** + * A creative that is used for tracking clicks on ads that are served directly + * from the customers' web servers or media servers. + * NOTE: The size attribute is not used for click tracking creative and it will + * not be persisted upon save. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingCreative extends Creative { + /** + * @access public + * @var string + */ + public $clickTrackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingCreative"; + } + + public function __construct($clickTrackingUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->clickTrackingUrl = $clickTrackingUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CustomCreative", FALSE)) { +/** + * A {@code Creative} that contains an arbitrary HTML snippet and file assets. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCreative extends HasDestinationUrlCreative { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * @access public + * @var CustomCreativeAsset[] + */ + public $customCreativeAssets; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreative"; + } + + public function __construct($htmlSnippet = NULL, $customCreativeAssets = NULL, $isInterstitial = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->htmlSnippet = $htmlSnippet; + $this->customCreativeAssets = $customCreativeAssets; + $this->isInterstitial = $isInterstitial; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LegacyDfpMobileCreative", FALSE)) { +/** + * A mobile {@code Creative} that isn't supported by Google DFP, but was + * migrated from DART. Creatives of this type cannot be created or modified. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LegacyDfpMobileCreative"; + } + + public function __construct($destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashCreative", FALSE)) { +/** + * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot + * load, a fallback image is displayed instead. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FlashCreative extends BaseFlashCreative { + /** + * @access public + * @var SwiffyFallbackAsset + */ + public $swiffyAsset; + + /** + * @access public + * @var boolean + */ + public $createSwiffyAsset; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashCreative"; + } + + public function __construct($swiffyAsset = NULL, $createSwiffyAsset = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->swiffyAsset = $swiffyAsset; + $this->createSwiffyAsset = $createSwiffyAsset; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays a Flash-based ad and is + * served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FlashOverlayCreative extends BaseFlashCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $vastPreviewUrl = NULL, $flashName = NULL, $flashByteArray = NULL, $fallbackImageName = NULL, $fallbackImageByteArray = NULL, $overrideSize = NULL, $clickTagRequired = NULL, $fallbackPreviewUrl = NULL, $flashAssetSize = NULL, $fallbackAssetSize = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->flashName = $flashName; + $this->flashByteArray = $flashByteArray; + $this->fallbackImageName = $fallbackImageName; + $this->fallbackImageByteArray = $fallbackImageByteArray; + $this->overrideSize = $overrideSize; + $this->clickTagRequired = $clickTagRequired; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->flashAssetSize = $flashAssetSize; + $this->fallbackAssetSize = $fallbackAssetSize; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads a Flash asset from a specified URL. If the + * remote flash asset cannot be served, a fallback image is used at an + * alternate URL. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FlashRedirectCreative extends BaseFlashRedirectCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectCreative"; + } + + public function __construct($flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("FlashRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads a Flash asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var tnsApiFramework + */ + public $apiFramework; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var Size + */ + public $flashAssetSize; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FlashRedirectOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $apiFramework = NULL, $duration = NULL, $flashAssetSize = NULL, $vastPreviewUrl = NULL, $flashUrl = NULL, $fallbackUrl = NULL, $fallbackPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->flashAssetSize = $flashAssetSize; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", FALSE)) { +/** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + /** + * @access public + * @var string + */ + public $codeSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "HasHtmlSnippetDynamicAllocationCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageCreative", FALSE)) { +/** + * A {@code Creative} that displays an image. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageCreative extends BaseImageCreative { + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * @access public + * @var CreativeAsset[] + */ + public $secondaryImageAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageCreative"; + } + + public function __construct($altText = NULL, $thirdPartyImpressionUrl = NULL, $secondaryImageAssets = NULL, $overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->secondaryImageAssets = $secondaryImageAssets; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that displays an image and is served via VAST + * 2.0 XML. Overlays cover part of the video content they are displayed on + * top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageOverlayCreative extends BaseImageCreative { + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageOverlayCreative"; + } + + public function __construct($companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $duration = NULL, $vastPreviewUrl = NULL, $overrideSize = NULL, $primaryImageAsset = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectCreative", FALSE)) { +/** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageRedirectCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectCreative"; + } + + public function __construct($altText = NULL, $thirdPartyImpressionUrl = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("ImageRedirectOverlayCreative", FALSE)) { +/** + * An overlay {@code Creative} that loads an image asset from a specified URL + * and is served via VAST 2.0 XML. Overlays cover part of the video content + * they are displayed on top of. This creative is read only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var string + */ + public $customParameters; + + /** + * @access public + * @var string + */ + public $vastPreviewUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageRedirectOverlayCreative"; + } + + public function __construct($assetSize = NULL, $duration = NULL, $companionCreativeIds = NULL, $trackingUrls = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $imageUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RichMediaStudioCreative", FALSE)) { +/** + * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, + * but you can update some fields of this creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreative"; + } + + public function __construct($isInterstitial = NULL, $studioCreativeId = NULL, $creativeFormat = NULL, $artworkType = NULL, $totalFileSize = NULL, $adTagKeys = NULL, $customKeyValues = NULL, $surveyUrl = NULL, $allImpressionsUrl = NULL, $richMediaImpressionsUrl = NULL, $backupImageImpressionsUrl = NULL, $overrideCss = NULL, $requiredFlashPluginVersion = NULL, $duration = NULL, $billingAttribute = NULL, $richMediaStudioChildAssetProperties = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->isInterstitial = $isInterstitial; + $this->studioCreativeId = $studioCreativeId; + $this->creativeFormat = $creativeFormat; + $this->artworkType = $artworkType; + $this->totalFileSize = $totalFileSize; + $this->adTagKeys = $adTagKeys; + $this->customKeyValues = $customKeyValues; + $this->surveyUrl = $surveyUrl; + $this->allImpressionsUrl = $allImpressionsUrl; + $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; + $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; + $this->overrideCss = $overrideCss; + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + $this->duration = $duration; + $this->billingAttribute = $billingAttribute; + $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoCreative", FALSE)) { +/** + * A {@code Creative} that contains DFP-hosted video ads and is served + * via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoCreative extends BaseVideoCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoCreative"; + } + + public function __construct($duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("VideoRedirectCreative", FALSE)) { +/** + * A {@code Creative} that contains externally hosted video ads and + * is served via VAST 2.0 XML. This creative is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoRedirectCreative extends BaseVideoCreative { + /** + * @access public + * @var VideoRedirectAsset[] + */ + public $videoAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoRedirectCreative"; + } + + public function __construct($videoAssets = NULL, $duration = NULL, $allowDurationOverride = NULL, $trackingUrls = NULL, $companionCreativeIds = NULL, $customParameters = NULL, $vastPreviewUrl = NULL, $destinationUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->videoAssets = $videoAssets; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->destinationUrl = $destinationUrl; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdExchangeCreative", FALSE)) { +/** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdExchangeCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("AdSenseCreative", FALSE)) { +/** + * An AdSense dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseCreative"; + } + + public function __construct($codeSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL, $CreativeType = NULL) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + $this->CreativeType = $CreativeType; + } +}} + +if (!class_exists("CreativeService", FALSE)) { +/** + * CreativeService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class CreativeService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "Creative" => "Creative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "AdExchangeCreative" => "AdExchangeCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "AdMobBackfillCreative" => "AdMobBackfillCreative", + "AdSenseCreative" => "AdSenseCreative", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AspectRatioImageCreative" => "AspectRatioImageCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", + "Asset" => "Asset", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseFlashCreative" => "BaseFlashCreative", + "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", + "BaseImageCreative" => "BaseImageCreative", + "BaseImageRedirectCreative" => "BaseImageRedirectCreative", + "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", + "BaseVideoCreative" => "BaseVideoCreative", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingCreative" => "ClickTrackingCreative", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", + "CreativeAsset" => "CreativeAsset", + "CustomCreativeAsset" => "CustomCreativeAsset", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativePage" => "CreativePage", + "CreativeSetError" => "CreativeSetError", + "CustomCreative" => "CustomCreative", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValue" => "CustomFieldValue", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LegacyDfpCreative" => "LegacyDfpCreative", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RedirectAsset" => "RedirectAsset", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", + "RichMediaStudioCreative" => "RichMediaStudioCreative", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringCreativeTemplateVariableValue" => "StringCreativeTemplateVariableValue", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SwiffyConversionError" => "SwiffyConversionError", + "SwiffyFallbackAsset" => "SwiffyFallbackAsset", + "TemplateCreative" => "TemplateCreative", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "ThirdPartyCreative" => "ThirdPartyCreative", + "TrackingUrls" => "TrackingUrls", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UnsupportedCreative" => "UnsupportedCreative", + "UrlCreativeTemplateVariableValue" => "UrlCreativeTemplateVariableValue", + "VastRedirectCreative" => "VastRedirectCreative", + "VideoCreative" => "VideoCreative", + "VideoRedirectAsset" => "VideoRedirectAsset", + "VideoRedirectCreative" => "VideoRedirectCreative", + "VpaidLinearCreative" => "VpaidLinearCreative", + "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", + "ApiFramework" => "ApiFramework", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ConversionEvent" => "ConversionEvent", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "Html5Feature" => "Html5Feature", + "ImageDensity" => "ImageDensity", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", + "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", + "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "VastRedirectType" => "VastRedirectType", + "createCreative" => "createCreative", + "createCreativeResponse" => "createCreativeResponse", + "createCreatives" => "createCreatives", + "createCreativesResponse" => "createCreativesResponse", + "getCreative" => "getCreative", + "getCreativeResponse" => "getCreativeResponse", + "getCreativesByStatement" => "getCreativesByStatement", + "getCreativesByStatementResponse" => "getCreativesByStatementResponse", + "updateCreative" => "updateCreative", + "updateCreativeResponse" => "updateCreativeResponse", + "updateCreatives" => "updateCreatives", + "updateCreativesResponse" => "updateCreativesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/CreativeService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link Creative}. + * + * The following fields are required along with the required fields of the + * sub-class: + *
        + *
      • {@link Creative#advertiserId}
      • + *
      • {@link Creative#name}
      • + *
      • {@link Creative#size}
      • + *
      + * + * @param creative the creative to create + * @return the new creative with its ID set + */ + public function createCreative($creative) { + $arg = new createCreative($creative); + $result = $this->__soapCall("createCreative", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + */ + public function createCreatives($creatives) { + $arg = new createCreatives($creatives); + $result = $this->__soapCall("createCreatives", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Creative} uniquely identified by the given ID. + * + * @param creativeId the ID of the creative, which must already exist + * @return the {@code Creative} uniquely identified by the given ID + */ + public function getCreative($creativeId) { + $arg = new getCreative($creativeId); + $result = $this->__soapCall("getCreative", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Creative#id}
      {@code name}{@link Creative#name}
      {@code advertiserId}{@link Creative#advertiserId}
      {@code width}{@link Creative#size}
      {@code height}{@link Creative#size}
      {@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creatives + * @return the creatives that match the given filter + */ + public function getCreativesByStatement($filterStatement) { + $arg = new getCreativesByStatement($filterStatement); + $result = $this->__soapCall("getCreativesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative}. + * + * @param creative the creative to update + * @return the updated creative + */ + public function updateCreative($creative) { + $arg = new updateCreative($creative); + $result = $this->__soapCall("updateCreative", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + */ + public function updateCreatives($creatives) { + $arg = new updateCreatives($creatives); + $result = $this->__soapCall("updateCreatives", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php new file mode 100755 index 000000000..e06939a45 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php @@ -0,0 +1,3381 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSet", FALSE)) { +/** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSet { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $masterCreativeId; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSet"; + } + + public function __construct($id = NULL, $name = NULL, $masterCreativeId = NULL, $companionCreativeIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->masterCreativeId = $masterCreativeId; + $this->companionCreativeIds = $companionCreativeIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CreativeSetPage", FALSE)) { +/** + * Captures a page of {@link CreativeSet} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSetPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeSet[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeSet", FALSE)) { +/** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("createCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSet", FALSE)) { +/** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeSet { + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSetId = NULL) { + $this->creativeSetId = $creativeSetId; + } +}} + +if (!class_exists("getCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeSetsByStatement", FALSE)) { +/** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeSetsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getCreativeSetsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeSetsByStatementResponse { + /** + * @access public + * @var CreativeSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeSet", FALSE)) { +/** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreativeSet { + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeSet = NULL) { + $this->creativeSet = $creativeSet; + } +}} + +if (!class_exists("updateCreativeSetResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreativeSetResponse { + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeSetService", FALSE)) { +/** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class CreativeSetService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSet" => "CreativeSet", + "CreativeSetError" => "CreativeSetError", + "CreativeSetPage" => "CreativeSetPage", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCreativeSet" => "createCreativeSet", + "createCreativeSetResponse" => "createCreativeSetResponse", + "getCreativeSet" => "getCreativeSet", + "getCreativeSetResponse" => "getCreativeSetResponse", + "getCreativeSetsByStatement" => "getCreativeSetsByStatement", + "getCreativeSetsByStatementResponse" => "getCreativeSetsByStatementResponse", + "updateCreativeSet" => "updateCreativeSet", + "updateCreativeSetResponse" => "updateCreativeSetResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/CreativeSetService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeSetService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeSetService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link CreativeSet}. + * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in + */ + public function createCreativeSet($creativeSet) { + $arg = new createCreativeSet($creativeSet); + $result = $this->__soapCall("createCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeSet} uniquely identified by the given ID. + * + * @param creativeSetId the ID of the creative set, which must already exist + * @return the {@code CreativeSet} uniquely identified by the given ID + */ + public function getCreativeSet($creativeSetId) { + $arg = new getCreativeSet($creativeSetId); + $result = $this->__soapCall("getCreativeSet", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeSet#id}
      {@code name}{@link CreativeSet#name}
      {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
      {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative sets + * @return the creative sets that match the given filter + */ + public function getCreativeSetsByStatement($statement) { + $arg = new getCreativeSetsByStatement($statement); + $result = $this->__soapCall("getCreativeSetsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + */ + public function updateCreativeSet($creativeSet) { + $arg = new updateCreativeSet($creativeSet); + $result = $this->__soapCall("updateCreativeSet", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php new file mode 100755 index 000000000..373309f10 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php @@ -0,0 +1,3236 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeTemplate", FALSE)) { +/** + * A template upon which a creative can be created. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var CreativeTemplateVariable[] + */ + public $variables; + + /** + * @access public + * @var tnsCreativeTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsCreativeTemplateType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $variables = NULL, $status = NULL, $type = NULL, $isInterstitial = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->variables = $variables; + $this->status = $status; + $this->type = $type; + $this->isInterstitial = $isInterstitial; + } +}} + +if (!class_exists("CreativeTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeTemplateError extends ApiError { + /** + * @access public + * @var tnsCreativeTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError"; + } + + 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("ListStringCreativeTemplateVariableVariableChoice", FALSE)) { +/** + * Stores variable choices that users can select from + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ListStringCreativeTemplateVariableVariableChoice { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable.VariableChoice"; + } + + public function __construct($label = NULL, $value = NULL) { + $this->label = $label; + $this->value = $value; + } +}} + +if (!class_exists("CreativeTemplatePage", FALSE)) { +/** + * Captures a page of {@link CreativeTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CreativeTemplateVariable", FALSE)) { +/** + * Represents a variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $label; + + /** + * @access public + * @var string + */ + public $uniqueName; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isRequired; + + /** + * @access public + * @var string + */ + public $CreativeTemplateVariableType; + + private $_parameterMap = array ( + "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateVariable"; + } + + public function __construct($label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetCreativeTemplateVariableMimeType", FALSE)) { +/** + * Different mime type that the asset variable supports. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetCreativeTemplateVariableMimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable.MimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateStatus", FALSE)) { +/** + * Describes status of the creative template + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeTemplateType", FALSE)) { +/** + * Describes type of the creative template. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeTemplateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeTemplateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getCreativeTemplate", FALSE)) { +/** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeTemplate { + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeTemplateId = NULL) { + $this->creativeTemplateId = $creativeTemplateId; + } +}} + +if (!class_exists("getCreativeTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeTemplateResponse { + /** + * @access public + * @var CreativeTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeTemplatesByStatement", FALSE)) { +/** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeTemplatesByStatementResponse { + /** + * @access public + * @var CreativeTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AssetCreativeTemplateVariable", FALSE)) { +/** + * Represents a file asset variable defined in a creative template. + *

      + * Use {@link AssetCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var tnsAssetCreativeTemplateVariableMimeType[] + */ + public $mimeTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetCreativeTemplateVariable"; + } + + public function __construct($mimeTypes = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->mimeTypes = $mimeTypes; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("LongCreativeTemplateVariable", FALSE)) { +/** + * Represents a long variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LongCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var integer + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LongCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("StringCreativeTemplateVariable", FALSE)) { +/** + * Represents a string variable defined in a creative template. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("UrlCreativeTemplateVariable", FALSE)) { +/** + * Represents a url variable defined in a creative template. + *

      + * Use {@link UrlCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * @access public + * @var boolean + */ + public $isTrackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UrlCreativeTemplateVariable"; + } + + public function __construct($defaultValue = NULL, $isTrackingUrl = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->isTrackingUrl = $isTrackingUrl; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ListStringCreativeTemplateVariable", FALSE)) { +/** + * Represents a list variable defined in a creative template. This is similar to + * {@link StringCreativeTemplateVariable}, except that there are possible choices to + * choose from. + *

      + * Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + /** + * @access public + * @var ListStringCreativeTemplateVariableVariableChoice[] + */ + public $choices; + + /** + * @access public + * @var boolean + */ + public $allowOtherChoice; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ListStringCreativeTemplateVariable"; + } + + public function __construct($choices = NULL, $allowOtherChoice = NULL, $defaultValue = NULL, $label = NULL, $uniqueName = NULL, $description = NULL, $isRequired = NULL, $CreativeTemplateVariableType = NULL) { + parent::__construct(); + $this->choices = $choices; + $this->allowOtherChoice = $allowOtherChoice; + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; + } +}} + +if (!class_exists("CreativeTemplateService", FALSE)) { +/** + * CreativeTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class CreativeTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", + "CreativeTemplateVariable" => "CreativeTemplateVariable", + "CreativeTemplate" => "CreativeTemplate", + "CreativeTemplateError" => "CreativeTemplateError", + "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", + "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", + "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", + "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", + "CreativeTemplatePage" => "CreativeTemplatePage", + "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", + "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", + "CreativeTemplateStatus" => "CreativeTemplateStatus", + "CreativeTemplateType" => "CreativeTemplateType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getCreativeTemplate" => "getCreativeTemplate", + "getCreativeTemplateResponse" => "getCreativeTemplateResponse", + "getCreativeTemplatesByStatement" => "getCreativeTemplatesByStatement", + "getCreativeTemplatesByStatementResponse" => "getCreativeTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/CreativeTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeTemplateService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Returns the {@link CreativeTemplate} uniquely identified by the given ID. + * + * @param creativeTemplateId the ID of the creative template, which must already exist + * @return the {@code CreativeTemplate} uniquely identified by the given ID + */ + public function getCreativeTemplate($creativeTemplateId) { + $arg = new getCreativeTemplate($creativeTemplateId); + $result = $this->__soapCall("getCreativeTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeTemplate#id}
      {@code name}{@link CreativeTemplate#name}
      {@code type}{@link CreativeTemplate#type}
      {@code status}{@link CreativeTemplate#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative templates. + * @return the creative templates that match the given filter + */ + public function getCreativeTemplatesByStatement($filterStatement) { + $arg = new getCreativeTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getCreativeTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php new file mode 100755 index 000000000..288b5ea39 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php @@ -0,0 +1,3422 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CreativeWrapper} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperAction { + /** + * @access public + * @var string + */ + public $CreativeWrapperActionType; + + private $_parameterMap = array ( + "CreativeWrapperAction.Type" => "CreativeWrapperActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperAction"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("CreativeWrapper", FALSE)) { +/** + * A {@code CreativeWrapper} allows the wrapping of HTML snippets to be + * served along with {@code Creative} objects. + *

      + * Creative wrappers must be associated with a + * {@link LabelType#CREATIVE_WRAPPER} label and applied to ad units by + * {@link AdUnit#appliedLabels}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapper { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $header; + + /** + * @access public + * @var CreativeWrapperHtmlSnippet + */ + public $footer; + + /** + * @access public + * @var tnsCreativeWrapperOrdering + */ + public $ordering; + + /** + * @access public + * @var tnsCreativeWrapperStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapper"; + } + + public function __construct($id = NULL, $labelId = NULL, $header = NULL, $footer = NULL, $ordering = NULL, $status = NULL) { + $this->id = $id; + $this->labelId = $labelId; + $this->header = $header; + $this->footer = $footer; + $this->ordering = $ordering; + $this->status = $status; + } +}} + +if (!class_exists("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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("CreativeWrapperPage", FALSE)) { +/** + * Captures a page of {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCreativeWrappers", FALSE)) { +/** + * The action used for deactivating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("CreativeWrapperHtmlSnippet", FALSE)) { +/** + * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is + * delivered as the header or footer. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperHtmlSnippet { + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperHtmlSnippet"; + } + + public function __construct($htmlSnippet = NULL) { + $this->htmlSnippet = $htmlSnippet; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperOrdering", FALSE)) { +/** + * Defines the order in which the header and footer HTML snippets will be + * wrapped around the served creative. {@code INNER} snippets will be wrapped + * first, followed by {@code NO_PREFERENCE} and finally {@code OUTER}. If the + * creative needs to be wrapped with more than one snippet with the same + * {@link CreativeWrapperOrdering}, then the order is unspecified. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperOrdering { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperOrdering"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperStatus", FALSE)) { +/** + * Indicates whether the {@code CreativeWrapper} is active. HTML snippets + * are served to creatives only when the creative wrapper is active. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCreativeWrapper", FALSE)) { +/** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("createCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCreativeWrappers", FALSE)) { +/** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("createCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrapper", FALSE)) { +/** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeWrapper { + /** + * @access public + * @var integer + */ + public $creativeWrapperId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperId = NULL) { + $this->creativeWrapperId = $creativeWrapperId; + } +}} + +if (!class_exists("getCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCreativeWrappersByStatement", FALSE)) { +/** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeWrappersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCreativeWrappersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCreativeWrappersByStatementResponse { + /** + * @access public + * @var CreativeWrapperPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCreativeWrapperAction", FALSE)) { +/** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performCreativeWrapperAction { + /** + * @access public + * @var CreativeWrapperAction + */ + public $creativeWrapperAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapperAction = NULL, $filterStatement = NULL) { + $this->creativeWrapperAction = $creativeWrapperAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCreativeWrapperActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performCreativeWrapperActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrapper", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreativeWrapper { + /** + * @access public + * @var CreativeWrapper + */ + public $creativeWrapper; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrapper = NULL) { + $this->creativeWrapper = $creativeWrapper; + } +}} + +if (!class_exists("updateCreativeWrapperResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreativeWrapperResponse { + /** + * @access public + * @var CreativeWrapper + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCreativeWrappers", FALSE)) { +/** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreativeWrappers { + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($creativeWrappers = NULL) { + $this->creativeWrappers = $creativeWrappers; + } +}} + +if (!class_exists("updateCreativeWrappersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCreativeWrappersResponse { + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCreativeWrappers", FALSE)) { +/** + * The action used for activating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateCreativeWrappers extends CreativeWrapperAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCreativeWrappers"; + } + + public function __construct($CreativeWrapperActionType = NULL) { + parent::__construct(); + $this->CreativeWrapperActionType = $CreativeWrapperActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CreativeWrapperService", FALSE)) { +/** + * CreativeWrapperService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class CreativeWrapperService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCreativeWrappers" => "ActivateCreativeWrappers", + "CreativeWrapperAction" => "CreativeWrapperAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapper" => "CreativeWrapper", + "CreativeWrapperError" => "CreativeWrapperError", + "CreativeWrapperPage" => "CreativeWrapperPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateCreativeWrappers" => "DeactivateCreativeWrappers", + "FeatureError" => "FeatureError", + "CreativeWrapperHtmlSnippet" => "CreativeWrapperHtmlSnippet", + "InternalApiError" => "InternalApiError", + "LabelError" => "LabelError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "CreativeWrapperOrdering" => "CreativeWrapperOrdering", + "CreativeWrapperStatus" => "CreativeWrapperStatus", + "LabelError.Reason" => "LabelErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createCreativeWrapper" => "createCreativeWrapper", + "createCreativeWrapperResponse" => "createCreativeWrapperResponse", + "createCreativeWrappers" => "createCreativeWrappers", + "createCreativeWrappersResponse" => "createCreativeWrappersResponse", + "getCreativeWrapper" => "getCreativeWrapper", + "getCreativeWrapperResponse" => "getCreativeWrapperResponse", + "getCreativeWrappersByStatement" => "getCreativeWrappersByStatement", + "getCreativeWrappersByStatementResponse" => "getCreativeWrappersByStatementResponse", + "performCreativeWrapperAction" => "performCreativeWrapperAction", + "performCreativeWrapperActionResponse" => "performCreativeWrapperActionResponse", + "updateCreativeWrapper" => "updateCreativeWrapper", + "updateCreativeWrapperResponse" => "updateCreativeWrapperResponse", + "updateCreativeWrappers" => "updateCreativeWrappers", + "updateCreativeWrappersResponse" => "updateCreativeWrappersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/CreativeWrapperService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CreativeWrapperService::$classmap; + parent::__construct($wsdl, $options, $user, 'CreativeWrapperService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@code CreativeWrapper}. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrapper the creative wrapper to create + * @return the creative wrapper with its ID filled in + * @throws ApiException + */ + public function createCreativeWrapper($creativeWrapper) { + $arg = new createCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("createCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@code CreativeWrapper} objects. + * + * The following fields are required: + *
        + *
      • {@link CreativeWrapper#labelId}
      • + *
      • {@link CreativeWrapper#ordering}
      • + *
      • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
      • + *
      + * + * @param creativeWrappers the creative wrappers to create + * @return the creative wrappers with their IDs filled in + * @throws ApiException + */ + public function createCreativeWrappers($creativeWrappers) { + $arg = new createCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("createCreativeWrappers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CreativeWrapper} uniquely identified by the given + * ID. + * + * @param creativeWrapperId the ID of the creative wrapper, which + * must already exist + * @return the {@code CreativeWrapper} uniquely identified by the given + * ID + * @throws ApiException + */ + public function getCreativeWrapper($creativeWrapperId) { + $arg = new getCreativeWrapper($creativeWrapperId); + $result = $this->__soapCall("getCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CreativeWrapper#id}
      {@code labelId}{@link CreativeWrapper#labelId}
      {@code status}{@link CreativeWrapper#status}
      {@code ordering}{@link CreativeWrapper#ordering}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of creative wrappers. + * @return the creative wrappers that match the given filter + */ + public function getCreativeWrappersByStatement($filterStatement) { + $arg = new getCreativeWrappersByStatement($filterStatement); + $result = $this->__soapCall("getCreativeWrappersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CreativeWrapper} objects that match the + * given {@link Statement#query}. + * + * @param creativeWrapperAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performCreativeWrapperAction($creativeWrapperAction, $filterStatement) { + $arg = new performCreativeWrapperAction($creativeWrapperAction, $filterStatement); + $result = $this->__soapCall("performCreativeWrapperAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper}. + * + * @param creativeWrapper the creative wrapper to update + * @return the updated creative wrapper + * @throws ApiException + */ + public function updateCreativeWrapper($creativeWrapper) { + $arg = new updateCreativeWrapper($creativeWrapper); + $result = $this->__soapCall("updateCreativeWrapper", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code CreativeWrapper} objects. + * + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects + * @throws ApiException + */ + public function updateCreativeWrappers($creativeWrappers) { + $arg = new updateCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("updateCreativeWrappers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php new file mode 100755 index 000000000..8ff710c5c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php @@ -0,0 +1,3893 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldAction { + /** + * @access public + * @var string + */ + public $CustomFieldActionType; + + private $_parameterMap = array ( + "CustomFieldAction.Type" => "CustomFieldActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldAction"; + } + + public function __construct($CustomFieldActionType = NULL) { + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("CustomField", FALSE)) { +/** + * An additional, user-created field on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomField { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsCustomFieldEntityType + */ + public $entityType; + + /** + * @access public + * @var tnsCustomFieldDataType + */ + public $dataType; + + /** + * @access public + * @var tnsCustomFieldVisibility + */ + public $visibility; + + /** + * @access public + * @var string + */ + public $CustomFieldType; + + private $_parameterMap = array ( + "CustomField.Type" => "CustomFieldType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomField"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("CustomFieldError", FALSE)) { +/** + * Errors specific to editing custom fields + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldError extends ApiError { + /** + * @access public + * @var tnsCustomFieldErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError"; + } + + 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("CustomFieldOption", FALSE)) { +/** + * An option represents a permitted value for a custom field that + * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldOption { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldOption"; + } + + public function __construct($id = NULL, $customFieldId = NULL, $displayName = NULL) { + $this->id = $id; + $this->customFieldId = $customFieldId; + $this->displayName = $displayName; + } +}} + +if (!class_exists("CustomFieldPage", FALSE)) { +/** + * Captures a page of {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomField[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateCustomFields", FALSE)) { +/** + * The action used for deactivating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("DropDownCustomField", FALSE)) { +/** + * A custom field that has the drop-down data type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomField extends CustomField { + /** + * @access public + * @var CustomFieldOption[] + */ + public $options; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomField"; + } + + public function __construct($options = NULL, $id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $entityType = NULL, $dataType = NULL, $visibility = NULL, $CustomFieldType = NULL) { + parent::__construct(); + $this->options = $options; + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + $this->CustomFieldType = $CustomFieldType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldDataType", FALSE)) { +/** + * The data types allowed for {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldDataType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldDataType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldEntityType", FALSE)) { +/** + * Entity types recognized by custom fields + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldEntityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldEntityType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldVisibility", FALSE)) { +/** + * The visibility levels of a custom field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldVisibility { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldVisibility"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomField", FALSE)) { +/** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("createCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOption", FALSE)) { +/** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("createCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFieldOptions", FALSE)) { +/** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("createCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomFields", FALSE)) { +/** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("createCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomField", FALSE)) { +/** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomField { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldId = NULL) { + $this->customFieldId = $customFieldId; + } +}} + +if (!class_exists("getCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldOption", FALSE)) { +/** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomFieldOption { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptionId = NULL) { + $this->customFieldOptionId = $customFieldOptionId; + } +}} + +if (!class_exists("getCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomFieldsByStatement", FALSE)) { +/** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomFieldsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomFieldsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomFieldsByStatementResponse { + /** + * @access public + * @var CustomFieldPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomFieldAction", FALSE)) { +/** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performCustomFieldAction { + /** + * @access public + * @var CustomFieldAction + */ + public $customFieldAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldAction = NULL, $filterStatement = NULL) { + $this->customFieldAction = $customFieldAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomFieldActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performCustomFieldActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomField", FALSE)) { +/** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomField { + /** + * @access public + * @var CustomField + */ + public $customField; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customField = NULL) { + $this->customField = $customField; + } +}} + +if (!class_exists("updateCustomFieldResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomFieldResponse { + /** + * @access public + * @var CustomField + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOption", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomFieldOption { + /** + * @access public + * @var CustomFieldOption + */ + public $customFieldOption; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOption = NULL) { + $this->customFieldOption = $customFieldOption; + } +}} + +if (!class_exists("updateCustomFieldOptionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomFieldOptionResponse { + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFieldOptions", FALSE)) { +/** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomFieldOptions { + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFieldOptions = NULL) { + $this->customFieldOptions = $customFieldOptions; + } +}} + +if (!class_exists("updateCustomFieldOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomFieldOptionsResponse { + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomFields", FALSE)) { +/** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomFields { + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customFields = NULL) { + $this->customFields = $customFields; + } +}} + +if (!class_exists("updateCustomFieldsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomFieldsResponse { + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateCustomFields", FALSE)) { +/** + * The action used for activating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateCustomFields extends CustomFieldAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateCustomFields"; + } + + public function __construct($CustomFieldActionType = NULL) { + parent::__construct(); + $this->CustomFieldActionType = $CustomFieldActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomFieldService", FALSE)) { +/** + * CustomFieldService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class CustomFieldService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateCustomFields" => "ActivateCustomFields", + "CustomFieldAction" => "CustomFieldAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomField" => "CustomField", + "CustomFieldError" => "CustomFieldError", + "CustomFieldOption" => "CustomFieldOption", + "CustomFieldPage" => "CustomFieldPage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateCustomFields" => "DeactivateCustomFields", + "DropDownCustomField" => "DropDownCustomField", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldDataType" => "CustomFieldDataType", + "CustomFieldEntityType" => "CustomFieldEntityType", + "CustomFieldError.Reason" => "CustomFieldErrorReason", + "CustomFieldVisibility" => "CustomFieldVisibility", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomField" => "createCustomField", + "createCustomFieldResponse" => "createCustomFieldResponse", + "createCustomFieldOption" => "createCustomFieldOption", + "createCustomFieldOptionResponse" => "createCustomFieldOptionResponse", + "createCustomFieldOptions" => "createCustomFieldOptions", + "createCustomFieldOptionsResponse" => "createCustomFieldOptionsResponse", + "createCustomFields" => "createCustomFields", + "createCustomFieldsResponse" => "createCustomFieldsResponse", + "getCustomField" => "getCustomField", + "getCustomFieldResponse" => "getCustomFieldResponse", + "getCustomFieldOption" => "getCustomFieldOption", + "getCustomFieldOptionResponse" => "getCustomFieldOptionResponse", + "getCustomFieldsByStatement" => "getCustomFieldsByStatement", + "getCustomFieldsByStatementResponse" => "getCustomFieldsByStatementResponse", + "performCustomFieldAction" => "performCustomFieldAction", + "performCustomFieldActionResponse" => "performCustomFieldActionResponse", + "updateCustomField" => "updateCustomField", + "updateCustomFieldResponse" => "updateCustomFieldResponse", + "updateCustomFieldOption" => "updateCustomFieldOption", + "updateCustomFieldOptionResponse" => "updateCustomFieldOptionResponse", + "updateCustomFieldOptions" => "updateCustomFieldOptions", + "updateCustomFieldOptionsResponse" => "updateCustomFieldOptionsResponse", + "updateCustomFields" => "updateCustomFields", + "updateCustomFieldsResponse" => "updateCustomFieldsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/CustomFieldService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomFieldService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomFieldService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link CustomField}. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customField the custom field to create + * @return the custom field with its ID filled in + */ + public function createCustomField($customField) { + $arg = new createCustomField($customField); + $result = $this->__soapCall("createCustomField", array($arg)); + return $result->rval; + } + + + /** + * Creates a new {@link CustomFieldOption}. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOption the custom field to create + * @return the custom field option with its ID filled in + */ + public function createCustomFieldOption($customFieldOption) { + $arg = new createCustomFieldOption($customFieldOption); + $result = $this->__soapCall("createCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomFieldOption} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomFieldOption#displayName}
      • + *
      • {@link CustomFieldOption#customFieldId}
      • + *
      + * + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in + */ + public function createCustomFieldOptions($customFieldOptions) { + $arg = new createCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("createCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomField} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomField#name}
      • + *
      • {@link CustomField#entityType}
      • + *
      • {@link CustomField#dataType}
      • + *
      • {@link CustomField#visibility}
      • + *
      + * + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in + */ + public function createCustomFields($customFields) { + $arg = new createCustomFields($customFields); + $result = $this->__soapCall("createCustomFields", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomField} uniquely identified by the given ID. + * + * @param customFieldId the ID of the custom field, which must already exist + * @return the {@code CustomField} uniquely identified by the given ID + */ + public function getCustomField($customFieldId) { + $arg = new getCustomField($customFieldId); + $result = $this->__soapCall("getCustomField", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * + * @param customFieldOptionId the ID of the custom field option, which must already exist + * @return the {@code CustomFieldOption} uniquely identified by the given ID + */ + public function getCustomFieldOption($customFieldOptionId) { + $arg = new getCustomFieldOption($customFieldOptionId); + $result = $this->__soapCall("getCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the + * given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomField#id}
      {@code entityType}{@link CustomField#entityType}
      {@code name}{@link CustomField#name}
      {@code isActive}{@link CustomField#isActive}
      {@code visibility}{@link CustomField#visibility}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields. + * @return the custom fields that match the given filter + */ + public function getCustomFieldsByStatement($filterStatement) { + $arg = new getCustomFieldsByStatement($filterStatement); + $result = $this->__soapCall("getCustomFieldsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomField} objects that match the given + * {@link Statement#query}. + * + * @param customFieldAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom fields + * @return the result of the action performed + */ + public function performCustomFieldAction($customFieldAction, $filterStatement) { + $arg = new performCustomFieldAction($customFieldAction, $filterStatement); + $result = $this->__soapCall("performCustomFieldAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField}. + * + * @param customField the custom field to update + * @return the updated customField + */ + public function updateCustomField($customField) { + $arg = new updateCustomField($customField); + $result = $this->__soapCall("updateCustomField", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption}. + * + * @param customFieldOption the custom field option to update + * @return the updated customFieldOption + */ + public function updateCustomFieldOption($customFieldOption) { + $arg = new updateCustomFieldOption($customFieldOption); + $result = $this->__soapCall("updateCustomFieldOption", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomFieldOption} objects. + * + * @param customFieldOptions the custom field options to update + * @return the updated custom field options + */ + public function updateCustomFieldOptions($customFieldOptions) { + $arg = new updateCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("updateCustomFieldOptions", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + */ + public function updateCustomFields($customFields) { + $arg = new updateCustomFields($customFields); + $result = $this->__soapCall("updateCustomFields", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php new file mode 100755 index 000000000..5bdeb50fa --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php @@ -0,0 +1,3593 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomTargetingKeyAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingKey} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingKeyAction { + /** + * @access public + * @var string + */ + public $CustomTargetingKeyActionType; + + private $_parameterMap = array ( + "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyAction"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("CustomTargetingKey", FALSE)) { +/** + * {@code CustomTargetingKey} represents a key used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingKey { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingKeyType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey"; + } + + public function __construct($id = NULL, $name = NULL, $displayName = NULL, $type = NULL) { + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->type = $type; + } +}} + +if (!class_exists("CustomTargetingKeyPage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingKeyPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKeyPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("CustomTargetingValueAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link CustomTargetingValue} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingValueAction { + /** + * @access public + * @var string + */ + public $CustomTargetingValueActionType; + + private $_parameterMap = array ( + "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValueAction"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("CustomTargetingValue", FALSE)) { +/** + * {@code CustomTargetingValue} represents a value used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingValue { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var tnsCustomTargetingValueMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue"; + } + + public function __construct($customTargetingKeyId = NULL, $id = NULL, $name = NULL, $displayName = NULL, $matchType = NULL) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->matchType = $matchType; + } +}} + +if (!class_exists("CustomTargetingValuePage", FALSE)) { +/** + * Captures a page of {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingValuePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValuePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeleteCustomTargetingKeys", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingKey} objects. Deleting a key will not delete the + * {@link CustomTargetingValue} objects associated with it. Also, if a custom + * targeting key that has been deleted is recreated, any previous custom + * targeting values associated with it that were not deleted will continue to + * exist. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingKeys"; + } + + public function __construct($CustomTargetingKeyActionType = NULL) { + parent::__construct(); + $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + } +}} + +if (!class_exists("DeleteCustomTargetingValues", FALSE)) { +/** + * Represents the delete action that can be performed on + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeleteCustomTargetingValues extends CustomTargetingValueAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteCustomTargetingValues"; + } + + public function __construct($CustomTargetingValueActionType = NULL) { + parent::__construct(); + $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingKeyType", FALSE)) { +/** + * Specifies the types for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingKeyType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingKey.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingValueMatchType", FALSE)) { +/** + * Represents the ways in which {@link CustomTargetingValue#name} strings will + * be matched with ad requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingValueMatchType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingValue.MatchType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createCustomTargetingKeys", FALSE)) { +/** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("createCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createCustomTargetingValues", FALSE)) { +/** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("createCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomTargetingKeysByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingKeysByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomTargetingKeysByStatementResponse { + /** + * @access public + * @var CustomTargetingKeyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatement", FALSE)) { +/** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomTargetingValuesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getCustomTargetingValuesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCustomTargetingValuesByStatementResponse { + /** + * @access public + * @var CustomTargetingValuePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingKeyAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performCustomTargetingKeyAction { + /** + * @access public + * @var CustomTargetingKeyAction + */ + public $customTargetingKeyAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingKeyAction = NULL, $filterStatement = NULL) { + $this->customTargetingKeyAction = $customTargetingKeyAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingKeyActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performCustomTargetingKeyActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performCustomTargetingValueAction", FALSE)) { +/** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performCustomTargetingValueAction { + /** + * @access public + * @var CustomTargetingValueAction + */ + public $customTargetingValueAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($customTargetingValueAction = NULL, $filterStatement = NULL) { + $this->customTargetingValueAction = $customTargetingValueAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performCustomTargetingValueActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performCustomTargetingValueActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingKeys", FALSE)) { +/** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomTargetingKeys { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($keys = NULL) { + $this->keys = $keys; + } +}} + +if (!class_exists("updateCustomTargetingKeysResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomTargetingKeysResponse { + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateCustomTargetingValues", FALSE)) { +/** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomTargetingValues { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("updateCustomTargetingValuesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateCustomTargetingValuesResponse { + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomTargetingService", FALSE)) { +/** + * CustomTargetingService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class CustomTargetingService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", + "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "CustomTargetingKey.Type" => "CustomTargetingKeyType", + "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createCustomTargetingKeys" => "createCustomTargetingKeys", + "createCustomTargetingKeysResponse" => "createCustomTargetingKeysResponse", + "createCustomTargetingValues" => "createCustomTargetingValues", + "createCustomTargetingValuesResponse" => "createCustomTargetingValuesResponse", + "getCustomTargetingKeysByStatement" => "getCustomTargetingKeysByStatement", + "getCustomTargetingKeysByStatementResponse" => "getCustomTargetingKeysByStatementResponse", + "getCustomTargetingValuesByStatement" => "getCustomTargetingValuesByStatement", + "getCustomTargetingValuesByStatementResponse" => "getCustomTargetingValuesByStatementResponse", + "performCustomTargetingKeyAction" => "performCustomTargetingKeyAction", + "performCustomTargetingKeyActionResponse" => "performCustomTargetingKeyActionResponse", + "performCustomTargetingValueAction" => "performCustomTargetingValueAction", + "performCustomTargetingValueActionResponse" => "performCustomTargetingValueActionResponse", + "updateCustomTargetingKeys" => "updateCustomTargetingKeys", + "updateCustomTargetingKeysResponse" => "updateCustomTargetingKeysResponse", + "updateCustomTargetingValues" => "updateCustomTargetingValues", + "updateCustomTargetingValuesResponse" => "updateCustomTargetingValuesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/CustomTargetingService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = CustomTargetingService::$classmap; + parent::__construct($wsdl, $options, $user, 'CustomTargetingService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates new {@link CustomTargetingKey} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingKey#name}
      • + *
      • {@link CustomTargetingKey#type}
      • + *
      + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingKeys($keys) { + $arg = new createCustomTargetingKeys($keys); + $result = $this->__soapCall("createCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link CustomTargetingValue} objects. + * + * The following fields are required: + *
        + *
      • {@link CustomTargetingValue#customTargetingKeyId}
      • + *
      • {@link CustomTargetingValue#name}
      • + *
      + * + * @param values the custom targeting values to update + * @return the updated custom targeting keys + */ + public function createCustomTargetingValues($values) { + $arg = new createCustomTargetingValues($values); + $result = $this->__soapCall("createCustomTargetingValues", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link CustomTargetingKey#id}
      {@code name}{@link CustomTargetingKey#name}
      {@code displayName}{@link CustomTargetingKey#displayName}
      {@code type}{@link CustomTargetingKey#type}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the custom targeting keys that match the given filter + */ + public function getCustomTargetingKeysByStatement($filterStatement) { + $arg = new getCustomTargetingKeysByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} + * objects that satisfy the given {@link Statement#query}. + *

      + * The {@code WHERE} clause in the {@link Statement#query} must always contain + * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in + * a way that it is AND'ed with the rest of the query. So, if you want to + * retrieve values for a known set of key ids, valid {@link Statement#query} + * would look like: + *

      + *
        + *
      1. + * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that + * are associated with keys having ids 17, 18, 19. + *
      2. + *
      3. + * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that + * are associated with keys having id 17 and value name is 'red'. + *
      4. + *
      + *

      + *

      + * The following fields are supported for filtering: + *

      + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link CustomTargetingValue#id}
      {@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
      {@code name}{@link CustomTargetingValue#name}
      {@code displayName}{@link CustomTargetingValue#displayName}
      {@code matchType}{@link CustomTargetingValue#matchType}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting values + * @return the custom targeting values that match the given filter + */ + public function getCustomTargetingValuesByStatement($filterStatement) { + $arg = new getCustomTargetingValuesByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingKey} objects that match the given + * {@link Statement#query}. + * + * @param customTargetingKeyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of custom targeting keys + * @return the result of the action performed + */ + public function performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement) { + $arg = new performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingKeyAction", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link CustomTargetingValue} objects that match the + * given {@link Statement#query}. + * + * @param customTargetingValueAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performCustomTargetingValueAction($customTargetingValueAction, $filterStatement) { + $arg = new performCustomTargetingValueAction($customTargetingValueAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingValueAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingKey} objects. + * + * @param keys the custom targeting keys to update + * @return the updated custom targeting keys + */ + public function updateCustomTargetingKeys($keys) { + $arg = new updateCustomTargetingKeys($keys); + $result = $this->__soapCall("updateCustomTargetingKeys", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link CustomTargetingValue} objects. + * + * @param values the custom targeting values to update + * @return the updated custom targeting values + */ + public function updateCustomTargetingValues($values) { + $arg = new updateCustomTargetingValues($values); + $result = $this->__soapCall("updateCustomTargetingValues", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php new file mode 100755 index 000000000..e18753588 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php @@ -0,0 +1,2862 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("ExchangeRateAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateAction { + /** + * @access public + * @var string + */ + public $ExchangeRateActionType; + + private $_parameterMap = array ( + "ExchangeRateAction.Type" => "ExchangeRateActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRateAction"; + } + + public function __construct($ExchangeRateActionType = NULL) { + $this->ExchangeRateActionType = $ExchangeRateActionType; + } +}} + +if (!class_exists("ExchangeRate", FALSE)) { +/** + * An {@code ExchangeRate} represents a currency which is one of the + * {@link Network#secondaryCurrencyCodes}, and the latest exchange rate between this currency and + * {@link Network#currencyCode}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var tnsExchangeRateRefreshRate + */ + public $refreshRate; + + /** + * @access public + * @var tnsExchangeRateDirection + */ + public $direction; + + /** + * @access public + * @var integer + */ + public $exchangeRate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRate"; + } + + public function __construct($id = NULL, $currencyCode = NULL, $refreshRate = NULL, $direction = NULL, $exchangeRate = NULL) { + $this->id = $id; + $this->currencyCode = $currencyCode; + $this->refreshRate = $refreshRate; + $this->direction = $direction; + $this->exchangeRate = $exchangeRate; + } +}} + +if (!class_exists("ExchangeRateError", FALSE)) { +/** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateError extends ApiError { + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRateError"; + } + + 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("ExchangeRatePage", FALSE)) { +/** + * Captures a page of {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRatePage { + /** + * @access public + * @var ExchangeRate[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRatePage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExchangeRateDirection", FALSE)) { +/** + * Determines which direction (from which currency to which currency) the exchange rate is in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateDirection { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRateDirection"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExchangeRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExchangeRateRefreshRate", FALSE)) { +/** + * Determines at which rate the exchange rate is refreshed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateRefreshRate { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRateRefreshRate"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createExchangeRates", FALSE)) { +/** + * Creates new {@link ExchangeRate} objects. + * + * For each exchange rate, the following fields are required: + *
        + *
      • {@link ExchangeRate#currencyCode}
      • + *
      • {@link ExchangeRate#exchangeRate} when {@link ExchangeRate#refreshRate} is + * {@link ExchangeRateRefreshRate#FIXED}
      • + *
      + * + * @param exchangeRates the exchange rates to create + * @return the created exchange rates with their exchange rate values filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createExchangeRates { + /** + * @access public + * @var ExchangeRate[] + */ + public $exchangeRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($exchangeRates = NULL) { + $this->exchangeRates = $exchangeRates; + } +}} + +if (!class_exists("createExchangeRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createExchangeRatesResponse { + /** + * @access public + * @var ExchangeRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getExchangeRate", FALSE)) { +/** + * Returns the {@link ExchangeRate} object uniquely identified by the given + * {@code exchangeRateId}. + * + * @param exchangeRateId the ID of the exchange rate, which must already exist + * @return the exchange rate uniquely identified by the given {@code exchangeRateId} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getExchangeRate { + /** + * @access public + * @var integer + */ + public $exchangeRateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($exchangeRateId = NULL) { + $this->exchangeRateId = $exchangeRateId; + } +}} + +if (!class_exists("getExchangeRateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getExchangeRateResponse { + /** + * @access public + * @var ExchangeRate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getExchangeRatesByStatement", FALSE)) { +/** + * Gets a {@link ExchangeRatePage} of {@link ExchangeRate} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the exchange rates that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getExchangeRatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getExchangeRatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getExchangeRatesByStatementResponse { + /** + * @access public + * @var ExchangeRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performExchangeRateAction", FALSE)) { +/** + * Performs an action on {@link ExchangeRate} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      + * + * @param exchangeRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performExchangeRateAction { + /** + * @access public + * @var ExchangeRateAction + */ + public $exchangeRateAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($exchangeRateAction = NULL, $filterStatement = NULL) { + $this->exchangeRateAction = $exchangeRateAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performExchangeRateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performExchangeRateActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateExchangeRates", FALSE)) { +/** + * Updates the specified {@link ExchangeRate} objects. + * + * @param exchangeRates the exchange rates to update + * @return the updated exchange rates + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateExchangeRates { + /** + * @access public + * @var ExchangeRate[] + */ + public $exchangeRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($exchangeRates = NULL) { + $this->exchangeRates = $exchangeRates; + } +}} + +if (!class_exists("updateExchangeRatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateExchangeRatesResponse { + /** + * @access public + * @var ExchangeRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteExchangeRates", FALSE)) { +/** + * The action used to delete {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeleteExchangeRates extends ExchangeRateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteExchangeRates"; + } + + public function __construct($ExchangeRateActionType = NULL) { + parent::__construct(); + $this->ExchangeRateActionType = $ExchangeRateActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ExchangeRateService", FALSE)) { +/** + * ExchangeRateService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ExchangeRateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteExchangeRates" => "DeleteExchangeRates", + "ExchangeRateAction" => "ExchangeRateAction", + "ExchangeRate" => "ExchangeRate", + "ExchangeRateError" => "ExchangeRateError", + "ExchangeRatePage" => "ExchangeRatePage", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ExchangeRateDirection" => "ExchangeRateDirection", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", + "ExchangeRateRefreshRate" => "ExchangeRateRefreshRate", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createExchangeRates" => "createExchangeRates", + "createExchangeRatesResponse" => "createExchangeRatesResponse", + "getExchangeRate" => "getExchangeRate", + "getExchangeRateResponse" => "getExchangeRateResponse", + "getExchangeRatesByStatement" => "getExchangeRatesByStatement", + "getExchangeRatesByStatementResponse" => "getExchangeRatesByStatementResponse", + "performExchangeRateAction" => "performExchangeRateAction", + "performExchangeRateActionResponse" => "performExchangeRateActionResponse", + "updateExchangeRates" => "updateExchangeRates", + "updateExchangeRatesResponse" => "updateExchangeRatesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ExchangeRateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ExchangeRateService::$classmap; + parent::__construct($wsdl, $options, $user, 'ExchangeRateService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates new {@link ExchangeRate} objects. + * + * For each exchange rate, the following fields are required: + *
        + *
      • {@link ExchangeRate#currencyCode}
      • + *
      • {@link ExchangeRate#exchangeRate} when {@link ExchangeRate#refreshRate} is + * {@link ExchangeRateRefreshRate#FIXED}
      • + *
      + * + * @param exchangeRates the exchange rates to create + * @return the created exchange rates with their exchange rate values filled in + */ + public function createExchangeRates($exchangeRates) { + $arg = new createExchangeRates($exchangeRates); + $result = $this->__soapCall("createExchangeRates", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ExchangeRate} object uniquely identified by the given + * {@code exchangeRateId}. + * + * @param exchangeRateId the ID of the exchange rate, which must already exist + * @return the exchange rate uniquely identified by the given {@code exchangeRateId} + */ + public function getExchangeRate($exchangeRateId) { + $arg = new getExchangeRate($exchangeRateId); + $result = $this->__soapCall("getExchangeRate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ExchangeRatePage} of {@link ExchangeRate} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the exchange rates that match the given filter + */ + public function getExchangeRatesByStatement($filterStatement) { + $arg = new getExchangeRatesByStatement($filterStatement); + $result = $this->__soapCall("getExchangeRatesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs an action on {@link ExchangeRate} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ExchangeRate#id}
      {@code currencyCode}{@link ExchangeRate#currencyCode}
      {@code refreshRate}{@link ExchangeRate#refreshRate}
      + * + * @param exchangeRateAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of exchange rates + * @return the result of the action performed + */ + public function performExchangeRateAction($exchangeRateAction, $filterStatement) { + $arg = new performExchangeRateAction($exchangeRateAction, $filterStatement); + $result = $this->__soapCall("performExchangeRateAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ExchangeRate} objects. + * + * @param exchangeRates the exchange rates to update + * @return the updated exchange rates + */ + public function updateExchangeRates($exchangeRates) { + $arg = new updateExchangeRates($exchangeRates); + $result = $this->__soapCall("updateExchangeRates", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ForecastService.php b/src/Google/Api/Ads/Dfp/v201311/ForecastService.php new file mode 100755 index 000000000..089383fd5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ForecastService.php @@ -0,0 +1,8557 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContendingLineItem", FALSE)) { +/** + * Describes contending line items for a {@link Forecast}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContendingLineItem { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $contendingImpressions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContendingLineItem"; + } + + public function __construct($lineItemId = NULL, $contendingImpressions = NULL) { + $this->lineItemId = $lineItemId; + $this->contendingImpressions = $contendingImpressions; + } +}} + +if (!class_exists("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyTargeting { + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchyTargeting"; + } + + public function __construct($customTargetingValueIds = NULL) { + $this->customTargetingValueIds = $customTargetingValueIds; + } +}} + +if (!class_exists("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingError extends ApiError { + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataTargetingError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoContentBundleIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoContentBundleIds; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $targetedContentMetadata; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $excludedContentMetadata; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL, $targetedVideoContentBundleIds = NULL, $excludedVideoContentBundleIds = NULL, $targetedContentMetadata = NULL, $excludedContentMetadata = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + $this->targetedVideoContentBundleIds = $targetedVideoContentBundleIds; + $this->excludedVideoContentBundleIds = $excludedVideoContentBundleIds; + $this->targetedContentMetadata = $targetedContentMetadata; + $this->excludedContentMetadata = $excludedContentMetadata; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("Forecast", FALSE)) { +/** + * Describes predicted inventory availability for a line item with the specified + * properties. + * + *

      Inventory has three threshold values along a line of possible inventory. + * From least to most, these are: + * + *

        + *
      • Available units -- How many units can be booked without affecting any + * other line items. Booking more than this number can overbook lower or equal + * priority line items. + *
      • Possible units -- How many units can be booked without affecting any + * higher priority line items. Booking more than this number can overbook + * higher priority line items. + *
      • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
      + * + *

      The term "can overbook" is used, because if more impressions are + * served than are predicted, the extra available inventory might enable all + * inventory guarantees to be met without overbooking. + * + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Forecast { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $deliveredUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var integer + */ + public $possibleUnits; + + /** + * @access public + * @var integer + */ + public $reservedUnits; + + /** + * @access public + * @var ContendingLineItem[] + */ + public $contendingLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Forecast"; + } + + public function __construct($id = NULL, $orderId = NULL, $unitType = NULL, $availableUnits = NULL, $deliveredUnits = NULL, $matchedUnits = NULL, $possibleUnits = NULL, $reservedUnits = NULL, $contendingLineItems = NULL) { + $this->id = $id; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->availableUnits = $availableUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + $this->possibleUnits = $possibleUnits; + $this->reservedUnits = $reservedUnits; + $this->contendingLineItems = $contendingLineItems; + } +}} + +if (!class_exists("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var boolean + */ + public $isPrioritizedPreferredDealsEnabled; + + /** + * @access public + * @var integer + */ + public $adExchangeAuctionOpeningPriority; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var boolean + */ + public $isMissingCreatives; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $isPrioritizedPreferredDealsEnabled = NULL, $adExchangeAuctionOpeningPriority = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $type = NULL, $canonicalParentId = NULL, $displayName = NULL, $LocationType = NULL) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * @access public + * @var integer + */ + public $videoCompletionsDelivered; + + /** + * @access public + * @var integer + */ + public $videoStartsDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL, $videoCompletionsDelivered = NULL, $videoStartsDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + $this->videoCompletionsDelivered = $videoCompletionsDelivered; + $this->videoStartsDelivered = $videoStartsDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("getForecast", FALSE)) { +/** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getForecast { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("getForecastResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getForecastResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getForecastById", FALSE)) { +/** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getForecastById { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getForecastByIdResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getForecastByIdResponse { + /** + * @access public + * @var Forecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $isPrioritizedPreferredDealsEnabled = NULL, $adExchangeAuctionOpeningPriority = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ForecastService", FALSE)) { +/** + * ForecastService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ForecastService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContendingLineItem" => "ContendingLineItem", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "Forecast" => "Forecast", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "getForecast" => "getForecast", + "getForecastResponse" => "getForecastResponse", + "getForecastById" => "getForecastById", + "getForecastByIdResponse" => "getForecastByIdResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ForecastService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ForecastService::$classmap; + parent::__construct($wsdl, $options, $user, 'ForecastService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid + * values for {@link LineItem#lineItemType} are + * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other + * values will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItem the target of the forecast. Must be a prospective line item + * that has not yet been booked in the system. i.e. {@link LineItem#id} + * must be null. + * @return the forecasted traffic estimates + */ + public function getForecast($lineItem) { + $arg = new getForecast($lineItem); + $result = $this->__soapCall("getForecast", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link Forecast} for an existing {@link LineItem} object. Only + * line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @return the forecasted traffic estimates + */ + public function getForecastById($lineItemId) { + $arg = new getForecastById($lineItemId); + $result = $this->__soapCall("getForecastById", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/InventoryService.php b/src/Google/Api/Ads/Dfp/v201311/InventoryService.php new file mode 100755 index 000000000..b1244eb0f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/InventoryService.php @@ -0,0 +1,5300 @@ +adSenseEnabled = $adSenseEnabled; + $this->borderColor = $borderColor; + $this->titleColor = $titleColor; + $this->backgroundColor = $backgroundColor; + $this->textColor = $textColor; + $this->urlColor = $urlColor; + $this->adType = $adType; + $this->borderStyle = $borderStyle; + $this->fontFamily = $fontFamily; + $this->fontSize = $fontSize; + $this->afcFormats = $afcFormats; + } +}} + +if (!class_exists("AdSenseSettingsInheritedProperty", FALSE)) { +/** + * The property of the AdUnit that specifies how and from where the + * AdSenseSettings are inherited. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseSettingsInheritedProperty { + /** + * @access public + * @var AdSenseSettings + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettingsInheritedProperty"; + } + + public function __construct($value = NULL) { + $this->value = $value; + } +}} + +if (!class_exists("AdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitAction { + /** + * @access public + * @var string + */ + public $AdUnitActionType; + + private $_parameterMap = array ( + "AdUnitAction.Type" => "AdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAction"; + } + + public function __construct($AdUnitActionType = NULL) { + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdUnit", FALSE)) { +/** + * An {@code AdUnit} represents a chunk of identified inventory for the + * publisher. It contains all the settings that need to be associated with + * inventory in order to serve ads to it. An {@code AdUnit} can also be the + * parent of other ad units in the inventory hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $parentId; + + /** + * @access public + * @var boolean + */ + public $hasChildren; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var string + */ + public $adUnitCode; + + /** + * @access public + * @var AdUnitSize[] + */ + public $adUnitSizes; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsMobilePlatform + */ + public $mobilePlatform; + + /** + * @access public + * @var boolean + */ + public $explicitlyTargeted; + + /** + * @access public + * @var AdSenseSettingsInheritedProperty + */ + public $inheritedAdSenseSettings; + + /** + * @access public + * @var integer + */ + public $partnerId; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $appliedLabelFrequencyCaps; + + /** + * @access public + * @var LabelFrequencyCap[] + */ + public $effectiveLabelFrequencyCaps; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer[] + */ + public $effectiveTeamIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var tnsSmartSizeMode + */ + public $smartSizeMode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit"; + } + + public function __construct($id = NULL, $parentId = NULL, $hasChildren = NULL, $parentPath = NULL, $name = NULL, $description = NULL, $targetWindow = NULL, $status = NULL, $adUnitCode = NULL, $adUnitSizes = NULL, $targetPlatform = NULL, $mobilePlatform = NULL, $explicitlyTargeted = NULL, $inheritedAdSenseSettings = NULL, $partnerId = NULL, $appliedLabelFrequencyCaps = NULL, $effectiveLabelFrequencyCaps = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $effectiveTeamIds = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $smartSizeMode = NULL) { + $this->id = $id; + $this->parentId = $parentId; + $this->hasChildren = $hasChildren; + $this->parentPath = $parentPath; + $this->name = $name; + $this->description = $description; + $this->targetWindow = $targetWindow; + $this->status = $status; + $this->adUnitCode = $adUnitCode; + $this->adUnitSizes = $adUnitSizes; + $this->targetPlatform = $targetPlatform; + $this->mobilePlatform = $mobilePlatform; + $this->explicitlyTargeted = $explicitlyTargeted; + $this->inheritedAdSenseSettings = $inheritedAdSenseSettings; + $this->partnerId = $partnerId; + $this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; + $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->effectiveTeamIds = $effectiveTeamIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->smartSizeMode = $smartSizeMode; + } +}} + +if (!class_exists("AdUnitPage", FALSE)) { +/** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("AdUnitParent", FALSE)) { +/** + * The summary of a parent {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitParent { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $adUnitCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitParent"; + } + + public function __construct($id = NULL, $name = NULL, $adUnitCode = NULL) { + $this->id = $id; + $this->name = $name; + $this->adUnitCode = $adUnitCode; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("ArchiveAdUnits", FALSE)) { +/** + * The action used for archiving {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AssignAdUnitsToPlacement", FALSE)) { +/** + * The action used for assigning a group of {@link AdUnit} objects to a + * {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssignAdUnitsToPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssignAdUnitsToPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DeactivateAdUnits", FALSE)) { +/** + * The action used for deactivating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidColorError", FALSE)) { +/** + * A list of all errors associated with a color attribute. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidColorError extends ApiError { + /** + * @access public + * @var tnsInvalidColorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("InventoryUnitPartnerAssociationError", FALSE)) { +/** + * Errors relating to the association of partner companies with inventory units. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitPartnerAssociationError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitPartnerAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("InventoryUnitSizesError", FALSE)) { +/** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitSizesError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError"; + } + + 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("AdUnitTypeError", FALSE)) { +/** + * Lists the errors associated with the type of {@link AdUnit} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitTypeError extends ApiError { + /** + * @access public + * @var tnsAdUnitTypeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError"; + } + + 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("LabelFrequencyCap", FALSE)) { +/** + * A {@code LabelFrequencyCap} assigns a frequency cap to a label. The + * frequency cap will limit the cumulative number of impressions of any ad + * units with this label that may be shown to a particular user over a time + * unit. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelFrequencyCap { + /** + * @access public + * @var FrequencyCap + */ + public $frequencyCap; + + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelFrequencyCap"; + } + + public function __construct($frequencyCap = NULL, $labelId = NULL) { + $this->frequencyCap = $frequencyCap; + $this->labelId = $labelId; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RemoveAdUnitsFromPlacement", FALSE)) { +/** + * The action used for removing a group of {@link AdUnit} objects + * from a {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RemoveAdUnitsFromPlacement extends AdUnitAction { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RemoveAdUnitsFromPlacement"; + } + + public function __construct($placementId = NULL, $AdUnitActionType = NULL) { + parent::__construct(); + $this->placementId = $placementId; + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("Size_StringMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Size + * and value of type String. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size_StringMapEntry { + /** + * @access public + * @var Size + */ + public $key; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size_StringMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsAdType", FALSE)) { +/** + * Specifies the type of ads that can be served through this {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseSettingsAdType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.AdType"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsBorderStyle", FALSE)) { +/** + * Describes the border of the HTML elements used to surround an ad + * displayed by the {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseSettingsBorderStyle { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.BorderStyle"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontFamily", FALSE)) { +/** + * List of all possible font families. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseSettingsFontFamily { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontFamily"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdSenseSettingsFontSize", FALSE)) { +/** + * List of all possible font sizes the user can choose. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseSettingsFontSize { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseSettings.FontSize"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidColorErrorReason", FALSE)) { +/** + * The provided value is not a valid hexadecimal color. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidColorErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidColorError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitPartnerAssociationErrorReason", FALSE)) { +/** + * Partner association error reason types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitPartnerAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitPartnerAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitSizesErrorReason", FALSE)) { +/** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitSizesErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitSizesError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitTypeErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitTypeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitTypeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("MobilePlatform", FALSE)) { +/** + * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit + * appears in a mobile application or in a mobile web site. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobilePlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobilePlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SmartSizeMode", FALSE)) { +/** + * Represents smart size modes. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SmartSizeMode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SmartSizeMode"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("createAdUnit", FALSE)) { +/** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("createAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createAdUnits", FALSE)) { +/** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("createAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnit", FALSE)) { +/** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdUnit { + /** + * @access public + * @var string + */ + public $adUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitId = NULL) { + $this->adUnitId = $adUnitId; + } +}} + +if (!class_exists("getAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitSizesByStatement", FALSE)) { +/** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdUnitSizesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitSizesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdUnitSizesByStatementResponse { + /** + * @access public + * @var AdUnitSize[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAdUnitsByStatementResponse { + /** + * @access public + * @var AdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performAdUnitAction", FALSE)) { +/** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performAdUnitAction { + /** + * @access public + * @var AdUnitAction + */ + public $adUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnitAction = NULL, $filterStatement = NULL) { + $this->adUnitAction = $adUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performAdUnitActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnit", FALSE)) { +/** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAdUnit { + /** + * @access public + * @var AdUnit + */ + public $adUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnit = NULL) { + $this->adUnit = $adUnit; + } +}} + +if (!class_exists("updateAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAdUnitResponse { + /** + * @access public + * @var AdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateAdUnits", FALSE)) { +/** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAdUnits { + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($adUnits = NULL) { + $this->adUnits = $adUnits; + } +}} + +if (!class_exists("updateAdUnitsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateAdUnitsResponse { + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateAdUnits", FALSE)) { +/** + * The action used for activating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateAdUnits extends AdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateAdUnits"; + } + + public function __construct($AdUnitActionType = NULL) { + parent::__construct(); + $this->AdUnitActionType = $AdUnitActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("InventoryService", FALSE)) { +/** + * InventoryService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class InventoryService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateAdUnits" => "ActivateAdUnits", + "AdUnitAction" => "AdUnitAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "AdSenseSettings" => "AdSenseSettings", + "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnit" => "AdUnit", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "AdUnitPage" => "AdUnitPage", + "AdUnitParent" => "AdUnitParent", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveAdUnits" => "ArchiveAdUnits", + "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateAdUnits" => "DeactivateAdUnits", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "InternalApiError" => "InternalApiError", + "InvalidColorError" => "InvalidColorError", + "InventoryUnitError" => "InventoryUnitError", + "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", + "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", + "AdUnitTypeError" => "AdUnitTypeError", + "LabelFrequencyCap" => "LabelFrequencyCap", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RegExError" => "RegExError", + "RemoveAdUnitsFromPlacement" => "RemoveAdUnitsFromPlacement", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "Size_StringMapEntry" => "Size_StringMapEntry", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "AdSenseSettings.AdType" => "AdSenseSettingsAdType", + "AdSenseSettings.BorderStyle" => "AdSenseSettingsBorderStyle", + "AdSenseSettings.FontFamily" => "AdSenseSettingsFontFamily", + "AdSenseSettings.FontSize" => "AdSenseSettingsFontSize", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidColorError.Reason" => "InvalidColorErrorReason", + "InventoryStatus" => "InventoryStatus", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", + "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", + "MobilePlatform" => "MobilePlatform", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SmartSizeMode" => "SmartSizeMode", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TimeUnit" => "TimeUnit", + "createAdUnit" => "createAdUnit", + "createAdUnitResponse" => "createAdUnitResponse", + "createAdUnits" => "createAdUnits", + "createAdUnitsResponse" => "createAdUnitsResponse", + "getAdUnit" => "getAdUnit", + "getAdUnitResponse" => "getAdUnitResponse", + "getAdUnitSizesByStatement" => "getAdUnitSizesByStatement", + "getAdUnitSizesByStatementResponse" => "getAdUnitSizesByStatementResponse", + "getAdUnitsByStatement" => "getAdUnitsByStatement", + "getAdUnitsByStatementResponse" => "getAdUnitsByStatementResponse", + "performAdUnitAction" => "performAdUnitAction", + "performAdUnitActionResponse" => "performAdUnitActionResponse", + "updateAdUnit" => "updateAdUnit", + "updateAdUnitResponse" => "updateAdUnitResponse", + "updateAdUnits" => "updateAdUnits", + "updateAdUnitsResponse" => "updateAdUnitsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/InventoryService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = InventoryService::$classmap; + parent::__construct($wsdl, $options, $user, 'InventoryService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link AdUnit}. + * + * The following fields are required: + *
        + *
      • {@link AdUnit#name}
      • + *
      • {@link AdUnit#parentId}
      • + *
      + * + * @param adUnit the ad unit to create + * @return the new ad unit with its ID set + */ + public function createAdUnit($adUnit) { + $arg = new createAdUnit($adUnit); + $result = $this->__soapCall("createAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link AdUnit} objects. + * + * @param adUnits the ad units to create + * @return the created ad units, with their IDs filled in + */ + public function createAdUnits($adUnits) { + $arg = new createAdUnits($adUnits); + $result = $this->__soapCall("createAdUnits", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link AdUnit} uniquely identified by the given ID. + * + * @param adUnitId ID of the ad unit, which must already exist + * @return the {@code AdUnit} uniquely identified by the given ID + */ + public function getAdUnit($adUnitId) { + $arg = new getAdUnit($adUnitId); + $result = $this->__soapCall("getAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a set of {@link AdUnitSize} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code targetPlatform}{@link TargetPlatform}
      + * An exception will be thrown for queries with unsupported fields. + * + * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. + * + * Only "=" operator is supported. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad unit sizes + * @return the ad unit sizes that match the given filter + */ + public function getAdUnitSizesByStatement($filterStatement) { + $arg = new getAdUnitSizesByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitSizesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code adUnitCode}{@link AdUnit#adUnitCode}
      {@code id}{@link AdUnit#id}
      {@code name}{@link AdUnit#name}
      {@code parentId}{@link AdUnit#parentId}
      {@code status}{@link AdUnit#status}
      {@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the ad units that match the given filter + */ + public function getAdUnitsByStatement($filterStatement) { + $arg = new getAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link AdUnit} objects that match the given + * {@link Statement#query}. + * + * @param adUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad units + * @return the result of the action performed + */ + public function performAdUnitAction($adUnitAction, $filterStatement) { + $arg = new performAdUnitAction($adUnitAction, $filterStatement); + $result = $this->__soapCall("performAdUnitAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit}. + * + * @param adUnit the ad unit to update + * @return the updated ad unit + */ + public function updateAdUnit($adUnit) { + $arg = new updateAdUnit($adUnit); + $result = $this->__soapCall("updateAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + */ + public function updateAdUnits($adUnits) { + $arg = new updateAdUnits($adUnits); + $result = $this->__soapCall("updateAdUnits", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/LabelService.php b/src/Google/Api/Ads/Dfp/v201311/LabelService.php new file mode 100755 index 000000000..0bfafb9bd --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/LabelService.php @@ -0,0 +1,3318 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeWrapperError", FALSE)) { +/** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperError extends ApiError { + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LabelAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelAction { + /** + * @access public + * @var string + */ + public $LabelActionType; + + private $_parameterMap = array ( + "LabelAction.Type" => "LabelActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelAction"; + } + + public function __construct($LabelActionType = NULL) { + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("Label", FALSE)) { +/** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Label { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var tnsLabelType[] + */ + public $types; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Label"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $isActive = NULL, $types = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->types = $types; + } +}} + +if (!class_exists("LabelError", FALSE)) { +/** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelError extends ApiError { + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError"; + } + + 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("LabelPage", FALSE)) { +/** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Label[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeWrapperErrorReason", FALSE)) { +/** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeWrapperErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeWrapperError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelType", FALSE)) { +/** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLabel", FALSE)) { +/** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("createLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLabels", FALSE)) { +/** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("createLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabel", FALSE)) { +/** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelId = NULL) { + $this->labelId = $labelId; + } +}} + +if (!class_exists("getLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLabelsByStatement", FALSE)) { +/** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLabelsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLabelsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLabelsByStatementResponse { + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLabelAction", FALSE)) { +/** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performLabelAction { + /** + * @access public + * @var LabelAction + */ + public $labelAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labelAction = NULL, $filterStatement = NULL) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLabelActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performLabelActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabel", FALSE)) { +/** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLabel { + /** + * @access public + * @var Label + */ + public $label; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($label = NULL) { + $this->label = $label; + } +}} + +if (!class_exists("updateLabelResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLabelResponse { + /** + * @access public + * @var Label + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLabels", FALSE)) { +/** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLabels { + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($labels = NULL) { + $this->labels = $labels; + } +}} + +if (!class_exists("updateLabelsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLabelsResponse { + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLabels", FALSE)) { +/** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLabels", FALSE)) { +/** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateLabels extends LabelAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLabels"; + } + + public function __construct($LabelActionType = NULL) { + parent::__construct(); + $this->LabelActionType = $LabelActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LabelService", FALSE)) { +/** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class LabelService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLabels" => "ActivateLabels", + "LabelAction" => "LabelAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Label" => "Label", + "LabelError" => "LabelError", + "LabelPage" => "LabelPage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelError.Reason" => "LabelErrorReason", + "LabelType" => "LabelType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createLabel" => "createLabel", + "createLabelResponse" => "createLabelResponse", + "createLabels" => "createLabels", + "createLabelsResponse" => "createLabelsResponse", + "getLabel" => "getLabel", + "getLabelResponse" => "getLabelResponse", + "getLabelsByStatement" => "getLabelsByStatement", + "getLabelsByStatementResponse" => "getLabelsByStatementResponse", + "performLabelAction" => "performLabelAction", + "performLabelActionResponse" => "performLabelActionResponse", + "updateLabel" => "updateLabel", + "updateLabelResponse" => "updateLabelResponse", + "updateLabels" => "updateLabels", + "updateLabelsResponse" => "updateLabelsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/LabelService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LabelService::$classmap; + parent::__construct($wsdl, $options, $user, 'LabelService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link Label}. + * + * The following fields are required: + *
        + *
      • {@link Label#name}
      • + *
      • {@link Label#type}
      • + *
      + * + * @param label the label to create + * @return the label with its ID filled in + */ + public function createLabel($label) { + $arg = new createLabel($label); + $result = $this->__soapCall("createLabel", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + */ + public function createLabels($labels) { + $arg = new createLabels($labels); + $result = $this->__soapCall("createLabels", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Label} uniquely identified by the given ID. + * + * @param labelId the ID of the label, which must already exist + * @return the {@code Label} uniquely identified by the given ID + */ + public function getLabel($labelId) { + $arg = new getLabel($labelId); + $result = $this->__soapCall("getLabel", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LabelPage} of {@link Label} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Label#id}
      {@code type}{@link Label#type}
      {@code name}{@link Label#name}
      {@code description}{@link Label#description}
      {@code isActive}{@link Label#isActive}
      + * + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels. + * @return the labels that match the given filter + */ + public function getLabelsByStatement($filterStatement) { + $arg = new getLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Label} objects that match the given + * {@link Statement#query}. + * + * @param labelAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of labels + * @return the result of the action performed + */ + public function performLabelAction($labelAction, $filterStatement) { + $arg = new performLabelAction($labelAction, $filterStatement); + $result = $this->__soapCall("performLabelAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label}. + * + * @param label the label to update + * @return the updated label + */ + public function updateLabel($label) { + $arg = new updateLabel($label); + $result = $this->__soapCall("updateLabel", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $arg = new updateLabels($labels); + $result = $this->__soapCall("updateLabels", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..e3e078d21 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php @@ -0,0 +1,4981 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AssetError", FALSE)) { +/** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetError extends ApiError { + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError"; + } + + 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("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeAssetMacroError", FALSE)) { +/** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeAssetMacroError extends ApiError { + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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("CreativeSetError", FALSE)) { +/** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSetError extends ApiError { + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError"; + } + + 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("CustomCreativeError", FALSE)) { +/** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCreativeError extends ApiError { + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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("ImageError", FALSE)) { +/** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageError extends ApiError { + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on + * {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationAction { + /** + * @access public + * @var string + */ + public $LineItemCreativeAssociationActionType; + + private $_parameterMap = array ( + "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationAction"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociation", FALSE)) { +/** + * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a + * {@link LineItem} so that the creative can be served in ad units targeted by the line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $creativeSetId; + + /** + * @access public + * @var double + */ + public $manualCreativeRotationWeight; + + /** + * @access public + * @var integer + */ + public $sequentialCreativeRotationIndex; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var Size[] + */ + public $sizes; + + /** + * @access public + * @var tnsLineItemCreativeAssociationStatus + */ + public $status; + + /** + * @access public + * @var LineItemCreativeAssociationStats + */ + public $stats; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation"; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $creativeSetId = NULL, $manualCreativeRotationWeight = NULL, $sequentialCreativeRotationIndex = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $destinationUrl = NULL, $sizes = NULL, $status = NULL, $stats = NULL, $lastModifiedDateTime = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->creativeSetId = $creativeSetId; + $this->manualCreativeRotationWeight = $manualCreativeRotationWeight; + $this->sequentialCreativeRotationIndex = $sequentialCreativeRotationIndex; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->destinationUrl = $destinationUrl; + $this->sizes = $sizes; + $this->status = $status; + $this->stats = $stats; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemCreativeAssociationOperationError", FALSE)) { +/** + * Lists all errors for executing operations on + * line item-to-creative associations + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError"; + } + + 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("LineItemCreativeAssociationPage", FALSE)) { +/** + * Captures a page of {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemCreativeAssociationStats", FALSE)) { +/** + * Contains statistics such as impressions, clicks delivered and cost + * for {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationStats { + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var Long_StatsMapEntry[] + */ + public $creativeSetStats; + + /** + * @access public + * @var Money + */ + public $costInOrderCurrency; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationStats"; + } + + public function __construct($stats = NULL, $creativeSetStats = NULL, $costInOrderCurrency = NULL) { + $this->stats = $stats; + $this->creativeSetStats = $creativeSetStats; + $this->costInOrderCurrency = $costInOrderCurrency; + } +}} + +if (!class_exists("Long_StatsMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type Long + * and value of type Stats. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Long_StatsMapEntry { + /** + * @access public + * @var integer + */ + public $key; + + /** + * @access public + * @var Stats + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Long_StatsMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("RichMediaStudioCreativeError", FALSE)) { +/** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreativeError extends ApiError { + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * @access public + * @var integer + */ + public $videoCompletionsDelivered; + + /** + * @access public + * @var integer + */ + public $videoStartsDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL, $videoCompletionsDelivered = NULL, $videoStartsDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + $this->videoCompletionsDelivered = $videoCompletionsDelivered; + $this->videoStartsDelivered = $videoStartsDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SwiffyConversionError", FALSE)) { +/** + * Error for converting flash to swiffy asset. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SwiffyConversionError extends ApiError { + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdSenseAccountErrorReason", FALSE)) { +/** + * An error occured while trying to associate an AdSense account with GFP. Unable to create an + * association with AdSense or Ad Exchange account. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseAccountErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AssetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AssetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AssetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeAssetMacroErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeAssetMacroErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeAssetMacroError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSetErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSetErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSetError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ImageErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ImageErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ImageError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationStatus", FALSE)) { +/** + * Describes the status of the association. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociation.Status"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RichMediaStudioCreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RichMediaStudioCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RichMediaStudioCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("SwiffyConversionErrorReason", FALSE)) { +/** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SwiffyConversionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SwiffyConversionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItemCreativeAssociation", FALSE)) { +/** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("createLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItemCreativeAssociations", FALSE)) { +/** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("createLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociation", FALSE)) { +/** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemCreativeAssociation { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + } +}} + +if (!class_exists("getLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatement", FALSE)) { +/** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemCreativeAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemCreativeAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemCreativeAssociationsByStatementResponse { + /** + * @access public + * @var LineItemCreativeAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPreviewUrl", FALSE)) { +/** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getPreviewUrl { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var string + */ + public $siteUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL, $creativeId = NULL, $siteUrl = NULL) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->siteUrl = $siteUrl; + } +}} + +if (!class_exists("getPreviewUrlResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getPreviewUrlResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemCreativeAssociationAction", FALSE)) { +/** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performLineItemCreativeAssociationAction { + /** + * @access public + * @var LineItemCreativeAssociationAction + */ + public $lineItemCreativeAssociationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociationAction = NULL, $filterStatement = NULL) { + $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemCreativeAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performLineItemCreativeAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociation", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLineItemCreativeAssociation { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $lineItemCreativeAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociation = NULL) { + $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLineItemCreativeAssociationResponse { + /** + * @access public + * @var LineItemCreativeAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItemCreativeAssociations", FALSE)) { +/** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLineItemCreativeAssociations { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemCreativeAssociations = NULL) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } +}} + +if (!class_exists("updateLineItemCreativeAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLineItemCreativeAssociationsResponse { + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for activating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("AdSenseAccountError", FALSE)) { +/** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdSenseAccountError extends ApiError { + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdSenseAccountError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateLineItemCreativeAssociations", FALSE)) { +/** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateLineItemCreativeAssociations"; + } + + public function __construct($LineItemCreativeAssociationActionType = NULL) { + parent::__construct(); + $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemCreativeAssociationService", FALSE)) { +/** + * LineItemCreativeAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class LineItemCreativeAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", + "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AssetError" => "AssetError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSetError" => "CreativeSetError", + "CustomCreativeError" => "CustomCreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociation" => "LineItemCreativeAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", + "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", + "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", + "Long_StatsMapEntry" => "Long_StatsMapEntry", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SwiffyConversionError" => "SwiffyConversionError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createLineItemCreativeAssociation" => "createLineItemCreativeAssociation", + "createLineItemCreativeAssociationResponse" => "createLineItemCreativeAssociationResponse", + "createLineItemCreativeAssociations" => "createLineItemCreativeAssociations", + "createLineItemCreativeAssociationsResponse" => "createLineItemCreativeAssociationsResponse", + "getLineItemCreativeAssociation" => "getLineItemCreativeAssociation", + "getLineItemCreativeAssociationResponse" => "getLineItemCreativeAssociationResponse", + "getLineItemCreativeAssociationsByStatement" => "getLineItemCreativeAssociationsByStatement", + "getLineItemCreativeAssociationsByStatementResponse" => "getLineItemCreativeAssociationsByStatementResponse", + "getPreviewUrl" => "getPreviewUrl", + "getPreviewUrlResponse" => "getPreviewUrlResponse", + "performLineItemCreativeAssociationAction" => "performLineItemCreativeAssociationAction", + "performLineItemCreativeAssociationActionResponse" => "performLineItemCreativeAssociationActionResponse", + "updateLineItemCreativeAssociation" => "updateLineItemCreativeAssociation", + "updateLineItemCreativeAssociationResponse" => "updateLineItemCreativeAssociationResponse", + "updateLineItemCreativeAssociations" => "updateLineItemCreativeAssociations", + "updateLineItemCreativeAssociationsResponse" => "updateLineItemCreativeAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/LineItemCreativeAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemCreativeAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemCreativeAssociationService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link LineItemCreativeAssociation}. + * + * The following fields are required: + *
        + *
      • {@link LineItemCreativeAssociation#creativeId}
      • + *
      • {@link LineItemCreativeAssociation#lineItemId}
      • + *
      + * + * @param lineItemCreativeAssociation the line item creative association to + * create + * @return the new line item creative association with its ID set + */ + public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new createLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("createLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * create + * @return the created line item creative associations with their IDs filled + * in + */ + public function createLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new createLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("createLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItemCreativeAssociation} uniquely identified by the + * given line item and creative IDs. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @return the {@code LineItemCreativeAssociation} uniquely identified by the + * line item and creative IDs + */ + public function getLineItemCreativeAssociation($lineItemId, $creativeId) { + $arg = new getLineItemCreativeAssociation($lineItemId, $creativeId); + $result = $this->__soapCall("getLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemCreativeAssociationPage} of + * {@link LineItemCreativeAssociation} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code creativeId}{@link LineItemCreativeAssociation#creativeId}
      {@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
      {@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
      {@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
      {@code status}{@link LineItemCreativeAssociation#status}
      {@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the line item creative associations that match the given filter + */ + public function getLineItemCreativeAssociationsByStatement($filterStatement) { + $arg = new getLineItemCreativeAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Returns an insite preview URL that references the specified site URL with + * the specified creative from the association served to it. For Creative Set + * previewing you may specify the master creative Id. + * + * @param lineItemId the ID of the line item, which must already exist + * @param creativeId the ID of the creative, which must already exist + * @param siteUrl the URL of the site that the creative should be previewed in + * @return a URL that references the specified site URL with the specified + * creative served to it + */ + public function getPreviewUrl($lineItemId, $creativeId, $siteUrl) { + $arg = new getPreviewUrl($lineItemId, $creativeId, $siteUrl); + $result = $this->__soapCall("getPreviewUrl", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItemCreativeAssociation} objects that match + * the given {@link Statement#query}. + * + * @param lineItemCreativeAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item creative associations + * @return the result of the action performed + */ + public function performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement) { + $arg = new performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); + $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation}. + * + * @param lineItemCreativeAssociation the line item creative association to + * update + * @return the updated line item creative association + */ + public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { + $arg = new updateLineItemCreativeAssociation($lineItemCreativeAssociation); + $result = $this->__soapCall("updateLineItemCreativeAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItemCreativeAssociation} objects + * + * @param lineItemCreativeAssociations the line item creative associations to + * update + * @return the updated line item creative associations + */ + public function updateLineItemCreativeAssociations($lineItemCreativeAssociations) { + $arg = new updateLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("updateLineItemCreativeAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemService.php b/src/Google/Api/Ads/Dfp/v201311/LineItemService.php new file mode 100755 index 000000000..107fe83d0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/LineItemService.php @@ -0,0 +1,9266 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyTargeting { + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchyTargeting"; + } + + public function __construct($customTargetingValueIds = NULL) { + $this->customTargetingValueIds = $customTargetingValueIds; + } +}} + +if (!class_exists("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingError extends ApiError { + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataTargetingError"; + } + + 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("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoContentBundleIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoContentBundleIds; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $targetedContentMetadata; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $excludedContentMetadata; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL, $targetedVideoContentBundleIds = NULL, $excludedVideoContentBundleIds = NULL, $targetedContentMetadata = NULL, $excludedContentMetadata = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + $this->targetedVideoContentBundleIds = $targetedVideoContentBundleIds; + $this->excludedVideoContentBundleIds = $excludedVideoContentBundleIds; + $this->targetedContentMetadata = $targetedContentMetadata; + $this->excludedContentMetadata = $excludedContentMetadata; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemAction { + /** + * @access public + * @var string + */ + public $LineItemActionType; + + private $_parameterMap = array ( + "LineItemAction.Type" => "LineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemAction"; + } + + public function __construct($LineItemActionType = NULL) { + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemPage", FALSE)) { +/** + * Captures a page of {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItem[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("LineItemSummary", FALSE)) { +/** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemSummary { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $orderName; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var tnsStartDateTimeType + */ + public $startDateTimeType; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $autoExtensionDays; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsLineItemSummaryDuration + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var boolean + */ + public $isPrioritizedPreferredDealsEnabled; + + /** + * @access public + * @var integer + */ + public $adExchangeAuctionOpeningPriority; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var boolean + */ + public $isMissingCreatives; + + /** + * @access public + * @var string + */ + public $LineItemSummaryType; + + private $_parameterMap = array ( + "LineItemSummary.Type" => "LineItemSummaryType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary"; + } + + public function __construct($orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $isPrioritizedPreferredDealsEnabled = NULL, $adExchangeAuctionOpeningPriority = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $type = NULL, $canonicalParentId = NULL, $displayName = NULL, $LocationType = NULL) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseLineItems", FALSE)) { +/** + * The action used for pausing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PauseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("ReleaseLineItems", FALSE)) { +/** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReleaseLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReleaseLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ReserveLineItems", FALSE)) { +/** + * The action used for reserving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReserveLineItems extends LineItemAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeLineItems", FALSE)) { +/** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ResumeLineItems extends LineItemAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("Stats", FALSE)) { +/** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Stats { + /** + * @access public + * @var integer + */ + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * @access public + * @var integer + */ + public $videoCompletionsDelivered; + + /** + * @access public + * @var integer + */ + public $videoStartsDelivered; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Stats"; + } + + public function __construct($impressionsDelivered = NULL, $clicksDelivered = NULL, $videoCompletionsDelivered = NULL, $videoStartsDelivered = NULL) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + $this->videoCompletionsDelivered = $videoCompletionsDelivered; + $this->videoStartsDelivered = $videoStartsDelivered; + } +}} + +if (!class_exists("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveLineItems", FALSE)) { +/** + * The action used for unarchiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnarchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemDiscountType", FALSE)) { +/** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemDiscountType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemDiscountType"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryDuration", FALSE)) { +/** + * Specifies the time period used for limiting the number of ads served for a + * {@link LineItem}. For valid and default values of duration for each line + * item type, see {@link LineItem#duration}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemSummaryDuration { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.Duration"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemSummaryReservationStatus", FALSE)) { +/** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemSummaryReservationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemSummary.ReservationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativePersistenceType", FALSE)) { +/** + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePersistenceType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePersistenceType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StartDateTimeType", FALSE)) { +/** + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StartDateTimeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StartDateTimeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UnitType", FALSE)) { +/** + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnitType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnitType"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createLineItem", FALSE)) { +/** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("createLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createLineItems", FALSE)) { +/** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("createLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItem", FALSE)) { +/** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItem { + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemId = NULL) { + $this->lineItemId = $lineItemId; + } +}} + +if (!class_exists("getLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getLineItemsByStatement", FALSE)) { +/** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemsByStatementResponse { + /** + * @access public + * @var LineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performLineItemAction", FALSE)) { +/** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performLineItemAction { + /** + * @access public + * @var LineItemAction + */ + public $lineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItemAction = NULL, $filterStatement = NULL) { + $this->lineItemAction = $lineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItem", FALSE)) { +/** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLineItem { + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItem = NULL) { + $this->lineItem = $lineItem; + } +}} + +if (!class_exists("updateLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLineItemResponse { + /** + * @access public + * @var LineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateLineItems", FALSE)) { +/** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLineItems { + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($lineItems = NULL) { + $this->lineItems = $lineItems; + } +}} + +if (!class_exists("updateLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateLineItemsResponse { + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateLineItems", FALSE)) { +/** + * The action used for activating {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveLineItems", FALSE)) { +/** + * The action used for archiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteLineItems", FALSE)) { +/** + * The action used for deleting {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeleteLineItems extends LineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteLineItems"; + } + + public function __construct($LineItemActionType = NULL) { + parent::__construct(); + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("LineItem", FALSE)) { +/** + * {@code LineItem} is an advertiser's commitment to purchase a specific number + * of ad impressions, clicks, or time. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItem extends LineItemSummary { + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItem"; + } + + public function __construct($targeting = NULL, $orderId = NULL, $id = NULL, $name = NULL, $externalId = NULL, $orderName = NULL, $startDateTime = NULL, $startDateTimeType = NULL, $endDateTime = NULL, $autoExtensionDays = NULL, $unlimitedEndDateTime = NULL, $creativeRotationType = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $frequencyCaps = NULL, $lineItemType = NULL, $priority = NULL, $unitType = NULL, $duration = NULL, $unitsBought = NULL, $costPerUnit = NULL, $valueCostPerUnit = NULL, $costType = NULL, $discountType = NULL, $discount = NULL, $contractedUnitsBought = NULL, $creativePlaceholders = NULL, $targetPlatform = NULL, $environmentType = NULL, $companionDeliveryOption = NULL, $creativePersistenceType = NULL, $allowOverbook = NULL, $skipInventoryCheck = NULL, $reserveAtCreation = NULL, $stats = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $budget = NULL, $status = NULL, $reservationStatus = NULL, $isArchived = NULL, $webPropertyCode = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $disableSameAdvertiserCompetitiveExclusion = NULL, $lastModifiedByApp = NULL, $notes = NULL, $lastModifiedDateTime = NULL, $creationDateTime = NULL, $isPrioritizedPreferredDealsEnabled = NULL, $adExchangeAuctionOpeningPriority = NULL, $customFieldValues = NULL, $isMissingCreatives = NULL, $LineItemSummaryType = NULL) { + parent::__construct(); + $this->targeting = $targeting; + $this->orderId = $orderId; + $this->id = $id; + $this->name = $name; + $this->externalId = $externalId; + $this->orderName = $orderName; + $this->startDateTime = $startDateTime; + $this->startDateTimeType = $startDateTimeType; + $this->endDateTime = $endDateTime; + $this->autoExtensionDays = $autoExtensionDays; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->creativeRotationType = $creativeRotationType; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->frequencyCaps = $frequencyCaps; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->unitType = $unitType; + $this->duration = $duration; + $this->unitsBought = $unitsBought; + $this->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->reserveAtCreation = $reserveAtCreation; + $this->stats = $stats; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->budget = $budget; + $this->status = $status; + $this->reservationStatus = $reservationStatus; + $this->isArchived = $isArchived; + $this->webPropertyCode = $webPropertyCode; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->notes = $notes; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->creationDateTime = $creationDateTime; + $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; + $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; + $this->customFieldValues = $customFieldValues; + $this->isMissingCreatives = $isMissingCreatives; + $this->LineItemSummaryType = $LineItemSummaryType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("ReserveAndOverbookLineItems", FALSE)) { +/** + * The action used for reserving and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReserveAndOverbookLineItems extends ReserveLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReserveAndOverbookLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("ResumeAndOverbookLineItems", FALSE)) { +/** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ResumeAndOverbookLineItems extends ResumeLineItems { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookLineItems"; + } + + public function __construct($skipInventoryCheck = NULL, $LineItemActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->LineItemActionType = $LineItemActionType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("LineItemService", FALSE)) { +/** + * LineItemService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class LineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateLineItems" => "ActivateLineItems", + "LineItemAction" => "LineItemAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveLineItems" => "ArchiveLineItems", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeleteLineItems" => "DeleteLineItems", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemSummary" => "LineItemSummary", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemPage" => "LineItemPage", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PauseLineItems" => "PauseLineItems", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReleaseLineItems" => "ReleaseLineItems", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", + "ReserveLineItems" => "ReserveLineItems", + "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", + "ResumeLineItems" => "ResumeLineItems", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UnarchiveLineItems" => "UnarchiveLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CostType" => "CostType", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.Duration" => "LineItemSummaryDuration", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createLineItem" => "createLineItem", + "createLineItemResponse" => "createLineItemResponse", + "createLineItems" => "createLineItems", + "createLineItemsResponse" => "createLineItemsResponse", + "getLineItem" => "getLineItem", + "getLineItemResponse" => "getLineItemResponse", + "getLineItemsByStatement" => "getLineItemsByStatement", + "getLineItemsByStatementResponse" => "getLineItemsByStatementResponse", + "performLineItemAction" => "performLineItemAction", + "performLineItemActionResponse" => "performLineItemActionResponse", + "updateLineItem" => "updateLineItem", + "updateLineItemResponse" => "updateLineItemResponse", + "updateLineItems" => "updateLineItems", + "updateLineItemsResponse" => "updateLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/LineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link LineItem}. + * + * These fields are required: + *
        + *
      • {@link LineItem#costPerUnit}
      • + *
      • {@link LineItem#costType}
      • + *
      • {@link LineItem#endDateTime}
      • + *
      • {@link LineItem#lineItemType}
      • + *
      • {@link LineItem#name}
      • + *
      • {@link LineItem#orderId}
      • + *
      • {@link LineItem#startDateTime}
      • + *
      • {@link LineItem#unitsBought}
      • + *
      • {@link LineItem#creativePlaceholders}
      • + *
      • {@link LineItem#targeting}
      • + *
      + * + * @param lineItem the line item to create + * @return the line item with its ID filled in + */ + public function createLineItem($lineItem) { + $arg = new createLineItem($lineItem); + $result = $this->__soapCall("createLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link LineItem} objects. + * + * @param lineItems the line items to create + * @return the created line items with their IDs filled in + */ + public function createLineItems($lineItems) { + $arg = new createLineItems($lineItems); + $result = $this->__soapCall("createLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link LineItem} uniquely identified by the given ID. + * + * @param lineItemId the ID of the line item, which must already exist + * @return the {@code LineItem} uniquely identified by the given ID + */ + public function getLineItem($lineItemId) { + $arg = new getLineItem($lineItemId); + $result = $this->__soapCall("getLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code costType}{@link LineItem#costType}
      {@code id}{@link LineItem#id}
      {@code lineItemType}{@link LineItem#lineItemType}
      {@code name}{@link LineItem#name}
      {@code orderId}{@link LineItem#orderId}
      {@code status}{@link LineItem#status}
      {@code unitsBought}{@link LineItem#unitsBought}
      {@code deliveryRateType}{@link LineItem#deliveryRateType}
      {@code lastModifiedDateTime}{@link LineItem#lastModifiedDateTime}
      {@code creationDateTime}{@link LineItem#creationDateTime}
      {@code isMissingCreatives}{@link LineItem#isMissingCreatives}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items. + * @return the line items that match the given filter + */ + public function getLineItemsByStatement($filterStatement) { + $arg = new getLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link LineItem} objects that match the given + * {@link Statement#query}. + * + * @param lineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line items + * @return the result of the action performed + */ + public function performLineItemAction($lineItemAction, $filterStatement) { + $arg = new performLineItemAction($lineItemAction, $filterStatement); + $result = $this->__soapCall("performLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem}. + * + * @param lineItem the line item to update + * @return the updated line item + */ + public function updateLineItem($lineItem) { + $arg = new updateLineItem($lineItem); + $result = $this->__soapCall("updateLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + */ + public function updateLineItems($lineItems) { + $arg = new updateLineItems($lineItems); + $result = $this->__soapCall("updateLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php new file mode 100755 index 000000000..395e58422 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php @@ -0,0 +1,4564 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AudienceExtensionError", FALSE)) { +/** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceExtensionError extends ApiError { + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError"; + } + + 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("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClickTrackingLineItemError", FALSE)) { +/** + * Click tracking is a special line item type with a number of unique errors as + * described below. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemError extends ApiError { + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("ContentMetadataTargetingError", FALSE)) { +/** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingError extends ApiError { + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataTargetingError"; + } + + 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("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DateTimeRangeTargetingError", FALSE)) { +/** + * Lists all date time range errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingError extends ApiError { + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError"; + } + + 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("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemCreativeAssociationError", FALSE)) { +/** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationError extends ApiError { + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError"; + } + + 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("LineItemError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemError extends ApiError { + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("LineItemTemplate", FALSE)) { +/** + * Represents the template that populates the fields of a new line item being + * created. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var boolean + */ + public $isDefault; + + /** + * @access public + * @var string + */ + public $lineItemName; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var boolean + */ + public $enabledForSameAdvertiserException; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var DateTime + */ + public $startTime; + + /** + * @access public + * @var DateTime + */ + public $endTime; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $isDefault = NULL, $lineItemName = NULL, $targetPlatform = NULL, $enabledForSameAdvertiserException = NULL, $notes = NULL, $lineItemType = NULL, $startTime = NULL, $endTime = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $creativeRotationType = NULL) { + $this->id = $id; + $this->name = $name; + $this->isDefault = $isDefault; + $this->lineItemName = $lineItemName; + $this->targetPlatform = $targetPlatform; + $this->enabledForSameAdvertiserException = $enabledForSameAdvertiserException; + $this->notes = $notes; + $this->lineItemType = $lineItemType; + $this->startTime = $startTime; + $this->endTime = $endTime; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->creativeRotationType = $creativeRotationType; + } +}} + +if (!class_exists("LineItemTemplatePage", FALSE)) { +/** + * Captures a page of {@link LineItemTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LineItemTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceExtensionErrorReason", FALSE)) { +/** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceExtensionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceExtensionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ClickTrackingLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClickTrackingLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClickTrackingLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ContentMetadataTargetingErrorReason", FALSE)) { +/** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateTimeRangeTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeRangeTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeRangeTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemCreativeAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemCreativeAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemCreativeAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getLineItemTemplatesByStatement", FALSE)) { +/** + * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link LineItemTemplate#id}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item templates + * @return the line item templates that match the given filter + * @throws ApiException if a RuntimeException is thrown + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getLineItemTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getLineItemTemplatesByStatementResponse { + /** + * @access public + * @var LineItemTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("LineItemTemplateService", FALSE)) { +/** + * LineItemTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class LineItemTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AudienceExtensionError" => "AudienceExtensionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPartTargetingError" => "DayPartTargetingError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemTemplate" => "LineItemTemplate", + "LineItemTemplatePage" => "LineItemTemplatePage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargetingError" => "UserDomainTargetingError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryRateType" => "DeliveryRateType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "getLineItemTemplatesByStatement" => "getLineItemTemplatesByStatement", + "getLineItemTemplatesByStatementResponse" => "getLineItemTemplatesByStatementResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/LineItemTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = LineItemTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'LineItemTemplateService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects + * that satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link LineItemTemplate#id}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of line item templates + * @return the line item templates that match the given filter + * @throws ApiException if a RuntimeException is thrown + */ + public function getLineItemTemplatesByStatement($filterStatement) { + $arg = new getLineItemTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getLineItemTemplatesByStatement", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/NetworkService.php b/src/Google/Api/Ads/Dfp/v201311/NetworkService.php new file mode 100755 index 000000000..572fb2667 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/NetworkService.php @@ -0,0 +1,2316 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ExchangeRateError", FALSE)) { +/** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateError extends ApiError { + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRateError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("Network", FALSE)) { +/** + * {@code Network} represents a network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Network { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $propertyCode; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var string[] + */ + public $secondaryCurrencyCodes; + + /** + * @access public + * @var string + */ + public $effectiveRootAdUnitId; + + /** + * @access public + * @var integer + */ + public $contentBrowseCustomTargetingKeyId; + + /** + * @access public + * @var boolean + */ + public $isTest; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Network"; + } + + public function __construct($id = NULL, $displayName = NULL, $networkCode = NULL, $propertyCode = NULL, $timeZone = NULL, $currencyCode = NULL, $secondaryCurrencyCodes = NULL, $effectiveRootAdUnitId = NULL, $contentBrowseCustomTargetingKeyId = NULL, $isTest = NULL) { + $this->id = $id; + $this->displayName = $displayName; + $this->networkCode = $networkCode; + $this->propertyCode = $propertyCode; + $this->timeZone = $timeZone; + $this->currencyCode = $currencyCode; + $this->secondaryCurrencyCodes = $secondaryCurrencyCodes; + $this->effectiveRootAdUnitId = $effectiveRootAdUnitId; + $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; + $this->isTest = $isTest; + } +}} + +if (!class_exists("NetworkError", FALSE)) { +/** + * An error for a network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NetworkError extends ApiError { + /** + * @access public + * @var tnsNetworkErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExchangeRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExchangeRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExchangeRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NetworkErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NetworkErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NetworkError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworks", FALSE)) { +/** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAllNetworks { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllNetworksResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAllNetworksResponse { + /** + * @access public + * @var Network[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentNetwork", FALSE)) { +/** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCurrentNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCurrentNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("makeTestNetwork", FALSE)) { +/** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class makeTestNetwork { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("makeTestNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class makeTestNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateNetwork", FALSE)) { +/** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateNetwork { + /** + * @access public + * @var Network + */ + public $network; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($network = NULL) { + $this->network = $network; + } +}} + +if (!class_exists("updateNetworkResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateNetworkResponse { + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("NetworkService", FALSE)) { +/** + * NetworkService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class NetworkService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ExchangeRateError" => "ExchangeRateError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "Network" => "Network", + "NetworkError" => "NetworkError", + "NotNullError" => "NotNullError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NetworkError.Reason" => "NetworkErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "getAllNetworks" => "getAllNetworks", + "getAllNetworksResponse" => "getAllNetworksResponse", + "getCurrentNetwork" => "getCurrentNetwork", + "getCurrentNetworkResponse" => "getCurrentNetworkResponse", + "makeTestNetwork" => "makeTestNetwork", + "makeTestNetworkResponse" => "makeTestNetworkResponse", + "updateNetwork" => "updateNetwork", + "updateNetworkResponse" => "updateNetworkResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/NetworkService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = NetworkService::$classmap; + parent::__construct($wsdl, $options, $user, 'NetworkService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Returns the list of {@link Network} objects to which the current login has + * access. + *

      + * Intended to be used without a network code in the SOAP header when the + * login may have more than one network associated with it. + *

      + * + * @return the networks to which the current login has access + */ + public function getAllNetworks() { + $arg = new getAllNetworks(); + $result = $this->__soapCall("getAllNetworks", array($arg)); + return $result->rval; + } + + + /** + * Returns the current network for which requests are being made. + * + * @return the network for which the user is currently making the request + */ + public function getCurrentNetwork() { + $arg = new getCurrentNetwork(); + $result = $this->__soapCall("getCurrentNetwork", array($arg)); + return $result->rval; + } + + + /** + * Creates a new blank network for testing purposes using the current login. + *

      + * Each login(i.e. email address) can only have one test network. Data from + * any of your existing networks will not be transferred to the new test network. + * Once the test network is created, the test network can be used in the API + * by supplying the {@link Network#networkCode} in the SOAP header or by + * logging into the DFP UI. + *

      + * Test networks are limited in the following ways: + *

        + *
      • Test networks cannot serve ads.
      • + *
      • Because test networks cannot serve ads, reports will always come + * back without data.
      • + *
      • Since forecasting requires serving history, forecast service results + * will be faked. See {@link ForecastService} for more info.
      • + *
      • Test networks are, by default, small business networks and do not have any + * premium features. To have additional features turned on, please contact your + * account manager.
      • + *
      • Test networks are limited to 10,000 objects per entity type.
      • + *
      + *

      + */ + public function makeTestNetwork() { + $arg = new makeTestNetwork(); + $result = $this->__soapCall("makeTestNetwork", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified network. Currently, only the network display name can + * be updated. + * + * @param network the network that needs to be updated + * @return the updated network + */ + public function updateNetwork($network) { + $arg = new updateNetwork($network); + $result = $this->__soapCall("updateNetwork", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/OrderService.php b/src/Google/Api/Ads/Dfp/v201311/OrderService.php new file mode 100755 index 000000000..4e830e6a6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/OrderService.php @@ -0,0 +1,5001 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CompanyCreditStatusError", FALSE)) { +/** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusError extends ApiError { + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderAction { + /** + * @access public + * @var string + */ + public $OrderActionType; + + private $_parameterMap = array ( + "OrderAction.Type" => "OrderActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderAction"; + } + + public function __construct($OrderActionType = NULL) { + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("Order", FALSE)) { +/** + * An {@code Order} represents a grouping of individual {@link LineItem} + * objects, each of which fulfill an ad request from a particular advertiser. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Order { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var boolean + */ + public $unlimitedEndDateTime; + + /** + * @access public + * @var tnsOrderStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var integer + */ + public $externalOrderId; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var integer[] + */ + public $advertiserContactIds; + + /** + * @access public + * @var integer + */ + public $agencyId; + + /** + * @access public + * @var integer[] + */ + public $agencyContactIds; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var integer + */ + public $traffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer + */ + public $salespersonId; + + /** + * @access public + * @var integer[] + */ + public $secondarySalespersonIds; + + /** + * @access public + * @var integer + */ + public $totalImpressionsDelivered; + + /** + * @access public + * @var integer + */ + public $totalClicksDelivered; + + /** + * @access public + * @var Money + */ + public $totalBudget; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Order"; + } + + public function __construct($id = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $unlimitedEndDateTime = NULL, $status = NULL, $isArchived = NULL, $notes = NULL, $externalOrderId = NULL, $poNumber = NULL, $currencyCode = NULL, $advertiserId = NULL, $advertiserContactIds = NULL, $agencyId = NULL, $agencyContactIds = NULL, $creatorId = NULL, $traffickerId = NULL, $secondaryTraffickerIds = NULL, $salespersonId = NULL, $secondarySalespersonIds = NULL, $totalImpressionsDelivered = NULL, $totalClicksDelivered = NULL, $totalBudget = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $lastModifiedByApp = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->unlimitedEndDateTime = $unlimitedEndDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->notes = $notes; + $this->externalOrderId = $externalOrderId; + $this->poNumber = $poNumber; + $this->currencyCode = $currencyCode; + $this->advertiserId = $advertiserId; + $this->advertiserContactIds = $advertiserContactIds; + $this->agencyId = $agencyId; + $this->agencyContactIds = $agencyContactIds; + $this->creatorId = $creatorId; + $this->traffickerId = $traffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->salespersonId = $salespersonId; + $this->secondarySalespersonIds = $secondarySalespersonIds; + $this->totalImpressionsDelivered = $totalImpressionsDelivered; + $this->totalClicksDelivered = $totalClicksDelivered; + $this->totalBudget = $totalBudget; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->lastModifiedByApp = $lastModifiedByApp; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("OrderPage", FALSE)) { +/** + * Captures a page of {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Order[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PauseOrders", FALSE)) { +/** + * The action used for pausing {@link Order} objects. All {@link LineItem} + * objects within the order will be paused as well. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PauseOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PauseOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ResumeOrders", FALSE)) { +/** + * The action used for resuming {@link Order} objects. All {@link LineItem} + * objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ResumeOrders extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrders", FALSE)) { +/** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RetractOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("RetractOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for retracting {@link Order} objects. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RetractOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitOrdersForApproval", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SubmitOrdersForApproval extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApproval"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalAndOverbook", FALSE)) { +/** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalAndOverbook"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SubmitOrdersForApprovalWithoutReservationChanges", FALSE)) { +/** + * The action used for submitting {@link Order} objects for approval. This + * action does not make any changes to the {@link LineItem#reservationStatus} + * of the line items within the order. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitOrdersForApprovalWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TemplateInstantiatedCreativeError", FALSE)) { +/** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TemplateInstantiatedCreativeError extends ApiError { + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveOrders", FALSE)) { +/** + * The action used for unarchiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnarchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanyCreditStatusErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanyCreditStatusErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanyCreditStatusError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderStatus", FALSE)) { +/** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", FALSE)) { +/** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TemplateInstantiatedCreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TemplateInstantiatedCreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createOrder", FALSE)) { +/** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("createOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createOrders", FALSE)) { +/** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("createOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrder", FALSE)) { +/** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getOrder { + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderId = NULL) { + $this->orderId = $orderId; + } +}} + +if (!class_exists("getOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getOrdersByStatement", FALSE)) { +/** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getOrdersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getOrdersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getOrdersByStatementResponse { + /** + * @access public + * @var OrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performOrderAction", FALSE)) { +/** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performOrderAction { + /** + * @access public + * @var OrderAction + */ + public $orderAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orderAction = NULL, $filterStatement = NULL) { + $this->orderAction = $orderAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performOrderActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performOrderActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrder", FALSE)) { +/** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateOrder { + /** + * @access public + * @var Order + */ + public $order; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($order = NULL) { + $this->order = $order; + } +}} + +if (!class_exists("updateOrderResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateOrderResponse { + /** + * @access public + * @var Order + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateOrders", FALSE)) { +/** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateOrders { + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($orders = NULL) { + $this->orders = $orders; + } +}} + +if (!class_exists("updateOrdersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateOrdersResponse { + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveOrders", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApproveOrders extends OrderAction { + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ApproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for approving {@link Order} objects. All {@link LineItem} + * objects within the order will be approved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line + * items within the order. If there are reservable line items that have not + * been reserved the operation will not succeed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("ArchiveOrders", FALSE)) { +/** + * The action used for archiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteOrders", FALSE)) { +/** + * The action used for deleting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeleteOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrders", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DisapproveOrders extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrders"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("DisapproveOrdersWithoutReservationChanges", FALSE)) { +/** + * The action used for disapproving {@link Order} objects. All {@link LineItem} + * objects within the order will be disapproved as well. This action does not + * make any changes to the {@link LineItem#reservationStatus} of the line items + * within the order. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DisapproveOrdersWithoutReservationChanges extends OrderAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DisapproveOrdersWithoutReservationChanges"; + } + + public function __construct($OrderActionType = NULL) { + parent::__construct(); + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ResumeAndOverbookOrders", FALSE)) { +/** + * The action used for resuming and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ResumeAndOverbookOrders extends ResumeOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResumeAndOverbookOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApproveAndOverbookOrders", FALSE)) { +/** + * The action used for approving and overbooking {@link Order} objects. + * All {@link LineItem} objects within the order will be approved as well. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApproveAndOverbookOrders extends ApproveOrders { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveAndOverbookOrders"; + } + + public function __construct($skipInventoryCheck = NULL, $OrderActionType = NULL) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + $this->OrderActionType = $OrderActionType; + } +}} + +if (!class_exists("OrderService", FALSE)) { +/** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class OrderService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", + "ApproveOrders" => "ApproveOrders", + "OrderAction" => "OrderAction", + "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", + "ArchiveOrders" => "ArchiveOrders", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "Order" => "Order", + "OrderError" => "OrderError", + "OrderPage" => "OrderPage", + "ParseError" => "ParseError", + "PauseOrders" => "PauseOrders", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "OrderStatus" => "OrderStatus", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createOrder" => "createOrder", + "createOrderResponse" => "createOrderResponse", + "createOrders" => "createOrders", + "createOrdersResponse" => "createOrdersResponse", + "getOrder" => "getOrder", + "getOrderResponse" => "getOrderResponse", + "getOrdersByStatement" => "getOrdersByStatement", + "getOrdersByStatementResponse" => "getOrdersByStatementResponse", + "performOrderAction" => "performOrderAction", + "performOrderActionResponse" => "performOrderActionResponse", + "updateOrder" => "updateOrder", + "updateOrderResponse" => "updateOrderResponse", + "updateOrders" => "updateOrders", + "updateOrdersResponse" => "updateOrdersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/OrderService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = OrderService::$classmap; + parent::__construct($wsdl, $options, $user, 'OrderService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link Order}. + * + * The following fields are required: + *
        + *
      • {@link Order#advertiserId}
      • + *
      • {@link Order#name}
      • + *
      • {@link Order#traffickerId}
      • + *
      + * + * @param order the order to create + * @return the order with its ID filled in + */ + public function createOrder($order) { + $arg = new createOrder($order); + $result = $this->__soapCall("createOrder", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + */ + public function createOrders($orders) { + $arg = new createOrders($orders); + $result = $this->__soapCall("createOrders", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Order} uniquely identified by the given ID. + * + * @param orderId the ID of the order, which must already exist + * @return the {@code Order} uniquely identified by the given ID + */ + public function getOrder($orderId) { + $arg = new getOrder($orderId); + $result = $this->__soapCall("getOrder", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code advertiserId}{@link Order#advertiserId}
      {@code endDateTime}{@link Order#endDateTime}
      {@code id}{@link Order#id}
      {@code name}{@link Order#name}
      {@code salespersonId}{@link Order#salespersonId}
      {@code startDateTime}{@link Order#startDateTime}
      {@code status}{@link Order#status}
      {@code traffickerId}{@link Order#traffickerId}
      {@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the orders that match the given filter + */ + public function getOrdersByStatement($filterStatement) { + $arg = new getOrdersByStatement($filterStatement); + $result = $this->__soapCall("getOrdersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Order} objects that match the given + * {@link Statement#query}. + * + * @param orderAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of orders + * @return the result of the action performed + */ + public function performOrderAction($orderAction, $filterStatement) { + $arg = new performOrderAction($orderAction, $filterStatement); + $result = $this->__soapCall("performOrderAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order}. + * + * @param order the order to update + * @return the updated order + */ + public function updateOrder($order) { + $arg = new updateOrder($order); + $result = $this->__soapCall("updateOrder", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + */ + public function updateOrders($orders) { + $arg = new updateOrders($orders); + $result = $this->__soapCall("updateOrders", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/PlacementService.php b/src/Google/Api/Ads/Dfp/v201311/PlacementService.php new file mode 100755 index 000000000..6cbf05460 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/PlacementService.php @@ -0,0 +1,3662 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("EntityLimitReachedError", FALSE)) { +/** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EntityLimitReachedError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EntityLimitReachedError"; + } + + 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("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PlacementAction { + /** + * @access public + * @var string + */ + public $PlacementActionType; + + private $_parameterMap = array ( + "PlacementAction.Type" => "PlacementActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementAction"; + } + + public function __construct($PlacementActionType = NULL) { + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("PlacementError", FALSE)) { +/** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PlacementError extends ApiError { + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError"; + } + + 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("PlacementPage", FALSE)) { +/** + * Captures a page of {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PlacementPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Placement[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("SiteTargetingInfo", FALSE)) { +/** + * Contains information required for AdWords advertisers to place their ads. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SiteTargetingInfo { + /** + * @access public + * @var string + */ + public $targetingDescription; + + /** + * @access public + * @var string + */ + public $targetingSiteName; + + /** + * @access public + * @var string + */ + public $targetingAdLocation; + + /** + * @access public + * @var string + */ + public $SiteTargetingInfoType; + + private $_parameterMap = array ( + "SiteTargetingInfo.Type" => "SiteTargetingInfoType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SiteTargetingInfo"; + } + + public function __construct($targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryStatus", FALSE)) { +/** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PlacementErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PlacementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createPlacement", FALSE)) { +/** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createPlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("createPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createPlacements", FALSE)) { +/** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createPlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("createPlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createPlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacement", FALSE)) { +/** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getPlacement { + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementId = NULL) { + $this->placementId = $placementId; + } +}} + +if (!class_exists("getPlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getPlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getPlacementsByStatement", FALSE)) { +/** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getPlacementsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getPlacementsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getPlacementsByStatementResponse { + /** + * @access public + * @var PlacementPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performPlacementAction", FALSE)) { +/** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performPlacementAction { + /** + * @access public + * @var PlacementAction + */ + public $placementAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placementAction = NULL, $filterStatement = NULL) { + $this->placementAction = $placementAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performPlacementActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performPlacementActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacement", FALSE)) { +/** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updatePlacement { + /** + * @access public + * @var Placement + */ + public $placement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placement = NULL) { + $this->placement = $placement; + } +}} + +if (!class_exists("updatePlacementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updatePlacementResponse { + /** + * @access public + * @var Placement + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updatePlacements", FALSE)) { +/** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updatePlacements { + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($placements = NULL) { + $this->placements = $placements; + } +}} + +if (!class_exists("updatePlacementsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updatePlacementsResponse { + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivatePlacements", FALSE)) { +/** + * The action used for activating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchivePlacements", FALSE)) { +/** + * The action used for archiving {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchivePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchivePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivatePlacements", FALSE)) { +/** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivatePlacements extends PlacementAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivatePlacements"; + } + + public function __construct($PlacementActionType = NULL) { + parent::__construct(); + $this->PlacementActionType = $PlacementActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Placement", FALSE)) { +/** + * A {@code Placement} groups related {@code AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Placement extends SiteTargetingInfo { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $placementCode; + + /** + * @access public + * @var tnsInventoryStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isAdSenseTargetingEnabled; + + /** + * @access public + * @var boolean + */ + public $isAdPlannerTargetingEnabled; + + /** + * @access public + * @var string + */ + public $adSenseTargetingLocale; + + /** + * @access public + * @var string[] + */ + public $targetedAdUnitIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Placement"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $placementCode = NULL, $status = NULL, $isAdSenseTargetingEnabled = NULL, $isAdPlannerTargetingEnabled = NULL, $adSenseTargetingLocale = NULL, $targetedAdUnitIds = NULL, $lastModifiedDateTime = NULL, $targetingDescription = NULL, $targetingSiteName = NULL, $targetingAdLocation = NULL, $SiteTargetingInfoType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->placementCode = $placementCode; + $this->status = $status; + $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; + $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; + $this->adSenseTargetingLocale = $adSenseTargetingLocale; + $this->targetedAdUnitIds = $targetedAdUnitIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PlacementService", FALSE)) { +/** + * PlacementService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class PlacementService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivatePlacements" => "ActivatePlacements", + "PlacementAction" => "PlacementAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ArchivePlacements" => "ArchivePlacements", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivatePlacements" => "DeactivatePlacements", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "Placement" => "Placement", + "SiteTargetingInfo" => "SiteTargetingInfo", + "PlacementError" => "PlacementError", + "PlacementPage" => "PlacementPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryStatus" => "InventoryStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PlacementError.Reason" => "PlacementErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createPlacement" => "createPlacement", + "createPlacementResponse" => "createPlacementResponse", + "createPlacements" => "createPlacements", + "createPlacementsResponse" => "createPlacementsResponse", + "getPlacement" => "getPlacement", + "getPlacementResponse" => "getPlacementResponse", + "getPlacementsByStatement" => "getPlacementsByStatement", + "getPlacementsByStatementResponse" => "getPlacementsByStatementResponse", + "performPlacementAction" => "performPlacementAction", + "performPlacementActionResponse" => "performPlacementActionResponse", + "updatePlacement" => "updatePlacement", + "updatePlacementResponse" => "updatePlacementResponse", + "updatePlacements" => "updatePlacements", + "updatePlacementsResponse" => "updatePlacementsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/PlacementService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PlacementService::$classmap; + parent::__construct($wsdl, $options, $user, 'PlacementService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link Placement}. + * + * The following fields are required: + *
        + *
      • {@link Placement#name}
      • + *
      • {@link Placement#description}
      • + *
      + * + * @param placement the placement to create + * @return the new placement with its ID set + */ + public function createPlacement($placement) { + $arg = new createPlacement($placement); + $result = $this->__soapCall("createPlacement", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + */ + public function createPlacements($placements) { + $arg = new createPlacements($placements); + $result = $this->__soapCall("createPlacements", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Placement} uniquely identified by the given ID. + * + * @param placementId ID of the placement, which must already exist + * @return the {@code Placement} uniquely identified by the given ID + */ + public function getPlacement($placementId) { + $arg = new getPlacement($placementId); + $result = $this->__soapCall("getPlacement", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code description}{@link Placement#description}
      {@code id}{@link Placement#id}
      {@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
      {@code name}{@link Placement#name}
      {@code placementCode}{@link Placement#placementCode}
      {@code status}{@link Placement#status}
      {@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the placements that match the given filter + */ + public function getPlacementsByStatement($filterStatement) { + $arg = new getPlacementsByStatement($filterStatement); + $result = $this->__soapCall("getPlacementsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Placement} objects that match the given + * {@link Statement#query}. + * + * @param placementAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of placements + * @return the result of the action performed + */ + public function performPlacementAction($placementAction, $filterStatement) { + $arg = new performPlacementAction($placementAction, $filterStatement); + $result = $this->__soapCall("performPlacementAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement}. + * + * @param placement the placement to update + * @return the updated placement + */ + public function updatePlacement($placement) { + $arg = new updatePlacement($placement); + $result = $this->__soapCall("updatePlacement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + */ + public function updatePlacements($placements) { + $arg = new updatePlacements($placements); + $result = $this->__soapCall("updatePlacements", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ProductService.php b/src/Google/Api/Ads/Dfp/v201311/ProductService.php new file mode 100755 index 000000000..1974268a0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ProductService.php @@ -0,0 +1,5245 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $type = NULL, $canonicalParentId = NULL, $displayName = NULL, $LocationType = NULL) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("ProductAction", FALSE)) { +/** + * Represents the actions that can be performed on products. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductAction { + /** + * @access public + * @var string + */ + public $ProductActionType; + + private $_parameterMap = array ( + "ProductAction.Type" => "ProductActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductAction"; + } + + public function __construct($ProductActionType = NULL) { + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("ProductActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action on {@link Product} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductActionError extends ApiError { + /** + * @access public + * @var tnsProductActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductActionError"; + } + + 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("Product", FALSE)) { +/** + * {@link ProposalLineItem Proposal line items} are created from products, + * from which their properties are copied. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Product { + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsProductStatus + */ + public $status; + + /** + * @access public + * @var tnsProductType + */ + public $productType; + + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var string + */ + public $productTemplateDescription; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var boolean + */ + public $allowFrequencyCapsCustomization; + + /** + * @access public + * @var ProductTemplateTargeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Product"; + } + + public function __construct($name = NULL, $status = NULL, $productType = NULL, $productTemplateId = NULL, $id = NULL, $notes = NULL, $productTemplateDescription = NULL, $lastModifiedDateTime = NULL, $rateType = NULL, $roadblockingType = NULL, $creativePlaceholders = NULL, $lineItemType = NULL, $priority = NULL, $frequencyCaps = NULL, $allowFrequencyCapsCustomization = NULL, $targeting = NULL, $customFieldValues = NULL) { + $this->name = $name; + $this->status = $status; + $this->productType = $productType; + $this->productTemplateId = $productTemplateId; + $this->id = $id; + $this->notes = $notes; + $this->productTemplateDescription = $productTemplateDescription; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->rateType = $rateType; + $this->roadblockingType = $roadblockingType; + $this->creativePlaceholders = $creativePlaceholders; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->frequencyCaps = $frequencyCaps; + $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProductPage", FALSE)) { +/** + * Captures a page of {@link ProductDto} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Product[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ProductTemplateTargeting", FALSE)) { +/** + * Contains targeting criteria for {@link ProductTemplate} objects. + * {@link ProposalLineItem Proposal line items} created from {@link Product products} + * of this template will have this criteria added to {@link ProposalLineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateTargeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var boolean + */ + public $allowGeoTargetingCustomization; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowAdUnitTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $allowPlacementTargetingCustomization; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var boolean + */ + public $allowUserDomainTargetingCustomization; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBandwidthGroupTargetingCustomization; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserTargetingCustomization; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserLanguageTargetingCustomization; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var boolean + */ + public $allowOperatingSystemTargetingCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateTargeting"; + } + + public function __construct($geoTargeting = NULL, $allowGeoTargetingCustomization = NULL, $inventoryTargeting = NULL, $allowAdUnitTargetingCustomization = NULL, $allowPlacementTargetingCustomization = NULL, $customizableCustomTargetingKeyIds = NULL, $userDomainTargeting = NULL, $allowUserDomainTargetingCustomization = NULL, $bandwidthGroupTargeting = NULL, $allowBandwidthGroupTargetingCustomization = NULL, $browserTargeting = NULL, $allowBrowserTargetingCustomization = NULL, $browserLanguageTargeting = NULL, $allowBrowserLanguageTargetingCustomization = NULL, $operatingSystemTargeting = NULL, $allowOperatingSystemTargetingCustomization = NULL) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->userDomainTargeting = $userDomainTargeting; + $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; + $this->browserTargeting = $browserTargeting; + $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductStatus", FALSE)) { +/** + * Describes the different statuses for {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductType", FALSE)) { +/** + * Describes the type of {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("getProduct", FALSE)) { +/** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProduct { + /** + * @access public + * @var string + */ + public $productId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productId = NULL) { + $this->productId = $productId; + } +}} + +if (!class_exists("getProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProductResponse { + /** + * @access public + * @var Product + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductsByStatement", FALSE)) { +/** + * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by + * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject PropertyFilterableSortable
      {@code rateCardId}Rate card ID which the product is associated withYesNo
      {@code status}{@link Product#status}YesYes
      {@code lineItemType}{@link Product#lineItemType}YesYes
      {@code productType}{@link Product#productType}YesYes
      {@code rateType}{@link Product#rateType}YesYes
      {@code productTemplateId}{@link Product#productTemplateId}YesNo
      {@code name}{@link Product#name}YesYes
      {@code description}{@link Product#description}YesNo
      {@code id}{@link Product#id}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @param statement a Publisher Query Language statement which specifies the filtering + * criteria over products + * @return the products that match the given statement + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProductsByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getProductsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProductsByStatementResponse { + /** + * @access public + * @var ProductPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProductAction", FALSE)) { +/** + * Performs action on {@link Product} objects that satisfy the given {@link Statement}. + * + * @param productAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of products. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performProductAction { + /** + * @access public + * @var ProductAction + */ + public $productAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productAction = NULL, $filterStatement = NULL) { + $this->productAction = $productAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProductActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performProductActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProduct", FALSE)) { +/** + * Updates the specified {@link Product}. + * Note non-updatable fields will not be backfilled. + * + * @param product the product to update + * @return the updated product + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProduct { + /** + * @access public + * @var Product + */ + public $product; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($product = NULL) { + $this->product = $product; + } +}} + +if (!class_exists("updateProductResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProductResponse { + /** + * @access public + * @var Product + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProducts", FALSE)) { +/** + * Updates the specified {@link Product} objects. + * Note non-updatable fields will not be backfilled. + * + * @param products the products to update + * @return the updated products + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProducts { + /** + * @access public + * @var Product[] + */ + public $products; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($products = NULL) { + $this->products = $products; + } +}} + +if (!class_exists("updateProductsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProductsResponse { + /** + * @access public + * @var Product[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateProducts", FALSE)) { +/** + * The action used to activate products. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProducts", FALSE)) { +/** + * The action used to archive products. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateProducts", FALSE)) { +/** + * The action used to deactivate products. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateProducts extends ProductAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateProducts"; + } + + public function __construct($ProductActionType = NULL) { + parent::__construct(); + $this->ProductActionType = $ProductActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProductService", FALSE)) { +/** + * ProductService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ProductService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateProducts" => "ActivateProducts", + "ProductAction" => "ProductAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProducts" => "ArchiveProducts", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProducts" => "DeactivateProducts", + "DeviceCapability" => "DeviceCapability", + "DeviceCategory" => "DeviceCategory", + "DeviceManufacturer" => "DeviceManufacturer", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "MobileCarrier" => "MobileCarrier", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "PermissionError" => "PermissionError", + "ProductActionError" => "ProductActionError", + "Product" => "Product", + "ProductError" => "ProductError", + "ProductPage" => "ProductPage", + "ProductTemplateTargeting" => "ProductTemplateTargeting", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeSizeType" => "CreativeSizeType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductActionError.Reason" => "ProductActionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProductStatus" => "ProductStatus", + "ProductType" => "ProductType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TimeUnit" => "TimeUnit", + "getProduct" => "getProduct", + "getProductResponse" => "getProductResponse", + "getProductsByStatement" => "getProductsByStatement", + "getProductsByStatementResponse" => "getProductsByStatementResponse", + "performProductAction" => "performProductAction", + "performProductActionResponse" => "performProductActionResponse", + "updateProduct" => "updateProduct", + "updateProductResponse" => "updateProductResponse", + "updateProducts" => "updateProducts", + "updateProductsResponse" => "updateProductsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ProductService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProductService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProductService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Returns the {@link Product} uniquely identified by the given ID. + * + * @param productId the ID of the product, which must already exist + * @return the {@code Product} uniquely identified by ID + */ + public function getProduct($productId) { + $arg = new getProduct($productId); + $result = $this->__soapCall("getProduct", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by + * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject PropertyFilterableSortable
      {@code rateCardId}Rate card ID which the product is associated withYesNo
      {@code status}{@link Product#status}YesYes
      {@code lineItemType}{@link Product#lineItemType}YesYes
      {@code productType}{@link Product#productType}YesYes
      {@code rateType}{@link Product#rateType}YesYes
      {@code productTemplateId}{@link Product#productTemplateId}YesNo
      {@code name}{@link Product#name}YesYes
      {@code description}{@link Product#description}YesNo
      {@code id}{@link Product#id}YesNo
      {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}NoYes
      + * + * @param statement a Publisher Query Language statement which specifies the filtering + * criteria over products + * @return the products that match the given statement + */ + public function getProductsByStatement($statement) { + $arg = new getProductsByStatement($statement); + $result = $this->__soapCall("getProductsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link Product} objects that satisfy the given {@link Statement}. + * + * @param productAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of products. + * @return the result of the action performed + */ + public function performProductAction($productAction, $filterStatement) { + $arg = new performProductAction($productAction, $filterStatement); + $result = $this->__soapCall("performProductAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Product}. + * Note non-updatable fields will not be backfilled. + * + * @param product the product to update + * @return the updated product + */ + public function updateProduct($product) { + $arg = new updateProduct($product); + $result = $this->__soapCall("updateProduct", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Product} objects. + * Note non-updatable fields will not be backfilled. + * + * @param products the products to update + * @return the updated products + */ + public function updateProducts($products) { + $arg = new updateProducts($products); + $result = $this->__soapCall("updateProducts", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php new file mode 100755 index 000000000..f320eaf6e --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php @@ -0,0 +1,5952 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $type = NULL, $canonicalParentId = NULL, $displayName = NULL, $LocationType = NULL) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PlacementTargeting", FALSE)) { +/** + * Specifies what {@link Placement placements} are targeted. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PlacementTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementTargeting"; + } + + public function __construct($targetedPlacementIds = NULL) { + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("ProductTemplateAction", FALSE)) { +/** + * Represents the actions that can be performed on product templates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateAction { + /** + * @access public + * @var string + */ + public $ProductTemplateActionType; + + private $_parameterMap = array ( + "ProductTemplateAction.Type" => "ProductTemplateActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateAction"; + } + + public function __construct($ProductTemplateActionType = NULL) { + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("ProductTemplateActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action on + * {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateActionError extends ApiError { + /** + * @access public + * @var tnsProductTemplateActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateActionError"; + } + + 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("ProductTemplate", FALSE)) { +/** + * {@code ProductTemplate} is used to generate products. All generated products will + * inherit all attributes from their {@code ProductTemplate}, except for segmentation, + * which will be included in the {@link Product#targeting}. The generated products in turn will be + * used to create {@link ProposalLineItem proposal line items} so that almost all attributes + * in the product template are properties of the proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplate { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var string + */ + public $nameMacro; + + /** + * @access public + * @var tnsProductTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsProductType + */ + public $productType; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $priority; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var boolean + */ + public $allowFrequencyCapsCustomization; + + /** + * @access public + * @var ProductSegmentation + */ + public $productSegmentation; + + /** + * @access public + * @var ProductTemplateTargeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplate"; + } + + public function __construct($id = NULL, $name = NULL, $creationDateTime = NULL, $lastModifiedDateTime = NULL, $description = NULL, $nameMacro = NULL, $status = NULL, $productType = NULL, $creatorId = NULL, $rateType = NULL, $roadblockingType = NULL, $creativePlaceholders = NULL, $lineItemType = NULL, $priority = NULL, $frequencyCaps = NULL, $allowFrequencyCapsCustomization = NULL, $productSegmentation = NULL, $targeting = NULL, $customFieldValues = NULL) { + $this->id = $id; + $this->name = $name; + $this->creationDateTime = $creationDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->description = $description; + $this->nameMacro = $nameMacro; + $this->status = $status; + $this->productType = $productType; + $this->creatorId = $creatorId; + $this->rateType = $rateType; + $this->roadblockingType = $roadblockingType; + $this->creativePlaceholders = $creativePlaceholders; + $this->lineItemType = $lineItemType; + $this->priority = $priority; + $this->frequencyCaps = $frequencyCaps; + $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; + $this->productSegmentation = $productSegmentation; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + } +}} + +if (!class_exists("ProductTemplateError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with ProductTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateError extends ApiError { + /** + * @access public + * @var tnsProductTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateError"; + } + + 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("ProductTemplatePage", FALSE)) { +/** + * Captures a page of {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplatePage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ProductTemplate[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplatePage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("ProductSegmentation", FALSE)) { +/** + * Segmentations used to create products. Within a product template, for each segmentation, + * a product will be created for the combination of all other segments within other segmentations. + *

      + * For example, a product with 3 segmentations with only 1 segment for each will produce + * {@code 1 x 1 x 1 = 1} product. + * A product with 3 segmentations with 2 segments for each will produce {@code 2 x 2 x 2 = 8} + * products. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductSegmentation { + /** + * @access public + * @var GeoTargeting + */ + public $geoSegment; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $adUnitSegments; + + /** + * @access public + * @var PlacementTargeting + */ + public $placementSegment; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainSegment; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthSegment; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserSegment; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageSegment; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemSegment; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductSegmentation"; + } + + public function __construct($geoSegment = NULL, $adUnitSegments = NULL, $placementSegment = NULL, $userDomainSegment = NULL, $bandwidthSegment = NULL, $browserSegment = NULL, $browserLanguageSegment = NULL, $operatingSystemSegment = NULL) { + $this->geoSegment = $geoSegment; + $this->adUnitSegments = $adUnitSegments; + $this->placementSegment = $placementSegment; + $this->userDomainSegment = $userDomainSegment; + $this->bandwidthSegment = $bandwidthSegment; + $this->browserSegment = $browserSegment; + $this->browserLanguageSegment = $browserLanguageSegment; + $this->operatingSystemSegment = $operatingSystemSegment; + } +}} + +if (!class_exists("ProductTemplateTargeting", FALSE)) { +/** + * Contains targeting criteria for {@link ProductTemplate} objects. + * {@link ProposalLineItem Proposal line items} created from {@link Product products} + * of this template will have this criteria added to {@link ProposalLineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateTargeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var boolean + */ + public $allowGeoTargetingCustomization; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowAdUnitTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $allowPlacementTargetingCustomization; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var boolean + */ + public $allowUserDomainTargetingCustomization; + + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBandwidthGroupTargetingCustomization; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserTargetingCustomization; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var boolean + */ + public $allowBrowserLanguageTargetingCustomization; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var boolean + */ + public $allowOperatingSystemTargetingCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateTargeting"; + } + + public function __construct($geoTargeting = NULL, $allowGeoTargetingCustomization = NULL, $inventoryTargeting = NULL, $allowAdUnitTargetingCustomization = NULL, $allowPlacementTargetingCustomization = NULL, $customizableCustomTargetingKeyIds = NULL, $userDomainTargeting = NULL, $allowUserDomainTargetingCustomization = NULL, $bandwidthGroupTargeting = NULL, $allowBandwidthGroupTargetingCustomization = NULL, $browserTargeting = NULL, $allowBrowserTargetingCustomization = NULL, $browserLanguageTargeting = NULL, $allowBrowserLanguageTargetingCustomization = NULL, $operatingSystemTargeting = NULL, $allowOperatingSystemTargetingCustomization = NULL) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->userDomainTargeting = $userDomainTargeting; + $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; + $this->browserTargeting = $browserTargeting; + $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductTemplateStatus", FALSE)) { +/** + * Describes the different statuses for ProductTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductTemplateStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductTemplateStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductType", FALSE)) { +/** + * Describes the type of {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductType"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProductTemplate", FALSE)) { +/** + * Creates a new {@link ProductTemplate}. + * + * The following fields are required: + *
        + *
      • {@link ProductTemplate#name}
      • + *
      • {@link ProductTemplate#nameMacro}
      • + *
      • {@link ProductTemplate#productType}
      • + *
      • {@link ProductTemplate#rateType}
      • + *
      • {@link ProductTemplate#creativePlaceholders} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#lineItemType} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is + * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} + * is not specified)
      • + *
      + * + * @param productTemplate the product template to create + * @return the persisted product template with tis ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProductTemplate { + /** + * @access public + * @var ProductTemplate + */ + public $productTemplate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplate = NULL) { + $this->productTemplate = $productTemplate; + } +}} + +if (!class_exists("createProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProductTemplates", FALSE)) { +/** + * Creates new {@link ProductTemplate} objects. + * + * @param productTemplates the productTemplates to create + * @return the persisted product templates with their Ids filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProductTemplates { + /** + * @access public + * @var ProductTemplate[] + */ + public $productTemplates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplates = NULL) { + $this->productTemplates = $productTemplates; + } +}} + +if (!class_exists("createProductTemplatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProductTemplatesResponse { + /** + * @access public + * @var ProductTemplate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductTemplate", FALSE)) { +/** + * Returns the {@link ProductTemplate} uniquely identified by the given ID. + * + * @param productTemplateId the ID of the product template, which must already + * exist + * @return the {@code ProductTemplate} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProductTemplate { + /** + * @access public + * @var integer + */ + public $productTemplateId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplateId = NULL) { + $this->productTemplateId = $productTemplateId; + } +}} + +if (!class_exists("getProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProductTemplatesByStatement", FALSE)) { +/** + * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProductTemplate#id}
      {@code name}{@link ProductTemplate#name}
      {@code nameMacro}{@link ProductTemplate#nameMacro}
      {@code description}{@link ProductTemplate#description}
      {@code status}{@link ProductTemplate#status}
      {@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
      {@code lineItemType}{@link LineItemType}
      {@code productType}{@link ProductType}
      {@code rateType}{@link RateType}
      + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over productTemplates + * @return the productTemplates that match the given statement + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProductTemplatesByStatement { + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($statement = NULL) { + $this->statement = $statement; + } +}} + +if (!class_exists("getProductTemplatesByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProductTemplatesByStatementResponse { + /** + * @access public + * @var ProductTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProductTemplateAction", FALSE)) { +/** + * Performs action on {@link ProductTemplate} objects that satisfy the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of product templates + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performProductTemplateAction { + /** + * @access public + * @var ProductTemplateAction + */ + public $action; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($action = NULL, $filterStatement = NULL) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProductTemplateActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performProductTemplateActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProductTemplate", FALSE)) { +/** + * Updates the specified {@link ProductTemplate}. + * + * @param productTemplate the product template to update + * @return the updated product template + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProductTemplate { + /** + * @access public + * @var ProductTemplate + */ + public $productTemplate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplate = NULL) { + $this->productTemplate = $productTemplate; + } +}} + +if (!class_exists("updateProductTemplateResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProductTemplateResponse { + /** + * @access public + * @var ProductTemplate + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProductTemplates", FALSE)) { +/** + * Updates the specified {@link ProductTemplate} objects. + * + * @param productTemplates the product templates to update + * @return the updated product templates + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProductTemplates { + /** + * @access public + * @var ProductTemplate[] + */ + public $productTemplates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($productTemplates = NULL) { + $this->productTemplates = $productTemplates; + } +}} + +if (!class_exists("updateProductTemplatesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProductTemplatesResponse { + /** + * @access public + * @var ProductTemplate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateProductTemplates", FALSE)) { +/** + * The action used for activating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateProductTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateProductTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProducTemplates", FALSE)) { +/** + * The action used for archiving product template. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveProducTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProducTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateProductTemplates", FALSE)) { +/** + * The action used for deactivating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateProductTemplates extends ProductTemplateAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateProductTemplates"; + } + + public function __construct($ProductTemplateActionType = NULL) { + parent::__construct(); + $this->ProductTemplateActionType = $ProductTemplateActionType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProductTemplateService", FALSE)) { +/** + * ProductTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ProductTemplateService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateProductTemplates" => "ActivateProductTemplates", + "ProductTemplateAction" => "ProductTemplateAction", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProducTemplates" => "ArchiveProducTemplates", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProductTemplates" => "DeactivateProductTemplates", + "DeviceCapability" => "DeviceCapability", + "DeviceCategory" => "DeviceCategory", + "DeviceManufacturer" => "DeviceManufacturer", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "MobileCarrier" => "MobileCarrier", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "PermissionError" => "PermissionError", + "PlacementTargeting" => "PlacementTargeting", + "ProductTemplateActionError" => "ProductTemplateActionError", + "ProductTemplate" => "ProductTemplate", + "ProductTemplateError" => "ProductTemplateError", + "ProductTemplatePage" => "ProductTemplatePage", + "ProductSegmentation" => "ProductSegmentation", + "ProductTemplateTargeting" => "ProductTemplateTargeting", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeSizeType" => "CreativeSizeType", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LineItemType" => "LineItemType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductTemplateActionError.Reason" => "ProductTemplateActionErrorReason", + "ProductTemplateError.Reason" => "ProductTemplateErrorReason", + "ProductTemplateStatus" => "ProductTemplateStatus", + "ProductType" => "ProductType", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TimeUnit" => "TimeUnit", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "createProductTemplate" => "createProductTemplate", + "createProductTemplateResponse" => "createProductTemplateResponse", + "createProductTemplates" => "createProductTemplates", + "createProductTemplatesResponse" => "createProductTemplatesResponse", + "getProductTemplate" => "getProductTemplate", + "getProductTemplateResponse" => "getProductTemplateResponse", + "getProductTemplatesByStatement" => "getProductTemplatesByStatement", + "getProductTemplatesByStatementResponse" => "getProductTemplatesByStatementResponse", + "performProductTemplateAction" => "performProductTemplateAction", + "performProductTemplateActionResponse" => "performProductTemplateActionResponse", + "updateProductTemplate" => "updateProductTemplate", + "updateProductTemplateResponse" => "updateProductTemplateResponse", + "updateProductTemplates" => "updateProductTemplates", + "updateProductTemplatesResponse" => "updateProductTemplatesResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ProductTemplateService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProductTemplateService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProductTemplateService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link ProductTemplate}. + * + * The following fields are required: + *
        + *
      • {@link ProductTemplate#name}
      • + *
      • {@link ProductTemplate#nameMacro}
      • + *
      • {@link ProductTemplate#productType}
      • + *
      • {@link ProductTemplate#rateType}
      • + *
      • {@link ProductTemplate#creativePlaceholders} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#lineItemType} + * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
      • + *
      • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is + * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} + * is not specified)
      • + *
      + * + * @param productTemplate the product template to create + * @return the persisted product template with tis ID filled in + */ + public function createProductTemplate($productTemplate) { + $arg = new createProductTemplate($productTemplate); + $result = $this->__soapCall("createProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ProductTemplate} objects. + * + * @param productTemplates the productTemplates to create + * @return the persisted product templates with their Ids filled in + */ + public function createProductTemplates($productTemplates) { + $arg = new createProductTemplates($productTemplates); + $result = $this->__soapCall("createProductTemplates", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ProductTemplate} uniquely identified by the given ID. + * + * @param productTemplateId the ID of the product template, which must already + * exist + * @return the {@code ProductTemplate} uniquely identified by the given ID + */ + public function getProductTemplate($productTemplateId) { + $arg = new getProductTemplate($productTemplateId); + $result = $this->__soapCall("getProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProductTemplate#id}
      {@code name}{@link ProductTemplate#name}
      {@code nameMacro}{@link ProductTemplate#nameMacro}
      {@code description}{@link ProductTemplate#description}
      {@code status}{@link ProductTemplate#status}
      {@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
      {@code lineItemType}{@link LineItemType}
      {@code productType}{@link ProductType}
      {@code rateType}{@link RateType}
      + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over productTemplates + * @return the productTemplates that match the given statement + */ + public function getProductTemplatesByStatement($statement) { + $arg = new getProductTemplatesByStatement($statement); + $result = $this->__soapCall("getProductTemplatesByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link ProductTemplate} objects that satisfy the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of product templates + * @return the result of the action performed + */ + public function performProductTemplateAction($action, $filterStatement) { + $arg = new performProductTemplateAction($action, $filterStatement); + $result = $this->__soapCall("performProductTemplateAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProductTemplate}. + * + * @param productTemplate the product template to update + * @return the updated product template + */ + public function updateProductTemplate($productTemplate) { + $arg = new updateProductTemplate($productTemplate); + $result = $this->__soapCall("updateProductTemplate", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProductTemplate} objects. + * + * @param productTemplates the product templates to update + * @return the updated product templates + */ + public function updateProductTemplates($productTemplates) { + $arg = new updateProductTemplates($productTemplates); + $result = $this->__soapCall("updateProductTemplates", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php new file mode 100755 index 000000000..ca98f3f5f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php @@ -0,0 +1,7880 @@ +adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("TechnologyTargeting", FALSE)) { +/** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargeting { + /** + * @access public + * @var BandwidthGroupTargeting + */ + public $bandwidthGroupTargeting; + + /** + * @access public + * @var BrowserTargeting + */ + public $browserTargeting; + + /** + * @access public + * @var BrowserLanguageTargeting + */ + public $browserLanguageTargeting; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var OperatingSystemTargeting + */ + public $operatingSystemTargeting; + + /** + * @access public + * @var OperatingSystemVersionTargeting + */ + public $operatingSystemVersionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargeting"; + } + + public function __construct($bandwidthGroupTargeting = NULL, $browserTargeting = NULL, $browserLanguageTargeting = NULL, $deviceCapabilityTargeting = NULL, $deviceCategoryTargeting = NULL, $deviceManufacturerTargeting = NULL, $mobileCarrierTargeting = NULL, $mobileDeviceTargeting = NULL, $mobileDeviceSubmodelTargeting = NULL, $operatingSystemTargeting = NULL, $operatingSystemVersionTargeting = NULL) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BandwidthGroupTargeting", FALSE)) { +/** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroupTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $bandwidthGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroupTargeting"; + } + + public function __construct($isTargeted = NULL, $bandwidthGroups = NULL) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BillingError", FALSE)) { +/** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingError extends ApiError { + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError"; + } + + 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("BrowserLanguageTargeting", FALSE)) { +/** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguageTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browserLanguages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageTargeting"; + } + + public function __construct($isTargeted = NULL, $browserLanguages = NULL) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } +}} + +if (!class_exists("BrowserTargeting", FALSE)) { +/** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $browsers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserTargeting"; + } + + public function __construct($isTargeted = NULL, $browsers = NULL) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("ContentMetadataKeyHierarchyTargeting", FALSE)) { +/** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentMetadataKeyHierarchyTargeting { + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentMetadataKeyHierarchyTargeting"; + } + + public function __construct($customTargetingValueIds = NULL) { + $this->customTargetingValueIds = $customTargetingValueIds; + } +}} + +if (!class_exists("ContentTargeting", FALSE)) { +/** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ContentTargeting { + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoContentBundleIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoContentBundleIds; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $targetedContentMetadata; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $excludedContentMetadata; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ContentTargeting"; + } + + public function __construct($targetedContentIds = NULL, $excludedContentIds = NULL, $targetedVideoCategoryIds = NULL, $excludedVideoCategoryIds = NULL, $targetedVideoContentBundleIds = NULL, $excludedVideoContentBundleIds = NULL, $targetedContentMetadata = NULL, $excludedContentMetadata = NULL) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + $this->targetedVideoContentBundleIds = $targetedVideoContentBundleIds; + $this->excludedVideoContentBundleIds = $excludedVideoContentBundleIds; + $this->targetedContentMetadata = $targetedContentMetadata; + $this->excludedContentMetadata = $excludedContentMetadata; + } +}} + +if (!class_exists("CreativePlaceholder", FALSE)) { +/** + * A {@code CreativePlaceholder} describes a slot that a creative is expected to + * fill. This is used primarily to help in forecasting, and also to validate + * that the correct creatives are associated with the line item. A + * {@code CreativePlaceholder} must contain a size, and it can optionally + * contain companions. Companions are only valid if the line item's environment + * type is {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativePlaceholder { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $companions; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $expectedCreativeCount; + + /** + * @access public + * @var tnsCreativeSizeType + */ + public $creativeSizeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativePlaceholder"; + } + + public function __construct($size = NULL, $companions = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $id = NULL, $expectedCreativeCount = NULL, $creativeSizeType = NULL) { + $this->size = $size; + $this->companions = $companions; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->id = $id; + $this->expectedCreativeCount = $expectedCreativeCount; + $this->creativeSizeType = $creativeSizeType; + } +}} + +if (!class_exists("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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("CustomCriteriaNode", FALSE)) { +/** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaNode { + /** + * @access public + * @var string + */ + public $CustomCriteriaNodeType; + + private $_parameterMap = array ( + "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaNode"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("Date", FALSE)) { +/** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DayPart", FALSE)) { +/** + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPart { + /** + * @access public + * @var tnsDayOfWeek + */ + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPart"; + } + + public function __construct($dayOfWeek = NULL, $startTime = NULL, $endTime = NULL) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; + } +}} + +if (!class_exists("DayPartTargeting", FALSE)) { +/** + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargeting { + /** + * @access public + * @var DayPart[] + */ + public $dayParts; + + /** + * @access public + * @var tnsDeliveryTimeZone + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargeting"; + } + + public function __construct($dayParts = NULL, $timeZone = NULL) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("DayPartTargetingError", FALSE)) { +/** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargetingError extends ApiError { + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError"; + } + + 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("DeliveryData", FALSE)) { +/** + * Holds the number of clicks or impressions, determined by + * {@link LineItem#costType}, delivered for a single line item for the + * last 7 days + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryData { + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryData"; + } + + public function __construct($units = NULL) { + $this->units = $units; + } +}} + +if (!class_exists("DeliveryIndicator", FALSE)) { +/** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryIndicator { + /** + * @access public + * @var double + */ + public $expectedDeliveryPercentage; + + /** + * @access public + * @var double + */ + public $actualDeliveryPercentage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryIndicator"; + } + + public function __construct($expectedDeliveryPercentage = NULL, $actualDeliveryPercentage = NULL) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } +}} + +if (!class_exists("DeviceCapabilityTargeting", FALSE)) { +/** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapabilityTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapabilityTargeting"; + } + + public function __construct($targetedDeviceCapabilities = NULL, $excludedDeviceCapabilities = NULL) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } +}} + +if (!class_exists("DeviceCategoryTargeting", FALSE)) { +/** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategoryTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategoryTargeting"; + } + + public function __construct($targetedDeviceCategories = NULL, $excludedDeviceCategories = NULL) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } +}} + +if (!class_exists("DeviceManufacturerTargeting", FALSE)) { +/** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturerTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturerTargeting"; + } + + public function __construct($isTargeted = NULL, $deviceManufacturers = NULL) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FrequencyCap", FALSE)) { +/** + * Represents a limit on the number of times a single viewer can be exposed to + * the same {@link LineItem} in a specified time period. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCap { + /** + * @access public + * @var integer + */ + public $maxImpressions; + + /** + * @access public + * @var integer + */ + public $numTimeUnits; + + /** + * @access public + * @var tnsTimeUnit + */ + public $timeUnit; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCap"; + } + + public function __construct($maxImpressions = NULL, $numTimeUnits = NULL, $timeUnit = NULL) { + $this->maxImpressions = $maxImpressions; + $this->numTimeUnits = $numTimeUnits; + $this->timeUnit = $timeUnit; + } +}} + +if (!class_exists("FrequencyCapError", FALSE)) { +/** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapError extends ApiError { + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError"; + } + + 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("GenericTargetingError", FALSE)) { +/** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingError extends ApiError { + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError"; + } + + 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("GeoTargeting", FALSE)) { +/** + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

      + * The following rules apply for geographical targeting: + *

      + *
        + *
      • You cannot target and exclude the same location
      • + *
      • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
      • + *
      • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
      • + *
      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargeting { + /** + * @access public + * @var Location[] + */ + public $targetedLocations; + + /** + * @access public + * @var Location[] + */ + public $excludedLocations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargeting"; + } + + public function __construct($targetedLocations = NULL, $excludedLocations = NULL) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; + } +}} + +if (!class_exists("GeoTargetingError", FALSE)) { +/** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingError extends ApiError { + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InventoryTargeting", FALSE)) { +/** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargeting { + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargeting"; + } + + public function __construct($targetedAdUnits = NULL, $excludedAdUnits = NULL, $targetedPlacementIds = NULL) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } +}} + +if (!class_exists("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("DfpLocation", FALSE)) { +/** + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpLocation { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * @access public + * @var string + */ + public $LocationType; + + private $_parameterMap = array ( + "Location.Type" => "LocationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Location"; + } + + public function __construct($id = NULL, $type = NULL, $canonicalParentId = NULL, $displayName = NULL, $LocationType = NULL) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + $this->LocationType = $LocationType; + } +}} + +if (!class_exists("MobileCarrierTargeting", FALSE)) { +/** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrierTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrierTargeting"; + } + + public function __construct($isTargeted = NULL, $mobileCarriers = NULL) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; + } +}} + +if (!class_exists("MobileDeviceSubmodelTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodelTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodelTargeting"; + } + + public function __construct($targetedMobileDeviceSubmodels = NULL, $excludedMobileDeviceSubmodels = NULL) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } +}} + +if (!class_exists("MobileDeviceTargeting", FALSE)) { +/** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceTargeting"; + } + + public function __construct($targetedMobileDevices = NULL, $excludedMobileDevices = NULL) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } +}} + +if (!class_exists("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OperatingSystemTargeting", FALSE)) { +/** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemTargeting { + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemTargeting"; + } + + public function __construct($isTargeted = NULL, $operatingSystems = NULL) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } +}} + +if (!class_exists("OperatingSystemVersionTargeting", FALSE)) { +/** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersionTargeting { + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersionTargeting"; + } + + public function __construct($targetedOperatingSystemVersions = NULL, $excludedOperatingSystemVersions = NULL) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PrecisionError", FALSE)) { +/** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PrecisionError extends ApiError { + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalError extends ApiError { + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError"; + } + + 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("ProposalLineItemAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemAction { + /** + * @access public + * @var string + */ + public $ProposalLineItemActionType; + + private $_parameterMap = array ( + "ProposalLineItemAction.Type" => "ProposalLineItemActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemAction"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("ProposalLineItemActionError", FALSE)) { +/** + * Lists all errors for executing operations on proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemActionError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemActionError"; + } + + 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("ProposalLineItem", FALSE)) { +/** + * A {@code ProposalLineItem} is an instance of sales {@link Product}. It belongs to + * a {@link Proposal} and is created according to a {@link Product} and + * {@link RateCard}. When the proposal is turned into an {@link Order}, this object is + * turned into a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItem { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var string + */ + public $productId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsCostAdjustment + */ + public $costAdjustment; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var integer + */ + public $unitsBought; + + /** + * @access public + * @var integer + */ + public $unitsBoughtBuffer; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var integer + */ + public $dfpLineItemId; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $lineItemPriority; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var ProposalLineItemPremium[] + */ + public $premiums; + + /** + * @access public + * @var Money + */ + public $baseRate; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var tnsComputedStatus + */ + public $computedStatus; + + /** + * @access public + * @var tnsBillingCap + */ + public $billingCap; + + /** + * @access public + * @var tnsBillingSchedule + */ + public $billingSchedule; + + /** + * @access public + * @var tnsBillingSource + */ + public $billingSource; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItem"; + } + + public function __construct($id = NULL, $proposalId = NULL, $rateCardId = NULL, $productId = NULL, $name = NULL, $startDateTime = NULL, $endDateTime = NULL, $notes = NULL, $costAdjustment = NULL, $isArchived = NULL, $unitsBought = NULL, $unitsBoughtBuffer = NULL, $deliveryRateType = NULL, $roadblockingType = NULL, $companionDeliveryOption = NULL, $creativeRotationType = NULL, $frequencyCaps = NULL, $dfpLineItemId = NULL, $lineItemType = NULL, $lineItemPriority = NULL, $rateType = NULL, $creativePlaceholders = NULL, $targeting = NULL, $customFieldValues = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $premiums = NULL, $baseRate = NULL, $costPerUnit = NULL, $cost = NULL, $deliveryIndicator = NULL, $deliveryData = NULL, $computedStatus = NULL, $billingCap = NULL, $billingSchedule = NULL, $billingSource = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->proposalId = $proposalId; + $this->rateCardId = $rateCardId; + $this->productId = $productId; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->notes = $notes; + $this->costAdjustment = $costAdjustment; + $this->isArchived = $isArchived; + $this->unitsBought = $unitsBought; + $this->unitsBoughtBuffer = $unitsBoughtBuffer; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativeRotationType = $creativeRotationType; + $this->frequencyCaps = $frequencyCaps; + $this->dfpLineItemId = $dfpLineItemId; + $this->lineItemType = $lineItemType; + $this->lineItemPriority = $lineItemPriority; + $this->rateType = $rateType; + $this->creativePlaceholders = $creativePlaceholders; + $this->targeting = $targeting; + $this->customFieldValues = $customFieldValues; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->premiums = $premiums; + $this->baseRate = $baseRate; + $this->costPerUnit = $costPerUnit; + $this->cost = $cost; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->computedStatus = $computedStatus; + $this->billingCap = $billingCap; + $this->billingSchedule = $billingSchedule; + $this->billingSource = $billingSource; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("ProposalLineItemError", FALSE)) { +/** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError"; + } + + 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("ProposalLineItemPage", FALSE)) { +/** + * Captures a page of {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemPage { + /** + * @access public + * @var ProposalLineItem[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ProposalLineItemPremium", FALSE)) { +/** + * Represents the status of triggered {@link RateCardCustomization} premiums. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemPremium { + /** + * @access public + * @var integer + */ + public $rateCardCustomizationId; + + /** + * @access public + * @var tnsProposalLineItemPremiumStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPremium"; + } + + public function __construct($rateCardCustomizationId = NULL, $status = NULL) { + $this->rateCardCustomizationId = $rateCardCustomizationId; + $this->status = $status; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Targeting", FALSE)) { +/** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Targeting { + /** + * @access public + * @var GeoTargeting + */ + public $geoTargeting; + + /** + * @access public + * @var InventoryTargeting + */ + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Targeting"; + } + + public function __construct($geoTargeting = NULL, $inventoryTargeting = NULL, $dayPartTargeting = NULL, $technologyTargeting = NULL, $customTargeting = NULL, $userDomainTargeting = NULL, $contentTargeting = NULL, $videoPositionTargeting = NULL) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("Technology", FALSE)) { +/** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Technology { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $TechnologyType; + + private $_parameterMap = array ( + "Technology.Type" => "TechnologyType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Technology"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("TechnologyTargetingError", FALSE)) { +/** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingError extends ApiError { + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError"; + } + + 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("TimeOfDay", FALSE)) { +/** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeOfDay { + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeOfDay"; + } + + public function __construct($hour = NULL, $minute = NULL) { + $this->hour = $hour; + $this->minute = $minute; + } +}} + +if (!class_exists("UnarchiveProposalLineItems", FALSE)) { +/** + * The action used for unarchiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnarchiveProposalLineItems extends ProposalLineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveProposalLineItems"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + parent::__construct(); + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainTargeting", FALSE)) { +/** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargeting { + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargeting"; + } + + public function __construct($domains = NULL, $targeted = NULL) { + $this->domains = $domains; + $this->targeted = $targeted; + } +}} + +if (!class_exists("UserDomainTargetingError", FALSE)) { +/** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingError extends ApiError { + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("VideoPosition", FALSE)) { +/** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPosition { + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition"; + } + + public function __construct($positionType = NULL, $midrollIndex = NULL) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } +}} + +if (!class_exists("VideoPositionTargeting", FALSE)) { +/** + * Represents positions within and around a video where ads can be targeted to. + *

      + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionTargeting { + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTargeting"; + } + + public function __construct($targetedPositions = NULL) { + $this->targetedPositions = $targetedPositions; + } +}} + +if (!class_exists("VideoPositionWithinPod", FALSE)) { +/** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionWithinPod { + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionWithinPod"; + } + + public function __construct($index = NULL) { + $this->index = $index; + } +}} + +if (!class_exists("VideoPositionTarget", FALSE)) { +/** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionTarget { + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPositionTarget"; + } + + public function __construct($videoPosition = NULL, $videoBumperType = NULL, $videoPositionWithinPod = NULL) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingCap", FALSE)) { +/** + * Determines how the revenue amount will be capped for each billing month. This cannot be used when + * {@link BillingSource} is {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingCap { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingCap"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSchedule", FALSE)) { +/** + * Determines how much to bill in each billing cycle when a proposal is charged based on the + * contracted value. This can only be used when {@link BillingSource} is + * {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingSchedule { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSchedule"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSource", FALSE)) { +/** + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CompanionDeliveryOption", FALSE)) { +/** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CompanionDeliveryOption { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CompanionDeliveryOption"; + } + + public function __construct() { + } +}} + +if (!class_exists("ComputedStatus", FALSE)) { +/** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ComputedStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ComputedStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostAdjustment", FALSE)) { +/** + * Describes the cost adjustment of {@link ProposalLineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CostAdjustment { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostAdjustment"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeRotationType", FALSE)) { +/** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeRotationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeRotationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeSizeType", FALSE)) { +/** + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeSizeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeSizeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomCriteriaSetLogicalOperator", FALSE)) { +/** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSetLogicalOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet.LogicalOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", FALSE)) { +/** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteriaComparisonOperator { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria.ComparisonOperator"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayOfWeek", FALSE)) { +/** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayOfWeek { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayOfWeek"; + } + + public function __construct() { + } +}} + +if (!class_exists("DayPartTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DayPartTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DayPartTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryTimeZone", FALSE)) { +/** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryTimeZone { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryTimeZone"; + } + + public function __construct() { + } +}} + +if (!class_exists("DeliveryRateType", FALSE)) { +/** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeliveryRateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeliveryRateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FrequencyCapErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GenericTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GenericTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GenericTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("GeoTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeoTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeoTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemType", FALSE)) { +/** + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemType"; + } + + public function __construct() { + } +}} + +if (!class_exists("MinuteOfHour", FALSE)) { +/** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MinuteOfHour { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MinuteOfHour"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PrecisionErrorReason", FALSE)) { +/** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PrecisionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemPremiumStatus", FALSE)) { +/** + * Status of the premium triggered by a proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemPremiumStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemPremiumStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RoadblockingType", FALSE)) { +/** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RoadblockingType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RoadblockingType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TechnologyTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TechnologyTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TechnologyTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TimeUnit", FALSE)) { +/** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TimeUnit { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TimeUnit"; + } + + public function __construct() { + } +}} + +if (!class_exists("UserDomainTargetingErrorReason", FALSE)) { +/** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoBumperType", FALSE)) { +/** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoBumperType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoBumperType"; + } + + public function __construct() { + } +}} + +if (!class_exists("VideoPositionType", FALSE)) { +/** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class VideoPositionType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "VideoPosition.Type"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProposalLineItem", FALSE)) { +/** + * Creates a new {@link ProposalLineItem}. + * + * The following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItem the proposal line item to create + * @return the created proposal line item with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProposalLineItem { + /** + * @access public + * @var ProposalLineItem + */ + public $proposalLineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItem = NULL) { + $this->proposalLineItem = $proposalLineItem; + } +}} + +if (!class_exists("createProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProposalLineItems", FALSE)) { +/** + * Creates new {@link ProposalLineItem} objects. + * + * For each proposal line item, the following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItems the proposal line items to create + * @return the created proposal line items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProposalLineItems { + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItems = NULL) { + $this->proposalLineItems = $proposalLineItems; + } +}} + +if (!class_exists("createProposalLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProposalLineItemsResponse { + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalLineItem", FALSE)) { +/** + * Returns the {@link ProposalLineItem} uniquely identified by the given ID. + * + * @param proposalLineItemId the ID of the proposal line item, which must already exist + * @return the proposal line item uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProposalLineItem { + /** + * @access public + * @var integer + */ + public $proposalLineItemId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItemId = NULL) { + $this->proposalLineItemId = $proposalLineItemId; + } +}} + +if (!class_exists("getProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalLineItemsByStatement", FALSE)) { +/** + * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProposalLineItem#id}
      {@code name}{@link ProposalLineItem#name}
      {@code proposalId}{@link ProposalLineItem#proposalId}
      {@code isArchived}{@link ProposalLineItem#isArchived}
      {@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposal line items + * @return the proposal line items that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProposalLineItemsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getProposalLineItemsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProposalLineItemsByStatementResponse { + /** + * @access public + * @var ProposalLineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProposalLineItemAction", FALSE)) { +/** + * Performs actions on {@link ProposalLineItem} objects that match + * the given {@link Statement#query}. + * + * @param proposalLineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of + * proposal line items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performProposalLineItemAction { + /** + * @access public + * @var ProposalLineItemAction + */ + public $proposalLineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItemAction = NULL, $filterStatement = NULL) { + $this->proposalLineItemAction = $proposalLineItemAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProposalLineItemActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performProposalLineItemActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposalLineItem", FALSE)) { +/** + * Updates the specified {@link ProposalLineItem}. + * + * @param proposalLineItem the proposal line item to update + * @return the updated proposal line item + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProposalLineItem { + /** + * @access public + * @var ProposalLineItem + */ + public $proposalLineItem; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItem = NULL) { + $this->proposalLineItem = $proposalLineItem; + } +}} + +if (!class_exists("updateProposalLineItemResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProposalLineItemResponse { + /** + * @access public + * @var ProposalLineItem + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposalLineItems", FALSE)) { +/** + * Updates the specified {@link ProposalLineItem} objects. + * + * @param proposalLineItems the proposal line items to update + * @return the updated proposal line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProposalLineItems { + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalLineItems = NULL) { + $this->proposalLineItems = $proposalLineItems; + } +}} + +if (!class_exists("updateProposalLineItemsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProposalLineItemsResponse { + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProposalLineItems", FALSE)) { +/** + * The action used for archiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveProposalLineItems extends ProposalLineItemAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProposalLineItems"; + } + + public function __construct($ProposalLineItemActionType = NULL) { + parent::__construct(); + $this->ProposalLineItemActionType = $ProposalLineItemActionType; + } +}} + +if (!class_exists("BandwidthGroup", FALSE)) { +/** + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthGroup extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthGroup"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("Browser", FALSE)) { +/** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Browser extends Technology { + /** + * @access public + * @var string + */ + public $majorVersion; + + /** + * @access public + * @var string + */ + public $minorVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Browser"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("BrowserLanguage", FALSE)) { +/** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguage extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguage"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("CustomCriteriaSet", FALSE)) { +/** + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaSet extends CustomCriteriaNode { + /** + * @access public + * @var tnsCustomCriteriaSetLogicalOperator + */ + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaSet"; + } + + public function __construct($logicalOperator = NULL, $children = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("CustomCriteriaLeaf", FALSE)) { +/** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteriaLeaf extends CustomCriteriaNode { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteriaLeaf"; + } + + public function __construct($CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("AudienceSegmentCriteria", FALSE)) { +/** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AudienceSegmentCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AudienceSegmentCriteria"; + } + + public function __construct($operator = NULL, $audienceSegmentIds = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeviceCapability", FALSE)) { +/** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCapability extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCapability"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceCategory", FALSE)) { +/** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceCategory extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceCategory"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("DeviceManufacturer", FALSE)) { +/** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeviceManufacturer extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeviceManufacturer"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileCarrier", FALSE)) { +/** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileCarrier extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileCarrier"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDevice", FALSE)) { +/** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDevice extends Technology { + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDevice"; + } + + public function __construct($manufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("MobileDeviceSubmodel", FALSE)) { +/** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class MobileDeviceSubmodel extends Technology { + /** + * @access public + * @var integer + */ + public $mobileDeviceCriterionId; + + /** + * @access public + * @var integer + */ + public $deviceManufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "MobileDeviceSubmodel"; + } + + public function __construct($mobileDeviceCriterionId = NULL, $deviceManufacturerCriterionId = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystem", FALSE)) { +/** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystem extends Technology { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystem"; + } + + public function __construct($id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("OperatingSystemVersion", FALSE)) { +/** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemVersion extends Technology { + /** + * @access public + * @var integer + */ + public $majorVersion; + + /** + * @access public + * @var integer + */ + public $minorVersion; + + /** + * @access public + * @var integer + */ + public $microVersion; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemVersion"; + } + + public function __construct($majorVersion = NULL, $minorVersion = NULL, $microVersion = NULL, $id = NULL, $name = NULL, $TechnologyType = NULL) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + $this->TechnologyType = $TechnologyType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("CustomCriteria", FALSE)) { +/** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomCriteria extends CustomCriteriaLeaf { + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomCriteria"; + } + + public function __construct($keyId = NULL, $valueIds = NULL, $operator = NULL, $CustomCriteriaNodeType = NULL) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + } +}} + +if (!class_exists("ProposalLineItemService", FALSE)) { +/** + * ProposalLineItemService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ProposalLineItemService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProposalLineItems" => "ArchiveProposalLineItems", + "ProposalLineItemAction" => "ProposalLineItemAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "Technology" => "Technology", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentTargeting" => "ContentTargeting", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaNode" => "CustomCriteriaNode", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "PermissionError" => "PermissionError", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalError" => "ProposalError", + "ProposalLineItemActionError" => "ProposalLineItemActionError", + "ProposalLineItem" => "ProposalLineItem", + "ProposalLineItemError" => "ProposalLineItemError", + "ProposalLineItemPage" => "ProposalLineItemPage", + "ProposalLineItemPremium" => "ProposalLineItemPremium", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ReservationDetailsError" => "ReservationDetailsError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "UnarchiveProposalLineItems" => "UnarchiveProposalLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillingCap" => "BillingCap", + "BillingError.Reason" => "BillingErrorReason", + "BillingSchedule" => "BillingSchedule", + "BillingSource" => "BillingSource", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "ComputedStatus" => "ComputedStatus", + "CostAdjustment" => "CostAdjustment", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DayOfWeek" => "DayOfWeek", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryTimeZone" => "DeliveryTimeZone", + "DeliveryRateType" => "DeliveryRateType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProposalError.Reason" => "ProposalErrorReason", + "ProposalLineItemActionError.Reason" => "ProposalLineItemActionErrorReason", + "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", + "ProposalLineItemPremiumStatus" => "ProposalLineItemPremiumStatus", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createProposalLineItem" => "createProposalLineItem", + "createProposalLineItemResponse" => "createProposalLineItemResponse", + "createProposalLineItems" => "createProposalLineItems", + "createProposalLineItemsResponse" => "createProposalLineItemsResponse", + "getProposalLineItem" => "getProposalLineItem", + "getProposalLineItemResponse" => "getProposalLineItemResponse", + "getProposalLineItemsByStatement" => "getProposalLineItemsByStatement", + "getProposalLineItemsByStatementResponse" => "getProposalLineItemsByStatementResponse", + "performProposalLineItemAction" => "performProposalLineItemAction", + "performProposalLineItemActionResponse" => "performProposalLineItemActionResponse", + "updateProposalLineItem" => "updateProposalLineItem", + "updateProposalLineItemResponse" => "updateProposalLineItemResponse", + "updateProposalLineItems" => "updateProposalLineItems", + "updateProposalLineItemsResponse" => "updateProposalLineItemsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ProposalLineItemService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProposalLineItemService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProposalLineItemService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link ProposalLineItem}. + * + * The following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItem the proposal line item to create + * @return the created proposal line item with its ID filled in + */ + public function createProposalLineItem($proposalLineItem) { + $arg = new createProposalLineItem($proposalLineItem); + $result = $this->__soapCall("createProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link ProposalLineItem} objects. + * + * For each proposal line item, the following fields are required: + *
        + *
      • {@link ProposalLineItem#proposalId}
      • + *
      • {@link ProposalLineItem#rateCardId}
      • + *
      • {@link ProposalLineItem#productId}
      • + *
      • {@link ProposalLineItem#name}
      • + *
      • {@link ProposalLineItem#startDateTime}
      • + *
      • {@link ProposalLineItem#endDateTime}
      • + *
      + * + * @param proposalLineItems the proposal line items to create + * @return the created proposal line items with their IDs filled in + */ + public function createProposalLineItems($proposalLineItems) { + $arg = new createProposalLineItems($proposalLineItems); + $result = $this->__soapCall("createProposalLineItems", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ProposalLineItem} uniquely identified by the given ID. + * + * @param proposalLineItemId the ID of the proposal line item, which must already exist + * @return the proposal line item uniquely identified by the given ID + */ + public function getProposalLineItem($proposalLineItemId) { + $arg = new getProposalLineItem($proposalLineItemId); + $result = $this->__soapCall("getProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ProposalLineItem#id}
      {@code name}{@link ProposalLineItem#name}
      {@code proposalId}{@link ProposalLineItem#proposalId}
      {@code isArchived}{@link ProposalLineItem#isArchived}
      {@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposal line items + * @return the proposal line items that match the given filter + */ + public function getProposalLineItemsByStatement($filterStatement) { + $arg = new getProposalLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getProposalLineItemsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link ProposalLineItem} objects that match + * the given {@link Statement#query}. + * + * @param proposalLineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of + * proposal line items + * @return the result of the action performed + */ + public function performProposalLineItemAction($proposalLineItemAction, $filterStatement) { + $arg = new performProposalLineItemAction($proposalLineItemAction, $filterStatement); + $result = $this->__soapCall("performProposalLineItemAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProposalLineItem}. + * + * @param proposalLineItem the proposal line item to update + * @return the updated proposal line item + */ + public function updateProposalLineItem($proposalLineItem) { + $arg = new updateProposalLineItem($proposalLineItem); + $result = $this->__soapCall("updateProposalLineItem", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ProposalLineItem} objects. + * + * @param proposalLineItems the proposal line items to update + * @return the updated proposal line items + */ + public function updateProposalLineItems($proposalLineItems) { + $arg = new updateProposalLineItems($proposalLineItems); + $result = $this->__soapCall("updateProposalLineItems", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ProposalService.php b/src/Google/Api/Ads/Dfp/v201311/ProposalService.php new file mode 100755 index 000000000..9f72093a6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ProposalService.php @@ -0,0 +1,4940 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("AppliedLabel", FALSE)) { +/** + * Represents a {@link Label} that can be applied to an entity. To negate an + * inherited label, create an {@code AppliedLabel} with {@code labelId} as the + * inherited label's ID and {@code isNegated} set to true. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AppliedLabel { + /** + * @access public + * @var integer + */ + public $labelId; + + /** + * @access public + * @var boolean + */ + public $isNegated; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AppliedLabel"; + } + + public function __construct($labelId = NULL, $isNegated = NULL) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("BillingError", FALSE)) { +/** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingError extends ApiError { + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PrecisionError", FALSE)) { +/** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PrecisionError extends ApiError { + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("ProposalAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalAction { + /** + * @access public + * @var string + */ + public $ProposalActionType; + + private $_parameterMap = array ( + "ProposalAction.Type" => "ProposalActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalAction"; + } + + public function __construct($ProposalActionType = NULL) { + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("ProposalActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalActionError extends ApiError { + /** + * @access public + * @var tnsProposalActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalActionError"; + } + + 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("ProposalCompanyAssociation", FALSE)) { +/** + * A {@code ProposalCompanyAssociation} represents a {@link Company} associated with the + * {@link Proposal} and a set of {@link Contact} objects belonging to the company. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalCompanyAssociation { + /** + * @access public + * @var integer + */ + public $companyId; + + /** + * @access public + * @var tnsProposalCompanyAssociationType + */ + public $type; + + /** + * @access public + * @var integer[] + */ + public $contactIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalCompanyAssociation"; + } + + public function __construct($companyId = NULL, $type = NULL, $contactIds = NULL) { + $this->companyId = $companyId; + $this->type = $type; + $this->contactIds = $contactIds; + } +}} + +if (!class_exists("Proposal", FALSE)) { +/** + * A {@code Proposal} represents an agreement between an interactive + * advertising seller and a buyer that specifies the details of an + * advertising campaign. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Proposal { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $dfpOrderId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var tnsPricingModel + */ + public $pricingModel; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var tnsProposalStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var ProposalCompanyAssociation + */ + public $advertiser; + + /** + * @access public + * @var ProposalCompanyAssociation[] + */ + public $agencies; + + /** + * @access public + * @var integer + */ + public $probabilityToClose; + + /** + * @access public + * @var tnsBillingCap + */ + public $billingCap; + + /** + * @access public + * @var tnsBillingSchedule + */ + public $billingSchedule; + + /** + * @access public + * @var tnsBillingSource + */ + public $billingSource; + + /** + * @access public + * @var string + */ + public $poNumber; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var SalespersonSplit + */ + public $primarySalesperson; + + /** + * @access public + * @var SalespersonSplit[] + */ + public $secondarySalespeople; + + /** + * @access public + * @var integer[] + */ + public $salesPlannerIds; + + /** + * @access public + * @var integer + */ + public $primaryTraffickerId; + + /** + * @access public + * @var integer[] + */ + public $secondaryTraffickerIds; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var integer + */ + public $advertiserDiscount; + + /** + * @access public + * @var integer + */ + public $proposalDiscount; + + /** + * @access public + * @var Money + */ + public $additionalAdjustment; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $exchangeRate; + + /** + * @access public + * @var boolean + */ + public $refreshExchangeRate; + + /** + * @access public + * @var integer + */ + public $agencyCommission; + + /** + * @access public + * @var integer + */ + public $valueAddedTax; + + /** + * @access public + * @var tnsProposalApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Proposal"; + } + + public function __construct($id = NULL, $dfpOrderId = NULL, $name = NULL, $pricingModel = NULL, $startDateTime = NULL, $endDateTime = NULL, $status = NULL, $isArchived = NULL, $advertiser = NULL, $agencies = NULL, $probabilityToClose = NULL, $billingCap = NULL, $billingSchedule = NULL, $billingSource = NULL, $poNumber = NULL, $notes = NULL, $budget = NULL, $primarySalesperson = NULL, $secondarySalespeople = NULL, $salesPlannerIds = NULL, $primaryTraffickerId = NULL, $secondaryTraffickerIds = NULL, $appliedTeamIds = NULL, $customFieldValues = NULL, $appliedLabels = NULL, $effectiveAppliedLabels = NULL, $advertiserDiscount = NULL, $proposalDiscount = NULL, $additionalAdjustment = NULL, $currencyCode = NULL, $exchangeRate = NULL, $refreshExchangeRate = NULL, $agencyCommission = NULL, $valueAddedTax = NULL, $approvalStatus = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->dfpOrderId = $dfpOrderId; + $this->name = $name; + $this->pricingModel = $pricingModel; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->status = $status; + $this->isArchived = $isArchived; + $this->advertiser = $advertiser; + $this->agencies = $agencies; + $this->probabilityToClose = $probabilityToClose; + $this->billingCap = $billingCap; + $this->billingSchedule = $billingSchedule; + $this->billingSource = $billingSource; + $this->poNumber = $poNumber; + $this->notes = $notes; + $this->budget = $budget; + $this->primarySalesperson = $primarySalesperson; + $this->secondarySalespeople = $secondarySalespeople; + $this->salesPlannerIds = $salesPlannerIds; + $this->primaryTraffickerId = $primaryTraffickerId; + $this->secondaryTraffickerIds = $secondaryTraffickerIds; + $this->appliedTeamIds = $appliedTeamIds; + $this->customFieldValues = $customFieldValues; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->advertiserDiscount = $advertiserDiscount; + $this->proposalDiscount = $proposalDiscount; + $this->additionalAdjustment = $additionalAdjustment; + $this->currencyCode = $currencyCode; + $this->exchangeRate = $exchangeRate; + $this->refreshExchangeRate = $refreshExchangeRate; + $this->agencyCommission = $agencyCommission; + $this->valueAddedTax = $valueAddedTax; + $this->approvalStatus = $approvalStatus; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("ProposalError", FALSE)) { +/** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalError extends ApiError { + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError"; + } + + 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("ProposalLineItemError", FALSE)) { +/** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemError extends ApiError { + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError"; + } + + 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("ProposalPage", FALSE)) { +/** + * Captures a page of {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Proposal[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RetractProposals", FALSE)) { +/** + * The action used for retracting {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RetractProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RetractProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("SalespersonSplit", FALSE)) { +/** + * A {@code SalespersonSplit} represents a salesperson and his/her split. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SalespersonSplit { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * @access public + * @var integer + */ + public $split; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SalespersonSplit"; + } + + public function __construct($userId = NULL, $split = NULL) { + $this->userId = $userId; + $this->split = $split; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SubmitProposalsForApproval", FALSE)) { +/** + * The action used for submitting {@link Proposal} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SubmitProposalsForApproval extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitProposalsForApproval"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UnarchiveProposals", FALSE)) { +/** + * The action used for unarchiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnarchiveProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnarchiveProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowActionError", FALSE)) { +/** + * Lists all errors associated with performing actions within {@link WorkflowAction}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowActionError extends ApiError { + /** + * @access public + * @var tnsWorkflowActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionError"; + } + + 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("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingCap", FALSE)) { +/** + * Determines how the revenue amount will be capped for each billing month. This cannot be used when + * {@link BillingSource} is {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingCap { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingCap"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSchedule", FALSE)) { +/** + * Determines how much to bill in each billing cycle when a proposal is charged based on the + * contracted value. This can only be used when {@link BillingSource} is + * {@link BillingSource#CONTRACTED}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingSchedule { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSchedule"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillingSource", FALSE)) { +/** + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillingSource { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillingSource"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalApprovalStatus", FALSE)) { +/** + * Describes the {@link Proposal} status in terms of pending approvals of active user. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalApprovalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalApprovalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PrecisionErrorReason", FALSE)) { +/** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PrecisionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PrecisionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PricingModel", FALSE)) { +/** + * The option to specify whether the proposal uses the Net or Gross pricing model. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PricingModel { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PricingModel"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalCompanyAssociationType", FALSE)) { +/** + * Describes the type of a {@link Company} associated with a {@link Proposal}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalCompanyAssociationType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalCompanyAssociationType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalLineItemErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalLineItemErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalLineItemError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProposalStatus", FALSE)) { +/** + * Describes the {@link Proposal} status. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProposalStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProposalStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("WorkflowActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createProposal", FALSE)) { +/** + * Creates a new {@link Proposal}. + * + * The following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposal the proposal to create + * @return the created proposal with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProposal { + /** + * @access public + * @var Proposal + */ + public $proposal; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposal = NULL) { + $this->proposal = $proposal; + } +}} + +if (!class_exists("createProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createProposals", FALSE)) { +/** + * Creates new {@link Proposal} objects. + * + * For each proposal, the following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposals the proposals to create + * @return the created proposals with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProposals { + /** + * @access public + * @var Proposal[] + */ + public $proposals; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposals = NULL) { + $this->proposals = $proposals; + } +}} + +if (!class_exists("createProposalsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createProposalsResponse { + /** + * @access public + * @var Proposal[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposal", FALSE)) { +/** + * Returns the {@link Proposal} uniquely identified by the given ID. + * + * @param proposalId the ID of the proposal, which must already exist + * @return the proposal uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProposal { + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalId = NULL) { + $this->proposalId = $proposalId; + } +}} + +if (!class_exists("getProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getProposalsByStatement", FALSE)) { +/** + * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link Proposal#id}
      {@code name}{@link Proposal#name}
      {@code status}{@link Proposal#status}
      {@code isArchived}{@link Proposal#isArchived}
      {@code approvalStatus}{@link Proposal#approvalStatus}
      {@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposals + * @return the proposals that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProposalsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getProposalsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getProposalsByStatementResponse { + /** + * @access public + * @var ProposalPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performProposalAction", FALSE)) { +/** + * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. + * + * The following fields are also required when submitting proposals for approval: + *
        + *
      • {@link Proposal#advertiser}
      • + *
      • {@link Proposal#primarySalesperson}
      • + *
      • {@link Proposal#primaryTraffickerId}
      • + *
      + * + * @param proposalAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performProposalAction { + /** + * @access public + * @var ProposalAction + */ + public $proposalAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposalAction = NULL, $filterStatement = NULL) { + $this->proposalAction = $proposalAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performProposalActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performProposalActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposal", FALSE)) { +/** + * Updates the specified {@link Proposal}. + * + * @param proposal the proposal to update + * @return the updated proposal + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProposal { + /** + * @access public + * @var Proposal + */ + public $proposal; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposal = NULL) { + $this->proposal = $proposal; + } +}} + +if (!class_exists("updateProposalResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProposalResponse { + /** + * @access public + * @var Proposal + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateProposals", FALSE)) { +/** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProposals { + /** + * @access public + * @var Proposal[] + */ + public $proposals; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($proposals = NULL) { + $this->proposals = $proposals; + } +}} + +if (!class_exists("updateProposalsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateProposalsResponse { + /** + * @access public + * @var Proposal[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ArchiveProposals", FALSE)) { +/** + * The action used for archiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ArchiveProposals extends ProposalAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ArchiveProposals"; + } + + public function __construct($ProposalActionType = NULL) { + parent::__construct(); + $this->ProposalActionType = $ProposalActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ProposalService", FALSE)) { +/** + * ProposalService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ProposalService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "AppliedLabel" => "AppliedLabel", + "ArchiveProposals" => "ArchiveProposals", + "ProposalAction" => "ProposalAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemOperationError" => "LineItemOperationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalActionError" => "ProposalActionError", + "ProposalCompanyAssociation" => "ProposalCompanyAssociation", + "Proposal" => "Proposal", + "ProposalError" => "ProposalError", + "ProposalLineItemError" => "ProposalLineItemError", + "ProposalPage" => "ProposalPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RetractProposals" => "RetractProposals", + "SalespersonSplit" => "SalespersonSplit", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitProposalsForApproval" => "SubmitProposalsForApproval", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveProposals" => "UnarchiveProposals", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "WorkflowActionError" => "WorkflowActionError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillingCap" => "BillingCap", + "BillingError.Reason" => "BillingErrorReason", + "BillingSchedule" => "BillingSchedule", + "BillingSource" => "BillingSource", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "ProposalApprovalStatus" => "ProposalApprovalStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "PricingModel" => "PricingModel", + "ProductError.Reason" => "ProductErrorReason", + "ProposalActionError.Reason" => "ProposalActionErrorReason", + "ProposalCompanyAssociationType" => "ProposalCompanyAssociationType", + "ProposalError.Reason" => "ProposalErrorReason", + "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", + "ProposalStatus" => "ProposalStatus", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "createProposal" => "createProposal", + "createProposalResponse" => "createProposalResponse", + "createProposals" => "createProposals", + "createProposalsResponse" => "createProposalsResponse", + "getProposal" => "getProposal", + "getProposalResponse" => "getProposalResponse", + "getProposalsByStatement" => "getProposalsByStatement", + "getProposalsByStatementResponse" => "getProposalsByStatementResponse", + "performProposalAction" => "performProposalAction", + "performProposalActionResponse" => "performProposalActionResponse", + "updateProposal" => "updateProposal", + "updateProposalResponse" => "updateProposalResponse", + "updateProposals" => "updateProposals", + "updateProposalsResponse" => "updateProposalsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ProposalService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ProposalService::$classmap; + parent::__construct($wsdl, $options, $user, 'ProposalService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link Proposal}. + * + * The following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposal the proposal to create + * @return the created proposal with its ID filled in + */ + public function createProposal($proposal) { + $arg = new createProposal($proposal); + $result = $this->__soapCall("createProposal", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Proposal} objects. + * + * For each proposal, the following fields are required: + *
        + *
      • {@link Proposal#name}
      • + *
      + * + * @param proposals the proposals to create + * @return the created proposals with their IDs filled in + */ + public function createProposals($proposals) { + $arg = new createProposals($proposals); + $result = $this->__soapCall("createProposals", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Proposal} uniquely identified by the given ID. + * + * @param proposalId the ID of the proposal, which must already exist + * @return the proposal uniquely identified by the given ID + */ + public function getProposal($proposalId) { + $arg = new getProposal($proposalId); + $result = $this->__soapCall("getProposal", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link Proposal#id}
      {@code name}{@link Proposal#name}
      {@code status}{@link Proposal#status}
      {@code isArchived}{@link Proposal#isArchived}
      {@code approvalStatus}{@link Proposal#approvalStatus}
      {@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposals + * @return the proposals that match the given filter + */ + public function getProposalsByStatement($filterStatement) { + $arg = new getProposalsByStatement($filterStatement); + $result = $this->__soapCall("getProposalsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. + * + * The following fields are also required when submitting proposals for approval: + *
        + *
      • {@link Proposal#advertiser}
      • + *
      • {@link Proposal#primarySalesperson}
      • + *
      • {@link Proposal#primaryTraffickerId}
      • + *
      + * + * @param proposalAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the result of the action performed + */ + public function performProposalAction($proposalAction, $filterStatement) { + $arg = new performProposalAction($proposalAction, $filterStatement); + $result = $this->__soapCall("performProposalAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Proposal}. + * + * @param proposal the proposal to update + * @return the updated proposal + */ + public function updateProposal($proposal) { + $arg = new updateProposal($proposal); + $result = $this->__soapCall("updateProposal", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + */ + public function updateProposals($proposals) { + $arg = new updateProposals($proposals); + $result = $this->__soapCall("updateProposals", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php new file mode 100755 index 000000000..4f51b960a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php @@ -0,0 +1,3634 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ColumnType", FALSE)) { +/** + * Contains information about a column in a {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ColumnType { + /** + * @access public + * @var string + */ + public $labelName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ColumnType"; + } + + public function __construct($labelName = NULL) { + $this->labelName = $labelName; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CreativeError", FALSE)) { +/** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeError extends ApiError { + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("FileError", FALSE)) { +/** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FileError extends ApiError { + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("InvalidUrlError", FALSE)) { +/** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlError extends ApiError { + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError"; + } + + 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("InventoryTargetingError", FALSE)) { +/** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingError extends ApiError { + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError"; + } + + 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("InventoryUnitError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitError extends ApiError { + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError"; + } + + 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("LineItemFlightDateError", FALSE)) { +/** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemFlightDateError extends ApiError { + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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)) { +/** + * Caused by supplying a non-null value for an attribute that should be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("OrderActionError", FALSE)) { +/** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderActionError extends ApiError { + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError"; + } + + 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("OrderError", FALSE)) { +/** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderError extends ApiError { + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError"; + } + + 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("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RegExError", FALSE)) { +/** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RegExError extends ApiError { + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError"; + } + + 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("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("RequiredSizeError", FALSE)) { +/** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeError extends ApiError { + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError"; + } + + 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("ReservationDetailsError", FALSE)) { +/** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsError extends ApiError { + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError"; + } + + 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("ResultSet", FALSE)) { +/** + * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link + * Statement}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ResultSet { + /** + * @access public + * @var ColumnType[] + */ + public $columnTypes; + + /** + * @access public + * @var Row[] + */ + public $rows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ResultSet"; + } + + public function __construct($columnTypes = NULL, $rows = NULL) { + $this->columnTypes = $columnTypes; + $this->rows = $rows; + } +}} + +if (!class_exists("Row", FALSE)) { +/** + * Each {@link Row} object represents data about one entity in a + * {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Row { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Row"; + } + + public function __construct($values = NULL) { + $this->values = $values; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitAfcSizeErrorReason", FALSE)) { +/** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitAfcSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitCodeErrorReason", FALSE)) { +/** + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitCodeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AdUnitHierarchyErrorReason", FALSE)) { +/** + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitHierarchyErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CreativeErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CreativeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CreativeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FileErrorReason", FALSE)) { +/** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FileErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FileError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidUrlErrorReason", FALSE)) { +/** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidUrlErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidUrlError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InventoryUnitErrorReason", FALSE)) { +/** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InventoryUnitErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InventoryUnitError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemFlightDateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemFlightDateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemFlightDateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("OrderErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OrderErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OrderError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RegExErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RegExErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RegExError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredSizeErrorReason", FALSE)) { +/** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredSizeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredSizeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReservationDetailsErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReservationDetailsErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReservationDetailsError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("select", FALSE)) { +/** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class select { + /** + * @access public + * @var Statement + */ + public $selectStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($selectStatement = NULL) { + $this->selectStatement = $selectStatement; + } +}} + +if (!class_exists("selectResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class selectResponse { + /** + * @access public + * @var ResultSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("AdUnitAfcSizeError", FALSE)) { +/** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitAfcSizeError extends ApiError { + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitAfcSizeError"; + } + + 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("AdUnitCodeError", FALSE)) { +/** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitCodeError extends ApiError { + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitCodeError"; + } + + 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("AdUnitHierarchyError", FALSE)) { +/** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitHierarchyError extends ApiError { + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitHierarchyError"; + } + + 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("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("PublisherQueryLanguageService", FALSE)) { +/** + * PublisherQueryLanguageService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class PublisherQueryLanguageService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "ApiError" => "ApiError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "ColumnType" => "ColumnType", + "CommonError" => "CommonError", + "CreativeError" => "CreativeError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderActionError" => "OrderActionError", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResultSet" => "ResultSet", + "Row" => "Row", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "select" => "select", + "selectResponse" => "selectResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/PublisherQueryLanguageService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = PublisherQueryLanguageService::$classmap; + parent::__construct($wsdl, $options, $user, 'PublisherQueryLanguageService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter + */ + public function select($selectStatement) { + $arg = new select($selectStatement); + $result = $this->__soapCall("select", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php new file mode 100755 index 000000000..5cf3a849a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php @@ -0,0 +1,3579 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RateCardCustomizationAction", FALSE)) { +/** + * Represents the action that can be performed on {@link RateCardCustomization} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardCustomizationAction { + /** + * @access public + * @var string + */ + public $RateCardCustomizationActionType; + + private $_parameterMap = array ( + "RateCardCustomizationAction.Type" => "RateCardCustomizationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationAction"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("RateCardCustomization", FALSE)) { +/** + * A customization of a {@link RateCard} which could be applied to the line item + * and charges extra premiums. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardCustomization { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsRateCardCustomizationStatus + */ + public $status; + + /** + * @access public + * @var RateCardFeature + */ + public $rateCardFeature; + + /** + * @access public + * @var tnsRateCardCustomizationAdjustmentType + */ + public $adjustmentType; + + /** + * @access public + * @var integer + */ + public $adjustmentSize; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomization"; + } + + public function __construct($rateCardId = NULL, $id = NULL, $status = NULL, $rateCardFeature = NULL, $adjustmentType = NULL, $adjustmentSize = NULL, $rateType = NULL) { + $this->rateCardId = $rateCardId; + $this->id = $id; + $this->status = $status; + $this->rateCardFeature = $rateCardFeature; + $this->adjustmentType = $adjustmentType; + $this->adjustmentSize = $adjustmentSize; + $this->rateType = $rateType; + } +}} + +if (!class_exists("RateCardCustomizationError", FALSE)) { +/** + * An error having to do with {@link RateCardCustomization}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardCustomizationError extends ApiError { + /** + * @access public + * @var tnsRateCardCustomizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationError"; + } + + 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("RateCardCustomizationPage", FALSE)) { +/** + * Captures a page of {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardCustomizationPage { + /** + * @access public + * @var RateCardCustomization[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("RateCardFeature", FALSE)) { +/** + * The feature of a {@link RateCardCustomization} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardFeature { + /** + * @access public + * @var string + */ + public $RateCardFeatureType; + + private $_parameterMap = array ( + "RateCardFeature.Type" => "RateCardFeatureType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UnknownRateCardFeature", FALSE)) { +/** + * The {@link RateCardFeature} returned if the actual feature is not exposed by + * the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UnknownRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UnknownRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserDomainRateCardFeature", FALSE)) { +/** + * A rate customization applied to user domain targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserDomainRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserDomainRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardCustomizationAdjustmentType", FALSE)) { +/** + * Describes how to apply the adjustment to the base rate. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardCustomizationAdjustmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationAdjustmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardCustomizationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardCustomizationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardCustomizationStatus", FALSE)) { +/** + * The status of {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardCustomizationStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardCustomizationStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateType", FALSE)) { +/** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateType"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createRateCardCustomization", FALSE)) { +/** + * Creates a new {@link RateCardCustomization} object. + * + * @param rateCardCustomization the {@link RateCardCustomization} to be + * created + * @return the {@link RateCardCustomization} with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createRateCardCustomization { + /** + * @access public + * @var RateCardCustomization + */ + public $rateCardCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomization = NULL) { + $this->rateCardCustomization = $rateCardCustomization; + } +}} + +if (!class_exists("createRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createRateCardCustomizations", FALSE)) { +/** + * Creates a list of new {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be created + * @return the rate card customizations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createRateCardCustomizations { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rateCardCustomizations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizations = NULL) { + $this->rateCardCustomizations = $rateCardCustomizations; + } +}} + +if (!class_exists("createRateCardCustomizationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createRateCardCustomizationsResponse { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardCustomization", FALSE)) { +/** + * Returns the {@link RateCardCustomization} object uniquely identified by the + * given ID. + * + * @param rateCardCustomizationId the ID of the rate card customization, which + * must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getRateCardCustomization { + /** + * @access public + * @var integer + */ + public $rateCardCustomizationId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizationId = NULL) { + $this->rateCardCustomizationId = $rateCardCustomizationId; + } +}} + +if (!class_exists("getRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardCustomizationsByStatement", FALSE)) { +/** + * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} + * objects that satisfy the given {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link RateCardCustomization#rateCardId}
      {@code id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the rate card customizations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getRateCardCustomizationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getRateCardCustomizationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getRateCardCustomizationsByStatementResponse { + /** + * @access public + * @var RateCardCustomizationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performRateCardCustomizationAction", FALSE)) { +/** + * Performs actions on {@link RateCardCustomization} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardCustomizationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performRateCardCustomizationAction { + /** + * @access public + * @var RateCardCustomizationAction + */ + public $rateCardCustomizationAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizationAction = NULL, $filterStatement = NULL) { + $this->rateCardCustomizationAction = $rateCardCustomizationAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performRateCardCustomizationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performRateCardCustomizationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCardCustomization", FALSE)) { +/** + * Updates the specified {@link RateCardCustomization} object. + * + * @param rateCardCustomization the rate card customization to be updated + * @return the updated rate card customization + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateRateCardCustomization { + /** + * @access public + * @var RateCardCustomization + */ + public $rateCardCustomization; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomization = NULL) { + $this->rateCardCustomization = $rateCardCustomization; + } +}} + +if (!class_exists("updateRateCardCustomizationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateRateCardCustomizationResponse { + /** + * @access public + * @var RateCardCustomization + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCardCustomizations", FALSE)) { +/** + * Updates the specified {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be updated + * @return the updated rate card customizations + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateRateCardCustomizations { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rateCardCustomizations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardCustomizations = NULL) { + $this->rateCardCustomizations = $rateCardCustomizations; + } +}} + +if (!class_exists("updateRateCardCustomizationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateRateCardCustomizationsResponse { + /** + * @access public + * @var RateCardCustomization[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateRateCardCustomizations", FALSE)) { +/** + * The action used to activate {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateRateCardCustomizations extends RateCardCustomizationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateRateCardCustomizations"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + parent::__construct(); + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("AdUnitRateCardFeature", FALSE)) { +/** + * A rate customization applied to ad unit targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BandwidthRateCardFeature", FALSE)) { +/** + * A rate customization applied to bandwidth targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BandwidthRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BandwidthRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("BrowserRateCardFeature", FALSE)) { +/** + * A rate customization applied to browser targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("BrowserLanguageRateCardFeature", FALSE)) { +/** + * A rate customization applied to browser language targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BrowserLanguageRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BrowserLanguageRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("CustomTargetingRateCardFeature", FALSE)) { +/** + * A rate customization applied to custom criteria targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingRateCardFeature extends RateCardFeature { + /** + * @access public + * @var integer + */ + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingRateCardFeature"; + } + + public function __construct($customTargetingKeyId = NULL, $customTargetingValueId = NULL, $RateCardFeatureType = NULL) { + parent::__construct(); + $this->customTargetingKeyId = $customTargetingKeyId; + $this->customTargetingValueId = $customTargetingValueId; + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateRateCardCustomizations", FALSE)) { +/** + * The action used to deactivate {@link RateCardCustomization} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateRateCardCustomizations extends RateCardCustomizationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateRateCardCustomizations"; + } + + public function __construct($RateCardCustomizationActionType = NULL) { + parent::__construct(); + $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; + } +}} + +if (!class_exists("FrequencyCapRateCardFeature", FALSE)) { +/** + * A rate customization applied to frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FrequencyCapRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FrequencyCapRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("GeographyRateCardFeature", FALSE)) { +/** + * A rate customization applied to geography targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class GeographyRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "GeographyRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("OperatingSystemRateCardFeature", FALSE)) { +/** + * A rate customization applied to operating system targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class OperatingSystemRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OperatingSystemRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("PlacementRateCardFeature", FALSE)) { +/** + * A rate customization applied to placement targeting. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PlacementRateCardFeature extends RateCardFeature { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PlacementRateCardFeature"; + } + + public function __construct($RateCardFeatureType = NULL) { + parent::__construct(); + $this->RateCardFeatureType = $RateCardFeatureType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardCustomizationService", FALSE)) { +/** + * RateCardCustomizationService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class RateCardCustomizationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateRateCardCustomizations" => "ActivateRateCardCustomizations", + "RateCardCustomizationAction" => "RateCardCustomizationAction", + "AdUnitRateCardFeature" => "AdUnitRateCardFeature", + "RateCardFeature" => "RateCardFeature", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BandwidthRateCardFeature" => "BandwidthRateCardFeature", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "BrowserRateCardFeature" => "BrowserRateCardFeature", + "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateRateCardCustomizations" => "DeactivateRateCardCustomizations", + "FeatureError" => "FeatureError", + "FrequencyCapRateCardFeature" => "FrequencyCapRateCardFeature", + "GeographyRateCardFeature" => "GeographyRateCardFeature", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystemRateCardFeature" => "OperatingSystemRateCardFeature", + "PermissionError" => "PermissionError", + "PlacementRateCardFeature" => "PlacementRateCardFeature", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateCardCustomization" => "RateCardCustomization", + "RateCardCustomizationError" => "RateCardCustomizationError", + "RateCardCustomizationPage" => "RateCardCustomizationPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UnknownRateCardFeature" => "UnknownRateCardFeature", + "UpdateResult" => "UpdateResult", + "UserDomainRateCardFeature" => "UserDomainRateCardFeature", + "RateCardCustomizationAdjustmentType" => "RateCardCustomizationAdjustmentType", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateCardCustomizationError.Reason" => "RateCardCustomizationErrorReason", + "RateCardCustomizationStatus" => "RateCardCustomizationStatus", + "RateType" => "RateType", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createRateCardCustomization" => "createRateCardCustomization", + "createRateCardCustomizationResponse" => "createRateCardCustomizationResponse", + "createRateCardCustomizations" => "createRateCardCustomizations", + "createRateCardCustomizationsResponse" => "createRateCardCustomizationsResponse", + "getRateCardCustomization" => "getRateCardCustomization", + "getRateCardCustomizationResponse" => "getRateCardCustomizationResponse", + "getRateCardCustomizationsByStatement" => "getRateCardCustomizationsByStatement", + "getRateCardCustomizationsByStatementResponse" => "getRateCardCustomizationsByStatementResponse", + "performRateCardCustomizationAction" => "performRateCardCustomizationAction", + "performRateCardCustomizationActionResponse" => "performRateCardCustomizationActionResponse", + "updateRateCardCustomization" => "updateRateCardCustomization", + "updateRateCardCustomizationResponse" => "updateRateCardCustomizationResponse", + "updateRateCardCustomizations" => "updateRateCardCustomizations", + "updateRateCardCustomizationsResponse" => "updateRateCardCustomizationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/RateCardCustomizationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = RateCardCustomizationService::$classmap; + parent::__construct($wsdl, $options, $user, 'RateCardCustomizationService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link RateCardCustomization} object. + * + * @param rateCardCustomization the {@link RateCardCustomization} to be + * created + * @return the {@link RateCardCustomization} with its ID filled in + */ + public function createRateCardCustomization($rateCardCustomization) { + $arg = new createRateCardCustomization($rateCardCustomization); + $result = $this->__soapCall("createRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of new {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be created + * @return the rate card customizations with their IDs filled in + */ + public function createRateCardCustomizations($rateCardCustomizations) { + $arg = new createRateCardCustomizations($rateCardCustomizations); + $result = $this->__soapCall("createRateCardCustomizations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link RateCardCustomization} object uniquely identified by the + * given ID. + * + * @param rateCardCustomizationId the ID of the rate card customization, which + * must already exist. + */ + public function getRateCardCustomization($rateCardCustomizationId) { + $arg = new getRateCardCustomization($rateCardCustomizationId); + $result = $this->__soapCall("getRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} + * objects that satisfy the given {@link Statement#query}. + * + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code rateCardId}{@link RateCardCustomization#rateCardId}
      {@code id}{@link RateCardCustomization#id}
      {@code status}{@link RateCardCustomization#status}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the rate card customizations that match the given filter + */ + public function getRateCardCustomizationsByStatement($filterStatement) { + $arg = new getRateCardCustomizationsByStatement($filterStatement); + $result = $this->__soapCall("getRateCardCustomizationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link RateCardCustomization} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardCustomizationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate card customizations. + * @return the result of the action performed + */ + public function performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement) { + $arg = new performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement); + $result = $this->__soapCall("performRateCardCustomizationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCardCustomization} object. + * + * @param rateCardCustomization the rate card customization to be updated + * @return the updated rate card customization + */ + public function updateRateCardCustomization($rateCardCustomization) { + $arg = new updateRateCardCustomization($rateCardCustomization); + $result = $this->__soapCall("updateRateCardCustomization", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCardCustomization} objects. + * + * @param rateCardCustomizations the rate card customizations to be updated + * @return the updated rate card customizations + */ + public function updateRateCardCustomizations($rateCardCustomizations) { + $arg = new updateRateCardCustomizations($rateCardCustomizations); + $result = $this->__soapCall("updateRateCardCustomizations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/RateCardService.php b/src/Google/Api/Ads/Dfp/v201311/RateCardService.php new file mode 100755 index 000000000..53c4c6116 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/RateCardService.php @@ -0,0 +1,3713 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseRateError", FALSE)) { +/** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateError extends ApiError { + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError"; + } + + 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("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomTargetingError", FALSE)) { +/** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingError extends ApiError { + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("ProductError", FALSE)) { +/** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductError extends ApiError { + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("RateCardAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardAction { + /** + * @access public + * @var string + */ + public $RateCardActionType; + + private $_parameterMap = array ( + "RateCardAction.Type" => "RateCardActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardAction"; + } + + public function __construct($RateCardActionType = NULL) { + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("RateCardActionError", FALSE)) { +/** + * An error lists all error reasons associated with performing action + * on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardActionError extends ApiError { + /** + * @access public + * @var tnsRateCardActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardActionError"; + } + + 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("RateCard", FALSE)) { +/** + * Defines a collection of rules, including base rates for product templates and products, premiums, + * proposal line item level adjustments and proposal level adjustments. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCard { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var tnsRateCardStatus + */ + public $status; + + /** + * @access public + * @var integer[] + */ + public $appliedTeamIds; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCard"; + } + + public function __construct($id = NULL, $name = NULL, $currencyCode = NULL, $status = NULL, $appliedTeamIds = NULL, $lastModifiedDateTime = NULL) { + $this->id = $id; + $this->name = $name; + $this->currencyCode = $currencyCode; + $this->status = $status; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } +}} + +if (!class_exists("RateCardPage", FALSE)) { +/** + * Captures a page of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardPage { + /** + * @access public + * @var RateCard[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("RequiredCollectionError", FALSE)) { +/** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionError extends ApiError { + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RequiredNumberError", FALSE)) { +/** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberError extends ApiError { + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("StringLengthError", FALSE)) { +/** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthError extends ApiError { + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BaseRateErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseRateErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseRateError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomTargetingErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomTargetingErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomTargetingError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ProductErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ProductErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ProductError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardActionErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardActionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardActionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredCollectionErrorReason", FALSE)) { +/** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredCollectionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredCollectionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredNumberErrorReason", FALSE)) { +/** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredNumberErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredNumberError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RateCardStatus", FALSE)) { +/** + * Describes the status of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RateCardStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RateCardStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("StringLengthErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StringLengthErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StringLengthError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createRateCard", FALSE)) { +/** + * Creates a new {@link RateCard}. Rate cards must be activated before being + * associated with proposal line items and products. + * + * @param rateCard the rate card to be created + * @return the rate card with corresponding fields set by Google. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createRateCard { + /** + * @access public + * @var RateCard + */ + public $rateCard; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCard = NULL) { + $this->rateCard = $rateCard; + } +}} + +if (!class_exists("createRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createRateCards", FALSE)) { +/** + * Creates a list of {@link RateCard} objects. Rate cards must be activated + * before being associated with proposal line items and products. + * + * @param rateCards the rate cards to be created + * @return the created rate cards. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createRateCards { + /** + * @access public + * @var RateCard[] + */ + public $rateCards; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCards = NULL) { + $this->rateCards = $rateCards; + } +}} + +if (!class_exists("createRateCardsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createRateCardsResponse { + /** + * @access public + * @var RateCard[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCard", FALSE)) { +/** + * Returns the {@link RateCard} uniquely identified by the given ID. + * + * @param rateCardId the ID of the rate card, which must already exist + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getRateCard { + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardId = NULL) { + $this->rateCardId = $rateCardId; + } +}} + +if (!class_exists("getRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getRateCardsByStatement", FALSE)) { +/** + * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link RateCard#id}
      {@code name}{@link RateCard#name}
      {@code status}{@link RateCard#status}
      {@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. + * @return the rate cards that match the filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getRateCardsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getRateCardsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getRateCardsByStatementResponse { + /** + * @access public + * @var RateCardPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performRateCardAction", FALSE)) { +/** + * Performs action on {@link RateCard} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate cards. + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performRateCardAction { + /** + * @access public + * @var RateCardAction + */ + public $rateCardAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCardAction = NULL, $filterStatement = NULL) { + $this->rateCardAction = $rateCardAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performRateCardActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performRateCardActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCard", FALSE)) { +/** + * Updates the specified {@link RateCard}. + * + * @param rateCard the rate card to be updated + * @return the updated rate card + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateRateCard { + /** + * @access public + * @var RateCard + */ + public $rateCard; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCard = NULL) { + $this->rateCard = $rateCard; + } +}} + +if (!class_exists("updateRateCardResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateRateCardResponse { + /** + * @access public + * @var RateCard + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateRateCards", FALSE)) { +/** + * Updates a list of {@link RateCard} objects. + * + * @param rateCards the rate cards to be updated + * @return the updated rate cards + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateRateCards { + /** + * @access public + * @var RateCard[] + */ + public $rateCards; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rateCards = NULL) { + $this->rateCards = $rateCards; + } +}} + +if (!class_exists("updateRateCardsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateRateCardsResponse { + /** + * @access public + * @var RateCard[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateRateCards", FALSE)) { +/** + * The action used to activate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateRateCards extends RateCardAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateRateCards"; + } + + public function __construct($RateCardActionType = NULL) { + parent::__construct(); + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateRateCards", FALSE)) { +/** + * The action used to deactivate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateRateCards extends RateCardAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateRateCards"; + } + + public function __construct($RateCardActionType = NULL) { + parent::__construct(); + $this->RateCardActionType = $RateCardActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RateCardService", FALSE)) { +/** + * RateCardService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class RateCardService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateRateCards" => "ActivateRateCards", + "RateCardAction" => "RateCardAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateRateCards" => "DeactivateRateCards", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "ProductError" => "ProductError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RateCardActionError" => "RateCardActionError", + "RateCard" => "RateCard", + "RateCardPage" => "RateCardPage", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateCardActionError.Reason" => "RateCardActionErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "RateCardStatus" => "RateCardStatus", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createRateCard" => "createRateCard", + "createRateCardResponse" => "createRateCardResponse", + "createRateCards" => "createRateCards", + "createRateCardsResponse" => "createRateCardsResponse", + "getRateCard" => "getRateCard", + "getRateCardResponse" => "getRateCardResponse", + "getRateCardsByStatement" => "getRateCardsByStatement", + "getRateCardsByStatementResponse" => "getRateCardsByStatementResponse", + "performRateCardAction" => "performRateCardAction", + "performRateCardActionResponse" => "performRateCardActionResponse", + "updateRateCard" => "updateRateCard", + "updateRateCardResponse" => "updateRateCardResponse", + "updateRateCards" => "updateRateCards", + "updateRateCardsResponse" => "updateRateCardsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/RateCardService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = RateCardService::$classmap; + parent::__construct($wsdl, $options, $user, 'RateCardService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link RateCard}. Rate cards must be activated before being + * associated with proposal line items and products. + * + * @param rateCard the rate card to be created + * @return the rate card with corresponding fields set by Google. + */ + public function createRateCard($rateCard) { + $arg = new createRateCard($rateCard); + $result = $this->__soapCall("createRateCard", array($arg)); + return $result->rval; + } + + + /** + * Creates a list of {@link RateCard} objects. Rate cards must be activated + * before being associated with proposal line items and products. + * + * @param rateCards the rate cards to be created + * @return the created rate cards. + */ + public function createRateCards($rateCards) { + $arg = new createRateCards($rateCards); + $result = $this->__soapCall("createRateCards", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link RateCard} uniquely identified by the given ID. + * + * @param rateCardId the ID of the rate card, which must already exist + */ + public function getRateCard($rateCardId) { + $arg = new getRateCard($rateCardId); + $result = $this->__soapCall("getRateCard", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link RateCard#id}
      {@code name}{@link RateCard#name}
      {@code status}{@link RateCard#status}
      {@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
      + * + * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. + * @return the rate cards that match the filter + */ + public function getRateCardsByStatement($filterStatement) { + $arg = new getRateCardsByStatement($filterStatement); + $result = $this->__soapCall("getRateCardsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs action on {@link RateCard} objects that satisfy the + * given {@link Statement#query}. + * + * @param rateCardAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rate cards. + * @return the result of the action performed + */ + public function performRateCardAction($rateCardAction, $filterStatement) { + $arg = new performRateCardAction($rateCardAction, $filterStatement); + $result = $this->__soapCall("performRateCardAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link RateCard}. + * + * @param rateCard the rate card to be updated + * @return the updated rate card + */ + public function updateRateCard($rateCard) { + $arg = new updateRateCard($rateCard); + $result = $this->__soapCall("updateRateCard", array($arg)); + return $result->rval; + } + + + /** + * Updates a list of {@link RateCard} objects. + * + * @param rateCards the rate cards to be updated + * @return the updated rate cards + */ + public function updateRateCards($rateCards) { + $arg = new updateRateCards($rateCards); + $result = $this->__soapCall("updateRateCards", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php new file mode 100755 index 000000000..b25c84e05 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php @@ -0,0 +1,2822 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ReconciliationOrderReportAction", FALSE)) { +/** + * Represents the actions that can be performed on the {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationOrderReportAction { + /** + * @access public + * @var string + */ + public $ReconciliationOrderReportActionType; + + private $_parameterMap = array ( + "ReconciliationOrderReportAction.Type" => "ReconciliationOrderReportActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportAction"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ReconciliationOrderReport", FALSE)) { +/** + * A {@link ReconciliationOrderReport} represents one order + * in the reconciliation report. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationOrderReport { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsReconciliationOrderReportStatus + */ + public $status; + + /** + * @access public + * @var DateTime + */ + public $submissionDateTime; + + /** + * @access public + * @var integer + */ + public $submitterId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReport"; + } + + public function __construct($id = NULL, $reconciliationReportId = NULL, $orderId = NULL, $status = NULL, $submissionDateTime = NULL, $submitterId = NULL) { + $this->id = $id; + $this->reconciliationReportId = $reconciliationReportId; + $this->orderId = $orderId; + $this->status = $status; + $this->submissionDateTime = $submissionDateTime; + $this->submitterId = $submitterId; + } +}} + +if (!class_exists("ReconciliationOrderReportPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationOrderReportPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationOrderReport[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("SubmitReconciliationOrderReports", FALSE)) { +/** + * The action used for submit the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SubmitReconciliationOrderReports"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + parent::__construct(); + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("RevertReconciliationOrderReports", FALSE)) { +/** + * The action used to revert the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RevertReconciliationOrderReports"; + } + + public function __construct($ReconciliationOrderReportActionType = NULL) { + parent::__construct(); + $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationOrderReportStatus", FALSE)) { +/** + * The status of the reconciliation order report. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationOrderReportStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationOrderReportStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationOrderReport", FALSE)) { +/** + * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. + * + * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, + * which must already exist. + * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationOrderReport { + /** + * @access public + * @var integer + */ + public $reconciliationOrderReportId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationOrderReportId = NULL) { + $this->reconciliationOrderReportId = $reconciliationOrderReportId; + } +}} + +if (!class_exists("getReconciliationOrderReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationOrderReportResponse { + /** + * @access public + * @var ReconciliationOrderReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReconciliationOrderReportsByStatement", FALSE)) { +/** + * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects + * that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      {@code id}{@link ReconciliationOrderReport#id}
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code status}{@link ReconciliationOrderReport#status}
      {@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
      {@code submitterId}{@link ReconciliationOrderReport#submitterId}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of reconciliation order reports. + * @return the reconciliation order reports that match the given filter. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationOrderReportsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationOrderReportsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationOrderReportsByStatementResponse { + /** + * @access public + * @var ReconciliationOrderReportPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performReconciliationOrderReportAction", FALSE)) { +/** + * Performs actions on the {@link ReconciliationOrderReport} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * Only orders to which the API user has access will be included. + * + * @param reconciliationOrderReportAction the action to perform. + * @param filterStatement a Publisher Query Language statement used to filter a set of orders and + * one reconciliation report. + * @return the result of the action performed. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performReconciliationOrderReportAction { + /** + * @access public + * @var ReconciliationOrderReportAction + */ + public $reconciliationOrderReportAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationOrderReportAction = NULL, $filterStatement = NULL) { + $this->reconciliationOrderReportAction = $reconciliationOrderReportAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performReconciliationOrderReportActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performReconciliationOrderReportActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationOrderReportService", FALSE)) { +/** + * ReconciliationOrderReportService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ReconciliationOrderReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ReconciliationOrderReportAction" => "ReconciliationOrderReportAction", + "ReconciliationOrderReport" => "ReconciliationOrderReport", + "ReconciliationOrderReportPage" => "ReconciliationOrderReportPage", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "SubmitReconciliationOrderReports" => "SubmitReconciliationOrderReports", + "ReconciliationError" => "ReconciliationError", + "RequiredError" => "RequiredError", + "RevertReconciliationOrderReports" => "RevertReconciliationOrderReports", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationOrderReportStatus" => "ReconciliationOrderReportStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationOrderReport" => "getReconciliationOrderReport", + "getReconciliationOrderReportResponse" => "getReconciliationOrderReportResponse", + "getReconciliationOrderReportsByStatement" => "getReconciliationOrderReportsByStatement", + "getReconciliationOrderReportsByStatementResponse" => "getReconciliationOrderReportsByStatementResponse", + "performReconciliationOrderReportAction" => "performReconciliationOrderReportAction", + "performReconciliationOrderReportActionResponse" => "performReconciliationOrderReportActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ReconciliationOrderReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationOrderReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationOrderReportService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. + * + * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, + * which must already exist. + * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. + */ + public function getReconciliationOrderReport($reconciliationOrderReportId) { + $arg = new getReconciliationOrderReport($reconciliationOrderReportId); + $result = $this->__soapCall("getReconciliationOrderReport", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects + * that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      {@code id}{@link ReconciliationOrderReport#id}
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code status}{@link ReconciliationOrderReport#status}
      {@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
      {@code submitterId}{@link ReconciliationOrderReport#submitterId}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of reconciliation order reports. + * @return the reconciliation order reports that match the given filter. + */ + public function getReconciliationOrderReportsByStatement($filterStatement) { + $arg = new getReconciliationOrderReportsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationOrderReportsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on the {@link ReconciliationOrderReport} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code orderId}{@link ReconciliationOrderReport#orderId}
      {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
      + * + * The {@code reconciliationReportId} field and {@code orderId} are required and can only be + * combined with an {@code AND}. Furthermore, the results may only belong to one + * {@link ReconciliationReport}. + * Only orders to which the API user has access will be included. + * + * @param reconciliationOrderReportAction the action to perform. + * @param filterStatement a Publisher Query Language statement used to filter a set of orders and + * one reconciliation report. + * @return the result of the action performed. + */ + public function performReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement) { + $arg = new performReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement); + $result = $this->__soapCall("performReconciliationOrderReportAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php new file mode 100755 index 000000000..2aeb4d087 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php @@ -0,0 +1,2903 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("Money", FALSE)) { +/** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Money { + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Money"; + } + + public function __construct($currencyCode = NULL, $microAmount = NULL) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } +}} + +if (!class_exists("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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("ReconciliationImportError", FALSE)) { +/** + * The API errors for reconciliation CSV import. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationImportError extends ApiError { + /** + * @access public + * @var tnsReconciliationImportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError"; + } + + 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("ReconciliationReportRow", FALSE)) { +/** + * A {@code ReconciliationReportRow} represents each row in the reconciliation report. + * Each row is identified by its {@link #reconciliationReportId}, {@link #lineItemId}, + * {@link #creativeId}, and {@link #proposalLineItemId}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationReportRow { + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $creativeId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * @access public + * @var tnsBillFrom + */ + public $billFrom; + + /** + * @access public + * @var tnsCostType + */ + public $lineItemCostType; + + /** + * @access public + * @var Money + */ + public $lineItemCostPerUnit; + + /** + * @access public + * @var integer + */ + public $lineItemContractedUnitsBought; + + /** + * @access public + * @var integer + */ + public $dfpClicks; + + /** + * @access public + * @var integer + */ + public $dfpImpressions; + + /** + * @access public + * @var integer + */ + public $dfpLineItemDays; + + /** + * @access public + * @var integer + */ + public $thirdPartyClicks; + + /** + * @access public + * @var integer + */ + public $thirdPartyImpressions; + + /** + * @access public + * @var integer + */ + public $thirdPartyLineItemDays; + + /** + * @access public + * @var integer + */ + public $manualClicks; + + /** + * @access public + * @var integer + */ + public $manualImpressions; + + /** + * @access public + * @var integer + */ + public $manualLineItemDays; + + /** + * @access public + * @var integer + */ + public $reconciledClicks; + + /** + * @access public + * @var integer + */ + public $reconciledImpressions; + + /** + * @access public + * @var integer + */ + public $reconciledLineItemDays; + + /** + * @access public + * @var Money + */ + public $contractedRevenue; + + /** + * @access public + * @var Money + */ + public $dfpRevenue; + + /** + * @access public + * @var Money + */ + public $thirdPartyRevenue; + + /** + * @access public + * @var Money + */ + public $manualRevenue; + + /** + * @access public + * @var Money + */ + public $reconciledRevenue; + + /** + * @access public + * @var string + */ + public $comments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportRow"; + } + + public function __construct($reconciliationReportId = NULL, $lineItemId = NULL, $creativeId = NULL, $orderId = NULL, $advertiserId = NULL, $billFrom = NULL, $lineItemCostType = NULL, $lineItemCostPerUnit = NULL, $lineItemContractedUnitsBought = NULL, $dfpClicks = NULL, $dfpImpressions = NULL, $dfpLineItemDays = NULL, $thirdPartyClicks = NULL, $thirdPartyImpressions = NULL, $thirdPartyLineItemDays = NULL, $manualClicks = NULL, $manualImpressions = NULL, $manualLineItemDays = NULL, $reconciledClicks = NULL, $reconciledImpressions = NULL, $reconciledLineItemDays = NULL, $contractedRevenue = NULL, $dfpRevenue = NULL, $thirdPartyRevenue = NULL, $manualRevenue = NULL, $reconciledRevenue = NULL, $comments = NULL) { + $this->reconciliationReportId = $reconciliationReportId; + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->orderId = $orderId; + $this->advertiserId = $advertiserId; + $this->billFrom = $billFrom; + $this->lineItemCostType = $lineItemCostType; + $this->lineItemCostPerUnit = $lineItemCostPerUnit; + $this->lineItemContractedUnitsBought = $lineItemContractedUnitsBought; + $this->dfpClicks = $dfpClicks; + $this->dfpImpressions = $dfpImpressions; + $this->dfpLineItemDays = $dfpLineItemDays; + $this->thirdPartyClicks = $thirdPartyClicks; + $this->thirdPartyImpressions = $thirdPartyImpressions; + $this->thirdPartyLineItemDays = $thirdPartyLineItemDays; + $this->manualClicks = $manualClicks; + $this->manualImpressions = $manualImpressions; + $this->manualLineItemDays = $manualLineItemDays; + $this->reconciledClicks = $reconciledClicks; + $this->reconciledImpressions = $reconciledImpressions; + $this->reconciledLineItemDays = $reconciledLineItemDays; + $this->contractedRevenue = $contractedRevenue; + $this->dfpRevenue = $dfpRevenue; + $this->thirdPartyRevenue = $thirdPartyRevenue; + $this->manualRevenue = $manualRevenue; + $this->reconciledRevenue = $reconciledRevenue; + $this->comments = $comments; + } +}} + +if (!class_exists("ReconciliationReportRowPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationReportRow} objects + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationReportRowPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportRowPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("BillFrom", FALSE)) { +/** + * Values for which to bill from. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BillFrom { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BillFrom"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CostType", FALSE)) { +/** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CostType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CostType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationImportErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationImportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationReportRowsByStatement", FALSE)) { +/** + * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that + * satisfy the given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
      {@code advertiserId}{@link ReconciliationReportRow#advertiserId}
      {@code orderId}{@link ReconciliationReportRow#orderId}
      {@code lineItemId}{@link ReconciliationReportRow#lineItemId}
      {@code creativeId}{@link ReconciliationReportRow#creativeId}
      {@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
      {@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
      {@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
      {@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
      {@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
      {@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
      {@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
      {@code manualClicks}{@link ReconciliationReportRow#manualClicks}
      {@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
      {@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
      {@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
      {@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
      {@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation report rows + * @return the reconciliation report rows that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationReportRowsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationReportRowsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationReportRowsByStatementResponse { + /** + * @access public + * @var ReconciliationReportRowPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReportRows", FALSE)) { +/** + * Updates a list of {@link ReconciliationReportRow} which belong to same + * {@link ReconciliationReport}. + * + * @param reconciliationReportRows a list of reconciliation report rows to update + * @return the updated reconciliation report rows + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateReconciliationReportRows { + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $reconciliationReportRows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReportRows = NULL) { + $this->reconciliationReportRows = $reconciliationReportRows; + } +}} + +if (!class_exists("updateReconciliationReportRowsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateReconciliationReportRowsResponse { + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationReportRowService", FALSE)) { +/** + * ReconciliationReportRowService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ReconciliationReportRowService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReconciliationError" => "ReconciliationError", + "ReconciliationImportError" => "ReconciliationImportError", + "ReconciliationReportRow" => "ReconciliationReportRow", + "ReconciliationReportRowPage" => "ReconciliationReportRowPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillFrom" => "BillFrom", + "CommonError.Reason" => "CommonErrorReason", + "CostType" => "CostType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationReportRowsByStatement" => "getReconciliationReportRowsByStatement", + "getReconciliationReportRowsByStatementResponse" => "getReconciliationReportRowsByStatementResponse", + "updateReconciliationReportRows" => "updateReconciliationReportRows", + "updateReconciliationReportRowsResponse" => "updateReconciliationReportRowsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ReconciliationReportRowService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationReportRowService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationReportRowService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that + * satisfy the given {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
      {@code advertiserId}{@link ReconciliationReportRow#advertiserId}
      {@code orderId}{@link ReconciliationReportRow#orderId}
      {@code lineItemId}{@link ReconciliationReportRow#lineItemId}
      {@code creativeId}{@link ReconciliationReportRow#creativeId}
      {@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
      {@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
      {@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
      {@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
      {@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
      {@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
      {@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
      {@code manualClicks}{@link ReconciliationReportRow#manualClicks}
      {@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
      {@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
      {@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
      {@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
      {@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
      + * + * The {@code reconciliationReportId} field is required and can only be combined with an + * {@code AND} to other conditions. Furthermore, the results may only belong to + * one {@link ReconciliationReport}. + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation report rows + * @return the reconciliation report rows that match the given filter + */ + public function getReconciliationReportRowsByStatement($filterStatement) { + $arg = new getReconciliationReportRowsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationReportRowsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates a list of {@link ReconciliationReportRow} which belong to same + * {@link ReconciliationReport}. + * + * @param reconciliationReportRows a list of reconciliation report rows to update + * @return the updated reconciliation report rows + */ + public function updateReconciliationReportRows($reconciliationReportRows) { + $arg = new updateReconciliationReportRows($reconciliationReportRows); + $result = $this->__soapCall("updateReconciliationReportRows", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php new file mode 100755 index 000000000..ba90965b7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php @@ -0,0 +1,2714 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeError extends ApiError { + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError"; + } + + 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("ReconciliationError", FALSE)) { +/** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationError extends ApiError { + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError"; + } + + 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("ReconciliationImportError", FALSE)) { +/** + * The API errors for reconciliation CSV import. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationImportError extends ApiError { + /** + * @access public + * @var tnsReconciliationImportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError"; + } + + 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("ReconciliationReport", FALSE)) { +/** + * A {@code ReconciliationReport} represents a report that can be reconciled. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationReport { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsReconciliationReportStatus + */ + public $status; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReport"; + } + + public function __construct($id = NULL, $status = NULL, $startDate = NULL, $notes = NULL) { + $this->id = $id; + $this->status = $status; + $this->startDate = $startDate; + $this->notes = $notes; + } +}} + +if (!class_exists("ReconciliationReportPage", FALSE)) { +/** + * Captures a page of {@link ReconciliationReport} objects + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationReportPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ReconciliationReport[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RangeErrorReason", FALSE)) { +/** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RangeErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RangeError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationImportErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationImportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationImportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReconciliationReportStatus", FALSE)) { +/** + * A {@code ReconciliationReportStatus} represents the status of a {@link ReconciliationReport}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReconciliationReportStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReconciliationReportStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReconciliationReport", FALSE)) { +/** + * Returns the {@link ReconciliationReport} object uniquely identified by given ID. + * + * @param reconciliationReportId the ID of the reconciliation report, which must already exist + * @return the {@code ReconciliationReport} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationReport { + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReportId = NULL) { + $this->reconciliationReportId = $reconciliationReportId; + } +}} + +if (!class_exists("getReconciliationReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationReportResponse { + /** + * @access public + * @var ReconciliationReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReconciliationReportsByStatement", FALSE)) { +/** + * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy + * the given {@link Statement#query}. The following fields are supported for filtering. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ReconciliationReport#id}
      {@code status}{@link ReconciliationReport#status}
      {@code startDate}{@link ReconciliationReport#startDate}
      + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation reports + * @return the reconciliation reports that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationReportsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getReconciliationReportsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReconciliationReportsByStatementResponse { + /** + * @access public + * @var ReconciliationReportPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReport", FALSE)) { +/** + * Updates the specified {@link ReconciliationReport}. + * + * @param reconciliationReport the reconciliation report to be updated + * @return the updated reconciliation report + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateReconciliationReport { + /** + * @access public + * @var ReconciliationReport + */ + public $reconciliationReport; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReport = NULL) { + $this->reconciliationReport = $reconciliationReport; + } +}} + +if (!class_exists("updateReconciliationReportResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateReconciliationReportResponse { + /** + * @access public + * @var ReconciliationReport + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateReconciliationReports", FALSE)) { +/** + * Updates the specified {@link ReconciliationReport} objects. + * + * @param reconciliationReports the reconciliation reports to update + * @return the updated reconciliation reports + * @throws ApiException + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateReconciliationReports { + /** + * @access public + * @var ReconciliationReport[] + */ + public $reconciliationReports; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reconciliationReports = NULL) { + $this->reconciliationReports = $reconciliationReports; + } +}} + +if (!class_exists("updateReconciliationReportsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateReconciliationReportsResponse { + /** + * @access public + * @var ReconciliationReport[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReconciliationReportService", FALSE)) { +/** + * ReconciliationReportService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ReconciliationReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReconciliationError" => "ReconciliationError", + "ReconciliationImportError" => "ReconciliationImportError", + "ReconciliationReport" => "ReconciliationReport", + "ReconciliationReportPage" => "ReconciliationReportPage", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", + "ReconciliationReportStatus" => "ReconciliationReportStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationReport" => "getReconciliationReport", + "getReconciliationReportResponse" => "getReconciliationReportResponse", + "getReconciliationReportsByStatement" => "getReconciliationReportsByStatement", + "getReconciliationReportsByStatementResponse" => "getReconciliationReportsByStatementResponse", + "updateReconciliationReport" => "updateReconciliationReport", + "updateReconciliationReportResponse" => "updateReconciliationReportResponse", + "updateReconciliationReports" => "updateReconciliationReports", + "updateReconciliationReportsResponse" => "updateReconciliationReportsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ReconciliationReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReconciliationReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReconciliationReportService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Returns the {@link ReconciliationReport} object uniquely identified by given ID. + * + * @param reconciliationReportId the ID of the reconciliation report, which must already exist + * @return the {@code ReconciliationReport} uniquely identified by the given ID + */ + public function getReconciliationReport($reconciliationReportId) { + $arg = new getReconciliationReport($reconciliationReportId); + $result = $this->__soapCall("getReconciliationReport", array($arg)); + return $result->rval; + } + + + /** + * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy + * the given {@link Statement#query}. The following fields are supported for filtering. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link ReconciliationReport#id}
      {@code status}{@link ReconciliationReport#status}
      {@code startDate}{@link ReconciliationReport#startDate}
      + * + * @param filterStatement a Publisher Query Language statement used to + * filter a set of reconciliation reports + * @return the reconciliation reports that match the given filter + */ + public function getReconciliationReportsByStatement($filterStatement) { + $arg = new getReconciliationReportsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationReportsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ReconciliationReport}. + * + * @param reconciliationReport the reconciliation report to be updated + * @return the updated reconciliation report + */ + public function updateReconciliationReport($reconciliationReport) { + $arg = new updateReconciliationReport($reconciliationReport); + $result = $this->__soapCall("updateReconciliationReport", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link ReconciliationReport} objects. + * + * @param reconciliationReports the reconciliation reports to update + * @return the updated reconciliation reports + * @throws ApiException + */ + public function updateReconciliationReports($reconciliationReports) { + $arg = new updateReconciliationReports($reconciliationReports); + $result = $this->__soapCall("updateReconciliationReports", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/ReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReportService.php new file mode 100755 index 000000000..3295b5756 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/ReportService.php @@ -0,0 +1,2893 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ReportDownloadOptions", FALSE)) { +/** + * Represents the options for an API report download request. + * See {@link ReportService#getReportDownloadUrlWithOptions}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReportDownloadOptions { + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * @access public + * @var boolean + */ + public $includeReportProperties; + + /** + * @access public + * @var boolean + */ + public $includeTotalsRow; + + /** + * @access public + * @var boolean + */ + public $useGzipCompression; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportDownloadOptions"; + } + + public function __construct($exportFormat = NULL, $includeReportProperties = NULL, $includeTotalsRow = NULL, $useGzipCompression = NULL) { + $this->exportFormat = $exportFormat; + $this->includeReportProperties = $includeReportProperties; + $this->includeTotalsRow = $includeTotalsRow; + $this->useGzipCompression = $useGzipCompression; + } +}} + +if (!class_exists("ReportError", FALSE)) { +/** + * An error for an exception that occurred while running the report. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReportError extends ApiError { + /** + * @access public + * @var tnsReportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError"; + } + + 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("ReportJob", FALSE)) { +/** + * Represents a report job that will be run to retrieve performance and + * statistics information about ad campaigns, networks, inventory and sales. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReportJob { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var ReportQuery + */ + public $reportQuery; + + /** + * @access public + * @var tnsReportJobStatus + */ + public $reportJobStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJob"; + } + + public function __construct($id = NULL, $reportQuery = NULL, $reportJobStatus = NULL) { + $this->id = $id; + $this->reportQuery = $reportQuery; + $this->reportJobStatus = $reportJobStatus; + } +}} + +if (!class_exists("ReportQuery", FALSE)) { +/** + * A {@code ReportQuery} object allows you to specify the selection criteria for + * generating a report. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReportQuery { + /** + * @access public + * @var tnsDimension[] + */ + public $dimensions; + + /** + * @access public + * @var tnsReportQueryAdUnitView + */ + public $adUnitView; + + /** + * @access public + * @var tnsColumn[] + */ + public $columns; + + /** + * @access public + * @var tnsDimensionAttribute[] + */ + public $dimensionAttributes; + + /** + * @access public + * @var integer[] + */ + public $customFieldIds; + + /** + * @access public + * @var Date + */ + public $startDate; + + /** + * @access public + * @var Date + */ + public $endDate; + + /** + * @access public + * @var tnsDateRangeType + */ + public $dateRangeType; + + /** + * @access public + * @var tnsDimensionFilter[] + */ + public $dimensionFilters; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * @access public + * @var string + */ + public $timeZone; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery"; + } + + public function __construct($dimensions = NULL, $adUnitView = NULL, $columns = NULL, $dimensionAttributes = NULL, $customFieldIds = NULL, $startDate = NULL, $endDate = NULL, $dateRangeType = NULL, $dimensionFilters = NULL, $statement = NULL, $timeZone = NULL) { + $this->dimensions = $dimensions; + $this->adUnitView = $adUnitView; + $this->columns = $columns; + $this->dimensionAttributes = $dimensionAttributes; + $this->customFieldIds = $customFieldIds; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->dateRangeType = $dateRangeType; + $this->dimensionFilters = $dimensionFilters; + $this->statement = $statement; + $this->timeZone = $timeZone; + } +}} + +if (!class_exists("RequiredError", FALSE)) { +/** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportQueryAdUnitView", FALSE)) { +/** + * A view for an ad unit report. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReportQueryAdUnitView { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportQuery.AdUnitView"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("Column", FALSE)) { +/** + * {@code Column} provides all the trafficking statistics and revenue + * information available for the chosen {@link Dimension} objects. + *

      + * Columns with {@code INVENTORY_LEVEL} should not be used with dimensions + * relating to line items, orders, companies and creatives, such as {@link Dimension#LINE_ITEM}. + * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level + * dynamic allocation enabled on your network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Column { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Column"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("DateRangeType", FALSE)) { +/** + * Represents a period of time. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateRangeType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateRangeType"; + } + + public function __construct() { + } +}} + +if (!class_exists("Dimension", FALSE)) { +/** + * {@code Dimension} provides the break-down and filterable types available for + * running a {@link ReportJob}. Aggregate and percentage columns will be + * calculated based on these groupings. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Dimension { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Dimension"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionAttribute", FALSE)) { +/** + * {@code DimensionAttribute} provides additional fields associated with a + * {@link Dimension}. It can only be selected with its corresponding + * {@link Dimension}. For example, {@link DimensionAttribute#ORDER_PO_NUMBER} + * can only be used if the {@link ReportQuery#dimensions} contains + * {@link Dimension#ORDER_NAME}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DimensionAttribute { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionAttribute"; + } + + public function __construct() { + } +}} + +if (!class_exists("DimensionFilter", FALSE)) { +/** + * {@code DimensionFilter} filters the data used during report creation. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DimensionFilter { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DimensionFilter"; + } + + public function __construct() { + } +}} + +if (!class_exists("ExportFormat", FALSE)) { +/** + * The file formats available for creating the report. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ExportFormat { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ExportFormat"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportErrorReason", FALSE)) { +/** + * Default {@code ReportError} when the reason is not among any already + * defined. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReportErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ReportJobStatus", FALSE)) { +/** + * Represents the status of a {@link ReportJob} running on the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ReportJobStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ReportJobStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("getReportDownloadURL", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReportDownloadURL { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var tnsExportFormat + */ + public $exportFormat; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $exportFormat = NULL) { + $this->reportJobId = $reportJobId; + $this->exportFormat = $exportFormat; + } +}} + +if (!class_exists("getReportDownloadURLResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReportDownloadURLResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptions", FALSE)) { +/** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReportDownloadUrlWithOptions { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * @access public + * @var ReportDownloadOptions + */ + public $reportDownloadOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL, $reportDownloadOptions = NULL) { + $this->reportJobId = $reportJobId; + $this->reportDownloadOptions = $reportDownloadOptions; + } +}} + +if (!class_exists("getReportDownloadUrlWithOptionsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReportDownloadUrlWithOptionsResponse { + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getReportJob", FALSE)) { +/** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReportJob { + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJobId = NULL) { + $this->reportJobId = $reportJobId; + } +}} + +if (!class_exists("getReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("runReportJob", FALSE)) { +/** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class runReportJob { + /** + * @access public + * @var ReportJob + */ + public $reportJob; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($reportJob = NULL) { + $this->reportJob = $reportJob; + } +}} + +if (!class_exists("runReportJobResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class runReportJobResponse { + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ReportService", FALSE)) { +/** + * ReportService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class ReportService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ReportDownloadOptions" => "ReportDownloadOptions", + "ReportError" => "ReportError", + "ReportJob" => "ReportJob", + "ReportQuery" => "ReportQuery", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "Column" => "Column", + "CommonError.Reason" => "CommonErrorReason", + "DateRangeType" => "DateRangeType", + "Dimension" => "Dimension", + "DimensionAttribute" => "DimensionAttribute", + "DimensionFilter" => "DimensionFilter", + "ExportFormat" => "ExportFormat", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ReportError.Reason" => "ReportErrorReason", + "ReportJobStatus" => "ReportJobStatus", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReportDownloadURL" => "getReportDownloadURL", + "getReportDownloadURLResponse" => "getReportDownloadURLResponse", + "getReportDownloadUrlWithOptions" => "getReportDownloadUrlWithOptions", + "getReportDownloadUrlWithOptionsResponse" => "getReportDownloadUrlWithOptionsResponse", + "getReportJob" => "getReportJob", + "getReportJobResponse" => "getReportJobResponse", + "runReportJob" => "runReportJob", + "runReportJobResponse" => "runReportJobResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/ReportService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = ReportService::$classmap; + parent::__construct($wsdl, $options, $user, 'ReportService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Returns the URL at which the report file can be downloaded. + *

      + * The report will be generated as a gzip archive, containing the report file itself. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param exportFormat the {@link ExportFormat} for the report file + * @return the URL for report file download + */ + public function getReportDownloadURL($reportJobId, $exportFormat) { + $arg = new getReportDownloadURL($reportJobId, $exportFormat); + $result = $this->__soapCall("getReportDownloadURL", array($arg)); + return $result->rval; + } + + + /** + * Returns the URL at which the report file can be downloaded, and allows for customization + * of the downloaded report. + *

      + * By default, the report will be generated as a gzip archive, containing the report file itself. + * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. + * + * @param reportJobId the ID of the {@link ReportJob} + * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request + * @return the URL for report file download + */ + public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions) { + $arg = new getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); + $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link ReportJob} uniquely identified by the given ID. + * + * @param reportJobId the Id of the report job which must already exist + * @return the {@code ReportJob} uniquely identified by the given ID + */ + public function getReportJob($reportJobId) { + $arg = new getReportJob($reportJobId); + $result = $this->__soapCall("getReportJob", array($arg)); + return $result->rval; + } + + + /** + * Initiates the execution of a {@link ReportQuery} on the server. + * + * The following fields are required: + *

        + *
      • {@link ReportJob#reportQuery}
      • + *
      + * + * @param reportJob the report job to run + * @return the report job with its ID filled in + */ + public function runReportJob($reportJob) { + $arg = new runReportJob($reportJob); + $result = $this->__soapCall("runReportJob", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php new file mode 100755 index 000000000..5816b7620 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php @@ -0,0 +1,2972 @@ +id = $id; + $this->name = $name; + $this->adUnitCode = $adUnitCode; + } +}} + +if (!class_exists("ApiError", FALSE)) { +/** + * 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 GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("AdUnitSize", FALSE)) { +/** + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitSize { + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var AdUnitSize[] + */ + public $companions; + + /** + * @access public + * @var string + */ + public $fullDisplayString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnitSize"; + } + + public function __construct($size = NULL, $environmentType = NULL, $companions = NULL, $fullDisplayString = NULL) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } +}} + +if (!class_exists("LabelEntityAssociationError", FALSE)) { +/** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationError extends ApiError { + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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("Size", FALSE)) { +/** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

      + * For interstitial size (out-of-page), {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Size { + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Size"; + } + + public function __construct($width = NULL, $height = NULL, $isAspectRatio = NULL) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } +}} + +if (!class_exists("SoapRequestHeader", FALSE)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("SuggestedAdUnitAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SuggestedAdUnitAction { + /** + * @access public + * @var string + */ + public $SuggestedAdUnitActionType; + + private $_parameterMap = array ( + "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitAction"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("SuggestedAdUnit", FALSE)) { +/** + * A {@code SuggestedAdUnit} represents a suggestion for a new ad unit, based on an ad tag that has + * been served at least ten times in the past week, but which does not correspond to a defined ad + * unit. This type is read-only. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SuggestedAdUnit { + /** + * @access public + * @var string + */ + public $id; + + /** + * @access public + * @var integer + */ + public $numRequests; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * @access public + * @var AdUnitParent[] + */ + public $parentPath; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var AdUnitSize[] + */ + public $suggestedAdUnitSizes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnit"; + } + + public function __construct($id = NULL, $numRequests = NULL, $path = NULL, $parentPath = NULL, $targetWindow = NULL, $targetPlatform = NULL, $suggestedAdUnitSizes = NULL) { + $this->id = $id; + $this->numRequests = $numRequests; + $this->path = $path; + $this->parentPath = $parentPath; + $this->targetWindow = $targetWindow; + $this->targetPlatform = $targetPlatform; + $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; + } +}} + +if (!class_exists("SuggestedAdUnitPage", FALSE)) { +/** + * Contains a page of {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SuggestedAdUnitPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var SuggestedAdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("SuggestedAdUnitUpdateResult", FALSE)) { +/** + * Represents the result of performing an action on {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SuggestedAdUnitUpdateResult { + /** + * @access public + * @var string[] + */ + public $newAdUnitIds; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SuggestedAdUnitUpdateResult"; + } + + public function __construct($newAdUnitIds = NULL, $numChanges = NULL) { + $this->newAdUnitIds = $newAdUnitIds; + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("AdUnitTargetWindow", FALSE)) { +/** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AdUnitTargetWindow { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AdUnit.TargetWindow"; + } + + public function __construct() { + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("EnvironmentType", FALSE)) { +/** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class EnvironmentType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "EnvironmentType"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LabelEntityAssociationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LabelEntityAssociationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LabelEntityAssociationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TargetPlatform", FALSE)) { +/** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TargetPlatform { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TargetPlatform"; + } + + public function __construct() { + } +}} + +if (!class_exists("getSuggestedAdUnit", FALSE)) { +/** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getSuggestedAdUnit { + /** + * @access public + * @var string + */ + public $suggestedAdUnitId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitId = NULL) { + $this->suggestedAdUnitId = $suggestedAdUnitId; + } +}} + +if (!class_exists("getSuggestedAdUnitResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getSuggestedAdUnitResponse { + /** + * @access public + * @var SuggestedAdUnit + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatement", FALSE)) { +/** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getSuggestedAdUnitsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getSuggestedAdUnitsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getSuggestedAdUnitsByStatementResponse { + /** + * @access public + * @var SuggestedAdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performSuggestedAdUnitAction", FALSE)) { +/** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performSuggestedAdUnitAction { + /** + * @access public + * @var SuggestedAdUnitAction + */ + public $suggestedAdUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($suggestedAdUnitAction = NULL, $filterStatement = NULL) { + $this->suggestedAdUnitAction = $suggestedAdUnitAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performSuggestedAdUnitActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performSuggestedAdUnitActionResponse { + /** + * @access public + * @var SuggestedAdUnitUpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveSuggestedAdUnit", FALSE)) { +/** + * Action to approve {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveSuggestedAdUnit"; + } + + public function __construct($SuggestedAdUnitActionType = NULL) { + parent::__construct(); + $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SuggestedAdUnitService", FALSE)) { +/** + * SuggestedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class SuggestedAdUnitService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "AdUnitParent" => "AdUnitParent", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", + "SuggestedAdUnitAction" => "SuggestedAdUnitAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SuggestedAdUnit" => "SuggestedAdUnit", + "SuggestedAdUnitPage" => "SuggestedAdUnitPage", + "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TargetPlatform" => "TargetPlatform", + "getSuggestedAdUnit" => "getSuggestedAdUnit", + "getSuggestedAdUnitResponse" => "getSuggestedAdUnitResponse", + "getSuggestedAdUnitsByStatement" => "getSuggestedAdUnitsByStatement", + "getSuggestedAdUnitsByStatementResponse" => "getSuggestedAdUnitsByStatementResponse", + "performSuggestedAdUnitAction" => "performSuggestedAdUnitAction", + "performSuggestedAdUnitActionResponse" => "performSuggestedAdUnitActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/SuggestedAdUnitService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = SuggestedAdUnitService::$classmap; + parent::__construct($wsdl, $options, $user, 'SuggestedAdUnitService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Returns the SuggestedAdUnit uniquely identified by the given ID. + * + * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. + */ + public function getSuggestedAdUnit($suggestedAdUnitId) { + $arg = new getSuggestedAdUnit($suggestedAdUnitId); + $result = $this->__soapCall("getSuggestedAdUnit", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that + * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested + * ad units that are suggested at any one time. + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + *

      Note: After API version 201311, the {@code id} field will only be + * numerical. + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the suggested ad units that match the given filter + */ + public function getSuggestedAdUnitsByStatement($filterStatement) { + $arg = new getSuggestedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link SuggestedAdUnit} objects that match the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link SuggestedAdUnit#id}
      {@code numRequests}{@link SuggestedAdUnit#numRequests}
      + * + * @param suggestedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of suggested ad units + * @return the result of the action performed + */ + public function performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement) { + $arg = new performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSuggestedAdUnitAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/TeamService.php b/src/Google/Api/Ads/Dfp/v201311/TeamService.php new file mode 100755 index 000000000..07d7d3b53 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/TeamService.php @@ -0,0 +1,2865 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("Team", FALSE)) { +/** + * A {@code Team} defines a grouping of users and what entities they have access + * to. Users are added to teams with {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Team { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var boolean + */ + public $hasAllCompanies; + + /** + * @access public + * @var boolean + */ + public $hasAllInventory; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $teamAccessType; + + /** + * @access public + * @var integer[] + */ + public $companyIds; + + /** + * @access public + * @var string[] + */ + public $adUnitIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Team"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL, $hasAllCompanies = NULL, $hasAllInventory = NULL, $teamAccessType = NULL, $companyIds = NULL, $adUnitIds = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->hasAllCompanies = $hasAllCompanies; + $this->hasAllInventory = $hasAllInventory; + $this->teamAccessType = $teamAccessType; + $this->companyIds = $companyIds; + $this->adUnitIds = $adUnitIds; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TeamPage", FALSE)) { +/** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var Team[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createTeam", FALSE)) { +/** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("createTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createTeams", FALSE)) { +/** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("createTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeam", FALSE)) { +/** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getTeam { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL) { + $this->teamId = $teamId; + } +}} + +if (!class_exists("getTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getTeamsByStatement", FALSE)) { +/** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getTeamsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getTeamsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getTeamsByStatementResponse { + /** + * @access public + * @var TeamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeam", FALSE)) { +/** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateTeam { + /** + * @access public + * @var Team + */ + public $team; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($team = NULL) { + $this->team = $team; + } +}} + +if (!class_exists("updateTeamResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateTeamResponse { + /** + * @access public + * @var Team + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateTeams", FALSE)) { +/** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateTeams { + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teams = NULL) { + $this->teams = $teams; + } +}} + +if (!class_exists("updateTeamsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateTeamsResponse { + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TeamService", FALSE)) { +/** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class TeamService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Team" => "Team", + "TeamError" => "TeamError", + "TeamPage" => "TeamPage", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "TeamError.Reason" => "TeamErrorReason", + "createTeam" => "createTeam", + "createTeamResponse" => "createTeamResponse", + "createTeams" => "createTeams", + "createTeamsResponse" => "createTeamsResponse", + "getTeam" => "getTeam", + "getTeamResponse" => "getTeamResponse", + "getTeamsByStatement" => "getTeamsByStatement", + "getTeamsByStatementResponse" => "getTeamsByStatementResponse", + "updateTeam" => "updateTeam", + "updateTeamResponse" => "updateTeamResponse", + "updateTeams" => "updateTeams", + "updateTeamsResponse" => "updateTeamsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/TeamService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = TeamService::$classmap; + parent::__construct($wsdl, $options, $user, 'TeamService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@code Team}. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param team the team to create + * @return the team with its ID filled in + */ + public function createTeam($team) { + $arg = new createTeam($team); + $result = $this->__soapCall("createTeam", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link Team} objects. + * + * The following fields are required: + *
        + *
      • {@link Team#name}
      • + *
      + * + * @param teams the teams to create + * @return the created teams with their IDs filled in + */ + public function createTeams($teams) { + $arg = new createTeams($teams); + $result = $this->__soapCall("createTeams", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@code Team} uniquely identified by the given ID. + * + * @param teamId the ID of the team, which must already exist + * @return the {@code Team} uniquely identified by the given ID + */ + public function getTeam($teamId) { + $arg = new getTeam($teamId); + $result = $this->__soapCall("getTeam", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@code TeamPage} of {@code Team} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code id}{@link Team#id}
      {@code name}{@link Team#name}
      {@code description}{@link Team#description}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of teams. + * @return the teams that match the given filter + */ + public function getTeamsByStatement($filterStatement) { + $arg = new getTeamsByStatement($filterStatement); + $result = $this->__soapCall("getTeamsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@code Team}. + * + * @param team the team to update + * @return the updated team + */ + public function updateTeam($team) { + $arg = new updateTeam($team); + $result = $this->__soapCall("updateTeam", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + */ + public function updateTeams($teams) { + $arg = new updateTeams($teams); + $result = $this->__soapCall("updateTeams", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/UserService.php b/src/Google/Api/Ads/Dfp/v201311/UserService.php new file mode 100755 index 000000000..9395569b0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/UserService.php @@ -0,0 +1,3710 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("BaseCustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * @access public + * @var string + */ + public $BaseCustomFieldValueType; + + private $_parameterMap = array ( + "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BaseCustomFieldValue"; + } + + public function __construct($customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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("CustomFieldValue", FALSE)) { +/** + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValue"; + } + + public function __construct($value = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("CustomFieldValueError", FALSE)) { +/** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueError extends ApiError { + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("DropDownCustomFieldValue", FALSE)) { +/** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DropDownCustomFieldValue extends BaseCustomFieldValue { + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DropDownCustomFieldValue"; + } + + public function __construct($customFieldOptionId = NULL, $customFieldId = NULL, $BaseCustomFieldValueType = NULL) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("InvalidEmailError", FALSE)) { +/** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailError extends ApiError { + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("ParseError", FALSE)) { +/** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseError extends ApiError { + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError"; + } + + 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("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredError extends ApiError { + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError"; + } + + 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("Role", FALSE)) { +/** + * Each {@code Role} provides a user with permissions to perform specific + * operations in the system. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Role { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Role"; + } + + public function __construct($id = NULL, $name = NULL, $description = NULL) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + } +}} + +if (!class_exists("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("TeamError", FALSE)) { +/** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamError extends ApiError { + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError"; + } + + 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("TypeError", FALSE)) { +/** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TypeError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TypeError"; + } + + 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("UniqueError", FALSE)) { +/** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UniqueError extends ApiError { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UniqueError"; + } + + 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("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserAction { + /** + * @access public + * @var string + */ + public $UserActionType; + + private $_parameterMap = array ( + "UserAction.Type" => "UserActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserAction"; + } + + public function __construct($UserActionType = NULL) { + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("UserPage", FALSE)) { +/** + * Captures a page of {@link User} objects + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var User[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("UserRecord", FALSE)) { +/** + * The {@code UserRecord} represents the base class from which a {@code User} is + * derived. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserRecord { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $email; + + /** + * @access public + * @var integer + */ + public $roleId; + + /** + * @access public + * @var string + */ + public $roleName; + + /** + * @access public + * @var string + */ + public $preferredLocale; + + /** + * @access public + * @var string + */ + public $UserRecordType; + + private $_parameterMap = array ( + "UserRecord.Type" => "UserRecordType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecord"; + } + + public function __construct($id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CustomFieldValueErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CustomFieldValueErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CustomFieldValueError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InvalidEmailErrorReason", FALSE)) { +/** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InvalidEmailErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InvalidEmailError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ParseErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ParseErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ParseError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("RequiredErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RequiredErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RequiredError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUser", FALSE)) { +/** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("createUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUsers", FALSE)) { +/** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("createUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getAllRoles", FALSE)) { +/** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAllRoles { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getAllRolesResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getAllRolesResponse { + /** + * @access public + * @var Role[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getCurrentUser", FALSE)) { +/** + * Returns the current {@link User}. + * + * @return the current user + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCurrentUser { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct() { + } +}} + +if (!class_exists("getCurrentUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getCurrentUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUser", FALSE)) { +/** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getUser { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userId = NULL) { + $this->userId = $userId; + } +}} + +if (!class_exists("getUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUsersByStatement", FALSE)) { +/** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getUsersByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUsersByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getUsersByStatementResponse { + /** + * @access public + * @var UserPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserAction", FALSE)) { +/** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performUserAction { + /** + * @access public + * @var UserAction + */ + public $userAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userAction = NULL, $filterStatement = NULL) { + $this->userAction = $userAction; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performUserActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performUserActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUser", FALSE)) { +/** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateUser { + /** + * @access public + * @var User + */ + public $user; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($user = NULL) { + $this->user = $user; + } +}} + +if (!class_exists("updateUserResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateUserResponse { + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUsers", FALSE)) { +/** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateUsers { + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($users = NULL) { + $this->users = $users; + } +}} + +if (!class_exists("updateUsersResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateUsersResponse { + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ActivateUsers", FALSE)) { +/** + * The action used for activating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ActivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ActivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeactivateUsers", FALSE)) { +/** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeactivateUsers extends UserAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeactivateUsers"; + } + + public function __construct($UserActionType = NULL) { + parent::__construct(); + $this->UserActionType = $UserActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("User", FALSE)) { +/** + * Represents a user of the system. + *

      + * Users may be assigned at most one {@link Role} per network. Each role + * provides a user with permissions to perform specific operations. Without a + * role, they will not be able to perform any actions. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class User extends UserRecord { + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var string + */ + public $ordersUiLocalTimeZoneId; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "User"; + } + + public function __construct($isActive = NULL, $isEmailNotificationAllowed = NULL, $externalId = NULL, $ordersUiLocalTimeZoneId = NULL, $customFieldValues = NULL, $id = NULL, $name = NULL, $email = NULL, $roleId = NULL, $roleName = NULL, $preferredLocale = NULL, $UserRecordType = NULL) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->externalId = $externalId; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $this->customFieldValues = $customFieldValues; + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + $this->UserRecordType = $UserRecordType; + } +}} + +if (!class_exists("UserService", FALSE)) { +/** + * UserService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class UserService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ActivateUsers" => "ActivateUsers", + "UserAction" => "UserAction", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateUsers" => "DeactivateUsers", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredError" => "RequiredError", + "Role" => "Role", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "User" => "User", + "UserRecord" => "UserRecord", + "UserPage" => "UserPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createUser" => "createUser", + "createUserResponse" => "createUserResponse", + "createUsers" => "createUsers", + "createUsersResponse" => "createUsersResponse", + "getAllRoles" => "getAllRoles", + "getAllRolesResponse" => "getAllRolesResponse", + "getCurrentUser" => "getCurrentUser", + "getCurrentUserResponse" => "getCurrentUserResponse", + "getUser" => "getUser", + "getUserResponse" => "getUserResponse", + "getUsersByStatement" => "getUsersByStatement", + "getUsersByStatementResponse" => "getUsersByStatementResponse", + "performUserAction" => "performUserAction", + "performUserActionResponse" => "performUserActionResponse", + "updateUser" => "updateUser", + "updateUserResponse" => "updateUserResponse", + "updateUsers" => "updateUsers", + "updateUsersResponse" => "updateUsersResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/UserService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@link User}. + * + * The following fields are required: + *
        + *
      • {@link User#email}
      • + *
      • {@link User#name}
      • + *
      + * + * @param user the user to create + * @return the new user with its ID filled in + */ + public function createUser($user) { + $arg = new createUser($user); + $result = $this->__soapCall("createUser", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + */ + public function createUsers($users) { + $arg = new createUsers($users); + $result = $this->__soapCall("createUsers", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link Role} objects that are defined for the users of the + * network. + * + * @return the roles defined for the user's network + */ + public function getAllRoles() { + $arg = new getAllRoles(); + $result = $this->__soapCall("getAllRoles", array($arg)); + return $result->rval; + } + + + /** + * Returns the current {@link User}. + * + * @return the current user + */ + public function getCurrentUser() { + $arg = new getCurrentUser(); + $result = $this->__soapCall("getCurrentUser", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link User} uniquely identified by the given ID. + * + * @param userId The optional ID of the user. For current user set to {@code null}. + * @return the {@code User} uniquely identified by the given ID + */ + public function getUser($userId) { + $arg = new getUser($userId); + $result = $this->__soapCall("getUser", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserPage} of {@link User} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code email}{@link User#email}
      {@code id}{@link User#id}
      {@code name}{@link User#name}
      {@code roleId}{@link User#roleId} + *
      {@code rolename}{@link User#roleName} + *
      {@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} + * otherwise
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the users that match the given filter + */ + public function getUsersByStatement($filterStatement) { + $arg = new getUsersByStatement($filterStatement); + $result = $this->__soapCall("getUsersByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link User} objects that match the given + * {@link Statement#query}. + * + * @param userAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of users + * @return the result of the action performed + */ + public function performUserAction($userAction, $filterStatement) { + $arg = new performUserAction($userAction, $filterStatement); + $result = $this->__soapCall("performUserAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User}. + * + * @param user the user to update + * @return the updated user + */ + public function updateUser($user) { + $arg = new updateUser($user); + $result = $this->__soapCall("updateUser", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + */ + public function updateUsers($users) { + $arg = new updateUsers($users); + $result = $this->__soapCall("updateUsers", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php new file mode 100755 index 000000000..2fa8a5c76 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php @@ -0,0 +1,2937 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullError extends ApiError { + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("UserRecordTeamAssociation", FALSE)) { +/** + * {@code UserRecordTeamAssociation} represents the association between a + * {@link UserRecord} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $overriddenTeamAccessType; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $defaultTeamAccessType; + + /** + * @access public + * @var string + */ + public $UserRecordTeamAssociationType; + + private $_parameterMap = array ( + "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserRecordTeamAssociation"; + } + + public function __construct($teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link UserTeamAssociation} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserTeamAssociationAction { + /** + * @access public + * @var string + */ + public $UserTeamAssociationActionType; + + private $_parameterMap = array ( + "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationAction"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("UserTeamAssociation", FALSE)) { +/** + * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} + * to provide the user access to the entities that belong to the team. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserTeamAssociation extends UserRecordTeamAssociation { + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociation"; + } + + public function __construct($userId = NULL, $teamId = NULL, $overriddenTeamAccessType = NULL, $defaultTeamAccessType = NULL, $UserRecordTeamAssociationType = NULL) { + parent::__construct(); + $this->userId = $userId; + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; + } +}} + +if (!class_exists("UserTeamAssociationPage", FALSE)) { +/** + * Captures a page of {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UserTeamAssociationPage { + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UserTeamAssociationPage"; + } + + public function __construct($totalResultSetSize = NULL, $startIndex = NULL, $results = NULL) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NullErrorReason", FALSE)) { +/** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("TeamAccessType", FALSE)) { +/** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TeamAccessType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TeamAccessType"; + } + + public function __construct() { + } +}} + +if (!class_exists("createUserTeamAssociation", FALSE)) { +/** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("createUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("createUserTeamAssociations", FALSE)) { +/** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("createUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class createUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociation", FALSE)) { +/** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getUserTeamAssociation { + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($teamId = NULL, $userId = NULL) { + $this->teamId = $teamId; + $this->userId = $userId; + } +}} + +if (!class_exists("getUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatement", FALSE)) { +/** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getUserTeamAssociationsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getUserTeamAssociationsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getUserTeamAssociationsByStatementResponse { + /** + * @access public + * @var UserTeamAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performUserTeamAssociationAction", FALSE)) { +/** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performUserTeamAssociationAction { + /** + * @access public + * @var UserTeamAssociationAction + */ + public $userTeamAssociationAction; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociationAction = NULL, $statement = NULL) { + $this->userTeamAssociationAction = $userTeamAssociationAction; + $this->statement = $statement; + } +}} + +if (!class_exists("performUserTeamAssociationActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performUserTeamAssociationActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociation", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateUserTeamAssociation { + /** + * @access public + * @var UserTeamAssociation + */ + public $userTeamAssociation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociation = NULL) { + $this->userTeamAssociation = $userTeamAssociation; + } +}} + +if (!class_exists("updateUserTeamAssociationResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateUserTeamAssociationResponse { + /** + * @access public + * @var UserTeamAssociation + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("updateUserTeamAssociations", FALSE)) { +/** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateUserTeamAssociations { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($userTeamAssociations = NULL) { + $this->userTeamAssociations = $userTeamAssociations; + } +}} + +if (!class_exists("updateUserTeamAssociationsResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class updateUserTeamAssociationsResponse { + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DeleteUserTeamAssociations", FALSE)) { +/** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DeleteUserTeamAssociations extends UserTeamAssociationAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DeleteUserTeamAssociations"; + } + + public function __construct($UserTeamAssociationActionType = NULL) { + parent::__construct(); + $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("UserTeamAssociationService", FALSE)) { +/** + * UserTeamAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class UserTeamAssociationService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", + "UserTeamAssociationAction" => "UserTeamAssociationAction", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "UserRecordTeamAssociation" => "UserRecordTeamAssociation", + "UserTeamAssociation" => "UserTeamAssociation", + "UserTeamAssociationPage" => "UserTeamAssociationPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "TeamAccessType" => "TeamAccessType", + "createUserTeamAssociation" => "createUserTeamAssociation", + "createUserTeamAssociationResponse" => "createUserTeamAssociationResponse", + "createUserTeamAssociations" => "createUserTeamAssociations", + "createUserTeamAssociationsResponse" => "createUserTeamAssociationsResponse", + "getUserTeamAssociation" => "getUserTeamAssociation", + "getUserTeamAssociationResponse" => "getUserTeamAssociationResponse", + "getUserTeamAssociationsByStatement" => "getUserTeamAssociationsByStatement", + "getUserTeamAssociationsByStatementResponse" => "getUserTeamAssociationsByStatementResponse", + "performUserTeamAssociationAction" => "performUserTeamAssociationAction", + "performUserTeamAssociationActionResponse" => "performUserTeamAssociationActionResponse", + "updateUserTeamAssociation" => "updateUserTeamAssociation", + "updateUserTeamAssociationResponse" => "updateUserTeamAssociationResponse", + "updateUserTeamAssociations" => "updateUserTeamAssociations", + "updateUserTeamAssociationsResponse" => "updateUserTeamAssociationsResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/UserTeamAssociationService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = UserTeamAssociationService::$classmap; + parent::__construct($wsdl, $options, $user, 'UserTeamAssociationService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Creates a new {@code UserTeamAssociation}. + * + * The following fields are required: + *
        + *
      • {@link UserTeamAssociation#teamId}
      • + *
      • {@link UserTeamAssociation#userId}
      • + *
      + * + * @param userTeamAssociation the user team association to create + * @return the user team association with its ID filled in + */ + public function createUserTeamAssociation($userTeamAssociation) { + $arg = new createUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("createUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Creates new {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to create + * @return the created user team associations with their IDs filled in + */ + public function createUserTeamAssociations($userTeamAssociations) { + $arg = new createUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("createUserTeamAssociations", array($arg)); + return $result->rval; + } + + + /** + * Returns the {@link UserTeamAssociation} uniquely identified by the given + * user and team IDs. + * + * @param teamId the ID of the team, which must already exist + * @param userId the ID of the user, which must already exist + * @return the {@code UserTeamAssociation} uniquely identified by the + * user and team IDs + */ + public function getUserTeamAssociation($teamId, $userId) { + $arg = new getUserTeamAssociation($teamId, $userId); + $result = $this->__soapCall("getUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} + * objects that satisfy the given {@link Statement#query}. The following + * fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL Property Object Property
      {@code userId}{@link UserTeamAssociation#userId}
      {@code teamId}{@link UserTeamAssociation#teamId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the user team associations that match the given filter + */ + public function getUserTeamAssociationsByStatement($filterStatement) { + $arg = new getUserTeamAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Performs actions on {@link UserTeamAssociation} objects that match the + * given {@link Statement#query}. + * + * @param userTeamAssociationAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of user team associations + * @return the result of the action performed + */ + public function performUserTeamAssociationAction($userTeamAssociationAction, $statement) { + $arg = new performUserTeamAssociationAction($userTeamAssociationAction, $statement); + $result = $this->__soapCall("performUserTeamAssociationAction", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation}. + * + * @param userTeamAssociation the user team association to update + * @return the updated user team association + */ + public function updateUserTeamAssociation($userTeamAssociation) { + $arg = new updateUserTeamAssociation($userTeamAssociation); + $result = $this->__soapCall("updateUserTeamAssociation", array($arg)); + return $result->rval; + } + + + /** + * Updates the specified {@link UserTeamAssociation} objects. + * + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations + */ + public function updateUserTeamAssociations($userTeamAssociations) { + $arg = new updateUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("updateUserTeamAssociations", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php new file mode 100755 index 000000000..6400d59c1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php @@ -0,0 +1,2636 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiError { + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * @access public + * @var string + */ + public $ApiErrorType; + + private $_parameterMap = array ( + "ApiError.Type" => "ApiErrorType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiError"; + } + + public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("ApiVersionError", FALSE)) { +/** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionError extends ApiError { + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError"; + } + + 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("ApplicationException", FALSE)) { +/** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApplicationException { + /** + * @access public + * @var string + */ + public $message; + + /** + * @access public + * @var string + */ + public $ApplicationExceptionType; + + private $_parameterMap = array ( + "ApplicationException.Type" => "ApplicationExceptionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApplicationException"; + } + + public function __construct($message = NULL, $ApplicationExceptionType = NULL) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("Authentication", FALSE)) { +/** + * A representation of the authentication protocols that can be used. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Authentication { + /** + * @access public + * @var string + */ + public $AuthenticationType; + + private $_parameterMap = array ( + "Authentication.Type" => "AuthenticationType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Authentication"; + } + + public function __construct($AuthenticationType = NULL) { + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("AuthenticationError", FALSE)) { +/** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationError extends ApiError { + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError"; + } + + public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } +}} + +if (!class_exists("WorkflowRequest", FALSE)) { +/** + * A {@code WorkflowRequest} represents a workflow action unit that requires external or manual + * interference. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowRequest { + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $workflowRuleName; + + /** + * @access public + * @var integer + */ + public $entityId; + + /** + * @access public + * @var tnsWorkflowEntityType + */ + public $entityType; + + /** + * @access public + * @var string + */ + public $WorkflowRequestType; + + private $_parameterMap = array ( + "WorkflowRequest.Type" => "WorkflowRequestType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowRequest"; + } + + public function __construct($id = NULL, $workflowRuleName = NULL, $entityId = NULL, $entityType = NULL, $WorkflowRequestType = NULL) { + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->WorkflowRequestType = $WorkflowRequestType; + } +}} + +if (!class_exists("ClientLogin", FALSE)) { +/** + * The credentials for the {@code ClientLogin} API authentication protocol. + * + * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ClientLogin extends Authentication { + /** + * @access public + * @var string + */ + public $token; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ClientLogin"; + } + + public function __construct($token = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->token = $token; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("CommonError", FALSE)) { +/** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonError extends ApiError { + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class 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 "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Date"; + } + + public function __construct($year = NULL, $month = NULL, $day = NULL) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } +}} + +if (!class_exists("DfpDateTime", FALSE)) { +/** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpDateTime { + /** + * @access public + * @var Date + */ + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTime"; + } + + public function __construct($date = NULL, $hour = NULL, $minute = NULL, $second = NULL, $timeZoneID = NULL) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } +}} + +if (!class_exists("FeatureError", FALSE)) { +/** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureError extends ApiError { + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError"; + } + + 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("ForecastError", FALSE)) { +/** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastError extends ApiError { + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError"; + } + + 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. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiError extends ApiError { + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError"; + } + + 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("LineItemOperationError", FALSE)) { +/** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationError extends ApiError { + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError"; + } + + 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("NotNullError", FALSE)) { +/** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullError extends ApiError { + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError"; + } + + 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("DfpOAuth", FALSE)) { +/** + * The credentials for the {@code OAuth} authentication protocol. + * + * See {@link http://oauth.net/}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DfpOAuth extends Authentication { + /** + * @access public + * @var string + */ + public $parameters; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "OAuth"; + } + + public function __construct($parameters = NULL, $AuthenticationType = NULL) { + parent::__construct(); + $this->parameters = $parameters; + $this->AuthenticationType = $AuthenticationType; + } +}} + +if (!class_exists("PermissionError", FALSE)) { +/** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionError extends ApiError { + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError"; + } + + 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("PublisherQueryLanguageContextError", FALSE)) { +/** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError"; + } + + 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("PublisherQueryLanguageSyntaxError", FALSE)) { +/** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxError extends ApiError { + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError"; + } + + 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("QuotaError", FALSE)) { +/** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaError extends ApiError { + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError"; + } + + 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("ServerError", FALSE)) { +/** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerError extends ApiError { + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError"; + } + + 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)) { +/** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapRequestHeader { + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * @access public + * @var Authentication + */ + public $authentication; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapRequestHeader"; + } + + public function __construct($networkCode = NULL, $applicationName = NULL, $authentication = NULL) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + $this->authentication = $authentication; + } +}} + +if (!class_exists("SoapResponseHeader", FALSE)) { +/** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SoapResponseHeader { + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SoapResponseHeader"; + } + + public function __construct($requestId = NULL, $responseTime = NULL) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } +}} + +if (!class_exists("Statement", FALSE)) { +/** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

      + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

      + *

      + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

      + *

      + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

      + *

      + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

      + *

      + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

      + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

      + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Statement { + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Statement"; + } + + public function __construct($query = NULL, $values = NULL) { + $this->query = $query; + $this->values = $values; + } +}} + +if (!class_exists("StatementError", FALSE)) { +/** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementError extends ApiError { + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError"; + } + + 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("String_ValueMapEntry", FALSE)) { +/** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class String_ValueMapEntry { + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "String_ValueMapEntry"; + } + + public function __construct($key = NULL, $value = NULL) { + $this->key = $key; + $this->value = $value; + } +}} + +if (!class_exists("UpdateResult", FALSE)) { +/** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class UpdateResult { + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "UpdateResult"; + } + + public function __construct($numChanges = NULL) { + $this->numChanges = $numChanges; + } +}} + +if (!class_exists("Value", FALSE)) { +/** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class Value { + /** + * @access public + * @var string + */ + public $ValueType; + + private $_parameterMap = array ( + "Value.Type" => "ValueType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "Value"; + } + + public function __construct($ValueType = NULL) { + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowApprovalRequest", FALSE)) { +/** + * A {@code WorkflowApprovalRequest} represents a workflow action unit that requires user approval. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowApprovalRequest extends WorkflowRequest { + /** + * @access public + * @var tnsWorkflowApprovalRequestStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowApprovalRequest"; + } + + public function __construct($status = NULL, $id = NULL, $workflowRuleName = NULL, $entityId = NULL, $entityType = NULL, $WorkflowRequestType = NULL) { + parent::__construct(); + $this->status = $status; + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->WorkflowRequestType = $WorkflowRequestType; + } +}} + +if (!class_exists("WorkflowRequestAction", FALSE)) { +/** + * Represents the actions that can be performed on {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowRequestAction { + /** + * @access public + * @var string + */ + public $WorkflowRequestActionType; + + private $_parameterMap = array ( + "WorkflowRequestAction.Type" => "WorkflowRequestActionType", + ); + + /** + * Provided for setting non-php-standard named variables + * @param $var Variable name to set + * @param $value Value to set + */ + public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; } + + /** + * Provided for getting non-php-standard named variables + * @param $var Variable name to get. + * @return mixed Variable value + */ + public function __get($var) { + if (!array_key_exists($var, $this->_parameterMap)) { + return NULL; + } else { + return $this->{$this->_parameterMap[$var]}; + } + } + + /** + * Provided for getting non-php-standard named variables + * @return array parameter map + */ + protected function getParameterMap() { + return $this->_parameterMap; + } + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowRequestAction"; + } + + public function __construct($WorkflowRequestActionType = NULL) { + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } +}} + +if (!class_exists("WorkflowRequestPage", FALSE)) { +/** + * Captures a page of {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowRequestPage { + /** + * @access public + * @var WorkflowRequest[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowRequestPage"; + } + + public function __construct($results = NULL, $startIndex = NULL, $totalResultSetSize = NULL) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } +}} + +if (!class_exists("ApiVersionErrorReason", FALSE)) { +/** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiVersionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiVersionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("WorkflowApprovalRequestStatus", FALSE)) { +/** + * The status of the workflow approval request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowApprovalRequestStatus { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowApprovalRequestStatus"; + } + + public function __construct() { + } +}} + +if (!class_exists("AuthenticationErrorReason", FALSE)) { +/** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class AuthenticationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "AuthenticationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("CommonErrorReason", FALSE)) { +/** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class CommonErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "CommonError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("FeatureErrorReason", FALSE)) { +/** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class FeatureErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "FeatureError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ForecastErrorReason", FALSE)) { +/** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ForecastErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ForecastError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("InternalApiErrorReason", FALSE)) { +/** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class InternalApiErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "InternalApiError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("LineItemOperationErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class LineItemOperationErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "LineItemOperationError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("NotNullErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NotNullErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NotNullError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PermissionErrorReason", FALSE)) { +/** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PermissionErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PermissionError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageContextErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageContextError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", FALSE)) { +/** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class PublisherQueryLanguageSyntaxErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "PublisherQueryLanguageSyntaxError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("QuotaErrorReason", FALSE)) { +/** + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

      + * Another way to mitigate this error is to limit requests to 2 per second. + * Once again this does not guarantee that every request will succeed, but + * may help reduce the number of times you receive this error. + *

      + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class QuotaErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "QuotaError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("ServerErrorReason", FALSE)) { +/** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ServerErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ServerError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("StatementErrorReason", FALSE)) { +/** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class StatementErrorReason { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "StatementError.Reason"; + } + + public function __construct() { + } +}} + +if (!class_exists("WorkflowEntityType", FALSE)) { +/** + * The entity types that workflows can be applied to. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class WorkflowEntityType { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "WorkflowEntityType"; + } + + public function __construct() { + } +}} + +if (!class_exists("getWorkflowRequestsByStatement", FALSE)) { +/** + * Gets a list of {@link WorkflowRequest} objects that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link WorkflowRequest#id}
      {@code workflowRuleName}{@link WorkflowRequest#workflowRuleName}
      {@code status}{@link WorkflowApprovalRequest#status}
      {@code entityType}{@link WorkflowRequest#entityType}
      {@code entityId}{@link WorkflowRequest#entityId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the workflow requests that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getWorkflowRequestsByStatement { + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($filterStatement = NULL) { + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("getWorkflowRequestsByStatementResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class getWorkflowRequestsByStatementResponse { + /** + * @access public + * @var WorkflowRequestPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("performWorkflowRequestAction", FALSE)) { +/** + * Perform actions on {@link WorkflowRequest} objects that match the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * requests + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performWorkflowRequestAction { + /** + * @access public + * @var WorkflowRequestAction + */ + public $action; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($action = NULL, $filterStatement = NULL) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } +}} + +if (!class_exists("performWorkflowRequestActionResponse", FALSE)) { +/** + * + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class performWorkflowRequestActionResponse { + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return ""; + } + + public function __construct($rval = NULL) { + $this->rval = $rval; + } +}} + +if (!class_exists("ApiException", FALSE)) { +/** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApiException extends ApplicationException { + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApiException"; + } + + public function __construct($errors = NULL, $message = NULL, $ApplicationExceptionType = NULL) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } +}} + +if (!class_exists("ApproveWorkflowApprovalRequests", FALSE)) { +/** + * The action used to approve {@link WorkflowApprovalRequest workflow approval requests}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class ApproveWorkflowApprovalRequests extends WorkflowRequestAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "ApproveWorkflowApprovalRequests"; + } + + public function __construct($WorkflowRequestActionType = NULL) { + parent::__construct(); + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } +}} + +if (!class_exists("BooleanValue", FALSE)) { +/** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class BooleanValue extends Value { + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "BooleanValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateTimeValue", FALSE)) { +/** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateTimeValue extends Value { + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateTimeValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("DateValue", FALSE)) { +/** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class DateValue extends Value { + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "DateValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("NumberValue", FALSE)) { +/** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class NumberValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "NumberValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("RejectWorkflowApprovalRequests", FALSE)) { +/** + * The action used to reject {@link WorkflowApprovalRequest workflow approval requests}. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class RejectWorkflowApprovalRequests extends WorkflowRequestAction { + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "RejectWorkflowApprovalRequests"; + } + + public function __construct($WorkflowRequestActionType = NULL) { + parent::__construct(); + $this->WorkflowRequestActionType = $WorkflowRequestActionType; + } +}} + +if (!class_exists("SetValue", FALSE)) { +/** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class SetValue extends Value { + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "SetValue"; + } + + public function __construct($values = NULL, $ValueType = NULL) { + parent::__construct(); + $this->values = $values; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("TextValue", FALSE)) { +/** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201311 + */ +class TextValue extends Value { + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return "https://www.google.com/apis/ads/publisher/v201311"; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return "TextValue"; + } + + public function __construct($value = NULL, $ValueType = NULL) { + parent::__construct(); + $this->value = $value; + $this->ValueType = $ValueType; + } +}} + +if (!class_exists("WorkflowRequestService", FALSE)) { +/** + * WorkflowRequestService + * @package GoogleApiAdsDfp + * @subpackage v201311 + * @author WSDLInterpreter + */ +class WorkflowRequestService extends DfpSoapClient { + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "DateTime" => "DfpDateTime", + "Location" => "DfpLocation", + "OAuth" => "DfpOAuth", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "ApiVersionError" => "ApiVersionError", + "ApproveWorkflowApprovalRequests" => "ApproveWorkflowApprovalRequests", + "WorkflowRequestAction" => "WorkflowRequestAction", + "Authentication" => "Authentication", + "AuthenticationError" => "AuthenticationError", + "WorkflowRequest" => "WorkflowRequest", + "BooleanValue" => "BooleanValue", + "Value" => "Value", + "ClientLogin" => "ClientLogin", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RejectWorkflowApprovalRequests" => "RejectWorkflowApprovalRequests", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "WorkflowApprovalRequest" => "WorkflowApprovalRequest", + "WorkflowRequestPage" => "WorkflowRequestPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "WorkflowEntityType" => "WorkflowEntityType", + "getWorkflowRequestsByStatement" => "getWorkflowRequestsByStatement", + "getWorkflowRequestsByStatementResponse" => "getWorkflowRequestsByStatementResponse", + "performWorkflowRequestAction" => "performWorkflowRequestAction", + "performWorkflowRequestActionResponse" => "performWorkflowRequestActionResponse", + ); + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://www.google.com/apis/ads/publisher/v201311/WorkflowRequestService"; + + /** + * 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=null, $options, $user) { + $options["classmap"] = WorkflowRequestService::$classmap; + parent::__construct($wsdl, $options, $user, 'WorkflowRequestService', 'https://www.google.com/apis/ads/publisher/v201311'); + } + + /** + * Gets a list of {@link WorkflowRequest} objects that satisfy the given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      PQL PropertyObject Property
      {@code id}{@link WorkflowRequest#id}
      {@code workflowRuleName}{@link WorkflowRequest#workflowRuleName}
      {@code status}{@link WorkflowApprovalRequest#status}
      {@code entityType}{@link WorkflowRequest#entityType}
      {@code entityId}{@link WorkflowRequest#entityId}
      + * + * @param filterStatement a Publisher Query Language statement used to filter a set of proposals + * @return the workflow requests that match the given filter + */ + public function getWorkflowRequestsByStatement($filterStatement) { + $arg = new getWorkflowRequestsByStatement($filterStatement); + $result = $this->__soapCall("getWorkflowRequestsByStatement", array($arg)); + return $result->rval; + } + + + /** + * Perform actions on {@link WorkflowRequest} objects that match the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of workflow + * requests + * @return the result of the action performed + */ + public function performWorkflowRequestAction($action, $filterStatement) { + $arg = new performWorkflowRequestAction($action, $filterStatement); + $result = $this->__soapCall("performWorkflowRequestAction", array($arg)); + return $result->rval; + } + + +}} \ No newline at end of file diff --git a/src/README.md b/src/README.md new file mode 100755 index 000000000..d94aab7bb --- /dev/null +++ b/src/README.md @@ -0,0 +1,3 @@ +Copy the contents of this directory to the location of your PHP source files +that is on your PHP include path. + diff --git a/tests/Google/Api/Ads/AdWords/AdWordsIntegrationTest.php b/tests/Google/Api/Ads/AdWords/AdWordsIntegrationTest.php new file mode 100755 index 000000000..6d7b2511c --- /dev/null +++ b/tests/Google/Api/Ads/AdWords/AdWordsIntegrationTest.php @@ -0,0 +1,238 @@ +xmlResponse = $assetHelper->getAsset( + sprintf(self::RESPONSE_NAME, self::SERVICE)); + + $this->adWordsUser = new AdWordsUser( + $assetHelper->getAssetPath('auth.ini')); + } + + /** + * Tests that the user agent header is properly set for this client library. + */ + public function testIntegrationCheckUserAgent() { + $campaignService = $this->adWordsUser->getService(self::SERVICE); + + // Build a mocked SoapClient. + $headerPortion = implode('/', + $this->adWordsUser->GetClientLibraryNameAndVersion()); + + // Setup the test. + $soapClientMock = $this->getMockBuilder('SoapClient') + ->setMethods(array('__doRequest')) + ->disableOriginalConstructor() + ->getMock(); + + $soapClientMock->expects($this->any()) + ->method('__doRequest') + ->with($this->stringContains($headerPortion, false)) + ->will($this->returnValue($this->xmlResponse)); + + // Set the transport layer on the soap client to be the mocked soap client. + $campaignService->__SetTransportLayer($soapClientMock); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $graph = $campaignService->get($selector); + + $this->assertEquals($graph->entries[0]->id, self::CAMPAIGN_ID); + } + + /** + * Tests that the user access_token is properly set in the URL for this client + * library. + */ + public function testIntegrationCheckSoapHeaders() { + $campaignService = $this->adWordsUser->getService(self::SERVICE); + + $oauth2AccessToken = ''; + $oAuth2Info = $this->adWordsUser->GetOAuth2Info(); + if (is_array($oAuth2Info) && isset($oAuth2Info['access_token'])) { + $oauth2AccessToken = $oAuth2Info['access_token']; + } + $oauth2Url = http_build_query(array('access_token' => $oauth2AccessToken)); + + // Setup the test. + $soapClientMock = $this->getMockBuilder('SoapClient') + ->setMethods(array('__doRequest')) + ->disableOriginalConstructor() + ->getMock(); + + // Checking for the URL param for the auth token + // (passed in the second function param) + $soapClientMock->expects($this->any()) + ->method('__doRequest') + ->with($this->anything(), $this->stringContains($oauth2Url)) + ->will($this->returnValue($this->xmlResponse)); + + // Set the transport layer on the soap client to be the mocked soap client. + $campaignService->__SetTransportLayer($soapClientMock); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $campaignService->get($selector); + + $this->assertFalse(empty($oauth2AccessToken)); + } + + /** + * Tests that access_token is properly converted into a URL parameter for this + * client library when it's valid. + */ + public function testIntegrationOAuth2Handler_ValidAccessToken() { + $credentialsOverride = array( + 'access_token' => sprintf('TEST_ACCESS_TOKEN_%s', uniqid()) + ); + + $campaignService = $this->adWordsUser->getService(self::SERVICE); + + $oAuth2Info = $this->adWordsUser->GetOAuth2Info(); + $this->adWordsUser->SetOAuth2Info(array_merge($oAuth2Info, + $credentialsOverride)); + + // Get the expected auth param for the URL. + $oauth2Url = http_build_query( + array('access_token' => $credentialsOverride['access_token'])); + + // Setup the test. + $soapClientMock = $this->getMockBuilder('SoapClient') + ->setMethods(array('__doRequest')) + ->disableOriginalConstructor() + ->getMock(); + + // Checking for the URL param for the auth token + // (passed in the second function param) + $soapClientMock->expects($this->any()) + ->method('__doRequest') + ->with($this->anything(), $this->stringContains($oauth2Url)) + ->will($this->returnValue($this->xmlResponse)); + + // Set the transport layer on the soap client to be the mocked soap client. + $campaignService->__SetTransportLayer($soapClientMock); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $campaignService->get($selector); + } + + /** + * Tests that the access_token is refreshed correctly and set on the URL + * params for this client library. + */ + public function testIntegrationOAuth2Handler_InvalidAccessToken() { + $credentialsOverride = array( + 'access_token' => sprintf('TEST_ACCESS_TOKEN_%s', uniqid()), + 'refresh_token' => sprintf('TEST_REFRESH_TOKEN_%s', uniqid()), + 'expires_in' => '3600', + 'timestamp' => strtotime('-1 day'), + ); + $credentialsRefreshed = array( + 'access_token' => sprintf('TEST_ACCESS_TOKEN_%s', uniqid()), + 'refresh_token' => $credentialsOverride['refresh_token'], + 'expires_in' => '3600', + 'timestamp' => time(), + 'Foo' => 'bar', + ); + + $campaignService = $this->adWordsUser->getService(self::SERVICE); + + $oAuth2Info = $this->adWordsUser->GetOAuth2Info(); + $newOAuth2Info = array_merge($oAuth2Info, $credentialsOverride); + $this->adWordsUser->SetOAuth2Info($newOAuth2Info); + + // Get the expected auth param for the URL. + $oauth2Url = http_build_query( + array('access_token' => $credentialsRefreshed['access_token'])); + + // Setup the mocked OAuth2Handler class. + $oAuth2Handler = $this->getMock('SimpleOAuth2Handler', + array('RefreshAccessToken')); + + $oAuth2Handler->expects($this->any()) + ->method('RefreshAccessToken') + ->will($this->returnValue($credentialsRefreshed)); + $this->adWordsUser->SetOAuth2Handler($oAuth2Handler); + + // Setup the test. + $soapClientMock = $this->getMockBuilder('SoapClient') + ->setMethods(array('__doRequest')) + ->disableOriginalConstructor() + ->getMock(); + + // Checking for the URL param for the auth token (passed in the second + // function param). + $soapClientMock->expects($this->any()) + ->method('__doRequest') + ->with($this->anything(), $this->stringContains($oauth2Url)) + ->will($this->returnValue($this->xmlResponse)); + + // Set the transport layer on the soap client to be the mocked soap client. + $campaignService->__SetTransportLayer($soapClientMock); + + // Create selector. + $selector = new Selector(); + // Specify the fields to retrieve. + $selector->fields = array('Login', 'CustomerId', 'Name'); + + // Make the get request. + $campaignService->get($selector); + } +} diff --git a/tests/Google/Api/Ads/AdWords/CampaignService-response.xml b/tests/Google/Api/Ads/AdWords/CampaignService-response.xml new file mode 100755 index 000000000..638b32829 --- /dev/null +++ b/tests/Google/Api/Ads/AdWords/CampaignService-response.xml @@ -0,0 +1 @@ +00000000000000000000000000000000CampaignServiceget036906CampaignPage000000000Test Campaign #0ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.8000000000Test Campaign #1ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.883606801Test Campaign #2ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.883606921Test Campaign #3ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.887243041Test Campaign #4ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.8000000000Test Campaign #5ALLCampaignStats0Campaign.suggestedMobileBidAdjustment0.8 diff --git a/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php b/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php new file mode 100755 index 000000000..dcfdc8f7e --- /dev/null +++ b/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php @@ -0,0 +1,125 @@ +authIniFilePath = tempnam(sys_get_temp_dir(), 'auth.ini.'); + $this->mockOAuth2Credential = array('client_id' => 'cid', + 'client_secret' => 'csecret', 'refresh_token' => 'token'); + } + + /** + * @covers AdsUser::GetClientLibraryUserAgent + */ + public function + testGetClientLibraryUserAgentReturnsCorrectlyFormattedUserAgent() { + $USER_AGENT = 'AdWordsApiPhpClient-test'; + $LIB_NAME = 'AwApi-PHP'; + $COMMON_NAME = 'Common-PHP'; + $VERSION_REGEX = '\d{1,2}\.\d{1,2}\.\d{1,2}'; + + $user = new AdWordsUser($this->authIniFilePath, null, null, 'devToken', + null, $USER_AGENT, null, null, null, $this->mockOAuth2Credential); + + // Example: "AdWordsApiPhpClient-test (AwApi-PHP/4.1.1, Common-PHP/5.0.0, + // PHP/5.4.8)" + $search = sprintf( + '/^%s \(%s\/%s, %s\/%s, PHP\/%s\)$/', + preg_quote($user->GetUserAgent()), + preg_quote($LIB_NAME), + $VERSION_REGEX, + preg_quote($COMMON_NAME), + $VERSION_REGEX, + preg_quote(PHP_VERSION) + ); + + $this->assertRegExp($search, $user->GetClientLibraryUserAgent()); + } + + /** + * @expectedException ValidationException + * @covers AdWordsUser::ValidateUser + */ + public function + testValidateUserWithNullUserAgentFailsWithValidationException() { + $user = new AdWordsUser($this->authIniFilePath, null, null, 'devToken', + null, null, null, null, null, $this->mockOAuth2Credential); + $user->validateUser(); + } + + /** + * @expectedException ValidationException + * @covers AdWordsUser::ValidateUser + */ + public function + testValidateUserWithEmptyUserAgentFailsWithValidationException() { + $user = new AdWordsUser($this->authIniFilePath, null, null, 'devToken', + null, '', null, null, null, $this->mockOAuth2Credential); + $user->validateUser(); + } + + /** + * @expectedException ValidationException + * @covers AdWordsUser::ValidateUser + */ + public function + testValidateUserWithDefaultUserAgentFailsWithValidationException() { + $user = new AdWordsUser($this->authIniFilePath, null, null, 'devToken', + null, 'INSERT_COMPANY_NAME_HERE', null, null, null, + $this->mockOAuth2Credential); + $user->validateUser(); + } + + /** + * Tests that instantiating an AdWordsUser with an auth.ini file that has the + * key "clientId" will throw an exception because it has been changed to + * "clientCustomerId". + * + * @expectedException ValidationException + * @covers AdWordsUser::__construct + */ + public function testConstructWithClientIdFailsWithValidationException() { + $authIniFile = fopen($this->authIniFilePath, 'w'); + fwrite($authIniFile, 'clientId = "12345678"'); + fclose($authIniFile); + + new AdWordsUser($this->authIniFilePath, null, null, null, null, null, null, + null); + } +} + diff --git a/tests/Google/Api/Ads/AdWords/auth.ini b/tests/Google/Api/Ads/AdWords/auth.ini new file mode 100755 index 000000000..fc9b9cd69 --- /dev/null +++ b/tests/Google/Api/Ads/AdWords/auth.ini @@ -0,0 +1,9 @@ +developerToken = "testDevToken" +userAgent = "test-company" + +[OAUTH2] +client_id = "TestClientId" +client_secret = "TestClientSecret" +refresh_token = "TestRefreshToken" +access_token = "TestAccessToken" + diff --git a/tests/Google/Api/Ads/Common/Lib/AdsSoapClientTest.php b/tests/Google/Api/Ads/Common/Lib/AdsSoapClientTest.php new file mode 100755 index 000000000..41466cc7d --- /dev/null +++ b/tests/Google/Api/Ads/Common/Lib/AdsSoapClientTest.php @@ -0,0 +1,112 @@ +assertEquals($value, $result); + $this->assertEquals($type, gettype($result)); + } + + /** + * Tests serializing a long field value. + * @covers AdsSoapClient::TypemapLongToXml + * @dataProvider TypemapLongToXmlProvider + */ + public function testTypemapLongToXml($xml, $value, $type) { + $result = AdsSoapClient::TypemapLongToXml($value); + $this->assertEquals($xml, $result); + } + + /** + * Provider for testTypemapLongFromXml. + * @return an array or arrays of XML, value, and type. + */ + public function TypemapLongFromXmlProvider() { + $data = $this->TypemapLongToXmlProvider(); + + // ID fields. + $data[] = array('0', '0', 'string'); + $data[] = array('0', '0', 'string'); + $data[] = array('0', '0', 'string'); + $data[] = array('0', '0', + 'string'); + $data[] = array('0', '0', 'string'); + + // Non-id fields that end in "id". + $data[] = array('0', 0, 'integer'); + + return $data; + } + + /** + * Provider for testTypemapLongToXml. + * @return an array or arrays of XML, value, and type. + */ + public function TypemapLongToXmlProvider() { + $data = array(); + + // Within the integer space. + $data[] = array('0', 0, 'integer'); + $data[] = array('1', 1, 'integer'); + $data[] = array('-1', -1, 'integer'); + + // Integer boundaries. + if (PHP_INT_SIZE == 4) { + $data[] = array('2147483647', 2147483647, 'integer'); + $data[] = array('-2147483648', -2147483648, 'integer'); + $data[] = array('2147483648', 2147483648, 'double'); + $data[] = array('-2147483649', -2147483649, 'double'); + } else { + $data[] = array('9223372036854775807', 9223372036854775807, + 'integer'); + $data[] = array('-9223372036854775808', + -9223372036854775808, 'integer'); + $data[] = array('9223372036854775808', 9223372036854775808, + 'double'); + // Strings will be returned if the precision isn't great enough to + // reliably store a value. + $data[] = array('-9223372036854775809', + '-9223372036854775809', 'string'); + } + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php b/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php new file mode 100755 index 000000000..a72d193c8 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php @@ -0,0 +1,441 @@ +logsRelativePathBase = dirname(__FILE__) . '/../'; + } + + /** + * Tests loading relative logging settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Relative() { + $logDirPath = 'Lib'; + $settings = array( + 'LOGGING' => array( + 'PATH_RELATIVE' => '1', + 'LIB_LOG_DIR_PATH' => $logDirPath, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $expected = realpath($this->logsRelativePathBase . '/' . $logDirPath); + $this->assertEquals($expected, $user->GetLogsDirectory()); + } + + /** + * Tests loading relative logging settings with an invalid path. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Relative_InvalidPath() { + $logsRelativeBasePath = '/foo/bar'; + $logDirPath = 'logs'; + $settings = array( + 'LOGGING' => array( + 'PATH_RELATIVE' => '1', + 'LIB_LOG_DIR_PATH' => $logDirPath, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, $logsRelativeBasePath); + $this->assertEquals(self::DEFAULT_LOGS_DIR, $user->GetLogsDirectory()); + } + + /** + * Tests loading relative logging settings with a missing path. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Relative_MissingPath() { + $settings = array( + 'LOGGING' => array( + 'PATH_RELATIVE' => '1', + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(self::DEFAULT_LOGS_DIR, $user->GetLogsDirectory()); + } + + /** + * Tests loading logging settings with relative unspecified. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Relative_Unspecified() { + $logDirPath = '/var/log/ads'; + $settings = array( + 'LOGGING' => array( + 'LIB_LOG_DIR_PATH' => $logDirPath, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($logDirPath, $user->GetLogsDirectory()); + } + + /** + * Tests loading absolute logging settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Absolute() { + $logDirPath = '/var/log/ads'; + $settings = array( + 'LOGGING' => array( + 'PATH_RELATIVE' => '0', + 'LIB_LOG_DIR_PATH' => $logDirPath, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($logDirPath, $user->GetLogsDirectory()); + } + + /** + * Tests loading default logging settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Logging_Defaults() { + $settings = array( + 'LOGGING' => array(), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(self::DEFAULT_LOGS_DIR, $user->GetLogsDirectory()); + } + + /** + * Tests loading server settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Server() { + $defaultVersion = 'v2'; + $defaultServer = 'https://testing.google.com'; + $settings = array( + 'SERVER' => array( + 'DEFAULT_VERSION' => $defaultVersion, + 'DEFAULT_SERVER' => $defaultServer, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($defaultVersion, $user->GetDefaultVersion()); + $this->assertEquals($defaultServer, $user->GetDefaultServer()); + } + + /** + * Tests loading default server settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Server_Defaults() { + $settings = array( + 'SERVER' => array(), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(self::DEFAULT_VERSION, $user->GetDefaultVersion()); + $this->assertEquals(self::DEFAULT_SERVER, $user->GetDefaultServer()); + } + + /** + * Tests loading SOAP settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Soap() { + $compression = FALSE; + $compressionLevel = '5'; + $wsdlCache = WSDL_CACHE_MEMORY; + $settings = array( + 'SOAP' => array( + 'COMPRESSION' => $compression, + 'COMPRESSION_LEVEL' => $compressionLevel, + 'WSDL_CACHE' => $wsdlCache, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($compression, $user->IsSoapCompressionEnabled()); + $this->assertEquals($compressionLevel, $user->GetSoapCompressionLevel()); + $this->assertEquals($wsdlCache, $user->GetWsdlCacheType()); + } + + /** + * Tests loading SOAP settings with an invalid compression level. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Soap_InvalidCompression() { + $compressionLevel = '100'; + $settings = array( + 'SOAP' => array( + 'COMPRESSION_LEVEL' => $compressionLevel, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(1, $user->GetSoapCompressionLevel()); + } + + /** + * Tests loading SOAP settings with an invalid WSDL cache value. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Soap_InvalidWsdlCache() { + $wsdlCache = '100'; + $settings = array( + 'SOAP' => array( + 'WSDL_CACHE' => $wsdlCache, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(WSDL_CACHE_NONE, $user->GetWsdlCacheType()); + } + + /** + * Tests loading default SOAP settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Soap_Defaults() { + $settings = array( + 'SOAP' => array(), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals(TRUE, $user->IsSoapCompressionEnabled()); + $this->assertEquals(1, $user->GetSoapCompressionLevel()); + $this->assertEquals(WSDL_CACHE_NONE, $user->GetWsdlCacheType()); + } + + /** + * Tests loading proxy settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Proxy() { + $host = 'localhost'; + $port = '4040'; + $proxyUser = 'foo'; + $proxyPassword = 'bar'; + $settings = array( + 'PROXY' => array( + 'HOST' => $host, + 'PORT' => $port, + 'USER' => $proxyUser, + 'PASSWORD' => $proxyPassword, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($host, HTTP_PROXY_HOST); + $this->assertEquals($port, HTTP_PROXY_PORT); + $this->assertEquals($proxyUser, HTTP_PROXY_USER); + $this->assertEquals($proxyPassword, HTTP_PROXY_PASSWORD); + } + + /** + * Tests loading auth settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Auth() { + $server = 'http://localhost'; + $oAuth2HandlerClass = 'SimpleOAuth2Handler'; + $settings = array( + 'AUTH' => array( + 'AUTH_SERVER' => $server, + 'OAUTH2_HANDLER_CLASS' => $oAuth2HandlerClass, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($server, $user->GetAuthServer()); + $this->assertEquals($oAuth2HandlerClass, + get_class($user->GetOAuth2Handler())); + } + + /** + * Tests loading default auth settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Auth_Defaults() { + $settings = array( + 'AUTH' => array(), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals('https://accounts.google.com', $user->GetAuthServer()); + $this->assertEquals('SimpleOAuth2Handler', + get_class($user->GetOAuth2Handler())); + } + + /** + * Tests loading SSL settings. + * @covers AdsUser::LoadSettings + */ + public function testLoadSettings_Ssl() { + $verifyPeer = 1; + $verifyHost = 1; + $caPath = '/etc/ssl/certs'; + $caFile = '/etc/ssl/cafile'; + $settings = array( + 'SSL' => array( + 'VERIFY_PEER' => $verifyPeer, + 'VERIFY_HOST' => $verifyHost, + 'CA_PATH' => $caPath, + 'CA_FILE' => $caFile, + ), + ); + $settingsFilePath = $this->createTempSettingsFile($settings); + $user = new TestAdsUser(); + $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, + self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, + $this->logsRelativePathBase); + $this->assertEquals($verifyPeer, SSL_VERIFY_PEER); + $this->assertEquals($verifyHost, SSL_VERIFY_HOST); + $this->assertEquals($caPath, SSL_CA_PATH); + $this->assertEquals($caFile, SSL_CA_FILE); + } + + /** + * Creates a temporary settings file from the array of settings provided. + * @param array $settings the settings to use + * @return string the path to the temp file + */ + private function createTempSettingsFile(array $settings) { + $filePath = tempnam(sys_get_temp_dir(), 'settings.ini.'); + $file = fopen($filePath, 'w'); + foreach ($settings as $section => $properties) { + fwrite($file, sprintf("[%s]\n", $section)); + foreach ($properties as $name => $value) { + if ($value === FALSE) { + $value = '0'; + } + fwrite($file, sprintf("%s = '%s'\n", $name, $value)); + } + } + fclose($file); + return $filePath; + } +} + +/** + * A test class that extends AdsUser. + */ +class TestAdsUser extends AdsUser { + + const USER_AGENT_HEADER_NAME = 'applicationName'; + + const LIB_VERSION = '2.13.0'; + const LIB_NAME = "DfpApi-PHP"; + + const APPLICATION_NAME = 'GoogleTestPhp'; + + const OAUTH2_SCOPE = ''; + const HANDLER_CLASS = 'SimpleOAuth2Handler'; + + /** + * Creates a new instance of this test subclass. + */ + public function __construct() { + parent::__construct(); + $this->SetClientLibraryUserAgent(self::APPLICATION_NAME); + } + + /** + * @see AdsUser::GetUserAgentHeaderName() + */ + public function GetUserAgentHeaderName() { + return self::USER_AGENT_HEADER_NAME; + } + + /** + * @see AdsUser::GetClientLibraryNameAndVersion() + */ + public function GetClientLibraryNameAndVersion() { + return array(self::LIB_NAME, self::LIB_VERSION); + } + + public function GetDefaultOAuth2Handler($className = NULL) { + $className = !empty($className) ? $className : self::HANDLER_CLASS; + return new $className($this->GetAuthServer(), self::OAUTH2_SCOPE); + } +} + diff --git a/tests/Google/Api/Ads/Common/Testing/AssetHelper.php b/tests/Google/Api/Ads/Common/Testing/AssetHelper.php new file mode 100755 index 000000000..e8367bfbf --- /dev/null +++ b/tests/Google/Api/Ads/Common/Testing/AssetHelper.php @@ -0,0 +1,100 @@ +defaultExt = $defaultExt ?: ''; + $this->assetDirectory = $assetDirectory; + } + + /** + * Get the full path to an asset. + * @param string $assetName the name of the asset + * @param null|string $ext the extension of the asset, if applicable + * @return string the resultant path + */ + public function getAssetPath($assetName, $ext = null) { + $ext = $ext ?: $this->defaultExt; + return sprintf('%s/%s%s', $this->assetDirectory, $assetName, $ext); + } + + /** + * Get an Asset. + * @param string $assetName the asset name + * @param null|string $ext the extension of the asset, if applicable + * @throws InvalidArgumentException if theres an issue finding the file + * @return string the contents of the asset + */ + public function getAsset($assetName, $ext = null) { + $assetPath = $this->getAssetPath($assetName, $ext); + + if (!file_exists($assetPath)) { + throw new InvalidArgumentException(sprintf('"%s" asset not found: %s', + $assetName, $assetPath)); + } + + return file_get_contents($assetPath); + } + + /** + * Get an Asset as an XML Dom. + * @param string $assetName the XML asset name + * @param null|string $ext the extension of the asset, if applicable + * @return string the contents of the asset + * @throws InvalidArgumentException if theres an issue finding the file + * @throws DOMException if the DOM could not be loaded + */ + public function getAssetAsDom($assetName, $ext = null) { + return XmlUtils::GetDomFromXml($this->getAsset($assetName, $ext)); + } +} diff --git a/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php b/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php new file mode 100755 index 000000000..62805c75b --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php @@ -0,0 +1,110 @@ +curlUtilsMock = $this->getMockBuilder('CurlUtils') + ->setMethods(array('CreateSession', 'Init', + 'SetOpt', 'Exec', 'GetInfo', 'Error', + 'Close')) + ->getMock(); + + $this->authToken = new AuthToken(self::EMAIL, + self::PASSWORD, self::SERVICE, + self::SOURCE, NULL, NULL, NULL, NULL, $this->curlUtilsMock); + } + + private function setCurlUtilsMethodsExpects($response, $httpCode, $error) { + $this->curlUtilsMock->expects($this->any()) + ->method('Exec') + ->will($this->returnValue($response)); + $this->curlUtilsMock->expects($this->any()) + ->method('GetInfo') + ->will($this->returnValue($httpCode)); + $this->curlUtilsMock->expects($this->any()) + ->method('Error') + ->will($this->returnValue($error)); + } + + /** + * @covers AuthToken::GetAuthToken + */ + public function testGetAuthToken_returnsValidToken() { + $this->setCurlUtilsMethodsExpects(sprintf("%s\n%s\n%s", 'SID=DFP', + 'LSID=DFPDFP', 'Auth=DFPDFPDFP'), 200, FALSE); + + $result = $this->authToken->GetAuthToken(); + $this->assertNotNull($result); + $this->assertEquals('DFPDFPDFP', $result); + } + + /** + * @covers AuthToken::GetAuthToken + * @expectedException AuthTokenException + */ + public function testGetAuthToken_withBadAuthentication() { + $this->setCurlUtilsMethodsExpects('Error=BadAuthentication', 403, FALSE); + $result = $this->authToken->GetAuthToken(); + } + + /** + * @covers AuthToken::GetAuthToken + * @expectedException AuthTokenException + */ + public function testGetAuthToken_withInvalidServer() { + $this->setCurlUtilsMethodsExpects(FALSE, 0, + "Couldn't resolve host 'foo.google.com'"); + $result = $this->authToken->GetAuthToken(); + } + + /** + * @covers AuthToken::GetAuthToken + * @expectedException AuthTokenException + */ + public function testGetAuthToken_withInvalidService() { + $this->setCurlUtilsMethodsExpects(sprintf("%s\n%s", 'Error=Unknown', + 'Url=https://www.google.com/accounts/ErrorMsg?service=foo&id=unknown&ti' + . 'meStmp=1343855615&secTok=DFPDFPDFP'), 403, FALSE); + $result = $this->authToken->GetAuthToken(); + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/ChoiceUtilsTest.php b/tests/Google/Api/Ads/Common/Util/ChoiceUtilsTest.php new file mode 100755 index 000000000..2af95a9ca --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/ChoiceUtilsTest.php @@ -0,0 +1,66 @@ +assertEquals($expected, $result); + } + + /** + * Provides choice objects along with the expected value. + * @return array an array of arrays of choices and expected values + */ + public function ChoiceProvider() { + $data = array(); + + // Populated choice. + $choice = (object) array('first' => NULL, 'second' => 'value'); + $data[] = array($choice, 'value'); + + // Empty choice. + $choice = (object) array('first' => NULL, 'second' => NULL); + $data[] = array($choice, NULL); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php b/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php new file mode 100755 index 000000000..996506218 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php @@ -0,0 +1,59 @@ + 'REFRESH_TOKEN', + ); + $mockUser = $this->getMockBuilder('AdsUser') + ->disableOriginalConstructor() + ->getMockForAbstractClass(); + + $mockUser->SetOAuth2Info($credentials); + + $this->assertFalse( + DeprecationUtils::ShouldRaiseClientLoginWarning($mockUser)); + } + + public function testShouldRaiseClientLoginWarning_InvalidUsingClientLogin() { + $credentials = array(); + $mockUser = $this->getMockBuilder('AdsUser') + ->disableOriginalConstructor() + ->getMockForAbstractClass(); + $mockUser->SetOAuth2Info($credentials); + + $this->assertTrue( + DeprecationUtils::ShouldRaiseClientLoginWarning($mockUser)); + } +} diff --git a/tests/Google/Api/Ads/Common/Util/ErrorUtilsTest.php b/tests/Google/Api/Ads/Common/Util/ErrorUtilsTest.php new file mode 100755 index 000000000..611b94bce --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/ErrorUtilsTest.php @@ -0,0 +1,125 @@ +assertEquals($expected, $errors); + } + + /** + * Provides SOAP faults along with the expected errors. + * @return array an array of arrays of SOAP faults and expected + * errors + */ + public function SoapFaultProvider() { + $data = array(); + $error = (object) array(); + + // No SoapVar. + $exception = (object) array('errors' => array($error)); + $details = (object) array('ApiExceptionFault' => $exception); + $fault = new SoapFault('soap:Server', NULL, NULL, $details); + $data[] = array($fault, array($error)); + + // With SoapVar. + $soapVar = new SoapVar($error, SOAP_ENC_OBJECT); + $exception = (object) array('errors' => array($soapVar)); + $details = (object) array('ApiExceptionFault' => $exception); + $fault = new SoapFault('soap:Server', NULL, NULL, $details); + $data[] = array($fault, array($error)); + + // No errors. + $fault = new SoapFault('soap:Server', NULL); + $data[] = array($fault, array()); + + return $data; + } + + /** + * Test getting the index of the operation referenced by an error. + * @param ApiError $error the ApiError to get the operation for + * @param int $expected the expected operation + * @covers ErrorUtils::GetSourceOperationIndex + * @dataProvider SourceOperationIndexProvider + */ + public function testGetSourceOperationIndex($error, $expected) { + $index = ErrorUtils::GetSourceOperationIndex($error); + $this->assertEquals($expected, $index); + } + + /** + * Provides errors along with the expected operation index. + * @return array an array of arrays of error and expected + * operation index + */ + public function SourceOperationIndexProvider() { + $data = array(); + + // Valid data sets. + // First operation. + $error = (object) array('fieldPath' => 'operations[0].operand'); + $data[] = array($error, 0); + // Two digit index. + $error = (object) array('fieldPath' => 'operations[10].operand'); + $data[] = array($error, 10); + + // Invalid data sets. + // NULL field path. + $error = (object) array('fieldPath' => NULL); + $data[] = array($error, NULL); + // Empty field path. + $error = (object) array('fieldPath' => ''); + $data[] = array($error, NULL); + // Field path that doesn't reference an operation. + $error = (object) array('fieldPath' => 'foo'); + $data[] = array($error, NULL); + // Negative index. + $error = (object) array('fieldPath' => 'operations[-1]'); + $data[] = array($error, NULL); + // Non-numeric index. + $error = (object) array('fieldPath' => 'operations[foo]'); + $data[] = array($error, NULL); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/MapUtilsTest.php b/tests/Google/Api/Ads/Common/Util/MapUtilsTest.php new file mode 100755 index 000000000..fd2ddc988 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/MapUtilsTest.php @@ -0,0 +1,184 @@ +assertEquals($map, $result); + } + + /** + * Test getting map entries from a map. + * @param array $mapEntries the expected map entries + * @param array $map a map + * @covers MapUtils::GetMapEntries + * @dataProvider MapEntriesProvider + */ + public function testGetMapEntries(array $mapEntries, array $map) { + $result = MapUtils::GetMapEntries($map); + $this->assertEquals($mapEntries, $result); + } + + /** + * Test getting map entries from a map, using a named map entries class. + * @covers MapUtils::GetMapEntries + */ + public function testGetMapEntries_NamedEntries() { + $map = array('foo' => 'bar'); + $result = MapUtils::GetMapEntries($map, 'TestMapEntry'); + $this->assertEquals(1, sizeof($result)); + $this->assertTrue($result[0] instanceof TestMapEntry); + $this->assertEquals('foo', $result[0]->key); + $this->assertEquals('bar', $result[0]->value); + } + + /** + * Test determining if an array is a map. + * @param array $value the array to evaluate + * @param bool $expected the expected result of IsMap() + * @covers MapUtils::IsMap + * @dataProvider IsMapProvider + */ + public function testIsMap(array $value, $expected) { + $result = MapUtils::IsMap($value); + $this->assertEquals($expected, $result); + } + + /** + * Test converting a map to a set of method parameters. + * @param array $map the map of parameter names to values + * @param array $expected the expected array of parameter values + * @covers MapUtils::MapToMethodParameters + * @dataProvider MapToMethodParametersProvider + */ + public function testMapToMethodParameters(array $map, array $expected) { + $reflectionClass = new ReflectionClass($this); + $reflectionMethod = $reflectionClass->getMethod('SampleMethod'); + $result = MapUtils::MapToMethodParameters($map, $reflectionMethod); + $this->assertEquals($expected, $result); + } + + /** + * Provides map entries along with the expected map. + * @return array an array of arrays of map entries and expected map + */ + public function MapEntriesProvider() { + $data = array(); + + // One entry. + $mapEntry = (object) array('key' => 'foo', 'value' => 'bar'); + $map = array('foo' => 'bar'); + $data[] = array(array($mapEntry), $map); + + // More than one entry. + $mapEntry1 = (object) array('key' => 'foo', 'value' => 'bar'); + $mapEntry2 = (object) array('key' => 'tick', 'value' => 'tock'); + $map = array('foo' => 'bar', 'tick' => 'tock'); + $data[] = array(array($mapEntry1, $mapEntry2), $map); + + // No entries. + $data[] = array(array(), array()); + + return $data; + } + + /** + * Provides arrays and the expected value of MapUtils::IsMap(). + * @return array an array or arrays of array and booleans. + */ + public function IsMapProvider() { + $data = array(); + + // Maps. + $data[] = array(array('foo' => 'bar'), TRUE); + $data[] = array(array('foo' => 'bar', 1 => 'baz'), TRUE); + + // Not maps. + $data[] = array(array(), FALSE); + $data[] = array(array('bar', 'baz'), FALSE); + $data[] = array(array('0' => 'bar'), FALSE); + + return $data; + } + + /** + * Provides maps and the expected flat array that should be returned when + * MapUtils::MapToMethodParameters is called with the SampleMethod method. + * @return array an array of arrays of maps and arrays + */ + public function MapToMethodParametersProvider() { + $data = array(); + + // Normal order. + $data[] = array(array('a' => 'ant', 'b' => 'bat', 'c' => 'cat'), + array('ant', 'bat', 'cat')); + // Reverse order. + $data[] = array(array('c' => 'cat', 'b' => 'bat', 'a' => 'ant'), + array('ant', 'bat', 'cat')); + // Missing parameter. + $data[] = array(array('a' => 'ant', 'b' => 'bat'), + array('ant', 'bat', NULL)); + // Extra parameters. + $data[] = array(array('a' => 'ant', 'b' => 'bat', 'c' => 'cat', + 'd' => 'dog'), array('ant', 'bat', 'cat')); + // No parameters. + $data[] = array(array(), array(NULL, NULL, NULL)); + + return $data; + } + + /** + * A sample method for testing MapUtils::MapToMethodParameters(). + * @param string $a the first parameter + * @param string $b the second parameter + * @param string $c the third paremter (optional) + */ + public function SampleMethod($a, $b, $c = NULL) {} +} + +/** + * Class for testing map entries. + */ +class TestMapEntry { + public $key; + public $value; +} + diff --git a/tests/Google/Api/Ads/Common/Util/OAuth2HandlerTest.php b/tests/Google/Api/Ads/Common/Util/OAuth2HandlerTest.php new file mode 100755 index 000000000..2a35fbb2b --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/OAuth2HandlerTest.php @@ -0,0 +1,365 @@ +scope = 'TEST_SCOPE'; + + $this->oauth2Handler = new TestOAuth2Handler(NULL, $this->scope); + } + + public function testGetAuthorizationUrl() { + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials); + + $urlParts = parse_url($url); + $this->assertEquals('https', $urlParts['scheme']); + $this->assertEquals('accounts.google.com', $urlParts['host']); + $this->assertFalse(isset($urlParts['port'])); + $this->assertFalse(isset($urlParts['user'])); + $this->assertFalse(isset($urlParts['pass'])); + $this->assertEquals('/o/oauth2/auth', $urlParts['path']); + $this->assertFalse(isset($urlParts['fragment'])); + + $params = array(); + parse_str($urlParts['query'], $params); + $this->assertEquals('code', $params['response_type']); + $this->assertEquals('TEST_CLIENT_ID', $params['client_id']); + $this->assertEquals('urn:ietf:wg:oauth:2.0:oob', $params['redirect_uri']); + $this->assertEquals('TEST_SCOPE', $params['scope']); + $this->assertEquals('online', $params['access_type']); + } + + public function testGetAuthorizationUrl_AlternateServer() { + $scheme = 'http'; + $authServer = 'www.foo.com'; + $scope = 'TEST_SCOPE'; + $this->oauth2Handler = new TestOAuth2Handler( + sprintf('%s://%s', $scheme, $authServer), $scope); + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials); + + $urlParts = parse_url($url); + $this->assertEquals($scheme, $urlParts['scheme']); + $this->assertEquals($authServer, $urlParts['host']); + } + + /** + * @expectedException OAuth2Exception + */ + public function testGetAuthorizationUrl_MissingClientId() { + $credentials = array(); + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials); + } + + public function testGetAuthorizationUrl_RedirectUri() { + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + $redirectUri = 'http://www.foo.com/callback'; + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials, + $redirectUri); + + $urlParts = parse_url($url); + $params = array(); + parse_str($urlParts['query'], $params); + $this->assertEquals($redirectUri, $params['redirect_uri']); + } + + public function testGetAuthorizationUrl_Offline() { + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials, NULL, + TRUE); + + $urlParts = parse_url($url); + $params = array(); + parse_str($urlParts['query'], $params); + $this->assertEquals('offline', $params['access_type']); + } + + public function testGetAuthorizationUrl_Params() { + $credentials = array('client_id' => 'TEST_CLIENT_ID'); + $params = array('foo' => 'bar'); + + $url = $this->oauth2Handler->GetAuthorizationUrl($credentials, NULL, NULL, + $params); + + $urlParts = parse_url($url); + $params = array(); + parse_str($urlParts['query'], $params); + $this->assertEquals('bar', $params['foo']); + } + + public function GetOrRefreshAccessToken_ValidAccessToken() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertSame($credentials, + $this->oauth2Handler->GetOrRefreshAccessToken($credentials)); + } + + public function testGetOrRefreshAccessToken_NoAccessToken() { + $credentials = array( + 'refresh_token' => 'TEST_REFRESH_TOKEN', + ); + try { + $this->oauth2Handler->GetOrRefreshAccessToken($credentials); + $this->fail('Should have thrown an exception.'); + } catch (Exception $e) { + $this->assertSame(TestOAuth2Handler::REFRESH_TOKEN_MESSAGE, + $e->getMessage()); + } + } + + public function testGetOrRefreshAccessToken_ExpiredAccessToken() { + $credentials = array( + 'refresh_token' => 'TEST_REFRESH_TOKEN', + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => strtotime('-1 day') + ); + try { + $this->oauth2Handler->GetOrRefreshAccessToken($credentials); + $this->fail('Should have thrown an exception.'); + } catch (Exception $e) { + $this->assertSame(TestOAuth2Handler::REFRESH_TOKEN_MESSAGE, + $e->getMessage()); + } + } + + public function testShouldRefreshAccessToken_ValidAccessToken() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertFalse( + $this->oauth2Handler->ShouldRefreshAccessToken($credentials)); + } + + public function testShouldRefreshAccessToken_TrueForMissingAccessToken() { + $credentials = array( + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertTrue( + $this->oauth2Handler->ShouldRefreshAccessToken($credentials)); + } + + public function testShouldRefreshAccessToken_ExpiredAccessToken() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => strtotime('-1 day') + ); + $this->assertTrue( + $this->oauth2Handler->ShouldRefreshAccessToken($credentials)); + } + + public function testShouldRefreshAccessToken_ExpiredInBufferAccessToken() { + $refreshBuffer = TestOAuth2Handler::REFRESH_BUFFER; + $expiresIn = 3600; + + $secondsInterval = (int) $expiresIn - ($refreshBuffer / 2); + + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => $expiresIn, + 'timestamp' => strtotime(sprintf('-%d seconds', $secondsInterval)) + ); + $this->assertTrue( + $this->oauth2Handler->ShouldRefreshAccessToken($credentials)); + } + + public function testIsAccessTokenValid() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertTrue($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenValid_Expired() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'timestamp' => strtotime('-1 day') + ); + $this->assertFalse($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenValid_ValidInRefreshBuffer() { + $refreshBuffer = TestOAuth2Handler::REFRESH_BUFFER; + $expiresIn = 3600; + + $secondsInterval = (int) $expiresIn - ($refreshBuffer / 2); + + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => $expiresIn, + 'timestamp' => strtotime(sprintf('-%d seconds', $secondsInterval)), + ); + $this->assertTrue($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenExpiring_ExpiredWithinRefreshBuffer() { + $refreshBuffer = TestOAuth2Handler::REFRESH_BUFFER; + $expiresIn = 3600; + + $secondsInterval = (int) $expiresIn - ($refreshBuffer / 2); + + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => $expiresIn, + 'timestamp' => strtotime(sprintf('-%d seconds', $secondsInterval)), + ); + $this->assertTrue( + $this->oauth2Handler->IsAccessTokenExpiring($credentials)); + } + + public function testIsAccessTokenExpiring_ValidBeforeRefreshBuffer() { + $refreshBuffer = TestOAuth2Handler::REFRESH_BUFFER; + $expiresIn = 3600; + + $secondsInterval = (int) $expiresIn - ($refreshBuffer * 2); + + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => $expiresIn, + 'timestamp' => strtotime(sprintf('-%d seconds', $secondsInterval)), + ); + $this->assertFalse( + $this->oauth2Handler->IsAccessTokenExpiring($credentials)); + } + + public function testIsAccessTokenValid_MissingAccessToken() { + $credentials = array( + 'expires_in' => '3600', + 'timestamp' => time() + ); + $this->assertFalse($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenValid_MissingExpiresIn() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'timestamp' => time() + ); + $this->assertTrue($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testIsAccessTokenValid_MissingTimestamp() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600' + ); + $this->assertTrue($this->oauth2Handler->IsAccessTokenValid($credentials)); + } + + public function testCanRefreshAccessToken() { + $credentials = array('refresh_token' => 'TEST_REFRESH_TOKEN'); + $this->assertTrue( + $this->oauth2Handler->CanRefreshAccessToken($credentials)); + } + + public function testCanRefreshAccessToken_MissingRefreshToken() { + $credentials = array(); + $this->assertFalse( + $this->oauth2Handler->CanRefreshAccessToken($credentials)); + } + + public function testFormatCredentialsForUrl() { + $credentials = array('access_token' => 'TEST_ACCESS_TOKEN'); + $value = $this->oauth2Handler->FormatCredentialsForUrl($credentials); + $this->assertEquals('access_token=TEST_ACCESS_TOKEN', $value); + } + + /** + * @expectedException OAuth2Exception + */ + public function testFormatCredentialsForUrl_MissingToken() { + $credentials = array(); + $value = $this->oauth2Handler->FormatCredentialsForUrl($credentials); + } + + public function testFormatCredentialsForHeader() { + $credentials = array('access_token' => 'TEST_ACCESS_TOKEN'); + $value = $this->oauth2Handler->FormatCredentialsForHeader($credentials); + $this->assertEquals('Bearer TEST_ACCESS_TOKEN', $value); + } + + public function testFormatCredentialsForHeader_DifferentTokenType() { + $credentials = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'token_type' => 'TEST_TOKEN_TYPE' + ); + $value = $this->oauth2Handler->FormatCredentialsForHeader($credentials); + $this->assertEquals('TEST_TOKEN_TYPE TEST_ACCESS_TOKEN', $value); + } + + /** + * @expectedException OAuth2Exception + */ + public function testFormatCredentialsForHeader_MissingToken() { + $credentials = array(); + $value = $this->oauth2Handler->FormatCredentialsForHeader($credentials); + } + +} + +class TestOAuth2Handler extends OAuth2Handler { + const GET_TOKEN_MESSAGE = 'Get not implemented.'; + const REFRESH_TOKEN_MESSAGE = 'Refresh not implemented.'; + + public function GetAccessToken(array $credentials, $code, + $redirectUri = NULL) { + throw new Exception(self::GET_TOKEN_MESSAGE); + } + + public function RefreshAccessToken(array $credentials) { + throw new Exception(self::REFRESH_TOKEN_MESSAGE); + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/OgnlUtilsTest.php b/tests/Google/Api/Ads/Common/Util/OgnlUtilsTest.php new file mode 100755 index 000000000..cc5ce9375 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/OgnlUtilsTest.php @@ -0,0 +1,131 @@ +assertEquals($expected, $value); + } + + /** + * Test getting the operation index referenced in an expression. + * @param string $expression the OGNL expression to evaluate + * @param mixed $expected the expected operation index + * @covers OgnlUtils::GetOperationIndex + * @dataProvider OperationIndexProvider + */ + public function testGetOperationIndex($expression, $expected) { + $index = OgnlUtils::GetOperationIndex($expression); + $this->assertEquals($expected, $index); + } + + /** + * Provides OGNL expressions and contexts along with the expected value. + * @return array an array of arrays of expression, context, and value + */ + public function OgnlProvider() { + $data = array(); + + // Valid expressions that evaluate in the context. + // Associative array context. + $data[] = array('foo', array('foo' => 'value'), 'value'); + // Object context. + $data[] = array('foo', (object) array('foo' => 'value'), 'value'); + // Array context. + $data[] = array('[0]', array('value'), 'value'); + // Null value. + $data[] = array('foo', array('foo' => NULL), NULL); + // Array value. + $data[] = array('foo[0]', array('foo' => array('value')), 'value'); + // Child value. + $data[] = + array('foo.bar', array('foo' => array('bar' => 'value')), 'value'); + // Empty expression. + $data[] = array('', array('foo' => 'value'), array('foo' => 'value')); + + // Valid expressions that don't evaluate in the context. + // Null context. + $data[] = array('foo', NULL, NULL); + // Child of NULL value. + $data[] = array('foo.bar', array('foo' => NULL), NULL); + // Fields deeper than context. + $data[] = array('foo.bar.more', array('foo' => 'value'), NULL); + // Index out of bounds. + $data[] = array('foo[1]', array('foo' => array('value')), NULL); + + // Invalid expressions. + // Null expression. + $data[] = array(NULL, array('foo' => 'value'), NULL); + // Invalid characters in field. + $data[] = array('foo!', array('foo' => 'value'), NULL); + // Invalid characters in index. + $data[] = array('[abc]', array('value'), NULL); + // Missing dot. + $data[] = array('foo[0]bar', array('foo' => array('bar' => 'value')), NULL); + + return $data; + } + + /** + * Provides OGNL expressions the expected operation index. + * @return array an array of arrays of expression and operation index + */ + public function OperationIndexProvider() { + $data = array(); + + // Expressions that reference an index. + $data[] = array('operations[0]', 0); + $data[] = array('operations[123]', 123); + + // Expressions that don't reference an index. + $data[] = array('operations', NULL); + $data[] = array('operations.foo', NULL); + $data[] = array('foo', NULL); + + // Invalid expressions. + $data[] = array(NULL, NULL); + $data[] = array('', NULL); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/SimpleOAuth2HandlerTest.php b/tests/Google/Api/Ads/Common/Util/SimpleOAuth2HandlerTest.php new file mode 100755 index 000000000..4598cfc23 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/SimpleOAuth2HandlerTest.php @@ -0,0 +1,218 @@ +simpleOAuth2Handler = new TestSimpleOAuth2Handler(); + } + + public function testGetAccessToken() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $code = 'TEST_CODE'; + + $this->simpleOAuth2Handler->response = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code); + + $url = $this->simpleOAuth2Handler->lastUrl; + $this->assertEquals('https://accounts.google.com/o/oauth2/token', $url); + + $params = $this->simpleOAuth2Handler->lastParams; + $this->assertEquals('TEST_CODE', $params['code']); + $this->assertEquals('TEST_CLIENT_ID', $params['client_id']); + $this->assertEquals('TEST_CLIENT_SECRET', $params['client_secret']); + $this->assertEquals('urn:ietf:wg:oauth:2.0:oob', $params['redirect_uri']); + $this->assertEquals('authorization_code', $params['grant_type']); + + $this->assertEquals('TEST_CLIENT_ID', $response['client_id']); + $this->assertEquals('TEST_CLIENT_SECRET', $response['client_secret']); + $this->assertEquals('TEST_ACCESS_TOKEN', $response['access_token']); + $this->assertEquals('3600', $response['expires_in']); + $this->assertEquals('TEST_REFRESH_TOKEN', $response['refresh_token']); + $this->assertNotNull($response['timestamp']); + } + + public function testGetAccessToken_DifferentServer() { + $this->simpleOAuth2Handler = + new TestSimpleOAuth2Handler('http://www.foo.com'); + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $code = 'TEST_CODE'; + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code); + + $url = $this->simpleOAuth2Handler->lastUrl; + $this->assertEquals('http://www.foo.com/o/oauth2/token', $url); + } + + /** + * @expectedException OAuth2Exception + */ + public function testGetAccessToken_MissingClientId() { + $credentials = array( + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $code = 'TEST_CODE'; + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code); + } + + /** + * @expectedException OAuth2Exception + */ + public function testGetAccessToken_MissingClientSecret() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID' + ); + $code = 'TEST_CODE'; + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code); + } + + public function testGetAccessToken_DifferentRedirectUri() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $code = 'TEST_CODE'; + $redirectUri = 'http://www.foo.com'; + $response = $this->simpleOAuth2Handler->GetAccessToken($credentials, $code, + $redirectUri); + + $params = $this->simpleOAuth2Handler->lastParams; + $this->assertEquals($redirectUri, $params['redirect_uri']); + } + + public function testRefreshAccessToken() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + + $this->simpleOAuth2Handler->response = array( + 'access_token' => 'TEST_ACCESS_TOKEN', + 'expires_in' => '3600' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + + $url = $this->simpleOAuth2Handler->lastUrl; + $this->assertEquals('https://accounts.google.com/o/oauth2/token', $url); + + $params = $this->simpleOAuth2Handler->lastParams; + $this->assertEquals('TEST_CLIENT_ID', $params['client_id']); + $this->assertEquals('TEST_CLIENT_SECRET', $params['client_secret']); + $this->assertEquals('TEST_REFRESH_TOKEN', $params['refresh_token']); + $this->assertEquals('refresh_token', $params['grant_type']); + + $this->assertEquals('TEST_CLIENT_ID', $response['client_id']); + $this->assertEquals('TEST_CLIENT_SECRET', $response['client_secret']); + $this->assertEquals('TEST_REFRESH_TOKEN', $params['refresh_token']); + $this->assertEquals('TEST_ACCESS_TOKEN', $response['access_token']); + $this->assertEquals('3600', $response['expires_in']); + $this->assertNotNull($response['timestamp']); + } + + public function testRefreshAccessToken_DifferentServer() { + $this->simpleOAuth2Handler = + new TestSimpleOAuth2Handler('http://www.foo.com'); + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + + $url = $this->simpleOAuth2Handler->lastUrl; + $this->assertEquals('http://www.foo.com/o/oauth2/token', $url); + } + + /** + * @expectedException OAuth2Exception + */ + public function testRefreshAccessToken_MissingClientId() { + $credentials = array( + 'client_secret' => 'TEST_CLIENT_SECRET', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + } + + /** + * @expectedException OAuth2Exception + */ + public function testRefreshAccessToken_MissingClientSecret() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'refresh_token' => 'TEST_REFRESH_TOKEN' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + } + + /** + * @expectedException OAuth2Exception + */ + public function testRefreshAccessToken_MissingRefreshToken() { + $credentials = array( + 'client_id' => 'TEST_CLIENT_ID', + 'client_secret' => 'TEST_CLIENT_SECRET' + ); + $response = $this->simpleOAuth2Handler->RefreshAccessToken($credentials); + } +} + +class TestSimpleOAuth2Handler extends SimpleOAuth2Handler { + public $lastUrl; + public $lastParams; + public $response; + + public function __construct($server = NULL) { + parent::__construct($server); + $this->response = array(); + } + + protected function MakeRequest($url, $params) { + $this->lastUrl = $url; + $this->lastParams = $params; + return $this->response; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/SoapRequestXmlFixerTest.php b/tests/Google/Api/Ads/Common/Util/SoapRequestXmlFixerTest.php new file mode 100755 index 000000000..d4e704599 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/SoapRequestXmlFixerTest.php @@ -0,0 +1,195 @@ + + + + foo + + + + + bar + + + +EOT; + $expected = << + + + + foo + + + + + bar + + + + +EOT; + $foo = new Foo(); + $foo->value = 'foo'; + $bar = new Bar(); + $bar->value = 'bar'; + $headers[] = $foo; + $arguments[] = $bar; + $fixer = new SoapRequestXmlFixer(TRUE, FALSE, FALSE); + $result = $fixer->FixXml($request, $arguments, $headers); + $this->assertEquals($expected, $result); + } + + /** + * Tests removing empty elements. + */ + public function testRemoveEmptyElements() { + $request = << + + + value + + + + + bar + + + +EOT; + $expected = << + + + + value + + + + + bar + + + + +EOT; + $bar = new Bar(); + $bar->value = 'bar'; + $headers[] = array('header1' => 'value', 'header2' => ''); + $arguments[] = $bar; + $fixer = new SoapRequestXmlFixer(FALSE, TRUE, FALSE); + $result = $fixer->FixXml($request, $arguments, $headers); + $this->assertEquals($expected, $result); + } + + /** + * Tests replacing element references. + */ + public function testReplaceElementReference() { + $request = << + + + foo + + + + + bar + + + + +EOT; + $expected = << + + + + foo + + + + + bar + + + bar + + + + +EOT; + $foo = new Foo(); + $foo->value = 'foo'; + $bar1 = new Bar(); + $bar1->value = 'bar'; + $bar2 = new Bar(); + $bar2->value = 'bar'; + $headers[] = $foo; + $arguments[] = $bar1; + $arguments[] = $bar2; + $fixer = new SoapRequestXmlFixer(FALSE, FALSE, TRUE); + $result = $fixer->FixXml($request, $arguments, $headers); + $this->assertEquals($expected, $result); + } +} + +/** + * Class used for testing. + */ +class Foo { + public $value; + public function getXsiTypeName() { return 'Foo'; } + public function getNamespace() { return 'http://example.com'; } +} + +/** + * Class used for testing. + */ +class Bar { + public $value; + public function getXsiTypeName() { return 'Bar'; } + public function getNamespace() { return 'http://example.com'; } +} + diff --git a/tests/Google/Api/Ads/Common/Util/UrlUtilsTest.php b/tests/Google/Api/Ads/Common/Util/UrlUtilsTest.php new file mode 100755 index 000000000..545440262 --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/UrlUtilsTest.php @@ -0,0 +1,133 @@ +assertEquals($expected, $value); + } + + /** + * Tests AddParamsToUrl. + * @param string $url the URL to perform to add parameters to + * @param string $params the parameters to add + * @param string $expected the expected value of the final URL + * @dataProvider AddParamsToUrlProvider + */ + public function testAddParamsToUrl($url, $params, $expected) { + $value = UrlUtils::AddParamsToUrl($url, $params); + $this->assertEquals($expected, $value); + } + + /** + * Provides urls, servers, and the expected URL after replacement. + * @return array an array of arrays of url, server, and expected result + */ + public function ReplaceServiceInUrlProvider() { + $data = array(); + + // Base case. + $data[] = array('http://www.foo.com', 'http://www.bar.com', + 'http://www.bar.com'); + // Path. + $data[] = array('http://www.foo.com/path', 'http://www.bar.com', + 'http://www.bar.com/path'); + // Deep path. + $data[] = array('http://www.foo.com/path/more', 'http://www.bar.com', + 'http://www.bar.com/path/more'); + // Query params. + $data[] = array('http://www.foo.com?a=b', 'http://www.bar.com', + 'http://www.bar.com?a=b'); + // Multiple query params. + $data[] = array('http://www.foo.com?a=b&c=d', 'http://www.bar.com', + 'http://www.bar.com?a=b&c=d'); + // Path and query params. + $data[] = array('http://www.foo.com/path?a=b', 'http://www.bar.com', + 'http://www.bar.com/path?a=b'); + // Different schemes. + $data[] = array('http://www.foo.com/path', 'ftp://www.bar.com', + 'ftp://www.bar.com/path'); + // Strange domains. + $data[] = array('http://1.foo/path', 'http://bar.3.org', + 'http://bar.3.org/path'); + // Port number in replacement. + $data[] = array('http://www.foo.com/path', 'http://www.bar.com:8080', + 'http://www.bar.com:8080/path'); + // Port number in original. + $data[] = array('http://www.foo.com:8080/path', 'http://www.bar.com', + 'http://www.bar.com/path'); + // Port number in both. + $data[] = array('http://www.foo.com:8080/path', 'http://www.bar.com:9090', + 'http://www.bar.com:9090/path'); + + return $data; + } + + /** + * Provides urls, parameters, and the expected URL after adding the + * parameters. + * @return array an array of arrays of url, parameters array, and expected + * result + */ + public function AddParamsToUrlProvider() { + $data = array(); + + // Base case. + $data[] = array('http://www.foo.com', array('a' => 'b'), + 'http://www.foo.com?a=b'); + // Multiple parameters. + $data[] = array('http://www.foo.com', array('a' => 'b', 'c' => 'd'), + 'http://www.foo.com?a=b&c=d'); + // Params in URL. + $data[] = array('http://www.foo.com?x=y', array('a' => 'b'), + 'http://www.foo.com?x=y&a=b'); + // Requires URL encoding. + $data[] = array('http://www.foo.com', array('a a' => 'b&b'), + 'http://www.foo.com?a+a=b%26b'); + // Empty params. + $data[] = array('http://www.foo.com', array(), 'http://www.foo.com'); + // Null params. + $data[] = array('http://www.foo.com', NULL, 'http://www.foo.com'); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Common/Util/XmlUtilsTest.php b/tests/Google/Api/Ads/Common/Util/XmlUtilsTest.php new file mode 100755 index 000000000..526b1ad5a --- /dev/null +++ b/tests/Google/Api/Ads/Common/Util/XmlUtilsTest.php @@ -0,0 +1,254 @@ +assertTrue(isset($document)); + } + + /** + * Test getting a DOM document from an invalid XML string. + * @param string $xml the XML string to parse + * @covers XmlUtils::GetDomFromXml + * @dataProvider InvalidXmlProvider + * @expectedException DOMException + */ + public function testGetDomFromXml_invalid($xml) { + $document = XmlUtils::GetDomFromXml($xml); + } + + /** + * Test getting an XML string from a DOM document. + * @param string $xml the XML string to use + * @covers XmlUtils::GetXmlFromDom + * @dataProvider ValidXmlProvider + */ + public function testGetXmlFromDom($xml) { + $document = XmlUtils::GetDomFromXml($xml); + $result = XmlUtils::GetXmlFromDom($document); + $this->assertTrue(!empty($result)); + } + + /** + * Test pretty printing an XML string. + * @param string $xml the XML string to pretty print + * @param string $expected the expected result of pretty printing the XML + * @covers XmlUtils::PrettyPrint + * @dataProvider PrettyXmlProvider + */ + public function testPrettyPrint($xml, $expected) { + $result = XmlUtils::PrettyPrint($xml); + $this->assertEquals($expected, $result); + } + + /** + * Test converting a DOM document to an object. + * @param string $xml the XML to convert + * @param Object $expected the expected result of the conversion + * @covers XmlUtils::ConvertDocumentToObject + * @covers XmlUtils::ConvertElementToObject + * @covers XmlUtils::ConvertNodeValueToObject + * @dataProvider XmlToObjectProvider + */ + public function testConvertDocumentToObject($xml, $expected) { + $document = XmlUtils::GetDomFromXml($xml); + $result = XmlUtils::ConvertDocumentToObject($document); + $this->assertEquals($expected, $result); + } + + /** + * Test converting an object to a DOM document. + * @param string $expected the expected XML + * @param Object $object the object to convert + * @covers XmlUtils::ConvertObjectToDocument + * @covers XmlUtils::ConvertObjectToElement + * @covers XmlUtils::ConvertObjectToNodeValue + * @dataProvider ObjectToXmlProvider + */ + public function testConvertObjectToDocument($object, $expected) { + $document = XmlUtils::ConvertObjectToDocument($object, 'root'); + $result = XmlUtils::GetXmlFromDom($document); + $this->assertEquals($expected, $result); + } + + /** + * Provides valid XML strings. + * @return array an array of arrays of XML strings + */ + public function ValidXmlProvider() { + $data = array(); + + // No value. + $data[] = array(''); + // With value. + $data[] = array('value'); + // With attribute. + $data[] = array(''); + // With child elements. + $data[] = array('applebanana'); + // With namespaces. + $data[] = array('' + . ''); + + return $data; + } + + /** + * Provides invalid XML strings. + * @return array an array of arrays of XML strings + */ + public function InvalidXmlProvider() { + $data = array(); + + // Null. + $data[] = array(NULL); + // Empty string. + $data[] = array(''); + // Incomplete tag. + $data[] = array(''); + // Incomplete attribute. + $data[] = array(''); + + return $data; + } + + /** + * Provides non-pretty XML strings and their pretty counterparts. + * @return array an array of arrays of non-pretty and pretty XML strings + */ + public function PrettyXmlProvider() { + $data = array(); + + // Insert XML declaration. + $data[] = array('', "\n"); + // Collapse empty tags. + $data[] = array('', "\n"); + // Tab in child elements. + $data[] = array('apple', + "\n\n apple\n"); + // Invalid XML should have line breaks removed. + $data[] = array("\n\napple\n", "apple"); + + return $data; + } + + /** + * Provides XML strings and the expected value after being converted to an + * object. + * @return array an array of arrays of XML strings and resulting objects + */ + public function XmlToObjectProvider() { + $data = array(); + + // Empty. + $data[] = array('', ''); + // String value. + $data[] = array('value', 'value'); + // Integer value. + $data[] = array('15', 15); + // Float value. + $data[] = array('4.7', 4.7); + // Long value. + if (PHP_INT_SIZE == 4) { + $data[] = array('2147483648', 2147483648); + } else { + $data[] = array('9223372036854775808', 9223372036854775808); + } + // Boolean values. + $data[] = array('true', TRUE); + $data[] = array('false', FALSE); + // Nested elements. + $data[] = array('apple', + (Object) array('a' => 'apple')); + // Nested elements with the same name. + $data[] = array('appleartichoke', + (Object) array('a' => array('apple', 'artichoke'))); + + return $data; + } + + /** + * Provides objects and the expected XML strings after being converted to a + * document. + * @return array an array of arrays of objects and the resulting XML strings + */ + public function ObjectToXmlProvider() { + $data = array(); + + // Empty string. + $data[] = array('', "\n"); + // String value. + $data[] = array('value', "\nvalue"); + // Integer value. + $data[] = array(15, "\n15"); + // Float value. + $data[] = array(4.7, "\n4.7"); + // Long value. + if (PHP_INT_SIZE == 4) { + $data[] = + array(2147483648, "\n2147483648"); + } else { + $data[] = array(9223372036854775808, + "\n9223372036854775808"); + } + // Boolean values. + $data[] = array(TRUE, "\ntrue"); + $data[] = array(FALSE, "\nfalse"); + // Simple object. + $data[] = array((Object) array('a' => 'apple'), + "\napple"); + // Associative array. + $data[] = array(array('a' => 'apple'), + "\napple"); + // Object with array value. + $data[] = array((Object) array('a' => array('apple', 'artichoke')), + "\nappleartichoke"); + + return $data; + } +} + diff --git a/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php b/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php new file mode 100755 index 000000000..5afd2b025 --- /dev/null +++ b/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php @@ -0,0 +1,217 @@ +stringDate1 = '1983-06-02'; + $this->stringDate2 = '2014-12-31'; + $this->stringDate3 = '1999-09-23'; + + $this->stringDateTime1 = '1983-06-02T08:30:15'; + $this->stringDateTime2 = '1983-06-02T00:00:00'; + $this->stringDateTime3 = '1983-06-02T08:30:15'; + + $this->stringDateTimeWithTimeZone1 = '1983-06-02T08:30:15-04:00'; + $this->stringDateTimeWithTimeZone2 = '1983-06-02T00:00:00-07:00'; + $this->stringDateTimeWithTimeZone3 = '1983-06-02T08:30:15+04:00'; + + $this->dfpDate1 = new Date(1983, 6, 2); + $this->dfpDate2 = new Date(2014, 12, 31); + $this->dfpDate3 = new Date(1999, 9, 23); + + $this->dateTime1 = new DateTime($this->stringDateTime1, + new DateTimeZone(self::TIME_ZONE_ID1)); + $this->dateTime2 = new DateTime($this->stringDateTime2, + new DateTimeZone(self::TIME_ZONE_ID2)); + $this->dateTime3 = new DateTime($this->stringDateTime3, + new DateTimeZone(self::TIME_ZONE_ID3)); + + $this->dfpDateTime1 = new DfpDateTime(new Date(1983, 6, 2), 8, 30, 15, + self::TIME_ZONE_ID1); + $this->dfpDateTime2 = new DfpDateTime(new Date(1983, 6, 2), 0, 0, 0, + self::TIME_ZONE_ID2); + $this->dfpDateTime3 = new DfpDateTime(new Date(1983, 6, 2), 8, 30, 15, + self::TIME_ZONE_ID3); + } + + /** + * @covers DateTimeUtils::ToDfpDateTime + */ + public function testToDfpDateTime() { + $this->assertEquals($this->dfpDateTime1, + DateTimeUtils::ToDfpDateTime($this->dateTime1)); + $this->assertEquals($this->dfpDateTime2, + DateTimeUtils::ToDfpDateTime($this->dateTime2)); + $this->assertEquals($this->dfpDateTime3, + DateTimeUtils::ToDfpDateTime($this->dateTime3)); + } + + /** + * @covers DateTimeUtils::ToDfpDateTimeFromString + */ + public function _testToDfpDateTimeFromString() { + $actualDfpDateTime1 = DateTimeUtils::ToDfpDateTimeFromString( + $this->stringDateTimeWithTimeZone1); + self::assertEquals($this->dfpDateTime1, $actualDfpDateTime1); + $this->assertEquals('-04:00', $actualDfpDateTime1->timeZone); + + $actualDfpDateTime2 = DateTimeUtils::ToDfpDateTimeFromString( + $this->stringDateTimeWithTimeZone2); + self::assertEquals($this->dfpDateTime2, $actualDfpDateTime2); + $this->assertEquals('-07:00', $actualDfpDateTime2->timeZone); + + $actualDfpDateTime3 = DateTimeUtils::ToDfpDateTimeFromString( + $this->stringDateTimeWithTimeZone3); + self::assertEquals($this->dfpDateTime2, $actualDfpDateTime3); + $this->assertEquals('+04:00', $actualDfpDateTime3->timeZone); + } + + /** + * @covers DateTimeUtils::ToDfpDateTimeFromStringWithTimeZone + */ + public function _testToDfpDateTimeFromStringWithTimeZone() { + $self->assertTrue(self::isEqual($this->dfpDateTime1, + DateTimeUtils::ToDfpDateTimeFromStringWithTimeZone( + $this->stringDateTimeWithTimeZone1, self::TIME_ZONE_ID1))); + $self->assertTrue(self::assertEquals($this->dfpDateTime2->getTimestamp(), + DateTimeUtils::ToDfpDateTimeFromStringWithTimeZone( + $this->stringDateTimeWithTimeZone2, self::TIME_ZONE_ID2))); + $self->assertTrue(self::assertEquals($this->dfpDateTime3->getTimestamp(), + DateTimeUtils::ToDfpDateTimeFromStringWithTimeZone( + $this->stringDateTimeWithTimeZone3, self::TIME_ZONE_ID3))); + } + + /** + * @covers DateTimeUtils::FromDfpDateTime + */ + public function testFromDfpDateTime() { + $this->assertEquals($this->dateTime1, + DateTimeUtils::FromDfpDateTime($this->dfpDateTime1)); + $this->assertEquals($this->dateTime2, + DateTimeUtils::FromDfpDateTime($this->dfpDateTime2)); + $this->assertEquals($this->dateTime3, + DateTimeUtils::FromDfpDateTime($this->dfpDateTime3)); + } + + /** + * @covers DateTimeUtils::ToString + */ + public function testToString() { + $this->assertEquals($this->stringDate1, + DateTimeUtils::ToString($this->dfpDate1)); + $this->assertEquals($this->stringDate2, + DateTimeUtils::ToString($this->dfpDate2)); + $this->assertEquals($this->stringDate3, + DateTimeUtils::ToString($this->dfpDate3)); + } + + /** + * @covers DateTimeUtils::ToStringWithTimeZone + */ + public function testToStringWithTimeZone() { + $this->assertEquals($this->stringDateTimeWithTimeZone1, + DateTimeUtils::ToStringWithTimeZone($this->dfpDateTime1)); + $this->assertEquals($this->stringDateTimeWithTimeZone2, + DateTimeUtils::ToStringWithTimeZone($this->dfpDateTime2)); + $this->assertEquals($this->stringDateTimeWithTimeZone3, + DateTimeUtils::ToStringWithTimeZone($this->dfpDateTime3)); + } + + /** + * @covers DateTimeUtils::ToStringForTimeZone + */ + public function testToStringForTimeZone() { + $this->assertEquals($this->stringDateTime1, + DateTimeUtils::ToStringForTimeZone($this->dfpDateTime1, + self::TIME_ZONE_ID1)); + $this->assertEquals($this->stringDateTime2, + DateTimeUtils::ToStringForTimeZone($this->dfpDateTime2, + self::TIME_ZONE_ID2)); + $this->assertEquals($this->stringDateTime3, + DateTimeUtils::ToStringForTimeZone($this->dfpDateTime3, + self::TIME_ZONE_ID3)); + + $this->assertEquals($this->stringDateTime1, + DateTimeUtils::ToStringForTimeZone(DateTimeUtils::ToDfpDateTime( + $this->dateTime1->setTimeZone( + new DateTimeZone(self::TIME_ZONE_ID2))), self::TIME_ZONE_ID1)); + $this->assertEquals($this->stringDateTime2, + DateTimeUtils::ToStringForTimeZone(DateTimeUtils::ToDfpDateTime( + $this->dateTime2->setTimeZone( + new DateTimeZone(self::TIME_ZONE_ID1))), self::TIME_ZONE_ID2)); + $this->assertEquals($this->stringDateTime3, + DateTimeUtils::ToStringForTimeZone(DateTimeUtils::ToDfpDateTime( + $this->dateTime3->setTimeZone( + new DateTimeZone(self::TIME_ZONE_ID1))), self::TIME_ZONE_ID3)); + } + + public static function isEqual(DfpDateTime $expected, + DfpDateTime $actual) { + return $expected == $actual || ($expected->date->year == $actual->date->year + && $expected->date->month == $actual->date->month + && $expected->date->day == $actual->date->day + && $expected->hour == $actual->hour + && $expected->minute == $actual->minute + && $expected->second == $actual->second); + // TODO(vtsao): Figure out how to compare IANA versus offset time zones. + } +} + +date_default_timezone_set(DateTimeUtilsTest::TIME_ZONE_ID1); + diff --git a/tests/Google/Api/Ads/Dfp/Util/PqlTest.php b/tests/Google/Api/Ads/Dfp/Util/PqlTest.php new file mode 100755 index 000000000..658e001e3 --- /dev/null +++ b/tests/Google/Api/Ads/Dfp/Util/PqlTest.php @@ -0,0 +1,166 @@ +column1 = new ColumnType('Id'); + $this->column2 = new ColumnType('Name'); + $this->column3 = new ColumnType('Status'); + $this->textValue1 = new TextValue('hello world'); + $this->textValue2 = new TextValue('description'); + $this->textValue3 = new TextValue('rawr'); + $this->booleanValue1 = new BooleanValue(false); + $this->booleanValue2 = new BooleanValue(true); + $this->booleanValue3 = new BooleanValue(false); + $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); + } + + /** + * @covers Pql::ToString + */ + public function testToString() { + $this->assertEquals('hello world', Pql::ToString($this->textValue1)); + $this->assertEquals('false', Pql::ToString($this->booleanValue1)); + $this->assertEquals('2', Pql::ToString($this->numberValue1)); + $this->assertEquals('2012-12-02', Pql::ToString($this->dateValue1)); + $this->assertEquals('2012-12-02T12:45:00+08:00', + Pql::ToString($this->dateTimeValue1)); + } + + /** + * @covers Pql::ToString + * @expectedException InvalidArgumentException + */ + public function testToStringWithUnsupportedValueTypeThrowsException() { + Pql::ToString(new MyValue()); + } + + /** + * @covers Pql::GetColumnLabels + */ + public function testGetColumnLabels() { + $resultSet = new ResultSet(array($this->column1, $this->column2, + $this->column3)); + $this->assertEquals(array('Id', 'Name', 'Status'), + Pql::GetColumnLabels($resultSet)); + } + + /** + * @covers Pql::GetRowStringValues + */ + public function testGetRowStringValues() { + $row = new Row(array($this->textValue1, $this->booleanValue1, + $this->numberValue1)); + $this->assertEquals(array('hello world', 'false', '2'), + Pql::GetRowStringValues($row)); + } + + /** + * @covers Pql::CombineResultSets + */ + public function testCombineResultSet() { + $row1 = new Row(array($this->textValue1, $this->booleanValue1, + $this->numberValue1)); + $row2 = new Row(array($this->textValue2, $this->booleanValue2, + $this->numberValue2)); + $row3 = new Row(array($this->textValue3, $this->booleanValue3, + $this->numberValue3)); + + $resultSet1 = new ResultSet(array($this->column1, $this->column2, + $this->column3), array($row1, $row2)); + $resultSet2 = new ResultSet(array($this->column1, $this->column2, + $this->column3), array($row3)); + + $combinedResultSet = Pql::CombineResultSets($resultSet1, $resultSet2); + + $this->assertEquals(3, count($combinedResultSet->rows)); + $this->assertEquals(array(new ColumnType('Id'), + new ColumnType('Name'), + new ColumnType('Status')), $combinedResultSet->columnTypes); + $this->assertEquals(array(new TextValue('hello world'), + new BooleanValue(false), + new NumberValue('2')), $combinedResultSet->rows[0]->values); + $this->assertEquals(array(new TextValue('description'), + new BooleanValue(true), + new NumberValue('7.999')), $combinedResultSet->rows[1]->values); + $this->assertEquals(array(new TextValue('rawr'), + new BooleanValue(false), + new NumberValue('-8')), $combinedResultSet->rows[2]->values); + } + + /** + * @covers Pql::CombineResultSets + * @expectedException InvalidArgumentException + */ + public function testCombineResultSetWithBadColumnsThrowsException() { + $row1 = new Row(array($this->textValue1, $this->booleanValue1, + $this->numberValue1)); + $row2 = new Row(array($this->textValue2, $this->booleanValue2, + $this->numberValue2)); + $row3 = new Row(array($this->textValue3, $this->booleanValue3)); + + $resultSet1 = new ResultSet(array($this->column1, $this->column2, + $this->column3), array($row1, $row2)); + $resultSet2 = new ResultSet(array($this->column1, $this->column2), + array($row3)); + + Pql::CombineResultSets($resultSet1, $resultSet2); + } +} + +class MyValue extends Value {} diff --git a/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php b/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php new file mode 100755 index 000000000..e98ba856c --- /dev/null +++ b/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php @@ -0,0 +1,62 @@ +assertTrue(file_exists($filePath)); + $this->assertGreaterThan(0, $downloadSize); + } + + /** + * Test downloading a report to a string. A dummy URL is used in place of a + * report URL. + * @covers ReportUtils::DownloadReport + */ + public function testDownloadReportToString() { + $result = ReportUtils::DownloadReport(ReportUtilsTest::DUMMY_REPORT_URL); + $this->assertTrue(isset($result)); + } +} +